Re: [Python-3000] Need help enforcing strict str/bytes distinctions

2007-08-28 Thread Guido van Rossum
On 8/28/07, Lars Gustäbel <[EMAIL PROTECTED]> wrote: > On Mon, Aug 27, 2007 at 05:16:37PM -0700, Guido van Rossum wrote: > > As anyone following the py3k checkins should have figured out by now, > > I'm on a mission to require all code to be consistent about bytes vs. > > str. For example binary fi

Re: [Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Guido van Rossum
Yes, that makes more sense. Bah, three revisions for one. On 8/28/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Until ssl.py is fixed, I've added quick hacks to test_ssl.py and > > test_socket_ssl.py to disable these tests, so people won't be alarmed > > by the test failures. > > You might just

Re: [Python-3000] string.Formatter class

2007-08-28 Thread Eric Smith
Eric Smith wrote: > Jim Jewett wrote: >> but you might want to take inspiration from the "tail" of an >> elementtree node, and return the field with the literal next to it as >> a single object. >> >> (literal_text, field_name, format_spec, conversion) > > I think I like that best. I impleme

Re: [Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Bill Janssen
> Until ssl.py is fixed, I've added quick hacks to test_ssl.py and > test_socket_ssl.py to disable these tests, so people won't be alarmed > by the test failures. You might just want to configure out SSL support, or have Lib/ssl.py raise an ImportError, for the moment. Bill __

Re: [Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Guido van Rossum
On 8/28/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > > If you can hold off one day before doing the trunk merge, I'm going to > > > post a fix to the Windows SSL breakage this evening (PDT). > > > > > > Too late, sorry, it's already checked in. You can revert the SSL bits if you > > want, and ta

Re: [Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Bill Janssen
> > If you can hold off one day before doing the trunk merge, I'm going to > > post a fix to the Windows SSL breakage this evening (PDT). > > > Too late, sorry, it's already checked in. You can revert the SSL bits if you > want, and take care to merge the proper changes later. No, that's OK. I'

Re: [Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Thomas Wouters
On 8/29/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > If you can hold off one day before doing the trunk merge, I'm going to > post a fix to the Windows SSL breakage this evening (PDT). Too late, sorry, it's already checked in. You can revert the SSL bits if you want, and take care to merge the

Re: [Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Bill Janssen
> I'm trying to merge the trunk into the py3k branch (so I can work on > removing simple slices), but the SSL changes in the trunk are in the way. > That is to say, the new 'ssl' module depends on the Python 2.x layout in the > 'socket' module. Specifically, that socket.socket is a wrapper class ar

Re: [Python-3000] string.Formatter class

2007-08-28 Thread Eric Smith
Jim Jewett wrote: > On 8/28/07, Eric Smith <[EMAIL PROTECTED]> wrote: >> parse(format_string) > >> ... returns an iterable of tuples >> (literal_text, field_name, format_spec, conversion) > > Which are really either > > (literal_text, None, None, None) > or > (None, field_name, format_sp

Re: [Python-3000] string.Formatter class

2007-08-28 Thread Jim Jewett
On 8/28/07, Eric Smith <[EMAIL PROTECTED]> wrote: > parse(format_string) >... returns an iterable of tuples > (literal_text, field_name, format_spec, conversion) Which are really either (literal_text, None, None, None) or (None, field_name, format_spec, conversion) I can't help thinking

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Jim Jewett
On 8/28/07, Benji York <[EMAIL PROTECTED]> wrote: > Blake Winton wrote: > > Raymond Hettinger wrote: > >>> On Aug 27, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: > >> Ask ten of your programmer friends to write down "result equals > >> object dot get value" ... > > Sure, but given the rise of Java

[Python-3000] Merging the trunk SSL changes.

2007-08-28 Thread Thomas Wouters
I'm trying to merge the trunk into the py3k branch (so I can work on removing simple slices), but the SSL changes in the trunk are in the way. That is to say, the new 'ssl' module depends on the Python 2.x layout in the 'socket' module. Specifically, that socket.socket is a wrapper class around _so

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread john . m . camara
On 8/28/07, Nick Coghlan wrote: > On the gripping hand, breaking getattr, getitem, setattr, setitem, > delattr and delitem without a *really* good reason would mean seriously > annoying a heck of a lot of people for no real gain. > Making an exception to the naming convention for builtins seams

Re: [Python-3000] buildbots

2007-08-28 Thread Thomas Heller
Unfortunately, I read nearly all my mailing lists through gmane with nntp - and gmane is down currently (it doesn't deliver new messages any more). So I cannot write a reply in the original thread :-( Neal: > > We got 'em. Let the spam begin! :-) > > > > This page is not linked from the web anyw

Re: [Python-3000] buildbots

2007-08-28 Thread Thomas Heller
Unfortunately, I read nearly all my mailing lists through gmane with nntp - and gmane is down currently (it doesn't deliver new messages any more). So I cannot write a reply in the original thread :-( Neal: > We got 'em. Let the spam begin! :-) > > This page is not linked from the web anywhere:

Re: [Python-3000] string.Formatter class

2007-08-28 Thread Eric Smith
Eric Smith wrote: > One of the things that PEP 3101 deliberately under specifies is the > Formatter class, leaving decisions up to the implementation. Now that a > working implementation exists, I think it's reasonable to tighten it up. I should also have included the recipe for the 'smart' f

Re: [Python-3000] buildbots

2007-08-28 Thread Thomas Heller
Thomas Heller schrieb: > Martin v. Löwis schrieb: >>> Since the tests fail on the trunk (on the windows machines), >>> the 'clean' step is not run. >> >> No. The 'clean' step is run even if the test step failed. >> >> The problem must be somewhere else: for some reason, the >> connection breaks d

Re: [Python-3000] buildbots

2007-08-28 Thread Martin v. Löwis
> Since the tests fail on the trunk (on the windows machines), > the 'clean' step is not run. No. The 'clean' step is run even if the test step failed. The problem must be somewhere else: for some reason, the connection breaks down/times out; this causes the build to abort. Can you check the sla

Re: [Python-3000] buildbots

2007-08-28 Thread Martin v. Löwis
> * Add the branch in the buildbot master.cfg file. 2 places need to be > updated. > * Add new rules in the apache default configuration file (2 lines). > Make sure to use the same port number in both the changes. > * Check in the buildbot master config. apache config too? * Edit pydotorg:bu

Re: [Python-3000] buildbots

2007-08-28 Thread Thomas Heller
Unfortunately, I read nearly all my mailing lists through gmane with nntp - and gmane is down currently (it doesn't deliver new messages any more). So I cannot write a reply in the original thread :-( Neal: > > We got 'em. Let the spam begin! :-) > > > > This page is not linked from the web anyw

Re: [Python-3000] status (preparing for first alpha)

2007-08-28 Thread Martin v. Löwis
> It's fairly easy to do - I just have to tell the build slaves to > build the 3k branch as well. The active branches (2.5, trunk, 3k) > will then compete for the slaves, in a FIFO manner (assuming there > are concurrent commits). Apparently, Neal already did that. The 3k buildbots are at http://

Re: [Python-3000] status (preparing for first alpha)

2007-08-28 Thread Martin v. Löwis
> Agreed. Neal tried to set up a buildbot on the only machine he can > easily use for this, but that's the "old gentoo box" where he keeps > getting signal 32. (I suspect this may be a kernel bug and not our > fault.) I forget who can set up buildbots -- is it Martin? Can someone > else help? It's

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread BJörn Lindqvist
On 8/28/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > On Aug 27, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: > > > >> I would like to see PEP 8 remove the "as necessary to improve > >> readability" in the function and method naming conventions. That > >> way methods like StringIO.getvalue()

Re: [Python-3000] Immutable bytes type and bsddb or other IO

2007-08-28 Thread Guido van Rossum
On 8/27/07, Gregory P. Smith <[EMAIL PROTECTED]> wrote: > I'm sure the BerkeleyDB library is not expecting the data passed in as > a lookup key to change mid database traversal. No idea if it'll > handle that gracefully or not but I wouldn't expect it to and bet its > possible to cause a segfault

Re: [Python-3000] Removing simple slicing

2007-08-28 Thread Thomas Wouters
I updated the patches destined for the trunk (slice-object support for all objects that supported simple slicing, and actual extended slicing support for most of them) and checked them in. Next stop is cleaning up the actual slice-removal bits. I do have two remaining issues: what do we do about Py

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Guido van Rossum
On 8/28/07, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Benji York wrote: > > Blake Winton wrote: > >> On the one hand, I really like consistency in my programming languages. > >> On the other hand, a foolish consistency is the hobgoblin of little minds. > > > > I call quote misapplication. Having p

Re: [Python-3000] Does bytes() need to support bytes(, )?

2007-08-28 Thread Guido van Rossum
On 8/28/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Aug 27, 2007, at 11:20 PM, Guido van Rossum wrote: > > > But I don't see the point of defaulting to raw-unicode-escape -- > > what's the use case for that? I think you should just explicitly say > > s.encode('raw-unicode-escape') where you n

Re: [Python-3000] Does bytes() need to support bytes(, )?

2007-08-28 Thread Guido van Rossum
On 8/27/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > I think we can't really drop s.encode(), for symmetry with b.decode(). > > Do we actually need b.decode()? For symmetry with s.encode(). -- --Guido van Rossum (home page: http://www.python.org/~guido/) __

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Nick Coghlan
Benji York wrote: > Blake Winton wrote: >> On the one hand, I really like consistency in my programming languages. >> On the other hand, a foolish consistency is the hobgoblin of little minds. > > I call quote misapplication. Having predictable identifier names isn't > "foolish". Having to divi

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Benji York
Blake Winton wrote: > Raymond Hettinger wrote: >>> On Aug 27, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: I would like to see PEP 8 remove the "as necessary to improve readability" in the function and method naming conventions. That way methods like StringIO.getvalue() can be renamed

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Blake Winton
Raymond Hettinger wrote: >> On Aug 27, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: >>> I would like to see PEP 8 remove the "as necessary to improve >>> readability" in the function and method naming conventions. That >>> way methods like StringIO.getvalue() can be renamed to >>> StringIO.get_value

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 27, 2007, at 11:22 PM, Guido van Rossum wrote: > On 8/27/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: >> >> On Aug 27, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: >> >>> I would like to see PEP 8 remove the "as necessary to improve >>> readabilit

[Python-3000] string.Formatter class

2007-08-28 Thread Eric Smith
One of the things that PEP 3101 deliberately under specifies is the Formatter class, leaving decisions up to the implementation. Now that a working implementation exists, I think it's reasonable to tighten it up. I have checked in a Formatter class that specifies the following methods (in addi

Re: [Python-3000] Does bytes() need to support bytes(, )?

2007-08-28 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 27, 2007, at 11:20 PM, Guido van Rossum wrote: > But I don't see the point of defaulting to raw-unicode-escape -- > what's the use case for that? I think you should just explicitly say > s.encode('raw-unicode-escape') where you need that. Any r

Re: [Python-3000] buildbots

2007-08-28 Thread Eric Smith
Neal Norwitz wrote: > There are several other known warnings on various platforms: ... > Python/../Objects/stringlib/unicodedefs.h:26: warning: 'STRINGLIB_CMP' > defined but not used I fixed this warning in r57613. Unfortunately I had to change from an inline function to a macro, but I don't see

Re: [Python-3000] Will standard library modules comply with PEP 8?

2007-08-28 Thread Raymond Hettinger
> On Aug 27, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: > >> I would like to see PEP 8 remove the "as necessary to improve >> readability" in the function and method naming conventions. That >> way methods like StringIO.getvalue() can be renamed to >> StringIO.get_value(). Gratuitous breakage --

Re: [Python-3000] Need help enforcing strict str/bytes distinctions

2007-08-28 Thread Lars Gustäbel
On Mon, Aug 27, 2007 at 05:16:37PM -0700, Guido van Rossum wrote: > As anyone following the py3k checkins should have figured out by now, > I'm on a mission to require all code to be consistent about bytes vs. > str. For example binary files will soon refuse str arguments to > write(), and vice ver

[Python-3000] buildbots

2007-08-28 Thread Neal Norwitz
We got 'em. Let the spam begin! :-) This page is not linked from the web anywhere: http://python.org/dev/buildbot/3.0/ I'm not expecting a lot of signal out of them at the beginning. All but one has successfully compiled py3k though. I noticed there were many warnings on windows. I wonder i

Re: [Python-3000] Python-3000 Digest, Vol 18, Issue 116

2007-08-28 Thread Greg Ewing
Talin wrote: > I know that Greg Ewing was working on a "minimal" python GUI > (http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/), but it hasn't > been updated in over a year. And I'm not sure that a minimal toolkit is > really all that useful. Don't worry, I haven't given up! And I plan