Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Please provide a main function to test with.
I tried to write one based on your code; but memory usage was stable
after a few seconds.
--
nosy: +amaury.forgeotdarc
__
Tracker [EMAIL PROTECTED]
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Yes, and
1.005 * 1000
1004.9
Please read
http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate
To perform exact base-10 calculation, you may use the Decimal module.
Or use round()
Raymond Hettinger [EMAIL PROTECTED] added the comment:
int('%.0f' % (float('1.005')*1000))
1005
int(Decimal('1.005')*1000)
1005
--
nosy: +rhettinger
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2653
__
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:
On 2008-04-18 05:35, atsuo ishimoto wrote:
atsuo ishimoto [EMAIL PROTECTED] added the comment:
Is a codec which encode() returns an Unicode allowed in Python3?
Sure, why not ?
I think you have to ask another question: Is repr()
Ralf Schmitt [EMAIL PROTECTED] added the comment:
However it should be fixed in release25-maint. Can anyone install curt's
patch? It does what the original fix intended to do.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2632
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Here is another form of the same inconsistency:
[].pop(0)
IndexError: pop from empty list
{}.pop(0)
KeyError: 'pop(): dictionary is empty'
And my preferred one:
unicodedata.lookup('')
KeyError: 'undefined character name \'\''
Ralf Schmitt [EMAIL PROTECTED] added the comment:
guido says it's ok to fix the issue in xmlrpclib only:
http://mail.python.org/pipermail/python-dev/2008-April/078396.html
I'm also attaching a dummy.diff in order to have a patch keyword...
If someone is willing to commit this, I'll check if it
Christian Heimes [EMAIL PROTECTED] added the comment:
This popped up on the mailing list today.
Please give this bug a proper review. I *believe* it's fixed but I'm not
sure.
--
nosy: +tiran
priority: normal - critical
type: - behavior
versions: +Python 2.5, Python 2.6, Python 3.0
Skip Montanaro [EMAIL PROTECTED] added the comment:
working on it
--
assignee: - skip.montanaro
nosy: +skip.montanaro
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2014
__
Lorenz Quack [EMAIL PROTECTED] added the comment:
I attached a patch for the docs.
It now states that the rlcompleter.Completer will catch and silence all
exceptions raised by evaluating the expression passed to complete()
Added file: http://bugs.python.org/file10054/rlcompleter.rst.diff
Lorenz Quack [EMAIL PROTECTED] added the comment:
In the last patch I used the wrong ticks. I hope it's fine like this.
Added file: http://bugs.python.org/file10055/rlcompleter.rst.diff
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2250
Changes by Lorenz Quack [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10054/rlcompleter.rst.diff
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2250
__
___
Jeffrey C. Jacobs [EMAIL PROTECTED] added the comment:
This simple patch adds (?P#...)-style comment support.
Added file: http://bugs.python.org/file10056/issue2636-05.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2636
A.M. Kuchling [EMAIL PROTECTED] added the comment:
Fixed in r62373; thanks for reporting this!
--
assignee: georg.brandl - akuchling
nosy: +akuchling
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2654
Nick Coghlan [EMAIL PROTECTED] added the comment:
Yeah, it's actually still blowing up for me to. I have no idea what I
actually tested when I thought it was working in 2.6/3.0 - I must have
managed to sneak an extra carriage return into the test string. So
reverting back to marking it as a
New submission from Thomas Heller [EMAIL PROTECTED]:
This patch implements a .from_buffer(source, offset=0) class method from
ctypes types. 'source' must expose a writeable buffer interface; the
created ctypes instance will share the internal buffer of the source
object; also it holds a
Changes by Thomas Heller [EMAIL PROTECTED]:
--
type: - behavior
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2655
__
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith [EMAIL PROTECTED] added the comment:
On the python-3000 list we decided not to add new features to %
formatting, since it will be deprecated in favor of str.format.
--
resolution: - wont fix
status: open - closed
__
Tracker [EMAIL PROTECTED]
Eric Smith [EMAIL PROTECTED] added the comment:
I should have noted that the PEP was modified to remove %b and %#b
formatting.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2416
__
Skip Montanaro [EMAIL PROTECTED] added the comment:
Checked in on trunk as r62378. Will let the normal 3.0 merge process
suck it over to the py3k branch.
--
resolution: - accepted
status: open - closed
__
Tracker [EMAIL PROTECTED]
New submission from John Millikin [EMAIL PROTECTED]:
Using the following class layout:
class A (object):
def a (self):
A.a
pass
class B (A):
def b (self):
B.b
pass
If sphinx.ext.autodoc is used to extract
Benjamin Peterson [EMAIL PROTECTED] added the comment:
As suggested by Christian, this patch changes the method names to
setpy3kwarn and getpy3kwarn.
--
nosy: +tiran
Added file: http://bugs.python.org/file10058/change_py3kwarning2.patch
__
Tracker [EMAIL
Changes by Georg Brandl [EMAIL PROTECTED]:
--
assignee: - georg.brandl
nosy: +georg.brandl
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2645
__
___
Python-bugs-list
New submission from Fernando Pérez [EMAIL PROTECTED]:
Curses sometimes fails to correctly initialize the terminal.
Unfortunately I don't know how to reproduce the problem, it was reported
multiple times by ipython users, but I have no idea what causes it. I
finally found a workaround by making
Niall O'Higgins [EMAIL PROTECTED] added the comment:
Unfortunately I do not get this consistently from any URL. My code is
periodically polling a single HTTP server over the Internet. Quite
possibly it is triggered by some random network/remote server condition.
I have not had the chance to
25 matches
Mail list logo