Re: [Python-Dev] len(chr(i)) = 2?

2010-11-27 Thread Stephen J. Turnbull
Glyph Lefkowitz writes: But I don't think that anyone is filling up main memory with gigantic piles of character indexes and need to squeeze out that extra couple of bytes of memory on such a tiny object. How do you think editors and browsers represent the regions that they highlight,

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Nick Coghlan
On Thu, Nov 25, 2010 at 3:41 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Can you explain what you see as the difference? I'm not particularly interested in type validation but I like the fact that typical enum APIs allow you to group constants: the generated constant class acts as a

Re: [Python-Dev] [Preview] Comments and change proposals on documentation

2010-11-27 Thread Nick Coghlan
On Thu, Nov 25, 2010 at 6:24 AM, Georg Brandl g.bra...@gmx.net wrote: Hi, at http://dpo.gbrandl.de/contents, you can look at a version of the 3.2 docs that has the upcoming commenting feature.  JavaScript is mandatory. Very nice! I'm not sure what to do about the discoverability of the

Re: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-27 Thread Nick Coghlan
On Thu, Nov 25, 2010 at 4:12 PM, terry.reedy python-check...@python.org wrote:  The :class:`SequenceMatcher` class has this constructor: -.. class:: SequenceMatcher(isjunk=None, a='', b='') +.. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True)    Optional argument *isjunk*

Re: [Python-Dev] [Python-checkins] r86750 - python/branches/py3k/Demo/curses/life.py

2010-11-27 Thread Nick Coghlan
On Fri, Nov 26, 2010 at 12:15 PM, Senthil Kumaran orsent...@gmail.com wrote: Re: “colour”: the rest of the file use US English, as do the function names (see for example curses.has_color).  It’s good to use one dialect consistently in one file. Good catch. Did not realize it because, we write

Re: [Python-Dev] [Python-checkins] r86750 - python/branches/py3k/Demo/curses/life.py

2010-11-27 Thread Michael Foord
On 27/11/2010 12:22, Nick Coghlan wrote: On Fri, Nov 26, 2010 at 12:15 PM, Senthil Kumaranorsent...@gmail.com wrote: Re: “colour”: the rest of the file use US English, as do the function names (see for example curses.has_color). It’s good to use one dialect consistently in one file. Good

Re: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-27 Thread Eli Bendersky
On Sat, Nov 27, 2010 at 14:17, Nick Coghlan ncogh...@gmail.com wrote: On Thu, Nov 25, 2010 at 4:12 PM, terry.reedy python-check...@python.org wrote: The :class:`SequenceMatcher` class has this constructor: -.. class:: SequenceMatcher(isjunk=None, a='', b='') +.. class::

Re: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-27 Thread Michael Foord
On 27/11/2010 13:00, Eli Bendersky wrote: On Sat, Nov 27, 2010 at 14:17, Nick Coghlan ncogh...@gmail.com mailto:ncogh...@gmail.com wrote: On Thu, Nov 25, 2010 at 4:12 PM, terry.reedy python-check...@python.org mailto:python-check...@python.org wrote: The

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Michael Foord
On 27/11/2010 10:51, Nick Coghlan wrote: On Thu, Nov 25, 2010 at 3:41 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Can you explain what you see as the difference? I'm not particularly interested in type validation but I like the fact that typical enum APIs allow you to group constants:

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Nick Coghlan
On Sun, Nov 28, 2010 at 12:01 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Very interesting proposal (typed named values rather than just named constants). It doesn't handle flag values, which I would still like, but that only really makes sense for integers (sets can be OR'd but their

Re: [Python-Dev] [Python-checkins] r86750 - python/branches/py3k/Demo/curses/life.py

2010-11-27 Thread Nick Coghlan
On Sat, Nov 27, 2010 at 10:52 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: I just resign myself to having to spell words like colour and serialise wrong when I'm working on Python. Compared to the adjustments the non-native English speakers have to make, I figure I'm getting off lightly

Re: [Python-Dev] [Python-checkins] r86750 - python/branches/py3k/Demo/curses/life.py

2010-11-27 Thread Michael Foord
On 27/11/2010 15:04, Nick Coghlan wrote: On Sat, Nov 27, 2010 at 10:52 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: I just resign myself to having to spell words like colour and serialise wrong when I'm working on Python. Compared to the adjustments the non-native English speakers have

Re: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-27 Thread Nick Coghlan
On Sat, Nov 27, 2010 at 11:02 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: Features new in Python 3.2 that didn't exist in 3.1 should have a versionadded:: 3.2 tag. As Michael said, from a docs point of view, the version flow is independent: 2.6 - 2.7 and 3.1 - 3.2. The issue has really

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Barry Warsaw
On Nov 27, 2010, at 02:01 PM, Michael Foord wrote: (Note that there is no *particular* hurry to get this into 3.2 - the beta is due imminently. I wouldn't object to it ) Indeed. I don't think the time is right to try to get this into 3.2. -Barry signature.asc Description: PGP signature

[Python-Dev] Python make fails with error Fatal Python error: Interpreter not initialized (version mismatch?)

2010-11-27 Thread Anurag Chourasia
Hi All, During the make step of python, I am encountering a weird error. This is on AIX 5.3 using gcc as the compiler. My configuration options are as follows ./configure --enable-shared --disable-ipv6 --with-gcc=gcc CPPFLAGS=-I /opt/freeware/include -I /opt/freeware/include/readline -I

Re: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-27 Thread Terry Reedy
On 11/27/2010 7:17 AM, Nick Coghlan wrote: On Thu, Nov 25, 2010 at 4:12 PM, terry.reedypython-check...@python.org wrote: The :class:`SequenceMatcher` class has this constructor: -.. class:: SequenceMatcher(isjunk=None, a='', b='') +.. class:: SequenceMatcher(isjunk=None, a='', b='',

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Glenn Linderman
On 11/27/2010 2:51 AM, Nick Coghlan wrote: Not quite. I'm suggesting a factory function that works for any value, and derives the parent class from the type of the supplied value. Nick, thanks for the much better implementation than I achieved; you seem to have the same goals as my

Re: [Python-Dev] [Preview] Comments and change proposals on documentation

2010-11-27 Thread Steven D'Aprano
Nick Coghlan wrote: On Thu, Nov 25, 2010 at 6:24 AM, Georg Brandl g.bra...@gmx.net wrote: Hi, at http://dpo.gbrandl.de/contents, you can look at a version of the 3.2 docs that has the upcoming commenting feature. JavaScript is mandatory. Very nice! I'm not sure what to do about the

Re: [Python-Dev] [Preview] Comments and change proposals on documentation

2010-11-27 Thread Georg Brandl
Am 27.11.2010 23:11, schrieb Steven D'Aprano: Nick Coghlan wrote: On Thu, Nov 25, 2010 at 6:24 AM, Georg Brandl g.bra...@gmx.net wrote: Hi, at http://dpo.gbrandl.de/contents, you can look at a version of the 3.2 docs that has the upcoming commenting feature. JavaScript is mandatory. Very

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Raymond Hettinger
On Nov 27, 2010, at 12:56 PM, Glenn Linderman wrote: On 11/27/2010 2:51 AM, Nick Coghlan wrote: Not quite. I'm suggesting a factory function that works for any value, and derives the parent class from the type of the supplied value. Nick, thanks for the much better implementation than I

Re: [Python-Dev] [Preview] Comments and change proposals on documentation

2010-11-27 Thread Steven D'Aprano
Georg Brandl wrote: Am 27.11.2010 23:11, schrieb Steven D'Aprano: I wasn't able to find a comment bubble that contained anything, so I don't know what sort of information you expect them to contain -- every one I tried said 0 comments. Maybe you should have tried the page I recommended as

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Glenn Linderman
On 11/27/2010 12:56 PM, Glenn Linderman wrote: On 11/27/2010 2:51 AM, Nick Coghlan wrote: Not quite. I'm suggesting a factory function that works for any value, and derives the parent class from the type of the supplied value. Nick, thanks for the much better implementation than I achieved;

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Nick Coghlan
On Sun, Nov 28, 2010 at 9:26 AM, Raymond Hettinger raymond.hettin...@gmail.com wrote: On Nov 27, 2010, at 12:56 PM, Glenn Linderman wrote: On 11/27/2010 2:51 AM, Nick Coghlan wrote: Not quite. I'm suggesting a factory function that works for any value, and derives the parent class from the

Re: [Python-Dev] constant/enum type in stdlib

2010-11-27 Thread Terry Reedy
On 11/27/2010 6:26 PM, Raymond Hettinger wrote: Can I suggest that an enum-maker be offered as a third-party module Possibly with competing versions for trial and testing ;-) rather than prematurely adding it into the standard library. I had same thought. -- Terry Jan Reedy

Re: [Python-Dev] [Preview] Comments and change proposal s on documentation

2010-11-27 Thread Don Johnston
Steven D'Aprano steve at pearwood.info writes: Aha! I never would have guessed that the bubbles are clickable -- I thought you just moused-over them and they showed static comments put there by the developers, part of the documentation itself. I didn't realise that it was for users to add

[Python-Dev] [RELEASED] Python 2.7.1

2010-11-27 Thread Benjamin Peterson
On behalf of the Python development team, I'm happy as a clam to announce the immediate availability of Python 2.7.1. 2.7 includes many features that were first released in Python 3.1. The faster io module, the new nested with statement syntax, improved float repr, set literals, dictionary views,

[Python-Dev] [RELEASED] Python 3.1.3

2010-11-27 Thread Benjamin Peterson
On behalf of the Python development team, I'm happy as a lark to announce the third bugfix release for the Python 3.1 series, Python 3.1.3. This bug fix release features numerous bug fixes and documentation improvements over 3.1.2. The Python 3.1 version series focuses on the stabilization and