Re: [Python-Dev] nonlocals() function?

2010-04-04 Thread Carl M. Johnson
On Sun, Apr 4, 2010 at 1:44 PM, Steven D'Aprano wrote: > On Mon, 5 Apr 2010 09:03:17 am average wrote: >> presently).  That includes dir() too and probably others. > > You are confused -- globals() and locals() don't return lists. Yeah, this thread is mostly a mess (what would nonlocals() return

Re: [Python-Dev] Odd lines in unicodedata_db.h

2010-04-04 Thread Carl M. Johnson
On Sun, Apr 4, 2010 at 12:59 AM, Stephen J. Turnbull wrote: > They are related to the Chinese numbering system.  I recall U+4EAC > having that value from my textbooks (it's the "kyo" in Tokyo, and the > "jing" in "Beijing", so quite memorable), and U+5793 looks familiar > (it's not otherwise used

Re: [Python-Dev] Fwd: i18n

2010-08-27 Thread Carl M. Johnson
On Wed, Aug 25, 2010 at 10:42 PM, Anders J. Munch wrote: > This could be done as a free-standing library, there's no reason to > involve core CPython.  Just do message translation at a later stage, > e.g. in a custom sys.excepthook. It could be done as a free standing library, but if this idea g

Re: [Python-Dev] [Python-ideas] minmax() function returning (minimum, maximum) tuple of a sequence

2010-10-10 Thread Carl M. Johnson
On Sun, Oct 10, 2010 at 2:55 PM, Zac Burns wrote: > This could be generalized and placed into itertools if we create a function > (say, apply for lack of a better name at the moment) that takes in an > iterable and creates new iterables that yield each from the original > (avoiding the need for a