[issue18280] Documentation is too personalized

2013-06-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: I've looked through the matches. "I/O" and the -I command-line switch are false positives. Many references in the FAQ ("How do I do X?"), but those don't need to be fixed. I think personalized references are most problematic when they're expressing uncerta

[issue18283] shutil.which() should support bytes

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: Here is an implementation. -- keywords: +patch Added file: http://bugs.python.org/file30674/which_bytes.patch ___ Python tracker ___ ___

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: > New changeset e5427b0b2bf7 by Victor Stinner in branch 'default': > Issue #11016: Try to fix compilaton of the new _stat.c module on Windows > http://hg.python.org/cpython/rev/e5427b0b2bf7 @Christian: Can you please review this commit? By the way, mode_t is a

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: > fileperm() sets 9 chars in buf[1] to buf[9]. Ah ok, fine, I missed the "&buf[1]" hack. -- ___ Python tracker ___

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5427b0b2bf7 by Victor Stinner in branch 'default': Issue #11016: Try to fix compilaton of the new _stat.c module on Windows http://hg.python.org/cpython/rev/e5427b0b2bf7 -- ___ Python tracker

[issue18285] In itertools.product() add argument repeat to the docstring

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1fad7a709aae by Andrew Kuchling in branch '3.3': Close #18285: add 'repeat' parameter to docstring for product http://hg.python.org/cpython/rev/1fad7a709aae -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: ope

[issue18220] Expand itertools.islice docstring signature to 2 lines

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ecca1a98220 by Andrew Kuchling in branch '3.3': Closes #18220: expand itertools.islice docstring to 2 lines http://hg.python.org/cpython/rev/7ecca1a98220 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected s

[issue18281] tarfile defines stat constants

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: Interesting commit: changeset: 76949:492e6c6a01bb user:Giampaolo Rodola' date:Tue May 15 15:30:25 2012 +0200 files: Doc/library/stat.rst Doc/whatsnew/3.3.rst Lib/stat.py Lib/tarfile.py Lib/test/test_stat.py Misc/NEWS description: #14807

[issue18151] Idlelib: update to "with open ... except OSError" (in 2.7, leave IOError)

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c0e8e910125 by Terry Jan Reedy in branch '2.7': #18151, part 2: Silence debug build resource warning for each file opened by http://hg.python.org/cpython/rev/3c0e8e910125 New changeset c541073173bb by Terry Jan Reedy in branch '3.3': #18151, part 2

[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: Here is an initial attempt: set a custom allocator for bz2, lzma and zlib modules. The allocator is only replaced for an instance of a compressor or decompress, the change does not affect the library globally. PyMem_RawMalloc() is used instead of PyMem_Malloc(

[issue18283] shutil.which() should support bytes

2013-06-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: Shouldn't the import lock be held to make it threadsafe? -- ___ Python tracker ___ ___ Python-bugs-

[issue18284] Doc make html: KeyError: 'howto/advocacy'

2013-06-22 Thread R. David Murray
R. David Murray added the comment: Automating it could be a sphinx enhancement request. Or maybe a bug report. -- ___ Python tracker ___

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Jon Irenicus
Jon Irenicus added the comment: #David Edelsohn It's not changing anything. with open('url_list.txt') as f: content = f.readlines() content = ''.join(content) content = list(content) if content[0] == 'h' and content[1] == 't' and content[2] =='t': print("Make sure that y

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread David Edelsohn
David Edelsohn added the comment: Is the script changing any configuration settings in your system that reduces available system resources without occupying CPU, RAM or disk? -- nosy: +David.Edelsohn ___ Python tracker

[issue18284] Doc make html: KeyError: 'howto/advocacy'

2013-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nuking build worked. So did, with less re-work, deleting the advocacy doctree and html files ;-). Too bad this is not somehow automated. -- status: pending -> closed ___ Python tracker

[issue18103] Create a GUI test framework for Idle

2013-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Must mention that 'support' was 'test_support' in 2.7. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue18152] Idle: add 2.7 backport script

2013-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not sure what you mean by 'rollback'. My experience and understanding is that once I start a merge, I must finish it somehow before doing anything else. Do you mean revert a particular problematic file (like NEWS), and hand edit? Another backport item. te

[issue18282] Ugly behavior of binary and unicode handling on reading unknown encoded files

2013-06-22 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: You can try to use charade (https://pypi.python.org/pypi/charade) or potential another encoding detector. -- nosy: +Arfrever ___ Python tracker __

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Brett Cannon
Brett Cannon added the comment: I have attached the test suite and two versions: one using a mixin and one using a proxy. Neither solve the issue of import touching the module in any way to check __loader__ and __package__. The mixin version is also failing one test which could quite possibly

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Brett Cannon
Changes by Brett Cannon : Added file: http://bugs.python.org/file30671/lazy_mixin.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Brett Cannon
Changes by Brett Cannon : Added file: http://bugs.python.org/file30670/test_lazy_loader.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: We can't make anything useful of such a bug report. At a minimum, please post your entire script and explain how you are running it. Also explain what your system configuration is (operating system, etc.). That said, it's highly unlikely that Python is respons

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread Christian Heimes
Christian Heimes added the comment: All 10 chars are set: buf[0] = filetype(mode); fileperm(mode, &buf[1]); buf[0] is set by filetype(). fileperm() sets 9 chars in buf[1] to buf[9]. -- ___ Python tracker

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Jon Irenicus
Jon Irenicus added the comment: The problem is when i run my python script, it somehow slows the whole computer down. I checked my cpu usage, ram usage and disk usage, but nothing comes up. The script isn't big, it's only about 10kb big. -- status: pending -> open _

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: buf[9] is not initialized in stat_filemode(). Use a shorter buffer (9 bytes) or set it to NUL. Le 22 juin 2013 21:05, "Roundup Robot" a écrit : > > Roundup Robot added the comment: > > New changeset 420f70a22b9d by Christian Heimes in branch 'default': > Issue

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: You're not giving enough information to help us make sense of your problem. If you don't know how to describe the problem precisely, you should try the mailing-list: http://mail.python.org/mailman/listinfo/python-list -- nosy: +pitrou status: open -> p

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Jon Irenicus
New submission from Jon Irenicus: Python's really slowing my computer down. After running my script, the computer grinds to a halt and it's performance drops. Even after a reboot, the problem still persists. -- components: Windows messages: 191661 nosy: jon_irenicus priority: normal sev

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Brett Cannon
Brett Cannon added the comment: So the approaches I have been using make a loader lazy, so what you have to change in terms of sys.meta_path, sys.path_hooks, etc. would very from loader to loader. I have realized one tricky thing with all of this is that importlib itself inspects modules post

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 420f70a22b9d by Christian Heimes in branch 'default': Issue #11016: Add C implementation of the stat module as _stat http://hg.python.org/cpython/rev/420f70a22b9d -- ___ Python tracker

[issue18285] In itertools.product() add argument repeat to the docstring

2013-06-22 Thread py.user
Changes by py.user : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue18285] In itertools.product() add argument repeat to the docstring

2013-06-22 Thread py.user
New submission from py.user: >>> import itertools >>> print(itertools.product.__doc__) product(*iterables) --> product object Cartesian product of input iterables. Equivalent to nested for-loops. ... -- assignee: docs@python components: Documentation messages: 191658 nosy: docs@python,

[issue18285] In itertools.product() add argument repeat to the docstring

2013-06-22 Thread py.user
Changes by py.user : -- keywords: +patch Added file: http://bugs.python.org/file30669/issue18285.diff ___ Python tracker ___ ___ Pytho

[issue18284] Doc make html: KeyError: 'howto/advocacy'

2013-06-22 Thread R. David Murray
R. David Murray added the comment: Oh, right, the advocacy howto was deleted recently. So it is almost certainly your stale pickles in the build dir that are the issue. -- resolution: -> invalid stage: -> committed/rejected status: open -> pending ___

[issue18284] Doc make html: KeyError: 'howto/advocacy'

2013-06-22 Thread R. David Murray
R. David Murray added the comment: I just did a clean doc build on 2.7 (on linux) on 2.7 head without error. Maybe you need to do a 'make clean' and rebuild? Our Makefile ought to have a target that just throws away the build dir, instead of throwing away the checked out software as well, bu

[issue18113] Memory leak in curses.panel

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61fafef4c8a2 by Andrew Kuchling in branch '3.3': #18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again http://hg.python.org/cpython/rev/61fafef4c8a2 -- ___ Python tracker

[issue18284] Doc make html: KeyError: 'howto/advocacy'

2013-06-22 Thread Terry J. Reedy
New submission from Terry J. Reedy: Win 7, make html, 2.7 and 3.3. writing output... [ 20%] howto/advocacy Exception occurred: File "F:\Python\dev\py33\Doc\tools\sphinx\environment.py", line 1063, in get_toc_for toc = self.tocs[docname].deepcopy() KeyError: 'howto/advocacy' and process

[issue18282] Ugly behavior of binary and unicode handling on reading unknown encoded files

2013-06-22 Thread R. David Murray
R. David Murray added the comment: In python we have a saying that we follow most of the time: if you don't know, refuse the temptation to guess. So currently this is all working as designed: you have to know the encoding of the file you are trying to read as unicode. Adding a 'guess' functio

[issue18236] int() and float() do not accept strings with trailing separators

2013-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Martin v. Löwis wrote at #13391 (msg147634): > I do think that _PyUnicode_IsWhitespace should use the White_Space > property (from PropList.txt). I'm not quite sure how they computed > that property (or whether it's manually curated). Since that's a > behav

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: Apologies for being dense, but how would you actually use such a loader? Would you need to install something in sys.meta_path/sys.path_hooks? Would it make all imports lazy or only imports of specified modules? -- nosy: +sbt

[issue18236] int() and float() do not accept strings with trailing separators

2013-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I did a little more investigation and it looks like information separators have been included in whitespace since unicode type was first implemented in Python: guido 11967 Fri Mar 10 22:52:46 2000 +: /* Returns 1 for Unicode characters having the typ

[issue18236] int() and float() do not accept strings with trailing separators

2013-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like str.isspace() is incorrect. The proper definition of unicode whitespace seems to include 26 characters: # 0009..000D; White_Space # Cc [5] .. 0020 ; White_Space # Zs SPA

[issue18283] shutil.which() should support bytes

2013-06-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: -> enhancement versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18236] int() and float() do not accept strings with trailing separators

2013-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see your point now. Since RS is not whitespace by any definition I knew of previously, why is RS.isspace True? Apparent answer: Doc says '''Return true if there are only whitespace characters in the string and there is at least one character, false otherwise

[issue18281] tarfile defines stat constants

2013-06-22 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18236] int() and float() do not accept strings with trailing separators

2013-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > You stated facts: what is your proposal? There is a bug somewhere. We cannot simultaneously have >>> '\N{RS}'.isspace() True and not accept '\N{RS}' as whitespace when parsing numbers. I believe int(x) should be equivalent to int(x.strip()). This is

[issue18113] Memory leak in curses.panel

2013-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99733ff98a50 by Andrew Kuchling in branch '2.7': #18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again http://hg.python.org/cpython/rev/99733ff98a50 -- ___ Python tracker

[issue11390] doctest: add cmdline parameters

2013-06-22 Thread R. David Murray
R. David Murray added the comment: Patch updated per Barry's review comments. -- Added file: http://bugs.python.org/file30667/doctest_cli.patch ___ Python tracker ___ ___

[issue18283] shutil.which() should support bytes

2013-06-22 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: shutil.which() should support bytes. Some other functions in shutil module support bytes. >>> shutil.which("echo") '/bin/echo'

[issue18282] Ugly behavior of binary and unicode handling on reading unknown encoded files

2013-06-22 Thread Sworddragon
New submission from Sworddragon: Currently Python 3 has some problems of handling files with an unknown encoding. In this example we have a file encoded as ISO-8859-1 with the content "ä" which should be tried to be read. Lets see what Python 3 can currently do here: 1. We can simply open the

[issue18206] license url in site.py should always use X.Y.Z form of version number

2013-06-22 Thread R. David Murray
R. David Murray added the comment: It would be nice to add a test (guarded by the network resource) that checks that the generated url in license is not a 404. Would you be interested in tackling that, Berker? -- ___ Python tracker

[issue18281] tarfile defines stat constants

2013-06-22 Thread Christian Heimes
New submission from Christian Heimes: The tarfile module defines a bunch of stat constants: http://hg.python.org/cpython/file/4465f273a8a4/Lib/tarfile.py#l142 These constants aren't documented but they look like public API constants. I would like to replace them with values from the stat modul

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread Christian Heimes
Christian Heimes added the comment: New patch People demand a _stat module in C and now they are getting a _stat module in C. -- ___ Python tracker ___ _

[issue11016] Re-implementation of the stat module in C

2013-06-22 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file30666/statmodule4.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue11390] doctest: add cmdline parameters

2013-06-22 Thread R. David Murray
R. David Murray added the comment: I will probably commit this tomorrow if there are no objections. -- ___ Python tracker ___ ___ Pyth

[issue18275] Make isinstance() work with super type instances

2013-06-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17621] Create a lazy import loader mixin

2013-06-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4153] Unicode HOWTO up to date?

2013-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most of changes are applicable to Python 2 too. Do you want backport part of your patch to 2.7? -- nosy: +serhiy.storchaka ___ Python tracker

[issue18280] Documentation is too personalized

2013-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a filtered results of find * -name '*.rst' -exec egrep -n -w -B1 -A1 'I|me|my' '{}' + -- Added file: http://bugs.python.org/file30665/Imemy.grep ___ Python tracker __

[issue18280] Documentation is too personalized

2013-06-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some documentation files contain a number of I/my/me. Looks like they grew from personal modules and personal articles. Perhaps the official documentation needs more depersonalized style. Here is full list of such files: Doc/c-api/exceptions.rst Doc/c-api/