[issue24912] The type of cached objects is mutable

2015-08-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Probably the patch on that bug should be reverted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24912 ___

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

2015-08-30 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com: Added file: http://bugs.python.org/file40299/README2.7-pgo-v01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

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

2015-08-30 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com: Added file: http://bugs.python.org/file40300/README3.6-pgo-v01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

[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. --

[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

[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: Marting Panter: I'm getting the same problem with a completely empty ~/.python_history file. Moreover, I was able to reproduce a similar bug in gdb. I'll try seeing if I can create a minimal GNU readline-using program here that reproduces it. --

[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

[issue24912] The type of cached objects is mutable

2015-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Later I had got a crash. class S(str): __slots__ = () ... 'a'.__class__ = S def f(a): pass ... Fatal Python error: non-string found in code slot Current thread 0xb7583700 (most recent call first): Aborted (core dumped) The stdlib is full of implicit

[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: open

[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

[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)

[issue24965] Implement PEP 498: Literal String Formatting

2015-08-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24965 ___ ___ Python-bugs-list mailing

[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 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

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

2015-08-30 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- assignee: - jason.coombs hgrepos: +315 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12885 ___

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

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

[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

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue5319

[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

[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

[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 rdmur...@bitdance.com: -- resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24958 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue24966 ___ ___

[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 =

[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 d...@r75.es: -- 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

[issue23639] Not documented special names

2015-08-30 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- dependencies: +__base__ undocumented stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23639 ___

[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