[Python-Dev] Two patches (original) (raw)
Georg Brandl g.brandl at gmx.net
Tue Feb 21 23:13:13 CET 2006
- Previous message: [Python-Dev] Two patches
- Next message: [Python-Dev] s/bytes/octet/ [Was:Re: bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?]]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
Georg Brandl wrote:
* I think I've submitted this one to the tracker, but can't remember: It's for PySequenceSetItem and makes something like this possible:
tup = ([], ) tup[0] += [1] That definitely needs fixing: py> tup = ([], ) py> tup[0] += [1] Traceback (most recent call last): File "", line 1, in ? TypeError: object doesn't support item assignment py> tup ([1],) Errors should never pass silently, but success shouldn't cause an error message, either.
The patch is now at SF, item #1436226.
* One patch for staticmethod and classmethod, which currently silently accept keyword arguments and throw them away. The patch adds error messages. Sounds good as well.
Checked in to 2.5 branch.
Georg
- Previous message: [Python-Dev] Two patches
- Next message: [Python-Dev] s/bytes/octet/ [Was:Re: bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?]]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]