[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-26 Thread Charles-François Natali
Charles-François Natali added the comment: No automated testing included because I'm not entirely sure how to replicate this without eating up a ton of ram or doing something naughty with ulimit. Simply use RLIMIT_NPROC, from a subprocess: $ cat /tmp/test.py import subprocess ps = [ ] for

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a patch for 3.4. __qualname__ ought to have been implemented this way in the first place. I'll have to think about what can be done about 3.3. Maybe just the same fix without the removal of PyHeapType.ht_qualname. We can hope no one has written

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why this would be the correct way to do it. First you are removing the unicode check, which looks wrong to me. Second, if ht_name works, perhaps ht_qualname can be made to work as well? -- ___ Python

[issue16285] Update urllib to RFC 3986

2012-10-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16285 ___ ___ Python-bugs-list

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-26 Thread STINNER Victor
STINNER Victor added the comment: sys.getfilesystemencoding() 'mbcs' import locale locale.getpreferredencoding() 'cp932' 'cp932' is the same as 'mbcs' in the Japanese environment. And what is the value.of locale.getpreferredencoding(False)? --

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309 ___ ___ Python-bugs-list

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-26 Thread Charles-François Natali
Charles-François Natali added the comment: Also, I didn't check, but if the problems also occurs on execve() failure, then it's much simpler: simply call Popen() with an invalid/nonexisting executable. -- ___ Python tracker rep...@bugs.python.org

[issue15494] Move test/support.py into a test.support subpackage

2012-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: This whole refactoring project grew out of the fact that Chris and I were looking for somewhere to put common helpers for package testing. Specfically, I wrote a heap of helpers for test_runpy that I wanted to use for the new pkgutil tests. The short term hack

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-26 Thread Masami HIRATA
Masami HIRATA added the comment: And what is the value.of locale.getpreferredencoding(False)? import locale locale.getpreferredencoding(False) 'cp932' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16322

[issue15498] Eliminate the use of deprecated OS X APIs in getpath.c

2012-10-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Apple seems to have switched to using dlopen in their version of getpath.c (see http://www.opensource.apple.com/source/python/python-60.3/2.7/fix/getpath.c.ed, this is the version in OSX 10.8.2) This causes a problem for some people, as noticed on the

[issue16313] Support xz compression in shutil module

2012-10-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: Isn’t this a dupe of #5411? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16313 ___ ___ Python-bugs-list

[issue16313] Support xz compression in shutil module

2012-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is actually a dupe of #5411? Thanks. -- resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - Add xz support to shutil ___ Python tracker

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-10-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___ ___

[issue5411] Add xz support to shutil

2012-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have not seen this issue and was created a new issue16313 with almost same patch as Eric's one (only I have changed the documentation too). Here's the patch. I wonder that it was not committed yet to 3.3. I think it would be better first to add xz support

[issue5411] Add xz support to shutil

2012-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___

[issue11468] Improve unittest basic example in the doc

2012-10-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11468 ___ ___

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The problem with using RLIMIT is that the testsuite could be executing several tests in parallel using independent threads, for instance. You don't want to influence unrelated tests. Overiding private methods is ugly, but if the code evolves the test would

[issue5411] Add xz support to shutil

2012-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27722/shutil-lzma.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___

[issue5411] Add xz support to shutil

2012-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I see the '.bz2' bug. Patch updated. -- Added file: http://bugs.python.org/file27723/shutil-lzma_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411

[issue16307] multiprocess.pool.map_async callables not working

2012-10-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thanks for taking the time! I remember my frustrations when trying to grok how the mp test suite works. :) A small nit-pick first: you have a lot of extra white space in your patches. Just run 'make patchcheck' first, that should warn you about that. Not

[issue15222] mailbox.mbox writes without empty line after each message

2012-10-26 Thread lilydjwg
lilydjwg added the comment: My system has updated to Python 3.3.0 and this bugs me again :-( I don't see the changes in Python 3.3.0. So when will this be merged into 3.3? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222

[issue15222] mailbox.mbox writes without empty line after each message

2012-10-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: The fix was committed when 3.3.0 was in release candidate mode, and wasn't considered important enough to be included in 3.3.0 anymore. It will be included in 3.3.1, which is to be released next month. -- ___

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-26 Thread Charles-François Natali
Charles-François Natali added the comment: The problem with using RLIMIT is that the testsuite could be executing several tests in parallel using independent threads, for instance. You don't want to influence unrelated tests. That's why I suggested to run it in a subprocess: this is used

[issue16307] multiprocess.pool.map_async callables not working

2012-10-26 Thread Janne Karila
Janne Karila added the comment: Otherwise I agree, but what if one of the callbacks is not called? The test case would fail on assertEqual(2, len(call_args)) but you wouldn't know which callback is the problem. -- ___ Python tracker

[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451
Winston451 added the comment: I attached a patch that solve the problem -- keywords: +patch Added file: http://bugs.python.org/file27725/readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202

[issue16324] MIMEText __init__ does not support Charset instance

2012-10-26 Thread Claude Paroz
Changes by Claude Paroz cla...@2xlibre.net: -- keywords: +patch Added file: http://bugs.python.org/file27726/issue16324-1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16324 ___

[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451
Changes by Winston451 montag...@laposte.net: -- type: - behavior versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202

[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451
Changes by Winston451 montag...@laposte.net: Added file: http://bugs.python.org/file27727/readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___

[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451
Changes by Winston451 montag...@laposte.net: Removed file: http://bugs.python.org/file27725/readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___

[issue16328] win_add2path.py sets wrong user path

2012-10-26 Thread Emil Styrke
New submission from Emil Styrke: OS: Windows 7 Ultimate x64 Python version: 2.7.3 x64 win_add2path.py in the scripts directory is supposed to add the Scripts directory according to its source. However, it tries to add $PYTHONPATH/Scripts, when in fact the Scripts directory is at

[issue16307] multiprocess.pool.map_async callables not working

2012-10-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: True, it makes sense to push this assert to the end. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___

[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: -Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2, Python 3.3, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202

[issue16328] win_add2path.py sets wrong user path

2012-10-26 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16328 ___ ___

[issue16328] win_add2path.py sets wrong user path

2012-10-26 Thread Tim Golden
Tim Golden added the comment: [this response appears to have got lost in an email black hole somewhere] I assume that $PYTHONPATH is actually referring to sys.exec_prefix (and not the PYTHONPATH env var which has nothing to do with this). In any case c:\python27\scripts is still the place for

Re: [issue16328] win_add2path.py sets wrong user path

2012-10-26 Thread Tim Golden
I assume that $PYTHONPATH is actually referring to sys.exec_prefix (and not the PYTHONPATH env var which has nothing to do with this). In any case c:\python27\scripts is still the place for scripts. There is a c:\python27\tools\scripts (which you're welcome to add to your %PATH% if you find the

[issue16329] mimetypes does not support webm type

2012-10-26 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': http://www.webmproject.org/docs/container/#naming -- components: Library (Lib) files: webm.diff keywords: patch messages: 173843 nosy: giampaolo.rodola priority: normal severity: normal status: open title: mimetypes does not support webm type

[issue16329] mimetypes does not support webm type

2012-10-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: (patch in attachment) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16329 ___ ___ Python-bugs-list mailing

[issue16329] mimetypes does not support webm type

2012-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: How do we know if the webm file is video+audio or audio only?. Mimetypes are different. :-? -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16329

[issue16329] mimetypes does not support webm type

2012-10-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'd say we can't but I suppose the same problem might exist for other mime types as well. Given that we can't inspect file content the only choice we have is either decide to not support a certain mime type or assume the most common scenario, which in case

[issue16329] mimetypes does not support webm type

2012-10-26 Thread R. David Murray
R. David Murray added the comment: I suppose this is a flaw in the mimetype API. At some point perhaps we should fix it, but in the meantimedoes anyone have a pointer to an actual IANA submission for this mime type? I think we can probably no longer wait for official IANA approval, but

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2012-10-26 Thread Daniel Oźminkowski
Daniel Oźminkowski added the comment: Python 2.7.3 WinXP Professional 2002 + SP3 Visual Studio C++ Express 2008 I bumped into this error trying to install fabric. One of the installation steps is compiling pycrypto. After looking into C:\Program Files\Microsoft Visual Studio

[issue15494] Move test/support.py into a test.support subpackage

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: So IIUC the package will contain __init__.py (what is now support.py), script_helper, and pkg_helper. One reason why I proposed to merge script_helper with support.py is that functions like assert_python*() are used in several modules already, and are generic

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-10-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: For updated code see http://hg.python.org/sandbox/sbt#spawn This uses _posixsubprocess and closefds=True. -- hgrepos: +157 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713

[issue11175] allow argparse FileType to accept encoding and errors arguments

2012-10-26 Thread Lucas Maystre
Lucas Maystre added the comment: Alright, here's a version with more tests (unittest.mock is awesome!). I think it tests exactly what it should (and no more), i.e. that the arguments are correctly passed to `open`. -- Added file: http://bugs.python.org/file27729/filetype11175.patch

[issue11175] allow argparse FileType to accept encoding and errors arguments

2012-10-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: LGTM. Let's wait for Steven's comments as he's the maintainer of argparse. -- keywords: +needs review stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11175

[issue16328] win_add2path.py sets wrong user path

2012-10-26 Thread Emil Styrke
Emil Styrke added the comment: Ok, thanks for clearing that up. And yes, I meant the pythonpath variable in the script, which seems to be derived from sys.executable. But in that case, it's unfortunate that the c:\python27\scripts dir is not created during install. I did win_add2path right

[issue11175] allow argparse FileType to accept encoding and errors arguments

2012-10-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11175 ___ ___

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Was does qualname need to be on the struct? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16271 ___ ___

[issue16330] Use surrogate-related macros

2012-10-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: A set of macros to work with surrogates was introduced in 3.3: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE, Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES, Py_UNICODE_HIGH_SURROGATE, and Py_UNICODE_LOW_SURROGATE. Using this macros

[issue16239] PEP8 arithmetic operator examples

2012-10-26 Thread Peter Würtz
Peter Würtz added the comment: x * 2 - 1 is less clear than x*2 - 1 I don't feel this. Anyone else feel this? I strongly feel so. And if you don't take my word for it, just open any math book or look at any formula and recognize that it is the general consensus that the elements of a

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: s/Was/Why/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16271 ___ ___ Python-bugs-list mailing list

[issue16206] dict() docs should display multiple signatures

2012-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 361beec678e1 by Ezio Melotti in branch '2.7': #16206: Improve examples about dict construction. http://hg.python.org/cpython/rev/361beec678e1 New changeset eb999002916c by Ezio Melotti in branch '3.2': #16206: Improve examples about dict

[issue16264] test_logging failure on Windows 7 buildbot

2012-10-26 Thread Vinay Sajip
Vinay Sajip added the comment: (note: SocketHandler's implementation looks grotesque. Enough said). Care to be a little more constructive in your criticism? I'm quite open to improving it, if you have any suggestions for doing so. It's a very basic exponential back-off approach - the only

[issue16304] re: Match Objects always have a boolean value of True

2012-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16304 ___

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16312 ___ ___

[issue16317] Mention lzma module in tutorial

2012-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2fc18ba8ca4a by Ezio Melotti in branch '3.3': #16317: mention lzma in the tutorial. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/2fc18ba8ca4a New changeset f2f615b5718a by Ezio Melotti in branch 'default': #16317: merge with 3.3.

[issue16317] Mention lzma module in tutorial

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +chris.jerdonek title: It would be nice if documentation pages linked to other versions of the same document - documentation pages should link to other versions of the same page ___

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Can you give an example of what you would like the API to look like (i.e. what you would like to be able to type from the command-line if, say, configuring logging as in the SO post)? I'm not sure I understand why a wrapper script isn't a good enough

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-26 Thread Michael Foord
Michael Foord added the comment: I would do this with a module level (global) flag as to whether the initial set up has been done and a BaseTestCase class that checks this flag and calls a set up function if it hasn't been done yet (and then sets the flag). --

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-26 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16312 ___ ___

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
New submission from Yury Selivanov: This patch adds a dropdown to python documentation top toolbar: https://dl.dropbox.com/u/21052/python/p3_doc_dd.png This patch version is for python 3.3 3.4 docs theme, but I can quickly make patches for 3.2-style and below. JavaScript that monitors

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16331 ___ ___

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch. What happens if the module doesn't exist in a previous version or if it has a different name? It's probably not necessary to include all those versions. -- nosy: +ezio.melotti stage: - patch review versions: +Python 2.7 -Python

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: What happens if the module doesn't exist in a previous version or if it has a different name? As I said in the first message: 2) Before making a redirect, is checks that the doc page exists for the selected python version, and if not, then it simply

[issue9192] Add a a way to determine float format

2012-10-26 Thread Mark Dickinson
Mark Dickinson added the comment: What use-cases did you have in mind for this? (I assume that something motivated this report.) It seems to me that there's not actually much to say about the float format: the only format that Python realistically supports these days is the IEEE 754

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: I left a review on rietveld. FWIW we discussed this already somewhere, and IIRC the two main issues were: 1) mapping new/renamed/delete files between versions; 2) making this work while building the docs locally; Redirecting to 'http://docs.python.org/{version}'

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: See #8040. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16331 ___ ___ Python-bugs-list mailing list

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: 1) mapping new/renamed/delete files between versions; I think that this dropdown is mostly like to be used to switch between somewhat recent python versions, like '3.2' - '3.3', '2.7' - '3.3', and not between '2.4' - '3.4' And most of the internet links

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: I think that this dropdown is mostly like to be used to switch between somewhat recent python versions, like '3.2' - '3.3', '2.7' - '3.3', and not between '2.4' - '3.4' I mostly want to switch between 2.x and 3.x, and several modules got renamed between

[issue14901] Python Windows FAQ is Very Outdated

2012-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___

[issue10936] Simple CSS fix for left margin at docs.python.org

2012-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10936 ___ ___

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: I mostly want to switch between 2.x and 3.x, and several modules got renamed between these versions. There are also new modules on each release (5 new ones in 3.3). To make that work we'll need to have a modules mapping between 2nd and 3rd versions. It

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Éric Araujo
Éric Araujo added the comment: If you want to work on this you should also consider that the URLs used on docs.python.org don't necessary match the directory structure present when building the doc locally. I think this is irrelevant; this feature is intended for the web site, not for

[issue16325] PEP 8 refers to reference to PEP 8

2012-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Where there's conflict, Guido's style rules for the purposes of this PEP. I think this sentence should go. The only way that I can make sense of it is that Guido's and Barry's documents have rules that are not in PEP 8 and that if they conflict, Guido's wins.

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, I'm not sure what we should do with #8040. I searched for the existing issue before creating a new one, but obviously failed. Should we just close #8040 and point it to #16331? -- ___ Python tracker

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Éric Araujo
Éric Araujo added the comment: Typically we close the newer issue as duplicate of the existing one, unless the new has much more discussion or patches. I would close this one. About renamed modules: there’s a mapping in lib2to3 that contains the info. --

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, Ezio, This one has a patch attached with a relevant discussion review, so I'd close #8040. But if you guys decide to close this one and switch to #8040 - i'm fine. -- ___ Python tracker

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: As I said on #16331, it would be nice to have it, but it shouldn't block a patch that works for the website only (having it there is still better than not having it at all). What I meant to say is that taking this into account while writing the code is a good

[issue6478] time.tzset does not reset _strptime's locale time cache

2012-10-26 Thread Berker Peksag
Berker Peksag added the comment: Here is the second patch with Alexander Belopolsky's comments addressed. -- nosy: +berker.peksag versions: +Python 3.3, Python 3.4 -Python 3.1 Added file: http://bugs.python.org/file27732/issue6478.patch ___ Python

[issue6478] time.tzset does not reset _strptime's locale time cache

2012-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch looks good, but I have a few comments on the test: 1. Does it work on Windows? It seems to rely on Olson's TZ names. 2. Please use @run_with_tz decorator. -- ___ Python tracker

[issue16332] Use new exception handling syntax in Subprocess documentation

2012-10-26 Thread Berker Peksag
New submission from Berker Peksag: See: http://docs.python.org/whatsnew/2.6.html#pep-3110-exception-handling-changes Patch attached. -- assignee: docs@python components: Documentation files: subprocess-exception-2.7.patch keywords: patch messages: 173881 nosy: berker.peksag,

[issue16332] Use new exception handling syntax in Subprocess documentation

2012-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a69b4077afb by Ezio Melotti in branch '2.7': #16332: use except OSError as e in subprocess docs. Patch by Berker Peksag. http://hg.python.org/cpython/rev/7a69b4077afb -- nosy: +python-dev ___ Python

[issue16332] Use new exception handling syntax in Subprocess documentation

2012-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - pending type: - enhancement ___ Python tracker

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: I recommend closing this as a duplicate. -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16331 ___

[issue16332] Use new exception handling syntax in Subprocess documentation

2012-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16332 ___ ___

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: yselivanov: please resubmit the patch to the original issue. -- nosy: +loewis resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16331

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- superseder: - documentation pages should link to other versions of the same page ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16331 ___

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: [on yselivanov's patch] I think the menu should drop versions that are not maintained anymore, i.e. anything older than 2.5 (including). If that sounds too harsh, a single item older could be added that always navigates to the version selection page. With

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, Ezio, I'd like to make the version dropdown to be configurable. The question is--I can add an option (set to False by default) to conf.py. Will you have a way to override it on the 'docs.python.org'? -- nosy: +yselivanov

[issue16307] multiprocess.pool.map_async callables not working

2012-10-26 Thread Janne Karila
Janne Karila added the comment: The length assertion protects the test from breaking with IndexError. How about this? Though, it looks like two test cases to me. +self.pool.map_async(int, ['1'], +callback=call_args.append, +

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's the other option. -- Added file: http://bugs.python.org/file27734/qualname2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16271 ___

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Georg Brandl
Georg Brandl added the comment: A few comments: * If the issue with patch is closed as duplicate, the patch should be attached to the superseder. * The patch looks awfully long for such a simple option list. (e.g., get_version() is just lambda x: x[:3], no need for a function to do that.) *

[issue16333] Trailing whitespace in json dump when using indent

2012-10-26 Thread Zach Mathew
New submission from Zach Mathew: When using the indent option in json.JSONEncoder, extra trailing whitespace (preceding the newline) is added to list and dict items. For example: import json json.dumps(['foo', 'bar'], indent=1) '[\n foo, \n bar\n]' Notice the blank space between foo, and

[issue16243] Add example for inspect module doc

2012-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d3b616fc702 by Andrew Svetlov in branch '3.3': Issue #16243: add example for inspect.formatargspec http://hg.python.org/cpython/rev/9d3b616fc702 New changeset a0337031a6b7 by Andrew Svetlov in branch 'default': Merge issue #16243: add example for

[issue16243] Add example for inspect module doc

2012-10-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Berker. I feel the patch is good enough to close the issue. If anybody want to add some value please reopen. -- nosy: +asvetlov resolution: - fixed stage: - committed/rejected status: open - closed ___

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: If the issue with patch is closed as duplicate, the patch should be attached to the superseder. Attached now. Although, please don't use it. I'll upload an updated version soon. The patch looks awfully long for such a simple option list. (e.g.,

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a new patch, with all previous issues resolved. Version dropdown can be enabled by the new 'pydoc_versionswitcher' config property (False by default). Please review and test (I've done lots of testing by injecting the JS on live python docs site,

[issue9767] Failures in json doc examples

2012-10-26 Thread R. David Murray
R. David Murray added the comment: See issue 16333 for the bug report against the json trailing whitespace. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9767 ___

[issue16333] Trailing whitespace in json dump when using indent

2012-10-26 Thread R. David Murray
R. David Murray added the comment: Thanks for the report and patch. I think we'll need a fix for the C version, too (unless it doesn't have the bug). -- nosy: +r.david.murray stage: - patch review versions: -Python 2.6, Python 3.1, Python 3.5 ___

  1   2   >