[issue24958] Segfault in REPL after pressing "r" and PgUp twice (on Mageia Linux x86-64 6)

2015-08-30 Thread Shlomi Fish
Shlomi Fish added the comment: Martin: [sorry for misspelling your name] I was now able to reproduce the same problem using rlwrap (see http://utopia.knoware.nl/~hlub/rlwrap/ ). I'll report it to the readline problem. -- ___ Python tracker

[issue24912] The type of cached objects is mutable

2015-08-30 Thread Nathaniel Smith
Nathaniel Smith added the comment: Python goes to great lengths to make __class__ assignment work in general (I was surprised too). Historically the exception has been that instances of statically allocated C extension type objects could not have their __class__ reassigned. Semantically, this

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-30 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: That's a good point Skip. I added another set of patches, just for the README files, explaining the entire procedure, so now anyone reading it will see that PGO is available, what are the steps involved and a brief comment about the warning. --

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-30 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40299/README2.7-pgo-v01.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-30 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40300/README3.6-pgo-v01.patch ___ Python tracker ___ ___ Python-bugs-l

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-30 Thread Martin Panter
Martin Panter added the comment: Maybe 255 is a reasonable choice. Another option is some value slightly less than 126, since Posix shells have special meanings for 126, 127, and > 128 values. My patches already document the exit status used under the Py_Exit() function: “If :c:func:`Py_Final

[issue24912] The type of cached objects is mutable

2015-08-30 Thread Mark Shannon
Mark Shannon added the comment: Please revert c0d25de5919e. Breaking the interpreter in order to facilitate some obscure use case is unacceptable. If you want to do fancy stuff with modules, fine. Take a look at the source of the six module https://bitbucket.org/gutworth/six/src/cd1e81d33eaf3

[issue24958] Segfault in REPL after pressing "r" and PgUp twice (on Mageia Linux x86-64 6)

2015-08-30 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa3ac31cfa44 by Raymond Hettinger in branch '3.4': Issue #24931: Resolve __dict__ conflict in namedtuple subclasses. https://hg.python.org/cpython/rev/fa3ac31cfa44 -- nosy: +python-dev ___ Python tracker

[issue24963] ipaddress.IPv6Network doc typo

2015-08-30 Thread zodalahtathi
New submission from zodalahtathi: This is probably not the biggest bug ever, but in the doc for ipaddress.IPv6Network: "An integer packed into a bytes object of length 16, bit-endian" should be changed to: "An integer packed into a bytes object of length 16, big-endian" -- assignee:

[issue24912] The type of cached objects is mutable

2015-08-30 Thread Nathaniel Smith
Nathaniel Smith added the comment: Wow, Mark, why so hostile? What's so wrong with my proposed less-intrusive patch that you feel the need to call for reversion while condescendingly pointing me to a non-solution? Of course I know about six. There was a whole python-dev thread about how neithe

[issue24965] Implement PEP 498: Literal String Formatting

2015-08-30 Thread Eric V. Smith
New submission from Eric V. Smith: See PEP 498. >>> f'New for Python {sys.version.split()[0]}' 'New for Python 3.6.0a0' -- assignee: eric.smith components: Interpreter Core files: pep-498.diff keywords: patch messages: 249362 nosy: eric.smith priority: normal severity: normal status: op

[issue24912] The type of cached objects is mutable

2015-08-30 Thread Mark Shannon
Mark Shannon added the comment: Nathaniel, I'm hostile to this patch remaining in the code base. I'm not hostile to you, sorry that I came across as that way. The proper way to deal with issues like this is to revert the change and then create a new patch, otherwise it becomes impossible to rev

[issue24965] Implement PEP 498: Literal String Formatting

2015-08-30 Thread Eric V. Smith
Eric V. Smith added the comment: One thing I've done in this implementation is to build up a string to pass to str.format(), instead of using the original string. This new string uses positional parameters instead of named parameters. I had originally proposed to add a string.interpolate() to

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-08-30 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- keywords: +patch Added file: http://bugs.python.org/file40303/faf37fc3b097.diff ___ Python tracker ___ ___

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-08-30 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- assignee: -> jason.coombs hgrepos: +315 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue24952] stack_size([size]) is actually stack_size(size=0)

2015-08-30 Thread mattip
mattip added the comment: Add the default value 0 to the documentation, please review this patch and not the previous one -- versions: -Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40304/stack_size.patch ___ Python track

[issue24965] Implement PEP 498: Literal String Formatting

2015-08-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24952] stack_size([size]) is actually stack_size(size=0)

2015-08-30 Thread mattip
mattip added the comment: Add default value of 0 to documentation for 2.7 -- versions: +Python 3.5 -Python 2.7 Added file: http://bugs.python.org/file40305/stack_size2.7.patch ___ Python tracker ___

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-30 Thread Robert Collins
Robert Collins added the comment: It seems to me that how, and when, Python exits the process is important to folk who will never ever touch the C API. -- ___ Python tracker ___

[issue24963] ipaddress.IPv6Network doc typo

2015-08-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset a892c67fa0eb by Benjamin Peterson in branch '3.4': fix spelling that was a bit confused (closes #24963) https://hg.python.org/cpython/rev/a892c67fa0eb New changeset b5434aff4e84 by Benjamin Peterson in branch '3.5': merge 3.4 (#24963) https://hg.pyt

[issue24966] shutil.get_terminal_size() throws ValueError is stdout is detached, no fallback

2015-08-30 Thread Roberto Sánchez
New submission from Roberto Sánchez: After the stdout stream has been overwritten and detached, the method shutils.get_terminal_size throws a ValueError exception and no fallback value is returned. Code to reproduce it: >>> import os, sys, codecs, shutils >>> sys.stdout = codecs.getwr

[issue24966] shutil.get_terminal_size() throws ValueError if stdout is detached, no fallback

2015-08-30 Thread Roberto Sánchez
Changes by Roberto Sánchez : -- title: shutil.get_terminal_size() throws ValueError is stdout is detached, no fallback -> shutil.get_terminal_size() throws ValueError if stdout is detached, no fallback ___ Python tracker

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-08-30 Thread Martin Panter
Martin Panter added the comment: Such a change would involve adding a new API, so should go into a new version of Python. Thomas: a diff rather than a full copy of the changed file would be more convenient. Also, if this gets accepted, test cases and documentation would be needed. It is also

[issue24966] shutil.get_terminal_size() throws ValueError if stdout is detached, no fallback

2015-08-30 Thread R. David Murray
R. David Murray added the comment: See also issue 24920. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24966] shutil.get_terminal_size() throws ValueError if stdout is detached, no fallback

2015-08-30 Thread R. David Murray
R. David Murray added the comment: In this case it might be better to leave the error. The buffer being detached would seem to be a programming error. What would be the use case for using get_terminal_size in a program that detaches the standard stream buffer? -- ___

[issue24952] stack_size([size]) is actually stack_size(size=0)

2015-08-30 Thread Martin Panter
Martin Panter added the comment: This version looks okay. I’ll commit it when I get a chance. BTW, there’s no point changing the version for each patch. The version field only applies to the whole bug report. -- assignee: docs@python -> martin.panter nosy: +berker.peksag stage: -> com

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-30 Thread Martin Panter
Martin Panter added the comment: So far I haven’t noticed much documentation on the exit statuses generated by Python itself (e.g. for unhandled exceptions). I did find some discussion in , so perhaps I will add to that. Since it implies va

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-08-30 Thread Martin Panter
Martin Panter added the comment: Here is a new patch setting the exit status to 120. I also added a What’s New entry, and some more documentation under sys.exit(). Robert, I added an entry to /PC/python3.def, following the lead of your patch in Issue 2786. You mentioned modifying the return va

[issue24952] stack_size([size]) is actually stack_size(size=0)

2015-08-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 328383905eaf by Martin Panter in branch '3.4': Issue #24952: Clarify default argument of stack_size() in threading, _thread https://hg.python.org/cpython/rev/328383905eaf New changeset 606082fa2804 by Martin Panter in branch '3.5': Issue #24952: M

[issue24952] stack_size([size]) is actually stack_size(size=0)

2015-08-30 Thread Martin Panter
Martin Panter added the comment: Thanks for the patches -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue24911] Context manager of socket.socket is not documented

2015-08-30 Thread Martin Panter
Martin Panter added the comment: Here is my proposed patch -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file40307/socket-context.patch ___ Python tracker ___

[issue12833] raw_input misbehaves when readline is imported

2015-08-30 Thread Martin Panter
Martin Panter added the comment: I wonder if this information would be better off under the input() function, rather than under the Readline module itself. Also see Issue 17337, about control codes in the Readline prompt. Since these issues both relate to the prompt, it might be worth document

[issue23639] Not documented special names

2015-08-30 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +__base__ undocumented stage: needs patch -> patch review ___ Python tracker ___ ___ Pytho

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2015-08-30 Thread Palm Kevin
Palm Kevin added the comment: @ncoghlan: Not PySys_SetPath, but Py_SetPath is causing the problem (you mentionned PySys_SetPath in your message msg249311) I discovered PySys_SetPath only last Friday. In fact, in my case, the usage of PySys_SetPath (after Py_Initialize) instead of Py_SetPath (b

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-08-30 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good and would fix the reported problem. Being a backport from setuptools also gives confidence. Does the patch change the behaviour for the handling of the MANIFEST file (not MANIFEST.in)? My previous message mentions that the docs say that one can

[issue23639] Not documented special names

2015-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think most of these are either implementation details > or "private" names, so there is no need to document them. Also, we want to be careful to not guarantee implementation details that are subject to change. Most of these are not intended for users t