Re: [Python-Dev] Buildbot slave locks (Was: 2.5a1 Performance)

2006-04-06 Thread Martin v. Löwis
Brian Warner wrote: I don't know what the python buildbot's master.cfg looks like, but you'll probably want to add something like this (taken from the buildbot.texinfo user's manual) Thanks, I have now done that, and it seems to work. It would be nice if the builder status would indicate that

Re: [Python-Dev] Possible issue with 2.5a1 Win32 binary

2006-04-06 Thread Paul Moore
On 4/6/06, Martin v. Löwis [EMAIL PROTECTED] wrote: What happens when you run D:\Apps\Python25\python.exe -Wi D:\Apps\Python25\Lib\compileall.py -f -x badsyntax D:\Apps\Python25\Lib and look at the status of the program? I think also excluding bad_coding might already help. Status was 1.

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Greg Ewing
Fredrik Lundh wrote: it's not new code, and having *different* module names for the same well-established library isn't very nice to anyone. Modules should have short, lowercase names, without underscores. But if we don't start becoming stricter about the naming of things added to the

Re: [Python-Dev] Possible issue with 2.5a1 Win32 binary

2006-04-06 Thread Nick Coghlan
Paul Moore wrote: On 4/6/06, Martin v. Löwis [EMAIL PROTECTED] wrote: What happens when you run D:\Apps\Python25\python.exe -Wi D:\Apps\Python25\Lib\compileall.py -f -x badsyntax D:\Apps\Python25\Lib and look at the status of the program? I think also excluding bad_coding might already

[Python-Dev] Don Beaudry

2006-04-06 Thread Steve Holden
Does anyone have a current email address for Don? I've had a bounce from dvcorp.com and I need to get in touch with him. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd www.holdenweb.com Love me, love my blog

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Aahz
On Thu, Apr 06, 2006, Greg Ewing wrote: Fredrik Lundh wrote: it's not new code, and having *different* module names for the same well-established library isn't very nice to anyone. Modules should have short, lowercase names, without underscores. But if we don't start becoming stricter

[Python-Dev] Default Locale, was; Re: strftime/strptime locale funnies...

2006-04-06 Thread Donovan Baarda
On Wed, 2006-04-05 at 12:13 -0700, Brett Cannon wrote: On 4/5/06, Donovan Baarda [EMAIL PROTECTED] wrote: G'day, Just noticed on Debian (testing), Ubuntu (warty?), and RedHat (old) based systems Python's time.strptime() seems to ignore the environment's Locale and just uses C. [...]

[Python-Dev] The i string-prefix: I18n'ed strings

2006-04-06 Thread Martin Blais
Hi all I got an evil idea for Python this morning -- Guido: no, it's not about linked lists :-) -- , and I'd like to bounce it here. But first, a bit of context. In the context of writing i18n apps, programmers have to mark strings that may be internationalized in a way that - a special hook

[Python-Dev] dis module and new-style classes

2006-04-06 Thread Georg Brandl
Hi, dis.dis currently handles new-style classes stepmotherly: given class C(object): def Cm(): pass class D(object): def Dm(): pass dis.dis(C) doesn't touch D, and dis.dis(C()) doesn't touch anything. Should it be fixed? It may need some reworking in dis.dis. Georg

Re: [Python-Dev] The i string-prefix: I18n'ed strings

2006-04-06 Thread Alex Martelli
On 4/6/06, Martin Blais [EMAIL PROTECTED] wrote: ... So I had the following idea: would it not be nice if there existed a string-prefix 'i' -- a string prefix like for the raw (r'...') and unicode (u'...') strings -- that would mark the string as being for i18n? Something like this

[Python-Dev] module aliasing

2006-04-06 Thread skip
Modules should have short, lowercase names, without underscores. But if we don't start becoming stricter about the naming of things added to the stdlib, consistency of naming is never going to improve. Or should this wait for Py3k? aahz For contributions that

Re: [Python-Dev] dis module and new-style classes

2006-04-06 Thread Guido van Rossum
I think it's fine as it is. I don't think making it walk the inheritance tree is helpful; the output would be too large. Also, an instance doesn't have any code and that's fine too. (Didn't you mean dis.dis(D) doesn't touch C?) --Guido On 4/6/06, Georg Brandl [EMAIL PROTECTED] wrote: Hi,

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Martijn Faassen
Alex Martelli wrote: On Apr 5, 2006, at 8:30 PM, Greg Ewing wrote: A while ago there was some discussion about including elementtree in the std lib. I can't remember what the conclusion about that was, but if it does go ahead, I'd like to suggest that it be reorganised a bit. I've just

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Trent Mick
[Martijn Faassen wrote] I.e., this in ElementTree: ... http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/475126 import ElementTree from everywhere try: import xml.etree.ElementTree as ET # in python =2.5 except ImportError: try: import cElementTree as

Re: [Python-Dev] dis module and new-style classes

2006-04-06 Thread Georg Brandl
Guido van Rossum wrote: I think it's fine as it is. I don't think making it walk the inheritance tree is helpful; the output would be too large. Also, an instance doesn't have any code and that's fine too. Inheritance has nothing to do with that. (Didn't you mean dis.dis(D) doesn't touch C?)

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Fredrik Lundh
Trent Mick wrote: That is the current state. which reminds that maybe it's time to add an import helper to the standard library, so you can do stringio = import_search(cStringIO, StringIO) ET = import_search(lxml.etree, cElementTree, xml.etree.cElementTree) db =

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Trent Mick
[Fredrik Lundh wrote] Trent Mick wrote: That is the current state. which reminds that maybe it's time to add an import helper to the standard library, so you can do stringio = import_search(cStringIO, StringIO) ET = import_search(lxml.etree, cElementTree,

Re: [Python-Dev] dis module and new-style classes

2006-04-06 Thread Guido van Rossum
Sorry, I missed the fact that this was about nested classes. Still, I don't think it's worth fixing. --Guido On 4/6/06, Georg Brandl [EMAIL PROTECTED] wrote: Guido van Rossum wrote: I think it's fine as it is. I don't think making it walk the inheritance tree is helpful; the output would

[Python-Dev] str.partition?

2006-04-06 Thread Georg Brandl
Hi, a while ago, Raymond proposed str.partition, and I guess the reaction was positive. So what about including it now? Georg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] The i string-prefix: I18n'ed strings

2006-04-06 Thread Martin v. Löwis
Martin Blais wrote: ... A(P(_(Click here to forget), href=... ... I assume that this should be P(A(_(Click here to forget), href=... instead (i.e. href is a parameter to A, not to P) (In my example, I built a library not unlike stan for creating HTML, which is where classes A

Re: [Python-Dev] str.partition?

2006-04-06 Thread Raymond Hettinger
a while ago, Raymond proposed str.partition, and I guess the reaction was positive. So what about including it now? Neal approved this for going into the second alpha. Will do it this month. Raymond ___ Python-Dev mailing list Python-Dev@python.org

[Python-Dev] subprocess maintenance - SVN write access

2006-04-06 Thread Peter Åstrand
Hi everyone. I've been away from Python dev for a while, but I've noticed that I'm assigned to quite many subprocess bugs (14 or so) that needs some care. The first question is: Am I the right person to take care of these? I do have some ideas for some of the bugs and. OTOH, I don't have

Re: [Python-Dev] The i string-prefix: I18n'ed strings

2006-04-06 Thread Martin Blais
On 4/6/06, Martin v. Löwis [EMAIL PROTECTED] wrote: Martin Blais wrote: ... A(P(_(Click here to forget), href=... ... I assume that this should be P(A(_(Click here to forget), href=... instead (i.e. href is a parameter to A, not to P) Yeah, that's right, sorry. (You know,

Re: [Python-Dev] subprocess maintenance - SVN write access

2006-04-06 Thread Brett Cannon
On 4/6/06, Peter Åstrand [EMAIL PROTECTED] wrote: Hi everyone. I've been away from Python dev for a while, but I've noticed that I'm assigned to quite many subprocess bugs (14 or so) that needs some care. The first question is: Am I the right person to take care of these? I do have some

Re: [Python-Dev] The i string-prefix: I18n'ed strings

2006-04-06 Thread Martin Blais
On 4/6/06, Alex Martelli [EMAIL PROTECTED] wrote: On 4/6/06, Martin Blais [EMAIL PROTECTED] wrote: - We could also have a prefix I for strings to be marked but not runtime-translated, to replace the N_() strings. I'm more dubious about this one, because I don't really see the point.

Re: [Python-Dev] elementtree in stdlib

2006-04-06 Thread Greg Ewing
Trent Mick wrote: try: import xml.etree.ElementTree as ET # in python =2.5 except ImportError: ... etc ad nauseam For situations like this I've thought it might be handy to be able to say import xml.etree.ElementTree or cElementTree or \

Re: [Python-Dev] base64 module

2006-04-06 Thread Aahz
On Thu, Apr 06, 2006, Sanghyeon Seo wrote: base64 module documentation for b64decode function says, TypeError is raised if s were incorrectly padded or if there are non-alphabet characters present in the string. But this doesn't seem to be the case. Testcase: import base64

Re: [Python-Dev] str.partition?

2006-04-06 Thread Fred L. Drake, Jr.
On Thursday 06 April 2006 18:09, Georg Brandl wrote: a while ago, Raymond proposed str.partition, and I guess the reaction was positive. So what about including it now? +1 -Fred -- Fred L. Drake, Jr. fdrake at acm.org ___ Python-Dev mailing

Re: [Python-Dev] [IronPython] base64 module

2006-04-06 Thread Dino Viehland
Well, CPython at least still enforces the padding, even if it's ignoring the invalid characters. Here's Seo's repro 'simplified' to go straight to binascii (just to get to the root API): import binascii binascii.a2b_base64('%') '' And then sending a valid character, invalid padding:

[Python-Dev] base64 module

2006-04-06 Thread Sanghyeon Seo
Hello, base64 module documentation for b64decode function says, TypeError is raised if s were incorrectly padded or if there are non-alphabet characters present in the string. But this doesn't seem to be the case. Testcase: import base64 base64.b64decode('%') Since % is a non-alphabet