Decorators without function

2010-08-09 Thread Vedran
Hello! Is it possible to apply a decorator on a block of code, without defining a function that decorator is applied to. I have to generate a lot of similar graphs. For that reason I use plot_decorator to perform usual figure setup(outfile, legend, x_label, y_label and so on), and pylab.plot

Presenting calculation results

2008-09-10 Thread Vedran
Hello! I would like to present the results of the calculations on the web using Python and Apache. Currently I have java console applications that generate text files with results. Can somebody point me in the right direction from where to start? Thanks in advance! -- http://mail.python.org/ma

directpython object move

2006-11-09 Thread vedran
Hello, How can I move objects in directpython??? I appreciate that.Thanks -- http://mail.python.org/mailman/listinfo/python-list

directpython application bug

2006-11-09 Thread vedran
Hello, I using directpython for making 3d miniature applications,but I have one problem about directpython. This is my code for example: import d3d import d3dc import d3dx device=d3d.createDevice() groundtexture=d3d.Font(u'my program',30) ...and when I run this code, directpython just open win

ftplib security support

2006-11-07 Thread vedran
Hello, One simple question.Which security ftplib support,and how to I 'load' these security to ftputil. (Please don't give me security modules) e.g. ftp=FTPHost('myhost','myusername','mypassword',session_factory=ftplib.FTP) is this example well? (for loading ftplib security to ftputil)

Beginning setup problem

2006-11-01 Thread vedran
ethod_name)) AttributeError: DistributionMetadata instance has no attribute 'get___doc__' Regards, Vedran, v-programs -- http://mail.python.org/mailman/listinfo/python-list

fsolve() from scipy crashes python on windows

2006-06-06 Thread Vedran Furač
state), scipy 0.4.8/0.4.9, windows xp Regards, Vedran Furač -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange result with math.atan2()

2006-05-02 Thread Vedran Furač
0 is integer in python, and I need a float. Regards, Vedran Furač -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange result with math.atan2()

2006-05-02 Thread Vedran Furač
Ben Caradoc-Davies wrote: > Vedran Furač wrote: >> I think that this results must be the same: >> In [3]: math.atan2(-0.0,-1) >> Out[3]: -3.1415926535897931 >> In [4]: math.atan2(-0,-1) >> Out[4]: 3.1415926535897931 > > -0 is converted to 0, then to 0.

Strange result with math.atan2()

2006-05-02 Thread Vedran Furač
I think that this results must be the same: In [3]: math.atan2(-0.0,-1) Out[3]: -3.1415926535897931 In [4]: math.atan2(-0,-1) Out[4]: 3.1415926535897931 In [5]: -0 == -0.0 Out[5]: True This is python 2.4.4c0 on Debian GNU/Linux. Regards, Vedran Furač -- http://mail.python.org/mailman