[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm not sure about the __del__: if pypy's deferred garbage collection is not enough to close self._file, how can a __del__ method help? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-11 Thread Petr Kubat
Petr Kubat killm...@gmail.com added the comment: I see. So calling help('help') should produce the documentation on the help() function and typing help at the help prompt should print the help for the prompt. Tricky indeed. I think I'll look at it during the day after tomorrow and post some

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___

[issue7300] Unicode arguments in str.format()

2012-06-11 Thread Gökçen Eraslan
Changes by Gökçen Eraslan gok...@pardus.org.tr: -- nosy: +Gökçen.Eraslan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7300 ___ ___

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

2012-06-11 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Fair enough, I'm not going to question your obviously superior judgement here. :) However, your patch currently breaks the test suite on any platform that uses the fallback rmtree: You forgot the ignore_errors=False in the _rmtree_unsafe

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Running test_gdb on Fedora 17 produces a litany of the following error: - warning: File /home/ncoghlan/devel/py3k/python-gdb.py auto-loading has been declined by your `auto-load safe-path' set to

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: In addition, we should probably report this as a test skip rather than as a litany of test failures. -- components: +Tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043

[issue15044] _dbm not building on Fedora 17

2012-06-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: After upgrading from Fedora 16 - 17, my previously working trunk build is getting the following error: Building '_dbm' extension gcc -pthread -fPIC -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes -DHAVE_NDBM_H -IInclude -I. -I./Include

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6f7afe25d681 by Nick Coghlan in branch 'default': Close #13857: Added textwrap.indent() function (initial patch by Ezra http://hg.python.org/cpython/rev/6f7afe25d681 -- nosy: +python-dev resolution: - fixed

[issue10469] test_socket fails using Visual Studio 2010

2012-06-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: This has been fixed with the proper 2010 support -- resolution: - fixed status: open - closed superseder: - Support Visual Studio 2010 ___ Python tracker rep...@bugs.python.org

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ezra (and anyone interested) may want to take a look at the checked in version to see some of the changes I made while preparing the patch for commit. - name changes and slight restructure as discussed on the review - splitlines() invocation

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2012-06-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Brian, reopening this since the original issue isn't addressed: The path and module attributes aren't part of the error repr -- status: closed - open ___ Python tracker

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2012-06-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: In working on #13857, I noticed that the current regex based implementation of textwrap.dedent() is limited specifically to ASCII whitespace (tabs and spaces) with Unix line endings (a line containing solely a Windows \r\n line ending will

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2012-06-11 Thread Samuel John
Changes by Samuel John pyt...@samueljohn.de: -- nosy: +samueljohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11445 ___ ___ Python-bugs-list

[issue10133] multiprocessing: conn_recv_string() broken error handling

2012-06-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 60a7b704de5c by Richard Oudkerk in branch '2.7': Issue #10133: Make multiprocessing deallocate buffer if socket read fails. http://hg.python.org/cpython/rev/60a7b704de5c New changeset 5643697070c0 by Richard Oudkerk

[issue13756] Python3.2.2 make fail on cygwin

2012-06-11 Thread Jason Tishler
Jason Tishler ja...@tishler.net added the comment: I offer the attached patch for consideration. AFAICT, only the Makefile.pre.in and build_ext.py changes are required. I included the makesetup change for completeness and to be consistent with the other changes. -- keywords: +patch

[issue15046] Missing cast to Py_ssize_t in socket_connection.c

2012-06-11 Thread Marco den Otter
New submission from Marco den Otter marco.den.ot...@nspyre.nl: In the file socket_connection.c on line 139 a cast to Py_ssize_t is missing for the return value. Is: return res 0 ? res : ulength; Should be return res 0 ? (Py_ssize_t)res : (Py_ssize_t)ulength; Now it can be possible that

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If you look at line 127 in importlib/_bootstrap.py you will see that it is an os.open() call to open the bytecode file for exclusive writing. I'm willing to bet the buildbot didn't have the directory writable or something and that triggered the

[issue10133] multiprocessing: conn_recv_string() broken error handling

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Thanks for the patch, I have applied it. (I don't think there was a problem with the promotion rules because res was a never converted to UINT32.) -- resolution: - fixed stage: - committed/rejected status: open - closed

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: The docs were patched in changeset 9fa52478b32b, so I will close. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-06-11 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - later stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10037 ___

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I don't think there is any problem here since you have control over which arguments you pass to __init__. Without a reason why that is not a solution I will eventually close the issue as rejected. -- resolution: - rejected stage:

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Unless you have a reason why imap() does not solve the problem I will eventually close the issue as rejected. -- resolution: - rejected stage: - committed/rejected status: open - pending ___

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-06-11 Thread Samuel John
Changes by Samuel John pyt...@samueljohn.de: -- nosy: +samueljohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14499 ___ ___ Python-bugs-list

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread andrew cooke
andrew cooke and...@acooke.org added the comment: hi - i'm the original author (may be using a different account). as far as i remember, i raised this because it seemed relevant given the link i gave. if you've looked at the issue and think your approach would work, or that this should be

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: I opened this issue 2 years ago, and I don't remember it being easily solvable back then. But I've long forgotten what the problems were, and I've lost personal interest in it, so I guess we'll just let it go. -- status: pending - open

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2012-06-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c2910971eb86 by Richard Oudkerk in branch 'default': Issue #3518: Remove references to non-existent BaseManager.from_address() http://hg.python.org/cpython/rev/c2910971eb86 -- nosy: +python-dev

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: OK, I'll close. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8289 ___

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I'll close then. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12897 ___

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2012-06-11 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3518 ___

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: This was originally posted on python-dev, but I hope reposting it here will make this issue easier to navigate. With addition of fixed offset timezone class and the timezone.utc instance [0], it is easy to get UTC time as

[issue15046] Missing cast to Py_ssize_t in socket_connection.c

2012-06-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was fixed 3 hours ago, with issue10133 :) -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed superseder: - multiprocessing: conn_recv_string() broken error handling

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2012-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just recommend the astimezone use in the docs and recommend creating tz-aware instances in the first time (i.e. calling now(utc) instead of utcnow()), +1. -- nosy: +eric.araujo ___ Python tracker

[issue15047] Cygwin install (regen) problem

2012-06-11 Thread Jason Tishler
New submission from Jason Tishler ja...@tishler.net: The Cygwin build is failing during make install -- specifically, during the regen step: [snip] mkdir /home/jt/src/cygwin/cygwin-packages/1.7/python3-test/python-3.2.3-1/src/Python-3.2.3/Lib/plat-cygwin cp

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread mattip
mattip matti.pi...@gmail.com added the comment: Revised patch: changes to mailbox.py were not needed for pypy. Someone did a good job with mailbox.py in stdlib 2.7.3 Now the patch only changes tests. The tests in 3.3 are very different, it seems to me there is little that can be reused there.

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, good. I thought we'd fixed the open/close issues, but I could easily believe we had missed something (especially in Python2). Since the fp stuff is gone in 3, I'd be OK with just applying this. -- versions: -Python 3.2,

[issue14446] Remove deprecated tkinter functions

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: Do I need to do anything else to those patches I submitted? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14446 ___

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: I added the extra information to the docstring for the shuffle method and attached a patch. -- keywords: +patch nosy: +michael.driscoll Added file: http://bugs.python.org/file25938/shuffle.patch

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Christopher Smith
Christopher Smith smi...@users.sourceforge.net added the comment: On Tue, Jun 12, 2012 at 1:34 AM, Michael Driscoll rep...@bugs.python.org wrote: Michael Driscoll m...@pythonlibrary.org added the comment: I added the extra information to the docstring for the shuffle method and attached a

[issue14906] rotatingHandler WindowsError

2012-06-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It could be a number of things which are keeping the file open, e.g. * Windows indexing the volume for search * Child process keeping files open (e.g. while copying log files - I can't tell what you're actually copying) You may need to

[issue13756] Python3.2.2 make fail on cygwin

2012-06-11 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Hi Jason, if you look in default rule you will see the same, so this relict specific else case could be removed. Also in Lib/packaging/command/build_ext.py. -- nosy: +rpetrov ___ Python

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: There is one long standing issue with length of the build path ... -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14599

[issue14966] Fully document subprocess.CalledProcessError

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: I don't see the error, TimeoutExpired, documented either. At least the doc page mentions CalledProcessError a couple times. Do we want to use the docstring for CalledProcessError for the documentation page? Where on the page would it

[issue15041] tkinter documentation: update see also list

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: I thought the ebook, Modern Tkinter for Busy Python Developers by Mark Roseman was pretty good too: http://www.amazon.com/Modern-Tkinter-Python-Developers-ebook/dp/B0071QDNLO/ref=sr_1_1?ie=UTF8qid=1339446684sr=8-1 -- nosy:

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-06-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: @Ramchandra: __name__ does not exist for many objects. This issue with the sys.stdout.write encompasses a lot of other issues involving the shortcomings of the RPCProxy object. The following code prevents another prompt from appearing:

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Roumen, what issue is that? Do you have an issue # you can share? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14599 ___

[issue14446] Remove deprecated tkinter functions

2012-06-11 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Michael Driscoll, thank you for patch. Let's go on after Python 3.3 release — those patches should be applied for 3.4. For now we need to wait. -- ___ Python tracker rep...@bugs.python.org

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
New submission from James Kyle b...@jameskyle.org: This behavior is present on OS X 10.7 and framework builds. In this case, the /Library/Python/version paths are included in every install. I would consider this behavior non-standard as in most manual python installs only that installations

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This is intentional behavior, you can install packages you want to share between python installations in /Library/Python instead of the regular site-packages directory. Macports could always patch their site.py file to avoid this.

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This was added in issue4865. (The same behavior is present in 3.2 and 3.3) -- resolution: - rejected versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15048 ___ ___

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle b...@jameskyle.org added the comment: Am I missing something or were the problems delineated in issue #4865 solvable by simply sys.path.append(/Library/Python/2.7/site-packages)? What would the process be for reopening this issue for discussion? I'm not sure this is the right way

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Python installation are already not isolated: there is a per-user site-packages directory on all platforms that is shared between all installations of a particular python release. This directory is located in a subdirectory of ~/.local

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle b...@jameskyle.org added the comment: Fair enough. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15048 ___ ___

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Brett, I reopened this because you said earlier that the test_reprlib failure is due to a race condition where an invalidate_caches() call is needed. You're quite right of course that the new occurrence could be caused by something

[issue1667546] Time zone-capable variant of time.localtime

2012-06-11 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Reopening. given the uncertainty with #9527, this issue may result in getting the TZ-aware local time support in stdlib sooner. -- resolution: duplicate - stage: committed/rejected - patch review status: closed -

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14927 ___ ___

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14927 ___ ___

[issue15049] line buffering isn't always

2012-06-11 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: rdmurray@hey:~/python/p32cat bad.py This line is just ascii A second line for good measure. This comment contains undecodable stuff: � or \\xe9 in pass� cannot be decoded. The last line above is in latin-1, with an é

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I have to admit that I'm not keen on this feature for the reasons James cited. And I think the example of the shared user site directory is not a good analogy. In that case, you, as a user, have more control over the presence and contents of the

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Two objections have been raised to the proposed datetime.localtime() function: 1. It offers the third subtly different way to obtain current time in datetime module. The first two being provided by datetime.now() and

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Added file: http://bugs.python.org/file25940/testtz.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9527 ___

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: A few more thoughts. The original impetus for this feature was Issue4865. The use case there seem to be from users of Google App Engine back when it was released using Python 2.5. It seems to me that the use of dmg installers for Python packages has

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread James Henstridge
James Henstridge ja...@jamesh.id.au added the comment: One problem I can see with using a fixed offset tzinfo for localtime is that it might confuse people when doing date arithmetic. For example: d = datetime.localtime() + timedelta(days=7) While it will give a correct answer as a

[issue15003] make PyNamespace_New() public

2012-06-11 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Is this documented in whatsnew? I'm not sure what has been (none of my patches have done so). Also, I remember a discussion about making it public or not, but don’t recall a decision. Amaury brought it up in msg162127. His point was