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
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
Change by Malthe Borch <mbo...@gmail.com>:
--
pull_requests: +4052
stage: needs patch -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
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
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 <
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
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
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
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
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
(Note: repost from python-dev)
The ``compiler.ast`` module makes parsing Python source-code and AST
manipulation relatively painless and it's straight-forward to implement
a transformer class.
However, I find that the ``compiler.pycodegen`` module imposes a hard
limit on the length of
11 matches
Mail list logo