RE: Changing the names of python keywords
Hello, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! __ Vedran veki ICQ#: 264412055 Current ICQ status: + More ways to contact me Get ICQ! __ -- http://mail.python.org/mailman/listinfo/python-list
building directpython application with py2exe
Hello, I have problem with building directpython ( .exe ) application , actually when I finish building application and when I run it, in log file I get an error: Traceback (most recent call last): File "sampleMeshAnim.py", line 16, in ? ImportError: No module named d3d I was copy d3d.py and d3d.pyd files to same directory of builded directpython application, but I stll get the same error. Regards, Vedran __ Vedran veki ICQ#: 264412055 Current ICQ status: + More ways to contact me Get ICQ! __ -- http://mail.python.org/mailman/listinfo/python-list
directpython simple texture
Hello, Is there any real easy example for loading an texture in your directpython window??? For example this is my code: # loading directpython modules import d3dx import d3d from d3dc import * import d3dgui import time #making a window fr=d3dx.Frame(u"Bok kaj ima") # trying to load an texture t1 = d3d.Texture(u"textures/skin.tiger.dds") d3d.setTexture(t1, 0) #starting the application fr.mainloop() after I run this example, all I got is blue,clear frame.Is there really any simple texture example??? Please don't tell me to I look into directpython samples becose it's not helpful! Thanks!! __ Vedran veki ICQ#: 264412055 Current ICQ status: + More ways to contact me Get ICQ! __ -- http://mail.python.org/mailman/listinfo/python-list
problem with exec
Hello, After my program read and translate this code: koristi os,sys; ispisi 'bok kaj ima'; into the: import os,sys; print 'bok kaj ima'; and when it run this code with "exec", I always get error like this, but I still dont't know what is a problem: Traceback (most recent call last): File "C:\Python24\Lib\site-packages\VL\__init__.py", line 188, in kompajlati kompajlati_proces() File "C:\Python24\Lib\site-packages\VL\__init__.py", line 183, in kompajlati_proces h2=Konzola() File "C:\Python24\Lib\site-packages\VL\__init__.py", line 158, in __init__ k=kod(ZTextCtrl.GetLabel()) File "C:\Python24\Lib\site-packages\VL\__init__.py", line 83, in kod exec(str_ngh) File "", line 1 import os ,sys ; ^ SyntaxError: invalid syntax PS: How can I change when user write script with my program to he don't need aspirate the lines of his source code e.g. import os,sys n=90 if n==90:print "OK" else:print "No" Regards, Vedran __ Vedran veki ICQ#: 264412055 Current ICQ status: + More ways to contact me Get ICQ! __ -- http://mail.python.org/mailman/listinfo/python-list
code indentation
Hello, In my previously post I have been talk about running code with exec in.. So now I have problem with code indentation, as Gabriel Genellina says: >If you are using the tokenize module as suggested some time ago, try to >analyze the token sequence you get using { } (or perhaps begin/end pairs >in your own language, that are easier to distinguish from a dictionary >display) and the sequence you get from the "real" python code. Then write >a script to transform one into another: >from tokenize import generate_tokens > from token import tok_name >from cStringIO import StringIO >def analyze(source): > g = generate_tokens(StringIO(source).readline) > for toknum, tokval, _, _, _ in g: >print tok_name[toknum], repr(tokval) >I think you basically will have to ignore INDENT, DEDENT, and replace >NAME+"begin" with INDENT, NAME+"end" with DEDENT. So..how can I do this? I will appreciate any help! Regards, Vedran __ Vedran veki ICQ#: 264412055 Current ICQ status: + More ways to contact me Get ICQ! __ -- http://mail.python.org/mailman/listinfo/python-list
Insert to a clob field using cx_Oracle via a stored procedure
Hello, Does anyone have experience using cx_Oracle to call a stored procedure that inserts to a clob field? We have done this successfully via straight SQL, but we are at a loss on how to do the same insert using a stored procedure call. Any assistance would be much appreciated. Thanks. Jason -- http://mail.python.org/mailman/listinfo/python-list
Re: Insert to a clob field using cx_Oracle via a stored procedure
On Jan 2, 2:01 pm, [EMAIL PROTECTED] wrote: > Hello, > > Does anyone have experience using cx_Oracle to call a stored procedure > that inserts to a clob field? We have done this successfully via > straight SQL, but we are at a loss on how to do the same insert using > a stored procedure call. Any assistance would be much appreciated. > Thanks. > > Jason Found a solution to this - see the following thread if you interested. http://forums.oracle.com/forums/thread.jspa?forumID=376&threadID=601700 -- http://mail.python.org/mailman/listinfo/python-list