Changes by Alexandre Vassalotti [EMAIL PROTECTED]:
--
nosy: +alexandre.vassalotti
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2980
___
___
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
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
___
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
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
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
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
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
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
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
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
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
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
___
Changes by Gregory P. Smith [EMAIL PROTECTED]:
--
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2871
___
___
Python-bugs-list
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
___
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
):
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
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
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
101 - 119 of 119 matches
Mail list logo