Kees Bos added the comment:
Added fix for python 2.7, which includes a test (testDictWithTupleKey) for the
compiler test (Lib/test/test_compiler.py).
--
status: pending -> open
Added file: http://bugs.python.org/file18642/compiler-bug-issue6978.pa
Kees Bos added the comment:
It's available at least since 2.4.
We're using it in Pyjamas (pyjs.org) to generate javascript code from python
code.
If there are better ways to produce python asts, I'd be happy to know that.
--
___
New submission from Kees Bos :
The transport (second parameter to ServerProxy) must be unique for every
thread. This was not the case in pre-python2.7. It is caused by the reuse of
the connection (stored in _connection). This could be handled by saving the
thread id too.
I don't know wh
New submission from Kees Bos:
ElementTree.fromstring and cElementTree.fromstring fail on parsing
"]]>", but do parse "]]>"
$ python
Python 2.7.3 (default, Apr 10 2013, 05:09:49)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits&quo
Kees Bos added the comment:
I'm not an expert, but from: http://www.w3.org/TR/REC-xml/#NT-AttValue
AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)*
"'"
which I read as: Any R
Kees Bos added the comment:
OK. I got clarification from the lxml list. It's not a bug. And it's sepcified
in section 2.4 (http://www.w3.org/TR/REC-xml/#syntax):
The ampersand character (&) and the left angle bracket (<) MUST NOT appear in
their literal form, except wh
Changes by Kees Bos :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue18753>
___
___
Python-bugs-list
New submission from Kees Bos :
compiler.parse("d[1] = 1") should have a single tuple as subs
>>> compiler.parse("d[1] = 1")
Module(None, Stmt([Assign([Subscript(Name('d'), 'OP_ASSIGN',
[Const(1)])], Const(1))]))
>>> compiler.parse
Kees Bos added the comment:
I just see that my patch is not correct, since the following is
supported by the language:
O[1:2:3, 4:5:6]
Where O[1:2:3, 4:5:6] == O[slice(1,2,3), slice(4,5,6)] ==
O.__getitem__((slice(1,2,3), slice(4,5,6
Kees Bos added the comment:
patch which honors O[1:2:3, 4:5:6]
--
Added file: http://bugs.python.org/file14958/compiler.transformer.patch
___
Python tracker
<http://bugs.python.org/issue6
Changes by Kees Bos :
Removed file: http://bugs.python.org/file14957/compiler.transformer.patch
___
Python tracker
<http://bugs.python.org/issue6978>
___
___
Python-bug
Kees Bos added the comment:
Sorry. Renamed .bak to .orig ...
Here's the patch compiler/transformer.py (against python 2.5)
--
Added file: http://bugs.python.org/file15068/transformer.py.patch
___
Python tracker
<http://bugs.python.org/i
Kees Bos added the comment:
It's not entirely theoretical to me. I inherited some solaris boxes that cannot
be properly maintained anymore and that have a clre program that dumps core.
Hence no valid output and running into uninitialized 'paths'. The patch from
Xiang Zhan
New submission from Kees Bos:
In certain corner cases, the ctypes.util can raise an error for a uninitialized
variable 'path' when with sunos5 the clre program exists, but fails to return
valid output lines.
(Also in 2.7.10rc0)
--
components: ctypes
files: ctypes.util-
Kees Bos added the comment:
Sorry, yes. It's plural: 'paths'
--
___
Python tracker
<http://bugs.python.org/issue24114>
___
___
Python-bugs-list mai
15 matches
Mail list logo