[issue10481] subprocess PIPEs are byte streams

2014-04-14 Thread Sam Kimbrel
Sam Kimbrel added the comment: I've created a patch that updates the docs to reflect the behavior of communicate() and check_output(), which is that both the "input" argument and stdin/stdout/stderr PIPEs will convert to and from strings when self.univeral_newlines is True and must be bytes ot

[issue21219] WARNING: Inline literal start-string without end-string.

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Oops did not notice. Thanks for catching. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue20874] Tutorial section on starting python is out of date

2014-04-14 Thread Rafael Mejia
Rafael Mejia added the comment: Please review that attached patch. Feedback is welcome. -- keywords: +patch nosy: +Israfil Added file: http://bugs.python.org/file34835/issue_20874.patch ___ Python tracker

[issue21220] Enhance obmalloc allocation strategy

2014-04-14 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson: A new allocation policy, "lowest address strategy" improves fragmentation of memory in obmalloc. pools with available memory are chosen by lowest address preference. This increases the likelihood that unused pools are released to their correspondin

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19546] configparser leaks implementation detail

2014-04-14 Thread Claudiu.Popa
Claudiu.Popa added the comment: If there is anything left to do for this patch, please tell me. -- Added file: http://bugs.python.org/file34837/issue19546.patch ___ Python tracker __

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Eric Snow
Eric Snow added the comment: Okay from me, but Victor has a better idea of the string APIs. :) -- ___ Python tracker ___ ___ Python-bu

[issue4744] asynchat documentation needs to be more precise

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Could you review your patch, there is a mistake in the name of the project, it's asynchat and not asychat. The content seems to be right, not the reference and the title. Thank you so much for your help. -- nosy: +matrixise versions: +Python 3.5 -Pyt

[issue21221] Minor struct_time documentation bug

2014-04-14 Thread Andrew Scheller
New submission from Andrew Scheller: The documentation for time.struct_time (in Doc/library/time.rst) explains tm_isdst as "0, 1 or -1; see below" but then doesn't really go into further detail below, other than to say "A -1 argument as the daylight savings flag, passed to mktime() will usuall

[issue10224] Build 3.x documentation using python3.x

2014-04-14 Thread Ned Deily
Ned Deily added the comment: For 3.4.1 and 3.5, the Doc/Makefile no longer explicitly vendors sphinx and its dependencies (via svn), rather it assumes that an externally-supplied sphinx-build is available, for example, via a venv and pip. And the current versions of sphinx and its dependencie

[issue21219] WARNING: Inline literal start-string without end-string.

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed: 3.5 a85606b6de32 3.4 fb5516cbc522 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: compile error -> behavior ___ Python tracker _

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2014-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: After discussing this with Mark at the sprints, I'm going to close this. If someone comes up with a concrete proposal on python-ideas, we can revisit it. But as it is, there's not enough here to go on. There are a sufficient number of ideas and alternatives tha

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New patch with fix in proper place for side_effect for functions (includes test case). -- versions: +Python 3.3 -Python 3.5 Added file: http://bugs.python.org/file34838/issue17826_v3.patch ___ Python tracker

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-14 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-14 Thread Brett Cannon
Brett Cannon added the comment: We discussed this bug at the sprint and we all agreed that it should be fixed. It's an oversight and a bug that this behaviour is different between Windows and other platforms due to how 64-bit Windows treats longs. -- nosy: +brett.cannon __

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread STINNER Victor
STINNER Victor added the comment: I'm busy right now with Pycon (I organize a sprint to port OpenStack to Python 3). I will try to review the patch later this week. -- ___ Python tracker ___

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sure, there was at least one case in the patch, where the string resize was consider optional, and the code tried to recover if it didn't succeed. But I don't think we should be trying to change apis, even internal ones in python 2.7. -- _

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Can you attach some python code that reproduces this for you? According to both of the references below it doesn't sound like this is supposed to be a problem. http://pubs.opengroup.org/onlinepubs/9699919799/functions/freeaddrinfo.html claims "The freeaddr

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread R. David Murray
R. David Murray added the comment: This looks good, however we also need a documentation change indicating the new behavior, including a '.. versionchanged:: 3.5' tag, and an entry in whatsnew/3.5 in the 'other changes' section. -- ___ Python tracke

[issue10481] subprocess PIPEs are byte streams

2014-04-14 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21204] multiprocessing example does not work on Windows

2014-04-14 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- title: published examples don't work -> multiprocessing example does not work on Windows ___ Python tracker ___ _

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Interestingly, the interact command was added at changeset: $ hg log -v --pager cat -r $(hg blame Lib/pdb.py | grep do_interact | awk -F : '{print $1}') changeset: 66691:c2578a68879d user:Georg Brandl date:Sat Dec 04 11:20:26 2010 + files

[issue21151] winreg.SetValueEx causes crash if value = None

2014-04-14 Thread John Ehresman
John Ehresman added the comment: Here's a simple patch with a test. Oddly, the test doesn't fail before the fix is applied when run with rt.bat, but fails when run directly. -- keywords: +patch nosy: +jpe Added file: http://bugs.python.org/file34840/fix-none-value.diff ___

[issue20103] Documentation of itertools.accumulate is confused

2014-04-14 Thread Christian Hudon
Christian Hudon added the comment: The following patch improves (I hope) the documentation of itertools.accumulate. Comments and feedback welcome. Terry, I did not implement your suggestion of changing "returns" to "yields", as it would have made things inconsistent with the documentation (and

[issue18650] intermittent test_pydoc failure on 3.4.0a1

2014-04-14 Thread Ned Deily
Ned Deily added the comment: Thanks for noticing the errant setuptools egg in the --user site-packages location. That should not have been there. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue20956] tokenize module claims tokenize.tokenize returns namedtuple, but it doesn't

2014-04-14 Thread Sam Kimbrel
Sam Kimbrel added the comment: Attached patch to update 2.7 docs to refer to the plain-old-tuple returned from generate_tokens(). -- keywords: +patch nosy: +sam.kimbrel Added file: http://bugs.python.org/file34841/20956-tokenize-docs.diff ___ Python

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f23648b7c97 by R David Murray in branch '3.4': #15104: improve the discussion of __main__. http://hg.python.org/cpython/rev/4f23648b7c97 New changeset 94ac365bf1b7 by R David Murray in branch 'default': Merge: #15104: improve the discussion of __ma

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks, Sam. I did not apply this to 2.7 because I'm not sure if the __main__.py is supported there. Can someone check? -- ___ Python tracker __

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg216177 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks, Sam. I did not apply this to 2.7 because I'm not sure if the __main__.py is supported there. Can someone check? -- type: enhancement -> behavior versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue10481] subprocess PIPEs are byte streams

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 267fff541bda by Andrew Kuchling in branch 'default': #10481: describe universal_newlines' effect on communicate()/check_output() output (alternately bytes or strings) http://hg.python.org/cpython/rev/267fff541bda -- nosy: +python-dev _

[issue17861] put opcode information in one place

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New patch with .hgtouch file details. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34842/issue17861_v3.patch ___ Python tracker _

[issue10481] subprocess PIPEs are byte streams

2014-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your patch! -- nosy: +akuchling resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2014-04-14 Thread Caelyn McAulay
Caelyn McAulay added the comment: Changed documentation to state that ValueError should be raised if any operation (excluding close()) is called on a closed stream. This appears to be what is done in iobase.c; and some investigation of inheriting types (rawiobase, fileio, bufferedio, etc.) ind

[issue1704474] optparse tests fail under Jython

2014-04-14 Thread Christian Hudon
Christian Hudon added the comment: Which version of Jython should I concentrate on to make these tests pass? The 2.5.4 release candidate, or the 2.7 beta? -- nosy: +chrish42 ___ Python tracker __

[issue8901] Windows registry path not ignored with -E option

2014-04-14 Thread John Ehresman
John Ehresman added the comment: Is still an issue with importlib? At this point, I don't think this change can be made on 2.7 or 3.2. -- nosy: +jpe ___ Python tracker ___ _

[issue17380] initproc return value is unclear

2014-04-14 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20874] Tutorial section on starting python is out of date

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: In your patch, you do not explain how to enable the command line editing. Can you add this part, or just add the reference to the existing doc? -- nosy: +matrixise ___ Python tracker

[issue10224] Build 3.x documentation using python3.x

2014-04-14 Thread Georg Brandl
Georg Brandl added the comment: Yep, thanks for the reminder. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue21204] multiprocessing example does not work on Windows

2014-04-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ah, Python 2.7. Note that the example is gone in Python 3, as part of the large change in issue8713. -- ___ Python tracker ___ ___

[issue21204] multiprocessing example does not work on Windows

2014-04-14 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: -loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue10965] dev task of documenting undocumented APIs

2014-04-14 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10224] Build 3.x documentation using python3.x

2014-04-14 Thread Éric Araujo
Éric Araujo added the comment: Do we need to change Doc/Makefile to have “PYTHON = python3” or even “PYTHON = ./python” (so doctests run with the development version)? -- ___ Python tracker ___

[issue14910] argparse: disable abbreviation

2014-04-14 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18401] Tests for pdb import ~/.pdbrc

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Adding a parameter is an enhancement. Probably not a bad thing to have anyway, but it can only go in 3.5. Since this isn't something that causes problems for production code, that seems fine. (The alternative would be to say have a private class variable t

[issue8901] Windows registry path not ignored with -E option

2014-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think importlib changed anything in that regard (since one of the goals was too keep compatibility with all the old behaviours). Indeed the patch probably needs to be retargetted for 3.5. -- nosy: +brett.cannon, eric.snow, ncoghlan, pitrou stage

[issue21222] Mock create_autospec with name argument fails

2014-04-14 Thread Kushal Das
New submission from Kushal Das: >>> from unittest import mock >>> def b(): ... print("hello") ... >>> q = mock.create_autospec(b, name="a") Traceback (most recent call last): File "", line 1, in File "/home/kdas/code/python/cpython3/Lib/unittest/mock.py", line 2092, in create_autospec

[issue14216] ImportError: No module named binascii

2014-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: No traffic on bug in 2 years, and not clear if there's anything to fix. Closing. -- nosy: +akuchling resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue20983] Python 3.4 'repair' Windows installation does not install pip & setuptools packages

2014-04-14 Thread Don DeZutter
Don DeZutter added the comment: On Windows 7 SP1 x64 after having installed Python 3.3 (x64) in “c:\Python33” and then subsequently installing Python 3.4 (x64) in “c:\Python34”, and then uninstalling the Python 3.3 (x64) and I’m not sure what else I may have done, I can no longer do any of the

[issue20956] tokenize module claims tokenize.tokenize returns namedtuple, but it doesn't

2014-04-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-14 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr added the comment: My proposal is that both: - add_mutually_exclusive_group() - add_argument_group() print optional arguments in the same way when title and/or description are provided. I've attached a test case of the proposed behavior. Please, let me know if you have any o

[issue16537] Python’s setup.py raises a ValueError when self.extensions is empty

2014-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch LGTM to me too; someone can probably just commit it. -- nosy: +akuchling stage: patch review -> commit review ___ Python tracker ___ __

[issue21204] multiprocessing example does not work on Windows

2014-04-14 Thread jmaki
jmaki added the comment: Upon further investigation, this may be related to: http://bugs.python.org/issue1378 However, it seems the issue is not checked-in to Windows release for 2.x? Regards, John -- ___ Python tracker

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e3c64470629 by Michael Foord in branch '3.4': Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works http://hg.python.org/cpython/rev/1e3c64470629 -- nosy: +python-dev _

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2014-04-14 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue20956] tokenize module claims tokenize.tokenize returns namedtuple, but it doesn't

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d4f5a88b94b4 by Terry Jan Reedy in branch '2.7': Closes #20956: 2.7 tokenize does not produce named tuples. Patch by Sam Kimbrel. http://hg.python.org/cpython/rev/d4f5a88b94b4 -- nosy: +python-dev resolution: -> fixed stage: -> committed/r

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread R. David Murray
R. David Murray added the comment: OK, if you think it is worthwhile in the text, then sure. But yeah, not as a ..note. And yes, I think we should keep backporting relevant doc patches. Especially since Google results still land one on the 2.7 docs... -- ___

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith : -- versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mai

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Jeff Ramnani
Jeff Ramnani added the comment: > Really? Apple's packaging looks almost criminal here. Apple has deprecated their bundled version of OpenSSL. This issue has more details, http://bugs.python.org/issue17128 -- nosy: +jramnani ___ Python tracker

[issue21223] fix test_site/test_startup_imports when some of the extensions are built as builtins

2014-04-14 Thread Matthias Klose
New submission from Matthias Klose: fix test_site/test_startup_imports when some of the extensions are built as builtins. --- a/Lib/test/test_site.py Mon Apr 14 12:24:37 2014 -0400 +++ b/Lib/test/test_site.py Mon Apr 14 22:17:57 2014 +0200 @@ -459,7 +459,8 @@ # http://bugs.pyth

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset e457de60028c by Michael Foord in branch 'default': Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names. http://hg.python.org/cpython/rev/e457de60028c -- nosy: +python-dev resolution: -> fixed s

[issue1704474] optparse tests fail under Jython

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I'm guessing they've got a local fix in the release candidate and won't change even their test code there, so I'd guess the beta. But the jython folks would really be the ones to ask. Perhaps they will respond here (they are not at pycon). --

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-14 Thread Tatiana Al-Chueyr
Changes by Tatiana Al-Chueyr : Removed file: http://bugs.python.org/file34844/test_argparse_mutex_with_title.py ___ Python tracker ___ ___ Pyt

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-14 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr added the comment: uploading test file -- Added file: http://bugs.python.org/file34845/test_argparse_mutex_with_title.py ___ Python tracker ___

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 211eeb97b352 by Gregory P. Smith in branch '3.4': Add conditional code for android's lack of definition of SYS_getdent64. http://hg.python.org/cpython/rev/211eeb97b352 New changeset 9f89958ded0a by Gregory P. Smith in branch 'default': Add condition

[issue984870] curses: getmaxyx() breaks when the window shrinks

2014-04-14 Thread Christian Hudon
Christian Hudon added the comment: I get the same traceback. The traceback happens only when the window is shrunk below the size specified in derwin(). It's easy to see this by changing the first and second arguments to the derwin call to something like 2, 2, and then you can resize the window

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-04-14 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.5 ___ Python tracker ___ _

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50fe497983fd by Eric V. Smith in branch '3.4': Issue #13598: Added acknowledgements to Misc/NEWS. http://hg.python.org/cpython/rev/50fe497983fd -- ___ Python tracker _

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: Here's an updated patch, for PyLong_AsUnsignedLongAndOverflow only, including docs and tests. -- keywords: +patch Added file: http://bugs.python.org/file34846/pylong_as_unsigned_long_and_overflow.patch ___ Python tr

[issue21225] io.py: Improve docstrings for classes

2014-04-14 Thread A.M. Kuchling
New submission from A.M. Kuchling: io.py contains the following to declare ABCs for some of its classes: class IOBase(_io._IOBase, metaclass=abc.ABCMeta): pass (and similarly for RawIOBase, BufferedIOBase, TextIOBase). _io._IOBase has an extensive docstring, but IOBase doesn't. (Python doe

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad74229a6fba by Eric V. Smith in branch '3.4': Issue #13598: Add auto-numbering of replacement fields to string.Formatter. http://hg.python.org/cpython/rev/ad74229a6fba -- nosy: +python-dev ___ Python tra

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-14 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Hi, With this issue, I would like to ask you to use the last version of the HTTP protocol in the BaseHTTPRequestHandler for Python 3.5. Because this one uses the version 1.0 of the protocol for the backward-compatibility. https://docs.python.org/3/library/

[issue20874] Tutorial section on starting python is out of date

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Just as a point of information, when making a patch like this it is best to change the smallest number of lines possible, without worrying about line wrapping. This allows us to see just what was changed. The committer can then reflow the paragraph (actuall

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread Glenn Jones
Glenn Jones added the comment: Added docs to patch -- Added file: http://bugs.python.org/file34848/issue15916-with-docs.patch ___ Python tracker ___ _

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: It may not just the be the version, but the capabilities. We have ensure that capabilities are met/added before updated the version. Thanks for filing the issue. -- nosy: +orsenthil ___ Python tracker

[issue20874] Tutorial section on starting python is out of date

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: David, thank you for this comment about the automatic activation of the command line editing. -- ___ Python tracker ___ __

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Guido van Rossum
Guido van Rossum added the comment: Yuri, thanks for the test, but why would the patch need a version check? Shouldn't the work-around work equally well in Python versions that don't need it? Maybe all we need is a comment explaining that it is a work-around and a hint that eventually we shoul

[issue21226] PyImport_ExecCodeModuleObject not setting module attributes

2014-04-14 Thread Trevor Caira
New submission from Trevor Caira: In Python/import.c, PyImport_ExecCodeModuleObject creates a new module object but doesn't set all of the attributes required for modules, such as __spec__ or __loader__. This breaks mod_wsgi from 3.3 and up, which depends on PyImport_ExecCodeModuleEx, which d

[issue20874] Tutorial section on starting python is out of date

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Actually I take it back, the patch as a patch also has a couple issues: the line lengths are not in fact less than 80 characters in any case, and there is trailing whitespace on several lines. Could you redo it with just the minimum lines changed and no trail

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am a bit puzzled. According to https://docs.python.org/2.7/using/cmdline.html#interface-options __main__.py (not indexed) has been supported since 2.5. On the other hand, recursively grepping Lib for 'e' in __main__.py files hits about 20 files in 3.4 but onl

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: gunicorn has an implementation of the HTTP/1.1 protocol, we can ask to the author of this project if we can use its code and reuse it in the standard library. -- ___ Python tracker

[issue1704474] optparse tests fail under Jython

2014-04-14 Thread Christian Hudon
Christian Hudon added the comment: I'll use Jython 2.7. The Jython people can backport the fix to 2.5.4, if they want it there too. So... this is marked as related to Python 3.2, but Jython is on Python 2 of course. I'll just take the version as being wrong. So, what should the patch that fix

[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks. Could you also change 'Invalid syntax' to 'Unsupported syntax', per the last bit of the discussion between Terry and I? -- ___ Python tracker ___

[issue21220] Enhance obmalloc allocation strategy

2014-04-14 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
Glenn Jones added the comment: Uploaded new patch with a little more about getting build-deps installed. -- Added file: http://bugs.python.org/file34849/issue21215.patch ___ Python tracker _

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Did you hand test it? Also, you could open a new issue to add tests for the ftplib cli, and probably improve and document it? It was designed as a test, but some people may be using it and it might even be actually useful :) --

[issue21223] fix test_site/test_startup_imports when some of the extensions are built as builtins

2014-04-14 Thread Eric Snow
Eric Snow added the comment: Looks good to me. This should not impact the standard build, but is useful for alternate builds. Does something similar need to happen to also exclude frozen modules? -- nosy: +brett.cannon, ncoghlan ___ Python tracker

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Yury Selivanov
Yury Selivanov added the comment: Please see the corowrapper_02.patch. I've removed the version check, now it's much simpler. -- Added file: http://bugs.python.org/file34850/corowrapper_02.patch ___ Python tracker

[issue10318] "make altinstall" installs many files with incorrect shebangs

2014-04-14 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: -orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue16278] Improve os.rename documentation and tests

2014-04-14 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: -orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue1191964] asynchronous Subprocess

2014-04-14 Thread Josiah Carlson
Josiah Carlson added the comment: I ended up eliminating the overlapped IO cancel call on Windows. Better to be correct than to minimize internal state. Instead, we keep a reference to the overlapped IO object, and any attempts to write to the child stdin before the previous overlapped IO comp

[issue17078] string.Template.safe_substitute hard-wires "braces" as {}

2014-04-14 Thread Sam Kimbrel
Sam Kimbrel added the comment: Florent Xicluna already fixed this in r84888 for 3.2+; I've tested that the patch applies cleanly to 2.7 and tests pass. Someone with the commit bit should transplant that commit into 2.7 as it does not change the public API to this module. -- nosy: +sam

[issue15795] Zipfile.extractall does not preserve file permissions

2014-04-14 Thread Glenn Jones
Glenn Jones added the comment: Here is an updated patch that applies cleanly to head. Tests pass against head of repo. -- nosy: +Glenn.Jones Added file: http://bugs.python.org/file34852/issue15795_updated.patch ___ Python tracker

[issue12916] Add inspect.splitdoc

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I move the pydoc.splitdoc function to the inspect module. Update the documentation. Add a unittest for this new function. I can provide an other patch for the backward-compatiblity if this function is used by an other module than pydoc. -- keywords: +

[issue21222] Mock create_autospec with name argument fails

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Fix for the issue with test case. We are checking name in keyword arguments, if found replace _name with it and delete it from keyword arguments. -- keywords: +patch Added file: http://bugs.python.org/file34854/issue21222.patch

[issue8931] '#' has no affect with 'c' type

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12916] Add inspect.splitdoc

2014-04-14 Thread R. David Murray
R. David Murray added the comment: The patch looks good, but 'splitdoc' needs to remain a valid name for the function in the pydoc namespace. You could just add 'splitdoc = inspect.splitdoc' after the import statements. (The reason it needs to remain valid is for backward compatibility...the

<    1   2   3   >