Tagged Questions
Python is a high level, dynamically and strongly typed programming language that encourages readability.
0
votes
0answers
29 views
What are the differences amongst Python's “__get*__” and “_del*__” methods? [migrated]
I just started learning Python a few months ago, and I'm trying to understand the differences between the different __get*__ methods:
__get__
__getattr__
__getattribute__
__getitem___
And their ...
1
vote
1answer
65 views
Difference between Controller and Dispatcher in MVC for web frameworks?
In MVC applied to WSGI or Java EE, is the Servlet a controller, dispatcher, or both? I think I've seen system diagrams where the controller and the dispatcher are different. Could the controller ...
-4
votes
0answers
69 views
What do you call python “aficionados”? [closed]
No, really, is there a slang term for passionate python developers?
I remember hearing the term "rubyist", but nothing for python.
And the search engines do not seem to be helpful on that.
PS
I'm ...
0
votes
0answers
9 views
i often get this error The browser (or proxy) sent a request that this server could not understand [migrated]
I am very new to python and just trying very simple code
this is my code
-------------------proapp.py
from flask import Flask, render_template, url_for, request, flash, redirect
from ...
2
votes
1answer
126 views
From where did the symbols *args and **kwargs in Python originate?
I know that *args and **kwargs are ways to feed more arguments into a function in Python.
I am wondering where these terms stem from. Why have all the asterisks in the beginning? What does the kw in ...
7
votes
3answers
392 views
What is the name of ** in python?
When programming Python I sometimes do a ** to make a conversion. I understand what it does but what data structures am I manipulating? A dict and what is the other? An array? Is there a name for the ...
4
votes
3answers
233 views
Why use try … finally without a catch clause?
The classical way to program is with try / catch but when is it appropriate to use try without catch? In Python the following appears legal and can make sense:
try:
#do work
finally:
#do ...
5
votes
3answers
127 views
Various programming concepts (from a Python viewpoint)
Ever since I've started lurking on stackoverflow, I keep coming across programming concepts such as abstract classes, virtual functions, contracts, interfaces, etc., from a questions about other ...
-1
votes
1answer
103 views
What is the best programming language for TCP sockets on Linux? Perl, Python or PHP? [closed]
I am totally new to socket programming. Currently, I am working on a socket server-client TCP connection. My mentor introduced me to sockets in Perl. However, I am a PHP web developer, but know ...
5
votes
5answers
240 views
When and why should one create classes at runtime?
I have read many articles on the creation of dynamic types and classes at run time. For example, the TypeBuilder class in C# lets one create dynamic types. Python has this type function by which one ...
-1
votes
0answers
30 views
“print x,” equivalent in Python3 [migrated]
Basically, I want to print out a string of values in a single line, in Python2 a statement like this one would suffice:
print x,
How to write the same simple statement in Python3 (i.e., without ...
2
votes
1answer
156 views
Starting a new project in python and qt. Where can I find a good code layout for build scaffolding?
I am in the process of starting a new project with python and Qt. The project starts from zero, and it may become a commercial application. While the programming of the code in itself is a task, ...
-4
votes
0answers
55 views
What are the specific parts of a social networking website that would be better implemented in python? [closed]
I am trying to make a small social network like Facebook. I was suggested to use PHP for my front end i.e generating HTML pages.
For the backend I am really confused, here are my options
Use ...
-4
votes
0answers
64 views
Why don't Django + Ajax work on my computer? [closed]
I'm using Windows 7, Python and Django, but I have some problems when using Ajax in my project. I installed the Dajax project using this example.
When I try running it on my computer, it doesn't ...
-5
votes
2answers
35 views
Designing Conditional Assignment operators [closed]
OK I'm designing my own programming language and I'm adding a conditional assignment feature. Which design do you prefer? NOTE: ! means single line comment
! Word Based...
int x = if (input is int): ...