First  |  Prev |  Next  |  Last
Pages: 225 226 227 228 229 230 231 232 233 234 235 236 237 238
paging in python shell
Hello, Does anyone know if the python shell supports paging or if I should look into iPython? Thank you so much. Alex ... 27 Jan 2008 01:35
easy_install on Mac
Hi all, I got easy_install to work a few times on my Mac, but now I want to put PyOpenGL in my ~/site-packages folder and now I am having a heckuva time getting anything to work. I've tried changing directories to where the PyOpenGL egg is and all sorts of other folders. I usually get a message stating: -bash: ... 11 Jan 2008 22:15
flatten sequences in a dictionary
Hi I wondering if someone could give me a pointer. I have a dictionary with the following structure: testDict = dict(foo=((1,2,3),(1,4,3)), bar=((3,2,1),(9,8,7,)), mumble=((1,2,3),)) I am trying to create a list of the the 3 element tuples using itertools (just for a bit of fun). I'm trying this: list(it... 9 Jan 2008 08:13
PyCairo, PIL and StringIO
I'm doing some image processing in PIL, and I want to display the results in a GTK window using PyCairo, so I create a Cairo image surface from the PIL Image like this: mfile = StringIO.StringIO() final.save(mfile, format="PNG") ima = cairo.ImageSurface.create_from_png(mfile) m... 2 Jan 2008 14:26
how to pass parameter to a python script when running it in theinteractive shell?
This should work: python -i myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1 On Dec 5, 2007 6:31 PM, wang frank <fw3(a)hotmail.co.jp> wrote: Hi, I am debugging a python script which takes a set of paramters. In the regular shell, I type: myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1 ... 10 Dec 2007 00:17
cx_Oracle + array parameter
Hello, I'm trying to pass array as an argument into PL/SQL procedure. According to cursor manual (http://cx-oracle.sourceforge.net/html/ cursorobj.html) arrayvar() should be use to do it. I've created my array type in PL/SQL: CREATE OR REPLACE TYPE cx_array_string is table of varchar2(200); and simple proce... 10 Dec 2007 00:16
WindowsError: [Error 5] Access is denied With _winreg.enum
I have included a small script the reproduces the error I am having in larger script. The line 'hkey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,name)' seems to be causing the error but im not sure why. --------------------- script ---------------- import _winreg import string def reproduce_error(): ... 10 Dec 2007 00:16
ActiveX control in python vs ActiveX control in vb 6 (piece of code)
Hello, I am trying to mograte from vb 6 to python. I have a very usefull AX control. It can be : -just a bitmap -an active picture where you can plot data and put cursors -a data explorer Those 3 behavior are driven by one property in visual studio when you insert the AX control in a form: the ... 22 Aug 2007 06:08
JPype - passing to Java main
I am trying to get JPype to pass a String into a Java class main function. Demonstration code below: =============JAVA============ package com; public class JPypeTest { public static void main(String args[]) { System.out.println(args[0]); } public void printArgument(String arg) { Syste... 15 Aug 2007 05:38
Using string as file
Hello, I have a function from a library thast expects a file object as argument. How can I manage to give the function a string resp. have the text it would have written to file object as a string? Thanks, Florian ... 6 Mar 2007 13:44
First  |  Prev |  Next  |  Last
Pages: 225 226 227 228 229 230 231 232 233 234 235 236 237 238