[issue7784] patch for making list/insert at the top of the list avoid memmoves

2010-01-29 Thread showell
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

[issue7784] patch for making list/insert at the top of the list avoid memmoves

2010-01-29 Thread showell
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

[issue7784] patch for making list/insert at the top of the list avoid memmoves

2010-01-29 Thread showell
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 ___

[issue7803] setup hangs on disk space requirements

2010-01-29 Thread Dan Simmons
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

[issue7437] OS X 2.6.4 installer fails on 10.3 with two corrupted file names, ignored on 10.4

2010-01-29 Thread TJ Sullivan
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

[issue7803] setup hangs on disk space requirements

2010-01-29 Thread Dan Simmons
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

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-01-29 Thread Nick Coghlan
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Ezio Melotti
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

[issue1559298] test_popen fails on Windows if installed to Program Files

2010-01-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559298 ___ ___

[issue7803] setup hangs on disk space requirements

2010-01-29 Thread Dan Simmons
Changes by Dan Simmons sentai...@yahoo.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7803 ___ ___ Python-bugs-list

[issue7804] test_readline failure

2010-01-29 Thread Antoine Pitrou
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)

[issue7805] test_multiprocessing failure

2010-01-29 Thread Antoine Pitrou
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)

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Florent Xicluna
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

[issue7805] test_multiprocessing failure

2010-01-29 Thread Florent Xicluna
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

[issue1926] NNTPS support in nntplib

2010-01-29 Thread Antoine Pitrou
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

[issue1559298] test_popen fails on Windows if installed to Program Files

2010-01-29 Thread Brian Curtin
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

[issue1926] NNTPS support in nntplib

2010-01-29 Thread Brian Curtin
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

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-01-29 Thread Robert Buchholz
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

[issue7803] setup hangs on disk space requirements

2010-01-29 Thread Brian Curtin
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

[issue7803] setup hangs on disk space requirements

2010-01-29 Thread Dan Simmons
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

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Florent Xicluna
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

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Antoine Pitrou
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

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-01-29 Thread Mark Dickinson
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 ___

[issue7782] new test for test_iter.py

2010-01-29 Thread showell
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

[issue7807] test_macostools fails on OS X 10.6: no attribute 'FSSpec'

2010-01-29 Thread Mark Dickinson
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

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Florent Xicluna
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

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-01-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +buildbot -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3892 ___ ___

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-01-29 Thread R. David Murray
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

[issue7808] test_bsddb3 leaks references

2010-01-29 Thread Florent Xicluna
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

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Antoine Pitrou
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

[issue7782] new test for test_iter.py

2010-01-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7782 ___ ___ Python-bugs-list mailing

[issue7808] test_bsddb3 leaks references

2010-01-29 Thread Florent Xicluna
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

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Florent Xicluna
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 ___

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-29 Thread Florent Xicluna
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 ___

[issue7633] decimal.py: type conversion in context methods

2010-01-29 Thread Mark Dickinson
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

[issue7633] decimal.py: type conversion in context methods

2010-01-29 Thread Mark Dickinson
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2010-01-29 Thread Kaushik Ghose
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)

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-01-29 Thread Clovis Fabricio
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7808] test_bsddb3 leaks references

2010-01-29 Thread Florent Xicluna
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

[issue1475523] patch fixing #1448060 (gettext.py bug)

2010-01-29 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475523 ___ ___ Python-bugs-list

[issue7684] decimal.py: infinity coefficients in tuples

2010-01-29 Thread Mark Dickinson
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

[issue7784] patch for making list/insert at the top of the list avoid memmoves

2010-01-29 Thread showell
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

[issue7684] decimal.py: infinity coefficients in tuples

2010-01-29 Thread Raymond Hettinger
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7633] decimal.py: type conversion in context methods

2010-01-29 Thread Stefan Krah
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

[issue7633] decimal.py: type conversion in context methods

2010-01-29 Thread Mark Dickinson
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

[issue7770] sin/cos function in decimal-docs

2010-01-29 Thread showell
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

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-01-29 Thread R. David Murray
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:

[issue7771] dict view comparison methods are not documented

2010-01-29 Thread Terry J. Reedy
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.

[issue7767] Add PyLong_AsLongLongAndOverflow

2010-01-29 Thread Mark Dickinson
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7753] newgil backport

2010-01-29 Thread Marc-Andre Lemburg
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@divmod.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7092 ___ ___ Python-bugs-list

[issue7633] decimal.py: type conversion in context methods

2010-01-29 Thread Stefan Krah
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

[issue7753] newgil backport

2010-01-29 Thread Ross Cohen
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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 ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna
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

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-01-29 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___ Python-bugs-list

[issue7633] decimal.py: type conversion in context methods

2010-01-29 Thread Juan José Conti
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

[issue7801] xmlrpc.client binary object examples needs to use binary mode

2010-01-29 Thread STINNER Victor
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

[issue7801] xmlrpc.client binary object examples needs to use binary mode

2010-01-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7801 ___

[issue7801] xmlrpc.client binary object examples needs to use binary mode

2010-01-29 Thread STINNER Victor
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

[issue7767] Add PyLong_AsLongLongAndOverflow

2010-01-29 Thread Case Van Horsen
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. --

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2010-01-29 Thread Terrence Cole
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

[issue1562308] uninitialized memory read in parsetok()

2010-01-29 Thread Meador Inge
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

[issue1562308] uninitialized memory read in parsetok()

2010-01-29 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1562308 ___

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-01-29 Thread Meador Inge
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

[issue7809] Documentation for random module should indicate that a call to seed() is not required

2010-01-29 Thread Justin Lebar
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,

[issue7809] Documentation for random module should indicate that a call to seed() is not required

2010-01-29 Thread Ezio Melotti
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:

[issue7809] Documentation for random module should indicate that a call to seed() is not required

2010-01-29 Thread Justin Lebar
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Ezio Melotti
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

[issue7796] No way to find out if an object is an instance of a namedtuple

2010-01-29 Thread Sridhar Ratnakumar
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