Re: [Python-3000] PATCH: library reference docs for PEP 3101

2007-08-31 Thread Georg Brandl
Talin schrieb: > I just posted on the tracker a patch which adds extensive documentation > for PEP 3101 to the Python Library Reference. This includes: > >str.format() >format() >__format__ >Formatter >format string syntax >format specification mini-language > > http://bu

Re: [Python-3000] PATCH: library reference docs for PEP 3101

2007-08-31 Thread Eric Smith
Talin wrote: > I just posted on the tracker a patch which adds extensive documentation > for PEP 3101 to the Python Library Reference. This includes: > >str.format() >format() >__format__ >Formatter >format string syntax >format specification mini-language > > http://bugs

[Python-3000] str.decode; buffers

2007-08-31 Thread Georg Brandl
Two short issues: * Shouldn't str.decode() be removed? Every call to it says "TypeError: decoding str is not supported". * Using e.g. b"abc".find("a") gives "SystemError: can't use str as char buffer". This should be a TypeError IMO. Georg -- Thus spake the Lord: Thou shalt indent with fou

Re: [Python-3000] PATCH: library reference docs for PEP 3101

2007-08-31 Thread Georg Brandl
Eric Smith schrieb: > Talin wrote: >> I just posted on the tracker a patch which adds extensive documentation >> for PEP 3101 to the Python Library Reference. This includes: >> >>str.format() >>format() >>__format__ >>Formatter >>format string syntax >>format specification

Re: [Python-3000] PATCH: library reference docs for PEP 3101

2007-08-31 Thread Eric Smith
Georg Brandl wrote: > Eric Smith schrieb: >> Talin wrote: >>> I just posted on the tracker a patch which adds extensive documentation >>> for PEP 3101 to the Python Library Reference. This includes: >>> >>>str.format() >>>format() >>>__format__ >>>Formatter >>>format string syn

Re: [Python-3000] Release Countdown

2007-08-31 Thread Thomas Wouters
On 8/31/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > For me on OS X, I'm still getting a failure in test_plistlib and an > unexpected skip in test_ssl. The skip is intentional; the ssl module is in a state of flux, having the latest changes from the trunk applied, but not adjusted to the new la

Re: [Python-3000] Release Countdown

2007-08-31 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 31, 2007, at 12:52 AM, Guido van Rossum wrote: > I'm pretty happy where we stand now -- I just squashed the last two > failing tests (test_mailbox and test_oldmailbox). It is 9:30 pm here > and I'm tired, so I'm going to try and get a good nigh

Re: [Python-3000] Release Countdown

2007-08-31 Thread Eric Smith
Barry Warsaw wrote: > For me on OS X, I'm still getting a failure in test_plistlib and an > unexpected skip in test_ssl. If it helps, the test_plistlib errors follow. $ ./python.exe Lib/test/test_plistlib.py -v test_appleformatting (__main__.TestPlistlib) ... ERROR test_appleformattingfromlit

Re: [Python-3000] Need Decimal.__format__

2007-08-31 Thread Nicko van Someren
On 31 Aug 2007, at 02:36, Talin wrote: ... > Also, I'm interested in suggestions as to any other standard types > that > ought to have a __format__ method, other than the obvious Date/Time > classes. What kinds of things do people usually want to print? For years I've thought that various collec

Re: [Python-3000] Release Countdown

2007-08-31 Thread Martin v. Löwis
>> For me on OS X, I'm still getting a failure in test_plistlib and an >> unexpected skip in test_ssl. > > If it helps, the test_plistlib errors follow. In case it isn't clear: test_plistlib will fail *only* on OS X, because it isn't run elsewhere. So somebody with OS X needs to fix it. Regard

Re: [Python-3000] Release Countdown

2007-08-31 Thread Eric Smith
Martin v. Löwis wrote: >>> For me on OS X, I'm still getting a failure in test_plistlib and an >>> unexpected skip in test_ssl. >> If it helps, the test_plistlib errors follow. > > In case it isn't clear: test_plistlib will fail *only* on OS X, because > it isn't run elsewhere. So somebody with

Re: [Python-3000] Need Decimal.__format__

2007-08-31 Thread Eric Smith
Talin wrote: > I'm looking for a volunteer who understands the Decimal class well > enough to write a __format__ method for it. It should handle all of the > same format specifiers as float.__format__, but it should not use the > same implementation as float (so as to preserve accuracy.) > > Al

Re: [Python-3000] Release Countdown

2007-08-31 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 31, 2007, at 7:25 AM, Thomas Wouters wrote: > On 8/31/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > For me on OS X, I'm still getting a failure in test_plistlib and an > unexpected skip in test_ssl. > > The skip is intentional; the ssl module i

Re: [Python-3000] Release Countdown

2007-08-31 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 31, 2007, at 8:17 AM, Eric Smith wrote: > Martin v. Löwis wrote: For me on OS X, I'm still getting a failure in test_plistlib and an unexpected skip in test_ssl. >>> If it helps, the test_plistlib errors follow. >> >> In case it isn't

Re: [Python-3000] buildbots

2007-08-31 Thread Martin v. Löwis
> Any suggestions? I've now backed out my first patch, and implemented an extension to msvcrt, as well as a command line option for regrtest. Let's see how this works. Regards, Martin ___ Python-3000 mailing list [email protected] http://mail.pytho

Re: [Python-3000] buildbots

2007-08-31 Thread Thomas Heller
Martin v. Löwis schrieb: >> Any suggestions? > > I've now backed out my first patch, and implemented an extension > to msvcrt, as well as a command line option for regrtest. Let's > see how this works. > > Regards, > Martin At least the tests on the win32 buildbot now do not hang any longer if I

[Python-3000] Merging between trunk and py3k?

2007-08-31 Thread Thomas Heller
Will commits still be merged between trunk and py3k in the future (after the 3.0a1 release), or must this now be down by the developers themselves? Or is it less work for the one who does the merge if applicable bug fixes are comitted to both trunk and py3k branch? Thomas ___

[Python-3000] Py3k Branch FROZEN

2007-08-31 Thread Guido van Rossum
Please don't submit anything to the py3k branch until I announce it's unfrozen or I specifically ask you to do something. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-3000 mailing list [email protected] http://mail.py

Re: [Python-3000] str.decode; buffers

2007-08-31 Thread Guido van Rossum
Yes on both accounts. Checkin coming up. On 8/31/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Two short issues: > > * Shouldn't str.decode() be removed? Every call to it says > "TypeError: decoding str is not supported". > > * Using e.g. b"abc".find("a") gives "SystemError: can't use str as cha

Re: [Python-3000] str.decode; buffers

2007-08-31 Thread Guido van Rossum
FWIW I think "s".find(b"b") should also raise a TypeError, but I don't have the guts to tackle that today. On 8/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Yes on both accounts. Checkin coming up. > > On 8/31/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Two short issues: > > > > * Shou

Re: [Python-3000] Merging between trunk and py3k?

2007-08-31 Thread Guido van Rossum
I haven't heard yet that merging is impossible or useless; there's still a lot of similarity between the trunk and the branch. As long that remains the case, I'd like to continue to do merges (except for those files that have been completely rewritten or removed, like README, bufferobject.* or int

[Python-3000] Python 3.0a1 released!

2007-08-31 Thread Guido van Rossum
The release is available from http://python.org/download/releases/3.0/ I'll send a longer announcement to python-list and python-announce-list. Please blog about this if you have a blog! Thanks to all who helped out! It's been a great ride. -- --Guido van Rossum (home page: http://www.python.or

[Python-3000] Py3k Branch UNFROZEN

2007-08-31 Thread Guido van Rossum
The branch is now unfrozen. I tagged the release as r30a1. On 8/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Please don't submit anything to the py3k branch until I announce it's > unfrozen or I specifically ask you to do something. -- --Guido van Rossum (home page: http://www.python.org

Re: [Python-3000] Release Countdown

2007-08-31 Thread Guido van Rossum
On 8/31/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Aug 31, 2007, at 8:17 AM, Eric Smith wrote: > > Martin v. Löwis wrote: > For me on OS X, I'm still getting a failure in test_plistlib and an > unexpected skip in test_ssl. > >>> If it helps, the test_plistlib errors follow. > >> > >

[Python-3000] Compiling Python 3.0 with MS Visual Studio 2005

2007-08-31 Thread Christian Heimes
I tried to compile Python 3.0 with MS Visual Studio 2005 on Windows XP SP2 (German) and I run into multiple problems with 3rd party modules. The problem with time on German installations of Windows still exists. It renders Python 3.0a on Windows for Germans pretty useless. :/ * the import of _time

[Python-3000] os.stat() raises UnicodeDecodeError on Polish windows if file not exist

2007-08-31 Thread Piotr Duda
In 3.0a1 on Polish winxp os.stat() raises UnicodeDecodeError (utf-8 codec can't decode ...) if file not exist, it is probably caused by localized error messages returned by FormatMessage. -- 闇に隠れた黒い力 弱い心を操る ___ Python-3000 mailing list Python-3000@pytho

Re: [Python-3000] os.stat() raises UnicodeDecodeError on Polish windows if file not exist

2007-08-31 Thread Christian Heimes
Piotr Duda wrote: > In 3.0a1 on Polish winxp os.stat() raises UnicodeDecodeError (utf-8 > codec can't decode ...) if file not exist, it is probably caused by > localized error messages returned by FormatMessage. On German Win XP, too Christian ___ Pyth

Re: [Python-3000] os.stat() raises UnicodeDecodeError on Polish windows if file not exist

2007-08-31 Thread Amaury Forgeot d'Arc
Hello, Christian Heimes wrote: > Piotr Duda wrote: > > In 3.0a1 on Polish winxp os.stat() raises UnicodeDecodeError (utf-8 > > codec can't decode ...) if file not exist, it is probably caused by > > localized error messages returned by FormatMessage. > > On German Win XP, too Would you please test

Re: [Python-3000] os.stat() raises UnicodeDecodeError on Polish windows if file not exist

2007-08-31 Thread Guido van Rossum
Can you guys please put this in the bug tracker too? On 8/31/07, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > Hello, > Christian Heimes wrote: > > Piotr Duda wrote: > > > In 3.0a1 on Polish winxp os.stat() raises UnicodeDecodeError (utf-8 > > > codec can't decode ...) if file not exist, it is

Re: [Python-3000] Release Countdown

2007-08-31 Thread Jim Jewett
On 8/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > For me on OS X, I'm still getting a failure in test_plistlib and an > No worry, I cracked it, just in time before the release. Seeing the recent changes to plistlib does make me think that bytes is more awkward than it should be.

Re: [Python-3000] Release Countdown

2007-08-31 Thread Guido van Rossum
On 8/31/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > On 8/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > > For me on OS X, I'm still getting a failure in test_plistlib and an > > > No worry, I cracked it, just in time before the release. > > Seeing the recent changes to plistlib does

Re: [Python-3000] Compiling Python 3.0 with MS Visual Studio 2005

2007-08-31 Thread Martin v. Löwis
Christian Heimes schrieb: > I tried to compile Python 3.0 with MS Visual Studio 2005 on Windows XP > SP2 (German) and I run into multiple problems with 3rd party modules. > The problem with time on German installations of Windows still exists. Not for me - it works fine here. Are you sure your sou

Re: [Python-3000] Release Countdown

2007-08-31 Thread Martin v. Löwis
> (1) Allow bytes methods to take a literal string (which will > obviously be in the source file's encoding). To rephrase Guido's comment: do you have the slightest idea on how to specify and implement that? Regards, Martin ___ Python-3000 mailing list

Re: [Python-3000] Release Countdown

2007-08-31 Thread Jim Jewett
On 8/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/31/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > (1) Allow bytes methods to take a literal string (which will > > obviously be in the source file's encoding). > Yuck, yuck about the source file encoding part. Also, there is no way >

Re: [Python-3000] Release Countdown

2007-08-31 Thread Martin v. Löwis
>> Yuck, yuck about the source file encoding part. Also, there is no way >> to tell that a particular argument was passed a literal. > > There is when compiling to bytecode; it goes in co_consts. > >> The very >> definition of "this was a literal" is iffy -- is x a literal when >> passed to f bel

Re: [Python-3000] Release Countdown

2007-08-31 Thread Jim Jewett
On 8/31/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >> Yuck, yuck about the source file encoding part. Also, there is no way > >> to tell that a particular argument was passed a literal. > > There is when compiling to bytecode; it goes in co_consts. > >> The very > >> definition of "this w

Re: [Python-3000] Compiling Python 3.0 with MS Visual Studio 2005

2007-08-31 Thread Christian Heimes
Martin v. Löwis wrote: > Christian Heimes schrieb: >> I tried to compile Python 3.0 with MS Visual Studio 2005 on Windows XP >> SP2 (German) and I run into multiple problems with 3rd party modules. >> The problem with time on German installations of Windows still exists. > > Not for me - it works

Re: [Python-3000] Compiling Python 3.0 with MS Visual Studio 2005

2007-08-31 Thread Guido van Rossum
On 8/31/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Martin v. Löwis wrote: > > Christian Heimes schrieb: > >> I tried to compile Python 3.0 with MS Visual Studio 2005 on Windows XP > >> SP2 (German) and I run into multiple problems with 3rd party modules. > >> The problem with time on German

[Python-3000] iterating over a dcitionary

2007-08-31 Thread Sean DiZazzo
How should we replace in our code: for k,v in dict.iteritems(): with this ?? for k,v in zip(dict, dict.values()): Sorry if this is the wrong forum for questions like this. ~Sean ___ Python-3000 mailing list [email protected] http://mail.python.o

Re: [Python-3000] iterating over a dcitionary

2007-08-31 Thread Lino Mastrodomenico
2007/9/1, Sean DiZazzo <[EMAIL PROTECTED]>: > How should we replace in our code: > > for k,v in dict.iteritems(): for k, v in dict.items(): -- Lino Mastrodomenico E-mail: [EMAIL PROTECTED] ___ Python-3000 mailing list [email protected] http://mail

[Python-3000] bug in py3k buffer object?

2007-08-31 Thread Lisandro Dalcin
Dear Travis, in my MPI wrappers, I use MPI_Alloc_mem function to get 'special' MPI memory, and next I return it to Python using return PyBuffer_FromReadWriteMemory(ptr, len); Well, getting back this rw-buffer in python, I tried to do mem = MPI.Alloc_mem(10) mem[:] = str8('\0') * 8 # sort of memz

Re: [Python-3000] Compiling Python 3.0 with MS Visual Studio 2005

2007-08-31 Thread Christian Heimes
Guido van Rossum wrote: > Does this mean that all the problems you reported at the start of this > thread are gone? (If so, I need to remove the link to this thread from > the online release notes. :-) Just the problem with the time module is gone. The problems with the 3rd party modules still exi

Re: [Python-3000] Compiling Python 3.0 with MS Visual Studio 2005

2007-08-31 Thread Neal Norwitz
On 8/31/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > Does this mean that all the problems you reported at the start of this > > thread are gone? (If so, I need to remove the link to this thread from > > the online release notes. :-) > > Just the problem with the tim

Re: [Python-3000] Release Countdown

2007-08-31 Thread Greg Ewing
Jim Jewett wrote: > On 8/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > x = "abc" > > f(x) > > I suppose consistency with that sort of use ... is > the main argument against this. I'd be *very* upset if Python started behaving differently depending on whether I wrote a literal direct

[Python-3000] Windows registry question from blog

2007-08-31 Thread Guido van Rossum
Someone added this comment to my blog (http://www.artima.com/forums/flat.jsp?forum=106&thread=213583&start=0#278818): "Only a question please, I have Python 2.5 installed in my windows XP machine and I would like to install Python 3a1. I think I could have troubles at the Windows Registry level. D

Re: [Python-3000] Windows registry question from blog

2007-08-31 Thread Joe Smith
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Someone added this comment to my blog > (http://www.artima.com/forums/flat.jsp?forum=106&thread=213583&start=0#278818): > > "Only a question please, I have Python 2.5 installed in my windows XP > machine and I would

Re: [Python-3000] Windows registry question from blog

2007-08-31 Thread Nicholas Bastin
Is there no option in the installer to associate Python with .py, .pyc, etc.? Obviously then the logical choice would be to unselect that (or perhaps have it unselected by default for alpha installations). -- Nick ___ Python-3000 mailing list Python-3000

Re: [Python-3000] Release Countdown

2007-08-31 Thread Martin v. Löwis
> If it works because the bytecode compiler changes x.split(":") into > the moral equivalent of > > try: > x.split(":") > except StrNotBytesError: > x.split(b":") > > that is good enough. And how do you propose to implement that? Regards, Martin _

Re: [Python-3000] Release Countdown

2007-08-31 Thread Greg Ewing
Jim Jewett wrote: > I would prefer that x.split(":") work. > > If that happens because bytes.split does the conversion for me (so > that x.split(sep) also works), then great. But I realize that would > require an assumption about the proper encoding. If you're going to do things like that, why s

Re: [Python-3000] Windows registry question from blog

2007-08-31 Thread Martin v. Löwis
Nicholas Bastin schrieb: > Is there no option in the installer to associate Python with .py, .pyc, > etc.? There certainly is. > Obviously then the logical choice would be to unselect that (or > perhaps have it unselected by default for alpha installations). I'd rather have the user unselect it