[issue13332] execfile fixer produces code that does not close the file

2011-11-03 Thread Vlada Peric
Changes by Vlada Peric : -- nosy: +VPeric ___ Python tracker <http://bugs.python.org/issue13332> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12942] Shebang line fixer for 2to3

2011-09-10 Thread Vlada Peric
Changes by Vlada Peric : -- nosy: +VPeric ___ Python tracker <http://bugs.python.org/issue12942> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12771] 2to3 -d adds extra whitespace

2011-08-17 Thread Vlada Peric
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

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-08-02 Thread Vlada Peric
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

[issue12616] zip fixer fails on zip()[:-1]

2011-07-22 Thread Vlada Peric
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&#

[issue12613] itertools fixer fails

2011-07-22 Thread Vlada Peric
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

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-07-22 Thread Vlada Peric
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

[issue6668] locale.py: can't parse sr...@latin locale

2009-08-07 Thread Vlada Peric
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