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

2015-08-29 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com: Added file: http://bugs.python.org/file40289/python3.6-pgo-v06.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

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

2015-08-29 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com: Added file: http://bugs.python.org/file40288/python2.7-pgo-v06.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

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

2015-08-29 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've updated the patches after review and implemented the checkup for llvm-profdata for both Linux and OSX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2015-08-29 Thread Sworddragon
Changes by Sworddragon sworddrag...@aol.com: -- nosy: +Sworddragon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9625 ___ ___ Python-bugs-list

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2015-08-29 Thread Simon Conseil
New submission from Simon Conseil: Hi, There is an issue in the webbrowser module for Mac OS when the BROWSER environment variable is set: Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type help, copyright, credits or license

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2015-08-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: I guess this isn't limited just to the raise from syntax. It also occurs if from exc is removed from the example above. -- title: unittest swallows part of stack trace using raise from with AssertionError - unittest swallows part of stack trace when

[issue24956] Default value for an argument that is not in the choices list gets accepted

2015-08-29 Thread R. David Murray
R. David Murray added the comment: That might be intentional, and in any case fixing it would be backward incompatible. I think we should just live with it. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

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

2015-08-29 Thread R. David Murray
R. David Murray added the comment: Sorry, should have been clearer a bug in python as opposed to one in Mageia's readline. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24958 ___

[issue24960] Can't use pip or easy_install with embeddable zip file.

2015-08-29 Thread Oleg N
New submission from Oleg N: Error: [Errno 2] No such file or directory: '...\\python35.zip\\lib2to3\\Grammar.txt'. Python35.zip from this archive: https://www.python.org/ftp/python/3.5.0/python-3.5.0rc2-embed-amd64.zip. Path is correct. -- components: Library (Lib) messages: 249329

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

2015-08-29 Thread Shlomi Fish
New submission from Shlomi Fish: After I run python3 (to run the REPL) and type r and then PgUp twice, I get a segfault. I'm on Mageia Linux x86-64 6 , but recall a similar problem happening before: shlomif@telaviv1:~$ python3 Python 3.4.3 (default, Aug 13 2015, 21:40:54) [GCC 4.9.2] on

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

2015-08-29 Thread R. David Murray
R. David Murray added the comment: What makes you think this is a bug in Python? Can you reduce the inputrc to the minimum that reproduces the problem? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

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

2015-08-29 Thread Shlomi Fish
Shlomi Fish added the comment: I'm attaching here the reduced, minimal, inputrc. I think it's a bug in Python because it doesn't happen with any other program that uses readline (bash, perl -d, etc.) that I checked. I'll check with a vanilla readline compiled from source from the GNU site ,

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

2015-08-29 Thread R. David Murray
R. David Murray added the comment: I can't reproduce it on my Gentoo box using 3.4 tip. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24958 ___

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

2015-08-29 Thread Shlomi Fish
Shlomi Fish added the comment: Hi all! Thanks for the investigation. I have now built readline-6.3 from source using: ./configure --prefix=$HOME/apps/readline-TO_DEL --with-curses=yes --enable-multibyte and installed it. Then I built python 3.4.3 from source against it by setting

[issue24961] shell stdout broken after exiting interactive python prompt

2015-08-29 Thread Ned Deily
Ned Deily added the comment: There have been other problems reported with MacPorts Python 3.4 using their default most recent version of the BSD libedit package. As far as I know, those problems have not yet been resolved but I can't get to the MacPorts issue tracker at the moment to check.

[issue24941] Add classproperty as builtin class

2015-08-29 Thread Eric Snow
Eric Snow added the comment: I've posted a counter-proposal on python-ideas: https://mail.python.org/pipermail/python-ideas/2015-August/035614.html Basically: instead of classproperty, add a more lenient alternative to classmethod which allows composition. I called it classresolved. class

[issue24941] Add classproperty as builtin class

2015-08-29 Thread Eric Snow
Eric Snow added the comment: I also posted a broader proposal: https://mail.python.org/pipermail/python-ideas/2015-August/035615.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24941

[issue24961] shell stdout broken after exiting interactive python prompt

2015-08-29 Thread Dave Hein
Dave Hein added the comment: Thanks. I installed py34-readline and rebuilt my virtualenv; all is well now. I put in a MacPorts ticket when their bugtracker gets back online. -- ___ Python tracker rep...@bugs.python.org

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

2015-08-29 Thread Nick Coghlan
Nick Coghlan added the comment: I think the current situation is mainly an artifact of our relative dearth of regression testing for embedded configurations, and the fact that we have very few core developers working for companies embedding CPython in larger applications. I do care about that

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

2015-08-29 Thread Martin Panter
Martin Panter added the comment: Well it looks like you’ve identified that PgUp triggers a history search. Perhaps it would be good to look at your /home/shlomif/.python_history file, assuming there is nothing sensitive in there. The strace output only indicates it is 411 bytes and gives the

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

2015-08-29 Thread Martin Panter
Martin Panter added the comment: According to the GDB backtrace, _rl_kscxt is a null pointer at https://github.com/Distrotech/readline/blob/readline-6.3/callback.c#L188, while the _rl_dispatch_callback() function doesn’t handle null pointers. Maybe you would find the Readline people more

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

2015-08-29 Thread eryksun
eryksun added the comment: Maybe the problem is using escape characters (0x1b) instead of \e. Try using the following: \e[5~: history-search-backward FWIW, your inputrc doesn't crash my system (64-bit Linux, readline 6.3 and Python 3.4). -- nosy: +eryksun

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

2015-08-29 Thread Skip Montanaro
Skip Montanaro added the comment: The latest patch worked fine for me (Mac OS X Yosemite). I've only tried with 2.7 so far. The only thing that was a bit mystifying were the errors during the initial profile run. There is so much that floats by in the terminal window that I completely missed

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

2015-08-29 Thread eryksun
eryksun added the comment: A gdb backtrace may be of more help than strace. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24958 ___ ___

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

2015-08-29 Thread Shlomi Fish
Shlomi Fish added the comment: gdb by full attached. -- Added file: http://bugs.python.org/file40296/py3.gdb-bt.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24958 ___

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

2015-08-29 Thread Skip Montanaro
Skip Montanaro added the comment: Not knowing a darn thing about this, I went ahead and made a provisional change to the README file. -- Added file: http://bugs.python.org/file40297/README.pgo ___ Python tracker rep...@bugs.python.org

[issue24961] shell stdout broken after exiting interactive python prompt

2015-08-29 Thread Dave Hein
New submission from Dave Hein: With 3.4.3 from an OS X terminal prompt, if I just enter the interactive Python REPL environment (by just entering the command python from the command line) and then exit (via exit() or Ctrl-D), then stdout appears to be broken ... I see no stdout output on the

[issue24272] PEP 484 docs

2015-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 192c654a7c93 by Zachary Ware in branch '3.5': Issue #24272: Remove usage of default reST role from typing docs https://hg.python.org/cpython/rev/192c654a7c93 New changeset 10a63ded324c by Zachary Ware in branch 'default': Issue #24272: Merge with

[issue24962] Unnecessary space in using/mac

2015-08-29 Thread TAKASE Arihiro
New submission from TAKASE Arihiro: https://docs.python.org/3.4/using/mac.html#configuration A newline in the file path of the .plist file makes a space in the rendered result. The attached patch fixes it. -- assignee: docs@python components: Documentation files: using_mac.patch

[issue24962] Unnecessary space in using/mac

2015-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ef2d694e976 by Zachary Ware in branch '2.7': Issue #24962: Remove space from filename https://hg.python.org/cpython/rev/3ef2d694e976 New changeset 2de6fba18ff6 by Zachary Ware in branch '3.4': Issue #24962: Remove space from filename

[issue24962] Unnecessary space in using/mac

2015-08-29 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report and patch! -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24962 ___ ___

[issue24912] The type of cached objects is mutable

2015-08-29 Thread Nathaniel Smith
Nathaniel Smith added the comment: Well, yeah, that indeed sucks. Not sure what the best solution is. Some options: 1) Don't do that then 2) Explicitly add a __class__ property to every immutable type, that unconditionally errors out on assignment. 3) Add a hack to typeobject.c checking for