[issue1631171] implement warnings module in C

2007-10-08 Thread Brett Cannon
Changes by Brett Cannon: _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/optio

[issue1631171] implement warnings module in C

2007-10-08 Thread Brett Cannon
Brett Cannon added the comment: I have uploaded my touched up version of _warnings.c . I also have a new diff since the old one did not apply cleanly (test_warnings didn't get patched nor did PCbuild8). It also lacked the changes needed to Modules/config.c . It is still not complete, though.

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-08 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/option

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-08 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/option

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-08 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I am not sure how the parser work, so I can't comment if your change to it is correct. It would probably a better idea to keep it for later, when the semantic differences between str8 and bytes objects will be resolved. I think changing b'' to buffer(b''),

[issue1248] ftplib needs a rewrite to use bytes/buffers

2007-10-08 Thread Brett Cannon
New submission from Brett Cannon: For instance, ftplib.FTP reads from sockets using socket.makefile(), but in text mode. That's bad when the data could be in the format of ASCII or binary data. -- components: Library (Lib) keywords: py3k messages: 56281 nosy: brett.cannon priority: norm

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-08 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-08 Thread Christian Heimes
New submission from Christian Heimes : The patches changes: - change PyString's repr() to return "b'...'" - change PyBytes's repr() to return "buffer(b'...')" - change parser so that b"..." returns PyString, not PyBytes - r

[issue1243] option.dest not set when callback called with optparse

2007-10-08 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: > > But what type should I specify? > > I was using a callback to get a datetime object as an option... > If you are looking for a new type of option than what are already supported (string, int, long, choice, float and complex), you need to extend optpars

[issue1243] option.dest not set when callback called with optparse

2007-10-08 Thread Chris Withers
Chris Withers added the comment: But what type should I specify? I was using a callback to get a datetime object as an option... __ Tracker <[EMAIL PROTECTED]> __ _

[issue1243] option.dest not set when callback called with optparse

2007-10-08 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: I have never used callbacks but went through the docs/code and I am not sure if there is a bug here. _check_dest() creates 'dest' only if 'type' is specified for the 'callback' option. With callbacks, it can not guess the type as there is no 'store' actio

[issue1199] Documentation for tp_as_number... version 2.6

2007-10-08 Thread Georg Brandl
Georg Brandl added the comment: Committed as r58376. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Py

[issue1228] 3.0 tutorial/datastructures.rst patch

2007-10-08 Thread Georg Brandl
Georg Brandl added the comment: Applied in r58375, thanks! -- nosy: +georg.brandl resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1243] option.dest not set when callback called with optparse

2007-10-08 Thread Chris Withers
Chris Withers added the comment: I'm not sure I fully understand where the fix should go but I'll put a note in to look into this. In the meantime, a good workaround is to supply an explicit destination: parser.add_option('--myopt',action='callback',callback=mycallback,dest='myopt') __

[issue1226] lib/sched.py superfluous code for removal

2007-10-08 Thread Georg Brandl
Georg Brandl added the comment: Done as part of r58369. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-10-08 Thread Georg Brandl
Georg Brandl added the comment: This should now be fixed in r58368. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1245] Document PySys_* API functions

2007-10-08 Thread Georg Brandl
Georg Brandl added the comment: To generalize, almost all public PySys_* functions aren't documented yet. -- nosy: +georg.brandl title: Document PySys_GetObject() -> Document PySys_* API functions __ Tracker <[EMAIL PROTECTED]>

[issue1244] Error on 'raise' does not show correct line number and Traceback message

2007-10-08 Thread Alexander Shirokov
Alexander Shirokov added the comment: Dear Georg, Thank you for reply. Sorry, I thought it was a real bug. Best Regards, Alex On Mon, 8 Oct 2007, Georg Brandl wrote: > > Georg Brandl added the comment: > > The raise statement without any arguments re-raises the last raised > exception, comple

[issue1244] Error on 'raise' does not show correct line number and Traceback message

2007-10-08 Thread Georg Brandl
Georg Brandl added the comment: The raise statement without any arguments re-raises the last raised exception, complete with traceback, see http://docs.python.org/dev/reference/simple_stmts.html#the-raise-statement. Therefore your usage of the raise statement is incorrect; you should always use