[issue4024] float(0.0) singleton

2009-03-19 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4024 ___

[issue4016] improve linecache: reuse tokenize.detect_encoding() and io.open()

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @benjamin.peterson: The second version of my patch works correctly with the bootstraping. I also think we should consider hard adding more modules that are loaded at startup time to py3k already huge list. linecache is not

[issue4016] improve linecache: reuse tokenize.detect_encoding() and io.open()

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, I see that setup.py uses warnings and so linecache is loaded by setup.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4016

[issue4121] open(): use keyword only for arguments other than file and mode

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Guido Beyond 3.0, I'm still rather reluctant Ok ok, let's close this bad idea. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4282] exec(unicode): invalid charset when #coding:xxx spec is used

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This bug was a duplicate of #4626 which was fixed by r70113 ;-) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4282

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4282 ___ ___

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, benjamin noticed that it doesn't work with Windows end of line (\r\n). New patch reads the file encoding instead of reading file content as bytes. -- keywords: +patch Added file:

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, i misread this issue (wrong title!). #4626 is related, but this issue is about the profile module. The problem is that profile open the source code as text (with the default charset: UTF-8). Attached patch fixes the problem.

[issue5524] execfile() removed from Python3

2009-03-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: In What’s New In Python 3.0 document, I can read Removed execfile(). Instead of execfile(fn) use exec(open(fn).read()). The new syntax has two problems: - if the file is not encoding in UTF-8, we get an unicode error. Eg. see

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This regression was introduced by the removal of execfile() in Python3. The proposed replacement of execfile() is wrong. I propose a generic fix in the issue #5524. -- ___ Python

[issue4628] No universal newline support for compile() when using bytes

2009-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This problem is not new. exec() in Python 2.x doesn't accept \r\n newlines. See also related(?) issue: #5524 -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue5482] RFC: improve distutils bdist_rpm so it builds pure python modules as single packages that works across architectures

2009-03-19 Thread Rudd-O
Rudd-O rud...@rudd-o.com added the comment: patch does what others did, plus this time it lets the specfile autodiscover the python abi so the name is correct regardless of against whichever python interpreter the package is built. -- Added file:

[issue5482] RFC: improve distutils bdist_rpm so it builds pure python modules as single packages that works across architectures

2009-03-19 Thread Rudd-O
Rudd-O rud...@rudd-o.com added the comment: about python trunk... gimme some time to port them incrementally to all popular stable pythons first, then to trunk. will be glad to do this. Now, by trunk, do you mean python 3.x? -- ___ Python tracker

[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-19 Thread Rudd-O
Rudd-O rud...@rudd-o.com added the comment: about python trunk... gimme some time to port them incrementally to all popular stable pythons first, then to trunk. will be glad to do this. Now, by trunk, do you mean python 3.x? -- ___ Python tracker

[issue5525] Problem with email.MIME* library, using wrong new line

2009-03-19 Thread Luca clementi
New submission from Luca clementi luca.cleme...@gmail.com: I'm running Python 2.5.2 under Ubuntu 8.10. In the file email/generator.py from the core library at line 228 in the function _handle_multipart() # delimiter transport-padding CRLF print self._fp, '\n--' +

[issue5526] Local variables unavailable for operation of list comprehension when using eval()

2009-03-19 Thread Evan Greensmith
New submission from Evan Greensmith evan.greensm...@gmail.com: In python 3.0 and 3.1, attempting to access a local variable from within a list comprehension in a string passed to eval() causes a NameError. Doesn't seem to be a problem in python 2.6 I have attempted to run the attached test

[issue5524] execfile() removed from Python3

2009-03-19 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: -1. There is a much simpler solution to the problem: use exec(open(fn, rb).read()) -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5524

<    1   2   3