Re: OSError: [Errno 127] Value too large to be stored in data type

2013-04-02 Thread Chris Hulan
On Tuesday, April 2, 2013 9:52:14 AM UTC-4, Chris Hulan wrote: > Running Python 2.3.2 on AIX > > getting "OSError: [Errno 127] Value too large to be stored in data type" > > when executing: > > > > os.listdir('/some/NFS/dir') > > >

OSError: [Errno 127] Value too large to be stored in data type

2013-04-02 Thread Chris Hulan
Running Python 2.3.2 on AIX getting "OSError: [Errno 127] Value too large to be stored in data type" when executing: os.listdir('/some/NFS/dir') The error only happens on NFS mounted dirs Anyone else seen this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Clever hack or code abomination?

2011-12-02 Thread Chris Hulan
I'd just look a the unit tests for clarification/examples -- http://mail.python.org/mailman/listinfo/python-list

Re: OK, I lied, I do have another question...

2011-07-11 Thread Chris Hulan
The callback is a method so you need to specify the owner builder.connect_signals({"on_window_destroy" : gtk.main_quit, "on_btnExit_clicked" : self.btnExit_clicked}) Got this info from http://www.pygtk.org/articles/pygtk-glade-gui/Creating_a_GUI_using_PyGTK_and_Glade.htm cheers -- http://mail.

Re: Two random lists from one list

2011-03-11 Thread Chris Hulan
On Mar 11, 1:21 pm, noydb wrote: > Hello All, > > I am just looking to see if there is perhaps a more efficient way of > doing this below (works -- creates two random teams from a list of > players).  Just want to see what the experts come up with for means of > learning how to do things better. >

Re: Creating a very simple revision system for photos in python

2011-03-11 Thread Chris Hulan
On Mar 11, 9:56 am, Thomas W wrote: > I`m thinking about creating a very simple revision system for photos > in python, something like bazaar, mercurial or git, but for photos. > The problem is that handling large binary files compared to plain text > files are quite different. Has anybody done so

Re: Perforce integrate using p4 module

2010-10-22 Thread Chris Hulan
On Oct 21, 2:57 pm, Eric_NYRelEng wrote: > Does anyone have any example with perforce integrate command? Please > help > > —Code Snippet— > import P4 > ##set p4.port, p4.client > > p4c = P4.P4() > p4c.connect() > view = “//depot/meta/project/frombranch/...//depot/meta/project/ > tobranch/..." > p4

Re: using optparser

2010-10-16 Thread Chris Hulan
On Oct 16, 10:59 pm, jimgardener wrote: > hi > I have a program which I call  findmatch that expects these arguments > 1.a person name > 2.a group name > 3.an integer > 4.a float value > > I thought I would allow user to call this program either using options > or using positional arguments in a p

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Chris Hulan
Haven't used it but Racket (http://racket-lang.org/) looks to be a new and improved Scheme -- http://mail.python.org/mailman/listinfo/python-list

Re: get objects from image

2010-04-08 Thread Chris Hulan
On Apr 8, 9:17 am, Jannis Syntychakis wrote: > Hallo Everybody, > > Maybe you can help me with this: > > i have a picture. The picture is black, with some white objects. > > Is there any way i can detect the automatically? Something like: > if there white objects bigger than 3 pixels draw a box th

Re: I passed a fizzbuzz test but failed at recursion.

2010-03-10 Thread Chris Hulan
On Mar 10, 10:55 am, Bill wrote: > Look at this recursive fizzbuzz function > fromhttp://www.codinghorror.com/blog/2007/02/why-cant-programmers-program... > > def fizzbuzz(num): >     if num: >         if num % 15 is 0: return fizzbuzz(num-1) + 'fizzbuzz \n' >         elif num % 5 is 0: return fi

Re: Raw string substitution problem

2009-12-16 Thread Chris Hulan
On Dec 16, 9:09 am, Ed Keith wrote: > I am having a problem when substituting a raw string. When I do the following: > > re.sub('abc', r'a\nb\nc', '123abcdefg') > > I get > > """ > 123a > b > cdefg > """ > > what I want is > > r'123a\nb\ncdefg' > > How do I get what I want? > > Thanks, > >     -Ed

Re: logging sound / speech handler?

2009-09-09 Thread Chris Hulan
On Sep 9, 11:03 am, Gregor Horvath wrote: > Hi, > > For an application in an industrial environment where the workers are > not always sitting in front of the monitor, but are within earshot of > the PC I would need an sound / speech handler for the standard logging > system. It should beep or bet

Re: Can't understand what python wants from me

2009-01-29 Thread Chris Hulan
On Jan 29, 4:50 pm, Oleksiy Khilkevich wrote: > Hello, everyone, > This may be a totally noob question, but since I am one, so here is it. > > I have the following code (not something much > of):http://paste.debian.net/27204 > The current code runs well, but the problem is with input > value:htt

Re: Weird invisible arguments issues with Windows

2009-01-29 Thread Chris Hulan
On Jan 29, 11:35 am, Uberman wrote: > I've installed Python 2.6.1 (AMD64) under Windows Vista Ultimate 64-bit. > > First off, it didn't register the extension for .PY (although it did register > .PYC). > > After manually associating the .PY extension with the python.exe executable, I > am now gett

Re: How to make python scripts .py executable, not bring up editor

2008-07-08 Thread Chris Hulan
On Jul 7, 5:56 pm, korean_dave <[EMAIL PROTECTED]> wrote: > From command Prompt, i type in a script, "tryme.py". > > This, instead, brings up PythonWin editor and Interactive Window. > > Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) > > How do I make it so that the script

Re: running python from cmd.exe

2008-07-04 Thread Chris Hulan
On Jul 4, 5:38 am, Dominic Rice <[EMAIL PROTECTED]> wrote: > Dominic Rice wrote: > > Miki wrote: > >> Hello, > > >>> I can't seem to get python to run my scripts using the command: python > >>> .py > > >>> If I type python the interpreter runs as I sorted out the Path property, > > >>> I'm afraid I

Re: Does this path exist?

2008-05-28 Thread Chris Hulan
On May 28, 4:59 am, [EMAIL PROTECTED] wrote: > On May 28, 3:47 am, Matt Nordhoff <[EMAIL PROTECTED]> wrote: ... > Thanks. So if OSError().errno == errno.ENOENT, then it means the path > doesn't exist? (What does "ENOENT" stan for?) I always read it as Error NO ENTry -- http://mail.python.org/mailm

Re: Using os.walk to return files in subdirectories

2008-05-22 Thread Chris Hulan
On May 22, 5:24 pm, dj <[EMAIL PROTECTED]> wrote: ...snip... > for d in dir: > if end == d: dir is the list of subdirs of the current dir, and the current dir is NOT a subdir of itself so end == dir is never true Are you trying to get a list per subdir? cheers -- http://mail.python.o

Re: Function creation (what happened?)

2008-05-09 Thread Chris Hulan
On May 9, 8:25 am, Viktor <[EMAIL PROTECTED]> wrote: > Can somebody give me an explanation what happened here (or point me to > some docs)? > > Code: > > HMMM = None > > def w(fn): > print 'fn:', id(fn) > HMMM = fn > print 'HMMM:', id(HMMM) > def wrapper(*v, **kw): > fn(*v,

Re: Sorting array

2007-11-30 Thread Chris Hulan
the list.sort method seems to do exactly what you want? Unless your array() method is creating a custom array object with different sort functionality than list? Cheers -- http://mail.python.org/mailman/listinfo/python-list