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
The following code produces an error (python-2.6.2). Either of the following
eliminates the error:
. assign something besides mod1 (the newly-created module) to d1
. remove the call to shelve.open
Why is there an error produced in the first place? What is the interaction
between d1, m
In the following snippet, the loop in the global namespace takes twice as long
as the loop in the function namespace. Why?
limit = 5000
def f1():
counter = 0
while counter < limit:
counter += 1
time1 = time.time()
f1()
print(time.time() - time
I have a future statement in a script which is intended to work in 2.6 and 3.
Shouldn't compile flags in __future__ objects essentially be noops for versions
that already support the feature? doctest is complaining about unrecognised
flags. This illustrates the problem:
Python 3.0 (r30:67507,
I have a future statement in a script I intend to work on 2.6 and 3. Shouldn't
__future__ statements basically be noops for versions that already support the
feature? doctest is complaining about compiler flags. This illustrates the
problem:
Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [
I'm looking for a Python3-compatible way to sort a list of PIL image objects
based on a computed difference between the two images. In 2.x, this would
work:
imagelist.sort(cmp=image_diff(a,b))
Maybe this could be done by creating a new class with the appropriate __lt__,
gt__, __eq__ metho
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
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