[issue4396] parser module fails to validate with statements.

2008-11-24 Thread David Binger
David Binger [EMAIL PROTECTED] added the comment: Thanks, Benjamin. I see that you applied this to the main python branch, which is probably okay (though I haven't tested it), but I wrote the patch against the py3k code. Did you mean to apply it to py3k? On Nov 23, 2008, at 11:09 PM, Benjamin

[issue4396] parser module fails to validate with statements.

2008-11-23 Thread David Binger
New submission from David Binger [EMAIL PROTECTED]: The parser module validates node trees when they are built from sequences. The validator must, unfortunately, be updated every time there is a change in the grammar. The current validator fails to validate with statements. This bug probably

[issue4048] parsermodule won't validate relative imports

2008-10-05 Thread David Binger
New submission from David Binger [EMAIL PROTECTED]: The parser module validates st instances that it builds from list or tuple structures. This validation fails for parse trees that include relative imports because it fails to correctly count the dots that immediately follow the from token

[issue2280] parser module chokes on unusual characters

2008-07-11 Thread David Binger
David Binger [EMAIL PROTECTED] added the comment: On Jul 11, 2008, at 5:35 PM, Kuba Fast wrote: I get no problem in 3.0b1. Should this be closed? I think so. It looks like this has been fixed. Thanks. ___ Python tracker [EMAIL PROTECTED] http

[issue2893] dict.has_key() expected in h2py.py.

2008-05-16 Thread David Binger
New submission from David Binger [EMAIL PROTECTED]: The h2py.py script is invoked at the end of make install on OS X. It raises an exception on the line where dict.has_key() is called. (There seem to be many calls to has_key() in the current 3.0 tree. I bet there are other cases like this one

[issue2285] list.sort.__doc__ says cmp is a keyword, but it isn't.

2008-03-14 Thread David Binger
New submission from David Binger [EMAIL PROTECTED]: (at revision 61376) It looks like this docstring needs to be updated. -- assignee: georg.brandl components: Documentation messages: 63521 nosy: dbinger, georg.brandl severity: minor status: open title: list.sort.__doc__ says cmp

[issue2285] list.sort.__doc__ says cmp is a keyword, but it isn't.

2008-03-14 Thread David Binger
David Binger [EMAIL PROTECTED] added the comment: Hi Bruno, Are you testing py3k? This is what I see: Python 3.0a3+ (py3k:61352M, Mar 12 2008, 13:11:35) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or license for more information. [].sort(cmp=lambda x, y: 1

[issue2280] parser module chokes on unusual characters

2008-03-12 Thread David Binger
New submission from David Binger [EMAIL PROTECTED]: This is with the current revision of py3k: 61353. parser.suite('\u1234') fails with a TypeError. Changing the argument format from s to s# works around this problem. I added a unit test for this. After fixing the s#, another bug is exposed

[issue1482] IMAP4 SSL isn't working

2008-01-31 Thread David Binger
David Binger added the comment: Bill's patch does appear to fix the ssl-related problem. imaplib is still broken in py3k, though, due to bytes/str issues. -- nosy: +dbinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1482

[issue1482] IMAP4 SSL isn't working

2008-01-31 Thread David Binger
David Binger added the comment: On Jan 31, 2008, at 12:42 PM, Bill Janssen wrote: Bill Janssen added the comment: But that's issue 1210, which is still open. David, do you want to submit a patch for 1210? I see that you are correct that 1210 is the bytes/str issue. I regret it, but I

[issue1514] missing constants in socket module

2007-11-28 Thread David Binger
New submission from David Binger: TCP_NODELAY and some constants are not present in the socket module. I think maybe #include netinet/tcp.h should appear somewhere, perhaps at the top of socketmodule.c? (This is on OS X 10.5.1 with py3k revision 59215). -- components: Library (Lib

[issue1144] parsermodule validation out of sync with Grammar

2007-11-15 Thread David Binger
David Binger added the comment: The one line patch below makes import parser; parser.sequence2st(parser.suite(class A(object): pass).tolist()) work. It puts the parsermodule's validation back in sync with the Python3 grammar for this rule of the grammar. This bug is a serious problem for me

[issue1144] parsermodule validation out of sync with Grammar

2007-11-15 Thread David Binger
David Binger added the comment: Okay, here is the whole thing with a unittest that exposes the problem. Index: Lib/test/test_parser.py === --- Lib/test/test_parser.py (revision 58984) +++ Lib/test/test_parser.py (working

[issue1144] parsermodule validation out of sync with Grammar

2007-09-11 Thread David Binger
New submission from David Binger: parser.sequence2st(parser.suite(class A(object): pass).tolist()) Traceback (most recent call last): File stdin, line 1, in module parser.ParserError: Expected node type 326, got 329. --- The Grammar in python 3 uses arglist instead of testlist for class