[issue2980] Pickle stream for unicode object may contain non-ASCII characters.

2008-06-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: -- nosy: +alexandre.vassalotti ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2980 ___ ___

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Razvan Cosma
New submission from Razvan Cosma [EMAIL PROTECTED]: This issue is probably older than I am, and was amazed to discover it in python: Python 2.5.2 (r252:60911, May 7 2008, 15:19:09) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 int(float(-23.15)) -23 int(float(-23.65)) -23 int(float(24.9)) 24

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2008-06-01 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: That os.listdir still uses bytes should be changed as well. Both file names and command line arguments are strings, from the viewpoint of Python. Nothing else is supported. -- nosy: +loewis ___

[issue2847] Remove cl usage from aifc

2008-06-01 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles [EMAIL PROTECTED] added the comment: The attached patch removes all cl references from the aifc module and updates it to make it usable in 3.0. It also supports more compression types because audioop has been enhanced throughout the years (i.e. support for alaw encoding

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I don't see any problem with that result? Why do you consider the result incorrect, and what correct result would you have inspected instead? Notice that int conversion of floats truncates them, by definition. -- nosy: +loewis

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Razvan Cosma
Razvan Cosma [EMAIL PROTECTED] added the comment: Sorry for not writing completely above - python does neither, it rounds to the integer closest to zero ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3024

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2008-06-01 Thread David Watson
New submission from David Watson [EMAIL PROTECTED]: The error message has no newline at the end: $ LANG=en_GB.UTF-8 python3.0 test.py $'\xff' Could not convert argument 2 to string$ Seriously, though: is this the intended behaviour? If the interpreter just dies when it gets a non-UTF-8 (or

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Razvan Cosma
Razvan Cosma [EMAIL PROTECTED] added the comment: Hello, As far as I know, the correct conversion is to either round to the nearest, or to the smaller integer, but not both. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3024

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: This is exactly what int() is supposed to do. For other kinds of rounding, look at round(), math.floor(), math.ceil(), and many rounding options in the decimal module: from decimal import Decimal

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I see. There is no such thing as a correct conversion from real numbers to integer numbers. Instead, there are various approaches, called truncating, rounding, flooring, and ceiling. Python's default conversion is truncation, and it is

[issue3025] batch/IDLE differ: print broken for chraractersascii

2008-06-01 Thread Jim Jewett
New submission from Jim Jewett [EMAIL PROTECTED]: The str-Unicode change widened IDLE/batch discrepancy. In python 2.x, bytes are printable. for i in range(256): print i, chr(i) works fine. In python 3, chr has become (the old) unichr, and whether a unicode character is printable depends

[issue2791] subprocess.py leaks fd in communicate

2008-06-01 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: fixed in release25-maint r63881. -- resolution: - accepted status: open - closed versions: +Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2791

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-06-01 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: committed to trunk r63882 for inclusion in 2.6. -- resolution: - fixed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2871 ___

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-06-01 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2871 ___ ___ Python-bugs-list

[issue2589] PyOS_vsnprintf() potential integer overflow leads to memory corruption

2008-06-01 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Fixed in release25-maint r63883. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2589 ___

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-01 Thread Manuel Kaufmann
Manuel Kaufmann [EMAIL PROTECTED] added the comment: I have the same error with the re.LOCALE flag... [humitos] [~]$ python3.0 Python 3.0a5+ (py3k:63855, Jun 1 2008, 13:05:09) [GCC 4.1.3 20080114 (prerelease) (Debian 4.1.2-19)] on linux2 Type help, copyright, credits or license for more

[issue3026] mmap broken with large files on 64bit system

2008-06-01 Thread Matthew Mueller
): This is python2.5 from Ubuntu 8.04 AMD64 /tmp$ python2.5 testbigfile.py python mmap md5: 1230552d39b7c1751f86bae5205ec0c8 abe59e28c9a3f11b883f62c80a3833a5 *bigfile This is python svn as of 20080601, compiled the on same system. /tmp$ python2.6 testbigfile.py testbigfile.py:5

[issue3026] mmap broken with large files on 64bit system

2008-06-01 Thread Matthew Mueller
Matthew Mueller [EMAIL PROTECTED] added the comment: Actually, I just realized that this might be a problem with md5 module instead. Either way, something is busted. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3026

[issue1112856] patch 1079734 broke cgi.FieldStorage w/ multipart post req.

2008-06-01 Thread Humberto Diogenes
Humberto Diogenes [EMAIL PROTECTED] added the comment: Er - while reverting it makes the code work again, I'm _really_ unhappy with this as a long-term solution. I've addressed almost everything that's discussed here in issue 2849, implementing Josh's suggestion of using FeedParser. It

<    1   2