showell showel...@yahoo.com added the comment:
I am attaching a new patch that does not add a new element to PyListObject,
roughly following a technique that Antoine Pitrou suggested on python-dev.
When I want to lazily avoid a memmove under the new patch, I set the MSB on
allocated and
showell showel...@yahoo.com added the comment:
Ok, found the offending line, now all tests pass.
The use case where this patch will pay off the most is slicing your way through
a list of tasks. The toy program below gets about a 50x speedup.
import time
n = 80
Changes by showell showel...@yahoo.com:
Removed file: http://bugs.python.org/file16033/list_top_no_extra_mem.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7784
___
New submission from Dan Simmons sentai...@yahoo.com:
I tried to install windows binary and the setup hanged up on 'determining disk
space requirements' I waited over two hours for this to finish, and the light
blinked in a syncrinised pattern that led me to believe something was wrong. So
I
TJ Sullivan tjsu...@gmail.com added the comment:
Install was successful. PLease find the attachment with the test results you
asked for. Thank you very much for making the fix to the package installer
--
Added file: http://bugs.python.org/file16035/install test results.txt
Dan Simmons sentai...@yahoo.com added the comment:
I think the beginers guide needs to be updated to let us know what type of
download to use. x86-64 or binary. 64 bit works so is that the right one for
me. I'm trying to get this graphics.py to work that came with a book. It stops
working
Nick Coghlan ncogh...@gmail.com added the comment:
If I ever clear all the other issues off my list, I may get a chance to have a
closer look at this one :)
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
A couple of comments about issue7092_syntax_imports_v3.diff too:
1) in test_copy you remove (k,v), but left the name 'k' even if now it
represent the item and not the key;
2) in test_fractions you should probably use self.fail() instead of
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559298
___
___
Changes by Dan Simmons sentai...@yahoo.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7803
___
___
Python-bugs-list
New submission from Antoine Pitrou pit...@free.fr:
This is a fresh py3k checkout on a fresh Debian Lenny install:
==
ERROR: testHistoryUpdates (test.test_readline.TestHistoryManipulation)
New submission from Antoine Pitrou pit...@free.fr:
This is a fresh py3k checkout on a fresh Debian Lenny install:
==
ERROR: test_pool_worker_lifetime
(test.test_multiprocessing.WithProcessesTestPoolWorkerLifetime)
Changes by Florent Xicluna la...@yahoo.fr:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7624
___
___
Python-bugs-list mailing list
Florent Xicluna la...@yahoo.fr added the comment:
Confirmed.
I got a Py3k warning on 2.7 about unorderable types.
--
nosy: +flox
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7805
Antoine Pitrou pit...@free.fr added the comment:
Yes, a test could use Google or gmane (according to the FAQ, nntps is
supported: http://gmane.org/faq.php ).
The test should skip gracefully (using the skipTest() API) if the connection
fails, so that network errors or service unavailability
Brian Curtin cur...@acm.org added the comment:
Florent is correct. The patch seems to fix regular popen, but popen3 sees
problems. I'll see if I can fit this in and have a look.
Also of note is that the other flavors of popen are not tested...at least not
in Lib/test/test_popen.py or
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1926
___
___
Python-bugs-list mailing
New submission from Robert Buchholz r...@freitagsrunde.org:
Calling getresponse() on an httplib.HTTPConnection object returns a response
object. Internally, the self.sock is handed over to the HTTPResponse object
which transforms it into a file-like object. The response object is returned to
Brian Curtin cur...@acm.org added the comment:
Dan, there seem to be a number of possible issues in your last two messages.
It's not clear to me what the blinking light is. What type of computer do you
have and what is the specific installer and version you tried to run?
Also, what do you
Dan Simmons sentai...@yahoo.com added the comment:
It seemed to work after I restarted it. It was stuck on the process of getting
disk space requirements, the computer was processing something but the light on
the console that tells you something is being processed was blinking once every
Florent Xicluna la...@yahoo.fr added the comment:
Confirmed with all others isinstance(..., collections.Hashable) and similar.
According to the documentation, we might expect the same behavior as for
new-style class.
--
priority: - normal
stage: - needs patch
type: - behavior
Antoine Pitrou pit...@free.fr added the comment:
Well the fix is easy for old-style classes, since we just have to use
hasattr(obj, '__call__') in that case.
--
keywords: +easy
nosy: +pitrou
priority: normal - critical
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Perfect! Applied in r77821 through r77824; thank you.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7788
___
showell showel...@yahoo.com added the comment:
Per Ezio's suggestions, I added clearer comments and an assert, and now the
attached diff applies to trunk.
--
keywords: +patch
Added file: http://bugs.python.org/file16037/extend_test.diff
___
Python
New submission from Mark Dickinson dicki...@gmail.com:
I've been seeing the following test failure for trunk and release26-maint for a
while, on OS X 10.6, on a relatively recent Macbook Pro (clean installation of
Snow Leopard). This is from a non-framework debug build (i.e., a simple
Florent Xicluna la...@yahoo.fr added the comment:
Wow, critical issue, are you sure?
Here is the patch, with tests.
IMO, the tests may be ported to 3.x.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file16038/issue7624_abc.diff
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: +buildbot -patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3892
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. That's not actually the same timeout. What that means is that if the
startup timeout triggers, then a subsequent test (one that is looking for the
results of a client transaction) fails, which contradicts the earlier
observation
New submission from Florent Xicluna la...@yahoo.fr:
Patch proposed to fix the refleaks.
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file16039/issue7808_bsddb3_refleak.diff
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
subtype == _InstanceType can probably be replaced with subtype is
_InstanceType. Otherwise, the patch looks good to me.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7782
___
___
Python-bugs-list mailing
Changes by Florent Xicluna la...@yahoo.fr:
--
components: Extension Modules
nosy: flox
priority: normal
severity: normal
status: open
title: test_bsddb3 leaks references
type: performance
versions: Python 2.6, Python 2.7
___
Python tracker
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file16038/issue7624_abc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7624
___
Florent Xicluna la...@yahoo.fr added the comment:
fixed
--
Added file: http://bugs.python.org/file16040/issue7624_abc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7624
___
Mark Dickinson dicki...@gmail.com added the comment:
The updated patch looks good---thank you! We're getting there... :)
I'm not sure about the extra 'Operand can be Decimal or int.' in the method
docstrings; this just looks like extra clutter to me. Rather, I think it
would be a surprise
Mark Dickinson dicki...@gmail.com added the comment:
copy_sing fixed and documented to have the same behaibour.
Hmm. Thanks for noticing this: it looks like Decimal.copy_sign is missing a
_convert_other call. I think that should be fixed in the Decimal class rather
than in the Context
Florent Xicluna la...@yahoo.fr added the comment:
Thank you for the review and your comments.
Here, the replies.
Amaury review - msg98491
Here is my review of issue7092_syntax_imports_v3.diff:
- test_itertools.py: please replace
[tuple([arg[i] if i len(arg) else None for arg in
Kaushik Ghose kgh...@users.sf.net added the comment:
Even with the patch, I can not resolve this problem. I can reproduce the
problem with the patched version with the following code. My system is:
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
IPython 0.10
Platform is Mac OS X (10.5.8)
Clovis Fabricio nosklo+pyt...@gmail.com added the comment:
I've written a quick workaround for the issue, where I manually split the
filenames and always return a tuple.
It might be useful to someone experiencing this problem, so I'm adding it to
the issue here.
--
nosy: +nosklo
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16042/issue7269_bsddb3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file16042/issue7269_bsddb3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16043/issue7092_bsddb3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7808
___
___
Python-bugs-list mailing list
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1475523
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
Issue 1: (passing coefficients to decimal constructor): While I agree that
passing a coefficient for an infinity doesn't make a lot of sense, there's a
backwards compatibility problem here: it worked in 3.1, so making it raise an
exception
showell showel...@yahoo.com added the comment:
I am closing this due to mostly unanimous rejection on python-dev.
If folks reopen this in the future, the last patch that I submitted has been
reasonably well tested, but it has not been code reviewed.
The 1% speed penalty could probably be
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I also prefer to leave as-is. It's harmless.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7684
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16044/issue7092_test_support.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15925/issue7092_json.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Stefan Krah stefan-use...@bytereef.org added the comment:
I also think that the added docstrings are not really necessary.
Another thing: I forgot to mention 'canonical' in the list of functions
that should only accept Decimals. As with the other two (number_class
and is_canonical), this is a
Mark Dickinson dicki...@gmail.com added the comment:
Re: canonical. Yes, this made me pause for a second, too. But I don't see the
harm in allowing it to accept ints and longs. Actually, it then provides a
nice public version of _convert_other.
I'd probably also allow is_canonical and
showell showel...@yahoo.com added the comment:
+1 on showing off remainder_near. I recently wrote a program where I
reinvented the logic (on a unit circle too), not knowing it was already
implemented in Decimal.
--
nosy: +Steve Howell
___
Python
R. David Murray rdmur...@bitdance.com added the comment:
Since this isn't likely to get fixed and it is causing buildbot instability, I
propose the attached patch to just skip the remainder of the test method if
this second timeout happens.
--
keywords: +patch
Added file:
Terry J. Reedy tjre...@udel.edu added the comment:
The 3.2a doc is unchanged (similarly lacking).
The situation is that view have all of the special method (operator methods)
that frozen sets do but none of the named methods (.copy to .union). I think it
would be helpful if the doc said so.
Mark Dickinson dicki...@gmail.com added the comment:
The proposed addition sounds entirely reasonable to me.
In your patch, is there a reason for leaving out the first PyInt_Check (compare
with PyLong_AsLongAndOverflow)?
--
___
Python tracker
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15994/issue7092_syntax_imports_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15995/issue7092_check_warnings_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15996/issue7092_filterwarnings_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16046/issue7092_test_exceptions.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16047/issue7092_Wd_warnings.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16048/issue7092_syntax_fixes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Ross Cohen wrote:
Ross Cohen rco...@snurgle.org added the comment:
I am confused by this line of reasoning. Is it ok to ignore the
deprecation process in py3k but not in 2.x? Is it only ok if a core
developer does it?
It's normally
Changes by Jean-Paul Calderone exar...@divmod.com:
--
nosy: -exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list
Stefan Krah stefan-use...@bytereef.org added the comment:
Yes, indeed 'canonical' can be justified to take an integer, if we interpret
the spec as:
'canonical' takes an operand and returns the preferred _decimal_
encoding of that operand.
But then 'is_canonical' should return false for an
Ross Cohen rco...@snurgle.org added the comment:
On Fri, 29 Jan 2010 21:15:14 +
Marc-Andre Lemburg rep...@bugs.python.org wrote:
Breaking existing applications and ports of Python for 2.7
certainly won't make anything easier for anyone.
For 2.7 we will certainly not allow the above to
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16049/issue7092_silence_imports.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16050/issue7092_py3k_warnings_args.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16051/issue7092_py3k_warnings_noargs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Florent Xicluna la...@yahoo.fr added the comment:
Each patch can be reviewed and committed separately (except the last 2).
[patch 1] bsddb3.diff – related to Bsddb3
[patch 2] test_support.diff – new helper silence_py3k_warnings()
[patch 3] test_exceptions.diff – test_pep352 and test_exceptions
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5504
___
___
Python-bugs-list
Juan José Conti jjco...@gmail.com added the comment:
Yeah... I did't like that docstring either :) Removed!
Also fixed Decimal.copy_sign, changed Context.copy_sign and added tests.
--
Added file: http://bugs.python.org/file16052/issue7633_jjconti4.patch
STINNER Victor victor.stin...@haypocalc.com added the comment:
Fixed in trunk by r77836 (r77837) and py3k by r77838 (r77839), thanks.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7801
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7801
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Note: The python3 example closed the file after the return instruction :-( I
fixed that by using the with syntax, as does Python trunk example.
--
___
Python tracker
Case Van Horsen cas...@gmail.com added the comment:
The missing PyInt_Check is a mistake. I probably thought I was working on a
py3k version.
Let me know if I should create a new patch or if I should create one for py3k.
Thanks for the review.
--
Terrence Cole terre...@zettabytestorage.com added the comment:
Kaushik, in your example, d is a dict proxy, so assignment to d['f'] correctly
ferries the assignment (a new normal dict) to the d['f'] in the original
process. The new dict, however, is not a dict proxy, it's just a dict, so
Meador Inge mead...@gmail.com added the comment:
This is the same as 3367, which Benjamin just closed out.
--
nosy: +benjamin.peterson, minge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1562308
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1562308
___
Meador Inge mead...@gmail.com added the comment:
I think this should be closed out, since the compiler package was deprecated in
2.6.
--
nosy: +minge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6978
New submission from Justin Lebar star...@gmail.com:
Many programmers are used to languages where the RNG is deterministic unless
it's explicitly seeded. This does not appear to be the case in Python.
The documentation for random should indicate that Random objects are seeded on
construction,
Ezio Melotti ezio.melo...@gmail.com added the comment:
It's already indicated in the documentation for random.seed([x]):
If x is omitted or None, current system time is used; current system time is
also used to initialize the generator when the module is first imported.
--
nosy:
Justin Lebar star...@gmail.com added the comment:
Ack. I read it twice looking for that line!
Perhaps it should still indicate that new Random objects are automatically
seeded. And perhaps the line I missed should be a little bit louder?
--
status: pending - open
Ezio Melotti ezio.melo...@gmail.com added the comment:
Warnings for imports of deprecated modules are now silenced in r77841 (patch 6
/ silence_imports.diff).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
Sridhar Ratnakumar sridh...@activestate.com added the comment:
For more discussion on this, see http://stackoverflow.com/questions/2166818
--
components: +Library (Lib)
nosy: +srid
___
Python tracker rep...@bugs.python.org
84 matches
Mail list logo