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
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
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
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo