[issue3067] setlocale error message is confusing

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: If *locale* is specified, it may be a None, a string, or an iterable of two strings, language code and encoding. String pairs are converted to a single string using the locale aliasing engine. What about the possible None value then? Do you

[issue3067] setlocale error message is confusing

2011-11-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Yes, parentheses would be better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3067 ___ ___

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: write() is a bit simpler, since BlockingIOError has a characters_written attribute which is meant to inform you of the partial success: we can just reuse that. That said, BlockingIOError could grow a partial_read attribute

[issue13347] .py extension not auto added

2011-11-05 Thread Kaleb702
New submission from Kaleb702 ronneymiche...@gmail.com: Python IDLE does not auto add the .py extension when saving a file. -- components: IDLE messages: 147072 nosy: Kaleb702 priority: normal severity: normal status: open title: .py extension not auto added

[issue13254] maildir.items() broken

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5f27a9f67a34 by Petri Lehtinen in branch '3.2': Fix Maildir initialization so that maildir contents are read correctly. http://hg.python.org/cpython/rev/5f27a9f67a34 New changeset 91a0f6879173 by Petri Lehtinen in

[issue13254] maildir.items() broken

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: In the absence of any complaints, I went on and committed the fix. Thanks for reporting the issue! -- assignee: r.david.murray - ___ Python tracker rep...@bugs.python.org

[issue3067] setlocale error message is confusing

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 34c9465f5023 by Petri Lehtinen in branch '2.7': Issue #3067: Enhance the documentation and docstring of locale.setlocale() http://hg.python.org/cpython/rev/34c9465f5023 New changeset 98806dd03506 by Petri Lehtinen

[issue3067] setlocale error message is confusing

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I decided to restructure the documentation of setlocale() a bit and I think it's better now overall. It includes Terry's suggestions. I think this issue can now be closed. Thanks for the report and patches! -- status: open - closed

[issue7777] Support needed for AF_RDS family

2011-11-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: So, what do you think of the new patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue ___

[issue12856] tempfile PRNG reuse between parent and child process

2011-11-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The patch looks good to me. Note that the whole kill(pid, SIGKILL) looks overkill to me... -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12856

[issue13348] test_unicode_file fails: shutil.copy2 says same file

2011-11-05 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: I stopped on this error on buildbot x86 Tiger 3.2. It looks strange. test_single_files (test.test_unicode_file.TestUnicodeFiles) ... ERROR == ERROR:

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-11-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: FYI, I have a pathlib experiment in http://hg.python.org/features/pathlib/, with an optional openat-based accessor. Interesting: I used to think that the current API for dealing with paths was a little too basic and terse.

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It's not just Gentoo. I get this error repeatably on Ubuntu Oneiric 64- bit and Linux Mint Katya 64-bit, though not on the 32-bit variants. -- nosy: +vinay.sajip ___ Python tracker

[issue13348] test_unicode_file fails: shutil.copy2 says same file

2011-11-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13348 ___ ___

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I get the opposite failure to Nadeem as far as InstallDataTestCase.test_resources: it works on Ubuntu 64-bit, but fails on 32-bit. Digging into it a bit further, I find that _generate_cache in Lib/packaging/database.py returns prematurely

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I added the packaging.database.clear_cache() at the end of setUp(); that works, too. Gotta love global variables - not! ;-) -- ___ Python tracker rep...@bugs.python.org

[issue7777] Support needed for AF_RDS family

2011-11-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, sorry. I wonder if it would be possible to test the address returned by recvfrom(). Same for the flags and ancillary data in recvmsg(). -- ___ Python tracker rep...@bugs.python.org

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I looked in packaging/test, and noticed that database.get_distribution is called from test_depgraph, test_xmlrpc and test_database. These may also need looking over to see if cache invalidation needs to happen. --

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I added the packaging.database.clear_cache() at the end of setUp(); that works, too. That fixes the InstallDataTestCase failure for me as well (on both Ubuntu 11.10 64-bit and Windows 7 64-bit). I get the opposite failure to Nadeem as

[issue13345] Invisible Files in Windows 7

2011-11-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Most likely, you are using a 32-bit Python on a 64-bit Windows. 32-bit programs can't access c:\windows\system32, as that will contain the 64-bit DLLs. Instead, access is redirected to c:\windows\syswow64. Please confirm whether or not

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Test test_install and test_command_install_data interference cache . Adding clear_cache as clean up routine will resolve reported issue with Spamlib. The patch is trivial. Also one of the test set clear_cache as cleanup. Most

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure it is useful to fix this bug. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13204 ___

[issue13033] Add shutil.chowntree

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See also #13229. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13033 ___ ___ Python-bugs-list

[issue13033] Add shutil.chowntree

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Tigger: Could you provide a patch for Python 3.3? (more info at http://docs.python.org/devguide/) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13033

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Why not? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13204 ___ ___

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: During the discussion about adding a chowntree function to shutil (http://mail.python.org/pipermail/python-dev/2011-May/111661.html and ), Victor suggested this: I don't like the idea of a recursive flag. I would prefer a map-like function

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: s/and /and #13033/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___ ___

[issue13200] Add start, stop and step attributes to range objects

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The other bug is older and has more discussion, I’m closing this one as duplicate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13200

[issue13200] Add start, stop and step attributes to range objects

2011-11-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - Introspectable range objects ___ Python tracker rep...@bugs.python.org

[issue9896] Introspectable range objects

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think this is ready for commit. -- nosy: +smarnach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9896 ___

[issue13290] get vars for object with __slots__

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You should attach diffs (context diffs, I believe) Nope, these are hard to read :) The universal diff format is the unified one. That’s also what Mercurial uses (see the devguide for more info on contributing). -- nosy: +eric.araujo

[issue13290] get vars for object with __slots__

2011-11-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13290 ___ ___ Python-bugs-list

[issue13292] missing versionadded for bytearray

2011-11-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - eric.araujo nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13292 ___

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, I’ll add the disable_cache call. Westley: I’ve installed Arch. Is there a command I can run to get zlib, openssl, gcc, make and all that, similar to “aptitude build-dep python3.2”? -- ___

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll open another reports for the possible bug in _generate_cache and for review of the other tests calling get_distribution. Test test_install and test_command_install_data interference cache I’ve added checks in regrtest to make sure that

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Because the class of sys.flags is an implementation detail. Most people won’t try to instantiate it, IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13204

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4eee9dd61147 by Éric Araujo in branch 'default': Try to fix buildbot failures from #13193 http://hg.python.org/cpython/rev/4eee9dd61147 -- nosy: +python-dev ___ Python

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8ea34a74f118 by Éric Araujo in branch '2.7': Add missing versionadded (fixes #12392) http://hg.python.org/cpython/rev/8ea34a74f118 -- ___ Python tracker

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: That's probably true, but IMHO it's not a valid reason to keep the buggy behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13204

[issue9896] Introspectable range objects

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4643be424293 by Benjamin Peterson in branch 'default': add introspection to range objects (closes #9896) http://hg.python.org/cpython/rev/4643be424293 -- nosy: +python-dev resolution: - fixed stage: patch

[issue13338] Not all enumerations used in _Py_ANNOTATE_MEMORY_ORDER

2011-11-05 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13338 ___ ___ Python-bugs-list

[issue13338] Not all enumerations used in _Py_ANNOTATE_MEMORY_ORDER

2011-11-05 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13338 ___ ___ Python-bugs-list

[issue13326] make clean failed on OpenBSD

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 41ab1dfaf1d4 by Petri Lehtinen in branch '3.2': Remove __pycache__ directories correctly on OpenBSD http://hg.python.org/cpython/rev/41ab1dfaf1d4 New changeset f853a2cbd68b by Petri Lehtinen in branch 'default':

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2011-11-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10977 ___ ___ Python-bugs-list

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Why would we want to prevent users from creating new instances of FlagsType? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13204

[issue12163] str.count

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: This already seems fixed on 2.7, 3.2 and 3.3: ''.find('', None) 0 -- nosy: +petri.lehtinen resolution: - out of date status: open - closed versions: -Python 3.1 ___ Python tracker

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: The same issue exists for tuples: (1, 2, 3).index(2, None) Traceback (most recent call last): File stdin, line 1, in module TypeError: slice indices must be integers or None or have an __index__ method -- components: +Interpreter

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13340 ___ ___ Python-bugs-list mailing

[issue13349] Uninformal error message in index() and remove() functions

2011-11-05 Thread Petri Lehtinen
New submission from Petri Lehtinen pe...@digip.org: For example: (1, 2, 3).index(4) Traceback (most recent call last): File stdin, line 1, in module ValueError: tuple.index(x): x not in tuple The x not in tuple error message should be replaced with 4 is not in tuple. list.index() already

[issue13349] Uninformal error message in index() and remove() functions

2011-11-05 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- components: +Extension Modules, Interpreter Core type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13349 ___

[issue7980] time.strptime not thread safe

2011-11-05 Thread Zsolt Kendi
Zsolt Kendi kzsoltkzs...@freemail.hu added the comment: I recognize the same problem problem at linux with 4 core 64 processor. The python version is 2.6.5 . Looks like occured randomly but maybe this is depend from thread sequence. -- nosy: +kzsolt

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0f0eda4daac7 by Petri Lehtinen in branch '2.7': Accept None as start and stop parameters for list.index() and tuple.index() http://hg.python.org/cpython/rev/0f0eda4daac7 New changeset 5c1fcaf3cf1c by Petri Lehtinen

[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats

2011-11-05 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: A code simplification suggested by a comment in issue13349: Replace most usages of PyUnicode_Format (a.k.a. str.__mod__) by PyUnicode_FromFormat, which is easier to use from C: no need to build a tuple, and the format accept both C

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Committed a fix for both list and tuple. I considered this a bug fix rather than a new feature based on discussion in #11828, especially msg133532, and applied the fix to 2.7 and 3.2, too. -- ___

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The relevant code is in _PyEval_SliceIndex() in Python/ceval.c. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13340

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: [citation needed].  First, mutable objects with a global name (let’s not use variable for Python) are not unconditionally evil; see sys.path and sys.modules for example.  Second, how concretely would you change that implementation?  We

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I think this fix was too hastily committed. 1) It was an API change. 2) It probably should have been done in _PyEval_SliceIndex(). Be careful. Don't rush to commit. Especially for backports. -- status: closed - open

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: 2) It probably should have been done in _PyEval_SliceIndex(). I saw that other code used the same approach as I used in the fix. The comment above _PyEval_SliceIndex() suggests it's used in other contexts too. It seems that 2.7 uses it to

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: FTR, I haven't checked this on Ubuntu 32-bit. It's rather odd for the failure to be architecture-dependent. Are these two machines running different versions of Ubuntu, perhaps? They are (Ubuntu Natty 32-bit failing, Ubuntu Oneiric

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: How strange. I've had no problem reproducing the failures; they've occurred every time I've run test_packaging since the bug was opened (on both Ubuntu and Windows). And the Windows buildbots seem to be failing consistently as well...

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The API in 2.7 shouldn't be changed. The error message can be fixed though. Also, it is not clear that the API should change even in 3.3. The list.index() method is not required to accept None. It is not different than other

[issue13340] list.index does not accept None as start or stop

2011-11-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: str.index does accept None, though -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13340 ___

[issue13316] build_py_2to3 does not convert when there was an error in the last run

2011-11-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13316 ___

[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2011-11-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13317 ___

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I also get this error on Mageia. If this can't be fixed, the test should be skipped or removed. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13309

[issue13342] input() builtin always uses strict error handler

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 421c8e291221 by Antoine Pitrou in branch '3.2': Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode http://hg.python.org/cpython/rev/421c8e291221 New changeset 992ba03d60a8 by Antoine Pitrou in

[issue13342] input() builtin always uses strict error handler

2011-11-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed. I hope the test won't disturb the buildbots. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: How strange. I've had no problem reproducing the failures; they've occurred every time I've run test_packaging since the bug was opened (on both Ubuntu and Windows). And the Windows buildbots seem to be failing consistently as well...

[issue13351] Strange time complexity when creating nested lists

2011-11-05 Thread Jonas LM
New submission from Jonas LM quak...@gmail.com: Consider the following snippets: def lists(n): start_time = time.time() lists = [None]*n for i in xrange(n): lists[i] = [None]*n for j in xrange(n): lists[i][j] = [] print time.time() -

[issue13351] Strange time complexity when creating nested lists

2011-11-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: In the case of 'lists' an object is being allocated each time through the inner loop. In the case of simple_lists, no such allocation is being done. Your timing issues are probably related to the memory allocation behavior of your

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-11-05 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9516 ___ ___ Python-bugs-list

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I should probably update that posted recipe to my latest version (which adds excluded_files and excluded_dirs parameters). However, since I've been dealing with remote filesystems where os.listdir() and os.stat() calls from the local machine

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This needs more thought - pypi package coming soon :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___

[issue13351] Strange time complexity when creating nested lists

2011-11-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's because of the cyclic garbage collector. If you call gc.disable() at the beginning of your benchmark, you'll see that runtimes get more similar in both cases. You can also use tuples instead of lists as much as possible, it will reduce

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nick, perhaps you want to have a look at http://hg.python.org/features/pathlib/ (it doesn't have a filter_walk equivalent but it could grow one :-)) -- nosy: +pitrou ___ Python tracker

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: That's one of the nicer attempts I've seen at an object-oriented path library, but I have a core problem with OOP path APIs, and it relates to the Unicode encoding/decoding problem: the ultimate purpose of path objects is almost always to

[issue13351] Strange time complexity when creating nested lists

2011-11-05 Thread Jonas LM
Jonas LM quak...@gmail.com added the comment: Confirmed that this was caused by the garbage collector, as pitrou suspected. Thanks! -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13347] .py extension not auto added

2011-11-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: A request for this change in behavior is already being tracked by Issue10364. -- nosy: +ned.deily resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - IDLE: make .py default added extension on save

[issue10364] IDLE: make .py default added extension on save

2011-11-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +Kaleb702 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10364 ___ ___ Python-bugs-list mailing list

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Initial version available at: https://bitbucket.org/ncoghlan/iterwalk/src I'll get it published to PyPI once the test suite is in a slightly better state (no filesystem based tests as yet). -- ___

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2011-11-05 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10977 ___ ___ Python-bugs-list

[issue13328] pdb shows code from wrong module

2011-11-05 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13328 ___ ___ Python-bugs-list

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-05 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: The entry in Misc/NEWS mentions the change in curses.tigetstr(), but actually curses.tparm() has been changed. Please fix that entry to avoid confusion. (curses.tigetstr() still expects a unicode string and returns a

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13309 ___

[issue13352] tutorial section 9.3.3 documentation problem

2011-11-05 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: User report on the docs@ list: - http://docs.python.org/tutorial/classes.html#instance-objects I think the counter attribute is mentioned for the first time in the example code, not in Instance of MyClass created above, i.e. class

[issue13353] documentation problem in logging.handlers.TimedRotatingFileHandler for 2.7

2011-11-05 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: User (Yoann Roman) report on docs@ maillist: The docs for logging.handlers.TimedRotatingFileHandler in Python 2.7 say that the utc keyword argument was added in 2.7:

[issue13352] tutorial section 9.3.3 documentation problem

2011-11-05 Thread Ori Livneh
Ori Livneh ori.liv...@gmail.com added the comment: That's exactly the point: in Python, data attributes don't need to be declared in the class definition. -- nosy: +ori.livneh ___ Python tracker rep...@bugs.python.org

[issue13352] tutorial section 9.3.3 documentation problem

2011-11-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Yep, I agree, Ori. The paragraph immediately preceding the code sample says: Data attributes need not be declared; like local variables, they spring into existence when they are first assigned to [...] the following piece of code will

[issue13352] tutorial section 9.3.3 documentation problem

2011-11-05 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13352 ___

[issue10287] NNTP authentication should check capabilities

2011-11-05 Thread Nathan Clayton
Nathan Clayton nathanclay...@gmail.com added the comment: By always sending capabilities at connection, some servers immediately throw an error. I've modified the class initialization to include an optional parameter to indicate if this should be disabled. -- keywords: +patch nosy:

[issue8087] Unupdated source file in traceback

2011-11-05 Thread Oleg Oshmyan
Oleg Oshmyan chor...@inbox.lv added the comment: I just want to note that the code might be edited not only while it is running it in the interactive interpreter but also while it is running as a standalone script. In this case the script naturally would not know to reload its own code nor

[issue13300] IDLE 3.3 Restart Shell command fails

2011-11-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ce483d696c06 by Ned Deily in branch 'default': Issue #13300: Fix IDLE Restart Shell command failure introduced by http://hg.python.org/cpython/rev/ce483d696c06 -- nosy: +python-dev

[issue13300] IDLE 3.3 Restart Shell command fails

2011-11-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13300 ___