[Patches] [ python-Patches-1711529 ] PEP 3132: extended unpacking

SourceForge.net noreply at sourceforge.net
Fri May 11 16:51:52 CEST 2007


Patches item #1711529, was opened at 2007-05-02 17:23
Message generated for change (Comment added) made by gvanrossum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1711529&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 3000
Status: Open
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Georg Brandl (gbrandl)
Assigned to: Georg Brandl (gbrandl)
Summary: PEP 3132: extended unpacking

Initial Comment:
Implements PEP 3132.

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2007-05-11 10:51

Message:
Logged In: YES 
user_id=6380
Originator: NO

Plese do!

And please mark the PEP as accepted and post a small item about it on the
py3k list.

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2007-05-11 06:04

Message:
Logged In: YES 
user_id=849994
Originator: YES

I've fixed parsermodule.c.

Shall I check it in now? (On py3k-dev, you only said you're leaning
towards accepting it...)

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2007-05-08 20:17

Message:
Logged In: YES 
user_id=6380
Originator: NO

Hold on, test_parser started failing for me.  Things like this (lots of
variations):

======================================================================
FAIL: test_assert (__main__.RoundtripLegalSyntaxTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_parser.py", line 176, in test_assert
    self.check_suite("assert alo < ahi and blo < bhi\n")
  File "Lib/test/test_parser.py", line 28, in check_suite
    self.roundtrip(parser.suite, s)
  File "Lib/test/test_parser.py", line 19, in roundtrip
    self.fail("could not roundtrip %r: %s" % (s, why))
AssertionError: could not roundtrip 'assert alo < ahi and blo < bhi\n':
illegal assert statement


----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2007-05-08 20:09

Message:
Logged In: YES 
user_id=6380
Originator: NO

Looks good.  I'm accepting PEP and patch.  Check it in already!

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2007-05-02 17:33

Message:
Logged In: YES 
user_id=849994
Originator: YES

Version 2 adds a helpful source code comment and one new test.
File Added: extended_unpack_3.diff

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1711529&group_id=5470


More information about the Patches mailing list