Changes by Vlada Peric :
--
nosy: +VPeric
___
Python tracker
<http://bugs.python.org/issue13332>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Vlada Peric :
2to3 crashes when run on a doctest which uses reduce(). This happens with both
2.7 and 3.2's 2to3. I have the following code in a compatibility file, but even
using that it fails with the same error:
try:
from functools import reduce
except Import
New submission from Vlada Peric :
The itertools fixer (izip -> zip, among others), fails for the following code:
from itertools import izip
print msg % str(bool(symbol_swapped) and list(izip(*swap_dict).next()) or
symbols)
It gets converted to:
print(msg % str(bool(symbol_swapped) and l
New submission from Vlada Peric :
The zip fixer fails on this code:
zip(B, D)[:-1]
I fixed this by wrapping explicitly with list(), but that creates a duplicate
list on Python 2.
(Like the other fixes I reported, I assume this also applies to 3.3, but I
didn't test it so I don
Vlada Peric added the comment:
Confirmed with the file Aaron linked to. I'm using "2to3-3.2 -w -n -d
sympy/ntheory/factor_.py". This is what Python says about itself:
Python 3.2 (r32:88445, Jun 8 2011, 16:34:06)
[GCC 4.5.1 20101208 [gcc-4_5-branch revision 167
New submission from Vlada Peric :
When running 2to3 -d on this doctest (from this file[0] in SymPy):
>>> class SzUpKet(Ket):
... def _represent_SzOp(self, basis, **options):
... return Matrix([1,0])
...
2to3 adds an extra space in the last l
Changes by Vlada Peric :
--
nosy: +VPeric
___
Python tracker
<http://bugs.python.org/issue12942>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Vlada Peric :
The sr_RS locale in glibc corresponds to the Cyrillic script, while the
agreed upon locale for the Latin alphabet is sr...@latin. Unfortunately,
the locale python module crashes when trying to parse this locale. Here
is the traceback:
File "/us