 |
|
 |
I'm about to start a pet web project and I have chosen to use Python for it. But, I'm stuck at the beginning, because I have a dilemma about the framework to use. From what I saw, there are two frameworks I like, Django and web2py. Anyone here has any real experience with these two, or have a good reason why one it better that the other?
[edit] What's the matter? Nobody uses Django, nor web2py, nobody uses python, or nobody visits this forum? [/edit]
Where it seems there are only borderlines, Where others turn and sigh, You shall rise!
modified on Friday, November 20, 2009 2:07 PM
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
Hi, I am making a game, where I want to move the character with mouse click. It is a tile based game with isometric view. # mouse move if e.type==pygame.MOUSEBUTTONDOWN: #movehero movehero=True if e.type==pygame.MOUSEBUTTONUP: movehero=False if movehero==True: # the movement code Can anyone tell me how to get the position of mouse click so that the character will move there itself? Kindly help Thanks
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
Any Python Gurus online?
If so please help me with the following error. I am the middle of writing a program and every time it runs the Python core crashes. After debugging and stepping through code the following block of code precedes the crash:
x = 16 while x > 0 x = x * x
Whats the error?
lol.......
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | 1.00/5 |
|
|
|
 |
|
|
 |
|
 |
The answer is simple really, I actually purposely created this code while learning python via MIT OpenCourseWare. This code creates an infinte loop with the number calculations increasing beyond Pythons capabilities very quickly. I thought it was kind of funny as the code says:
x is equal to 16 If you find that x is greater then 0 then do the following: redefine x as is equal to 16*16
Second loop: x is equal to 256 if you find that x is greater then 0 then do the following redefine x as equalt to 256*256
Third loop: x is equal to 65536 if you find that x is greater then 0 then do the following redefine x as equal to 65536 * 65536
A few loops and python cannot compute.
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
This answer is partially correct.
Yes I forget the operative of : when typing this but the real problem is that it creates an infinite loop that causes Pythong to crash.
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
If you understand why it crashed, then it was a worthwhile exercise.
Clue: the infinite loop isn't why it crashed. It crashed after just 3 iterations, so there must be something else happening here. (Another clue: think powers of 2)
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
I would have to say it is neither the infinite loop, nor the multipication. The reason for the crash is quite clearly evidence of the programmers inability! 
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
This question was rhetorical, and intended as a joke.
Looks like my humor is about as good as my programming skills and grammor.
----- Just excited to be learning about Python -----
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
How to write a script that uses a control statement (such as FOR loops, WHILE loops, etc...) to print out 50 lines using variables as shown in Figure 1. Note that Line 3 is derived by adding Line 1 & 2. Line 4 is derived by adding Line 2 & 3 and so on…
Line 1 : 1 Line 2 : 1 Line 3 : 2 Line 4 : 3 Line 5 : 5 Line 6 : 8 Line 7 : 13 Line 8 : 21 … …
Figure1.
Output from executed script
Smaini
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
Yes. Its called the Windows API, which has in built CAB support.
If everything was not true, would it be not true that everything is not true? So by saying everything is not true, you are automatically denying that everything is not true. Im so confused...
FreeDOS - An open source modern MS-DOS/PC-DOS replacement.
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |
|
 |
Is there a Python debugger that isn't complete rubbish? I just tried PyScripter and it crashes. I understand Eclipse doesn't have breakpoints which makes no sense to me. I tried WinPdb and the installer crashes.
PS. Looks like Wing IDE works.
modified on Wednesday, September 16, 2009 5:50 PM
|
| Reply·Email·View Thread·PermaLink | Edit·Delete | |
|
|
|
 |