On 3/25/06, Nick Coghlan [EMAIL PROTECTED] wrote:
The last comment I heard from Guido on this topic was that he was still
thinking about it.
Not exactly. I'm delegating the thinking mostly to others.
However, I now have an additional data point - if GeneratorExit inherits
directly from
On 3/25/06, Nick Coghlan [EMAIL PROTECTED] wrote:
The kind of code I'm talking about would be an *existing* Python 2.4 generator
that happens to do something like:
def gen(tasks):
yield the results of a bunch of task functions
for task in tasks:
try:
On Tue, 2006-03-21 at 22:01 -0500, Raymond Hettinger wrote:
[Me]
There is a semantic difference between
code like s+=t and s.update(t). The former only works when t is a set
and the latter works for any iterable. When the C code corresponds to
the Python code, that knowledge is kept
There seems to be a need for better diagnostics
when pickle encounters something that can't be
pickled.
Recently when attempting to pickle a rather
large and complicated data structure, I got
the following incomprehensible message:
cPickle.PicklingError: args[0]
from __newobj__ args has
Guido van Rossum wrote:
On 3/25/06, Nick Coghlan [EMAIL PROTECTED] wrote:
The kind of code I'm talking about would be an *existing* Python 2.4
generator
that happens to do something like:
def gen(tasks):
yield the results of a bunch of task functions
for task in tasks:
[Barry]
Maybe it will help you to understand why I want a richer concrete API.
I work on an app that is deeply integrated with Python. It's hard to
say whether we embed or extend -- it's a lot of both. We use Python
data structures such as lists, dicts, and sets in many places as our
When Python's small-object memory allocator was introduced, some
horrid hacks came with it to map PyMem_{Del, DEL} and PyMem_{Free,
FREE} to PyObject_{Free, FREE}. This was to cater to less than a
handful of extension modules found at the time that obtained memory
for an object via
I'd really like to see someone else who understands the issues (i.e.
using the Python C-API) weigh in. Both Barry and Raymond are clever
programmers who generally understand what's Pythonic, and I find myself
agreeing with whoever posted last. ;-) Having another perspective
would probably shed
On Mar 25, 2006, at 9:57 PM, Aahz wrote:
I'd really like to see someone else who understands the issues (i.e.
using the Python C-API) weigh in. Both Barry and Raymond are clever
programmers who generally understand what's Pythonic, and I find
myself
agreeing with whoever posted last.