First  |  Prev |  Next  |  Last
Pages: 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
Scope and program structure problems
Trying to learn Python here, but getting tangled up with variable scope across functions, modules etc and associated problems. Can anyone advise please? Learning project is a GUI-based (wxPython) Python program that needs to access external data across a serial port. The first thing that I need the program to... 1 Jul 2008 12:19
Disabling the magic "last expression" _ variable
A project I'm currently working on uses Turbogears as a framework. I'd like to interact with it using the tg-admin shell. We also use gettext's _() function for internationalization. Now, this function is overwritten in interactive mode, which causes annoying exceptions. Is it possible to disable this behavior?... 1 Jul 2008 11:17
problem with exec and locals()
Hi, the following code does not work until I ommit the "a=0" statement. def test(): exec "a=3" in locals() print a a=0 test() print raises: UnboundLocalError: local variable 'a' referenced before assignment Can anybody explain what is going wrong here ? Greeti... 11 Jul 2008 05:50
Naruto 407, One Piece 506, Bleach 329 Hot manga Download
Naruto 407, One Piece 506, Bleach 329 Hot manga Download The hottest mangas and the latest chapters Manga news, Most popular mangas, Latest mangas, Latest chapters http://english1.isoshu.com/?recommid=1023 http://emanga1.isoshu.com/?recommid=1023 A New Wonderful Manga: Maken-ki! http://english1.isoshu... 1 Jul 2008 07:11
Having problems using Tkinter
Hi everyone ! ! ! I'm just a month old in the world of Python and trying to develop an application using Tkinter in which a new window pops out on a particular button press.The code for this new window is in "AddKlas.py" file. The problem is all the content of the new window is overwritten on the previous win... 1 Jul 2008 07:11
Embedding Python
Hello everyone, I'm trying to embed Python interpreter in C code, but in a specific way: loading compiled bytecode into a memory location and executing it (don't ask why, complicated reasons). PyImport_ExecCodeModule seems like obvious candidate, docs say: "Given a module name (possibly of the form package.m... 1 Jul 2008 12:19
how to judge urllib.Request is finished?
currently I am using [code] req=urllib2.Request(url) data='' if '</htm>' not in data: fd=urllib2.urlopen(req) data=fd.read() time.sleep(10) time.sleep(10) blahblah [/code] Is there any other ready-to-use function? And what if the internet connection is chocked so that the html page... 1 Jul 2008 06:10
Implementing an 8 bit fixed point register
Hello to all I'm about to write a simulator for a microcontroller in python (why python? because I love it!!!) but I have a problem. The registry of this processor are all 8 bit long (and 10 bit for some other strange register) and I need to simulate the fixed point behaviour of the register, and to access t... 1 Jul 2008 19:32
How make regex that means "contains regex#1 but NOT regex#2" ??
I'm looking over the docs for the re module and can't find how to "NOT" an entire regex. For example..... How make regex that means "contains regex#1 but NOT regex#2" ? Chris ... 1 Jul 2008 11:17
ImportError: No module named _md5
Hello, Does anyone know how to fix this error when trying to build MySQL- python-1.2.2: python setup.py build Traceback (most recent call last): File "setup.py", line 5, in <module> import ez_setup; ez_setup.use_setuptools() File "/Users/jasonnerida/Downloads/MySQL-python-1.2.2/ez_setup.py", line 83... 1 Jul 2008 16:27
First  |  Prev |  Next  |  Last
Pages: 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364