[issue15961] Missing return value in ``system_message``

2012-09-18 Thread Malthe Borch
New submission from Malthe Borch: When ``docutils`` are importable, distutils uses a reporter implementation that incorrectly drops a return value from the ``system_message`` override (see patch). -- assignee: eric.araujo components: Distutils files: patch.diff keywords: patch

[issue24485] Function source inspection fails on closures

2015-06-22 Thread Malthe Borch
New submission from Malthe Borch: Very simple to reproduce (see attachment). -- components: Library (Lib) files: test.py messages: 245621 nosy: malthe priority: normal severity: normal status: open title: Function source inspection fails on closures type: behavior versions: Python 3.5

[issue29477] Lambda with complex arguments is ctx STORE

2017-02-08 Thread Malthe Borch
New submission from Malthe Borch: Normally, lambda arguments (positional or keyword-based) are ctx PARAM, since they're parameters. But complex (packed) arguments are ctx STORE. This is a problem for AST transformation tools that can't reliably detect the name context. -- components

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-09-14 Thread Malthe Borch
New submission from Malthe Borch: Many systems today use Python 3 as the default interpreter "python". The Python 2.7 build fails because of syntax incompatibility. Attached patch fixes this. -- components: Build files: 0001-Allow-make-to-be-run-under-Python-3.patch keywo

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-09-24 Thread Malthe Borch
Malthe Borch added the comment: I have updated the patch with requested changes. Note that the original code also added space after '\t' characters. I have not changed this on purpose. -- Added file: http://bugs.python.org/file44801/0001-Allow-make-to-be-run-under-Python-3.patch

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-09-18 Thread Malthe Borch
Malthe Borch added the comment: I forgot to add "from __future__ import print_function" to the beginning of "asdl.py" and "spark.py". It should then work on Python 2. That is, with the imported print-function, the incompatibilities that Martin pointed out are no

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-10-15 Thread Malthe Borch
Malthe Borch added the comment: You're right. The trailing comma just suppresses the newline. I updated the patch. -- Added file: http://bugs.python.org/file45105/0001-Allow-make-to-be-run-under-Python-3.patch ___ Python tracker <

[issue28143] ASDL compatibility with Python 3 system interpreter

2017-10-23 Thread Malthe Borch
Change by Malthe Borch <mbo...@gmail.com>: -- pull_requests: +4052 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue46925] Replace key if not identical to old key in dict

2022-03-04 Thread Malthe Borch
New submission from Malthe Borch : When a key that is equal to an existing key (but not the same object identity) is used to set a new value, the key itself is not replaced. This manifests perhaps most clearly in `weakref.WeakKeyDictionary` where keys can mysteriously disappear. Consider

[issue46925] Document dict behavior when setting equal but not identical key

2022-03-06 Thread Malthe Borch
Malthe Borch added the comment: Java's HashMap has also the (current) Python behavior. An existing same key is not replaced. -- ___ Python tracker <https://bugs.python.org/issue46