[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North
New submission from Ben North : The functools module includes a 'partial' class, which allows partial function application either by positional arguments or keyword arguments. However, it cannot be used to create, for example, a function splitting a string on commas, or a function t

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North
Changes by Ben North : -- keywords: +patch Added file: http://bugs.python.org/file12991/_functoolsmodule.patch ___ Python tracker <http://bugs.python.org/issue5

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North
Changes by Ben North : Added file: http://bugs.python.org/file12992/test_functools.patch ___ Python tracker <http://bugs.python.org/issue5191> ___ ___ Python-bugs-list m

[issue18533] Avoid error from repr() of recursive dictview

2018-01-27 Thread Ben North
Change by Ben North : -- pull_requests: +5203 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue18533> ___ ___ Python-bugs-lis

[issue18533] Avoid error from repr() of recursive dictview

2018-01-27 Thread Ben North
Ben North added the comment: Terry in msg310785: > As I expected from the fact that Ben once did a separate 2.7 > version, the auto backport for 2.7 failed. Ben, since you know what > code changes are needed, can you prepare a backport (cherry pick) > PR? Yes, that's right

[issue18533] Avoid error from repr() of recursive dictview

2017-12-12 Thread Ben North
Ben North added the comment: PR4823 created as per msg308086. -- ___ Python tracker <https://bugs.python.org/issue18533> ___ ___ Python-bugs-list mailin

[issue32137] Stack overflow in repr of deeply nested dicts

2017-12-12 Thread Ben North
Change by Ben North : -- pull_requests: +4716 ___ Python tracker <https://bugs.python.org/issue32137> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18533] Avoid error from repr() of recursive dictview

2013-07-22 Thread Ben North
New submission from Ben North: #18019 noted the following crash in earlier 2.7: >>> d={} >>> d[42]=d.viewvalues() >>> d This issue has been fixed; the behaviour now is that a RuntimeError is produced for a recursive dictionary view: >>> d={} >>&

[issue18533] Avoid error from repr() of recursive dictview

2013-07-23 Thread Ben North
Ben North added the comment: New patch including tests attached, against 3.3. Terry Reedy's example above now gives >>> d = {} >>> d[1] = d.keys() >>> d[2] = d.values() >>> d {1: dict_keys([1, 2]), 2: dict_values([dict_keys([1,

[issue18533] Avoid error from repr() of recursive dictview

2013-07-23 Thread Ben North
Ben North added the comment: New patch, fixing nit noted in msg193624: non-error-recursive-dictview-3.3-1.patch Otherwise same as previous non-error-recursive-dictview-3.3.patch -- Added file: http://bugs.python.org/file31025/non-error-recursive-dictview-3.3-1.patch

[issue18533] Avoid error from repr() of recursive dictview

2013-07-30 Thread Ben North
Changes by Ben North : Added file: http://bugs.python.org/file31089/against-9bf89c909bd4-3.3-1.patch ___ Python tracker <http://bugs.python.org/issue18533> ___ ___ Pytho

[issue18533] Avoid error from repr() of recursive dictview

2013-07-30 Thread Ben North
Ben North added the comment: I'll attach fresh patches, one against latest 2.7 and one against latest 3.3 (unchanged apart from headers from previous patch). Both branches pass ./python -m test.regrtest -R20:30 test_dictviews -- ___ P

[issue18533] Avoid error from repr() of recursive dictview

2013-07-30 Thread Ben North
Changes by Ben North : Added file: http://bugs.python.org/file31088/against-6e1dd1ce95b8-2.7-1.patch ___ Python tracker <http://bugs.python.org/issue18533> ___ ___ Pytho

[issue18533] Avoid error from repr() of recursive dictview

2013-08-15 Thread Ben North
Ben North added the comment: Is anything further needed from me before this can be reviewed? -- ___ Python tracker <http://bugs.python.org/issue18533> ___ ___

[issue5821] Documentation: mention 'close' and iteration for tarfile.TarFile.extractfile()

2009-04-23 Thread Ben North
New submission from Ben North : The current documentation for tarfile.TarFile.extractfile() does not mention that the returned 'file-like object' supports close() and also iteration. The attached patch (against svn trunk) fixes this. (Background: I was wondering whether I could wr