Serial & reset of the device

2011-07-07 Thread yorick
ndows). Is there any possibility to not reset the device when opening the connection ? Thanks, Yorick -- http://mail.python.org/mailman/listinfo/python-list

access to the namespace of a function from within its invocation

2007-07-12 Thread Poor Yorick
print 'need something like me().data' return tmpfunc fun1.s = fun1 fun1.data=['one', 'two', 'three'] fun1() fun2 = makefun() fun2.data=['four', 'five','six'] fun2() ###code end### -- Poor Yorick -- http://mail.python.org/mailman/listinfo/python-list

install python to custom prefix with custom library directories

2007-07-17 Thread Poor Yorick
x27;, ] +self.compiler.include_dirs.insert(0, +'/my/custom/path/include') inc_dirs = self.compiler.include_dirs + ['/usr/include'] exts = [] -- Poor Yorick -- http://mail.python.org/mailman/listinfo/python-list

Python3: sorting image objects according to a cmp function

2008-12-03 Thread Poor Yorick
_eq__ methods, but that seems like more work than should be necessary. Any suggestions? -- Yorick -- http://mail.python.org/mailman/listinfo/python-list

__future__ and unrecognised flags

2008-12-12 Thread Poor Yorick
= compile(src,'','exec',unicode_literals.compiler_flag) Traceback (most recent call last): File "", line 1, in ValueError: compile(): unrecognised flags -- Yorick -- http://mail.python.org/mailman/listinfo/python-list

__future__ and compile: unrecognised flags

2008-12-13 Thread Poor Yorick
7; >>> c1 = compile(src,'','exec',unicode_literals.compiler_flag) Traceback (most recent call last): File "", line 1, in ValueError: compile(): unrecognised flags -- Yorick -- http://mail.python.org/mailman/listinfo/python-list

loop performance in global namespace (python-2.6.1)

2009-03-12 Thread Poor Yorick
ime() - time1) print('number of locals: ', len(locals())) time1 = time.time() counter = 0 while counter < limit: counter += 1 print(time.time() - time1) print('number of locals: ', len(locals())) -- Yorick -- http://mail.python.org/mailman/listinfo/python-list

python-2.6.2 Exception: TypeError: "'NoneType' object is not callable" in ignored

2009-06-14 Thread Poor Yorick
ypeError: "'NoneType' object is not callable" in ignored Exception TypeError: "'NoneType' object is not callable" in ignored -- Yorick -- http://mail.python.org/mailman/listinfo/python-list

Re: python-2.6.2 Exception: TypeError: "'NoneType' object is not callable" in ignored

2009-06-14 Thread Poor Yorick
Terry Reedy wrote: > Poor Yorick wrote: >> The following code produces an error (python-2.6.2). > > You forgot to post the error traceback. > There was no traceback, but following John Machin's prodding, I read back through some older posts (including one of yours) whic