[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Kerrick Staley
New submission from Kerrick Staley : This issue was opened to track the implementation of PEP 394, which governs the way the python command and commands like python2 and python3 work on Unix-like systems. -- components: Installation messages: 141034 nosy: Kerrick.Staley priority

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Kerrick Staley
Kerrick Staley added the comment: Here is a patch that will update the Makefile.pre.in file for 2.7, causing it to install python2 and python2-config when run with "make install" (or just "make bininstall"). This does not update any documentation. Also, it appears that Id

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Kerrick Staley
Kerrick Staley added the comment: This updates the links created by "make install" or "make bininstall" in Python 3 so that they're in agreement with the recommendations of PEP 394; it's the equivalent of version27_links.patch but is for Python 3

[issue40403] pdb does not drop into debugger upon SyntaxError caused by ast.literal_eval

2020-04-26 Thread Kerrick Staley
New submission from Kerrick Staley : Summary: When you call ast.literal_eval on a string that does not contain valid Python code, it raises a SyntaxError. This causes pdb to exit instead of stopping execution at the point that the SyntaxError was raised. To reproduce: 1. Create a Python file

[issue41096] Need command to exit PDB interactive shell

2020-06-23 Thread Kerrick Staley
New submission from Kerrick Staley : In PDB, when you use "interact" to enter an interactive shell, the only way to exit that shell is to send an end-of-transmission (Ctrl+D) character. In some environments, such as Jupyter, this is awkward to do. Here is a StackOverflow post wh

[issue41096] Need command to exit PDB interactive shell

2020-06-24 Thread Kerrick Staley
Kerrick Staley added the comment: Serhiy: I'm referring to the interactive mode that can be entered by typing "interact" in PDB. Here are reproduction instructions: 1. Run "python3" command. 2. In Python shell, type "import pdb; pdb.set_trace()". 3. In P

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2020-10-04 Thread Kerrick Staley
New submission from Kerrick Staley : It would be useful to provide a wrapper (in the Python sqlite3 stdlib module) for the sqlite3_serialize API. This API allows you to get a database's content as a byte string, as if you had called open('foo.sqlite3', 'rb').read(