[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2020-02-10 Thread Tim Smith
Change by Tim Smith : -- keywords: +patch pull_requests: +17812 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18438 ___ Python tracker <https://bugs.python.org/issu

[issue33725] Python crashes on macOS after fork with no exec

2019-05-24 Thread Tim Smith
Change by Tim Smith : -- nosy: +tdsmith ___ Python tracker <https://bugs.python.org/issue33725> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-22 Thread Tim Smith
Change by Tim Smith <pythonb...@tim-smith.us>: -- nosy: +tdsmith ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32616> ___ __

[issue31521] segfault in PyBytes_AsString

2017-09-19 Thread Tim Smith
Tim Smith added the comment: I forgot to mention, this is Arch Linux python package: Version : 3.6.2-1 Packager: Felix Yan <felixonm...@archlinux.org> Build Date : Wed 19 Jul 2017 01:54:34 PM MDT I had the files on a vfat filesystem, but copied them to ext4 with the

[issue31521] segfault in PyBytes_AsString

2017-09-19 Thread Tim Smith
New submission from Tim Smith: $ python -V Python 3.6.2 This crash appears to be specific to having files with some ill-encoded filenames. After renaming the offending files to remove the non-ASCII characters, the process could complete without crashing. $ beet import /share/Music/Berliner

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2016-12-22 Thread Tim Smith
Tim Smith added the comment: Since __PYVENV_LAUNCHER__ is consulted in site.py, it seems likely that the latest it can be deleted is in site.py. The attached patch does that. -- Added file: http://bugs.python.org/file46004/delete-venev-launcher.diff

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2016-12-22 Thread Tim Smith
Tim Smith added the comment: I spoke prematurely; I recently rediscovered that the persistence of __PYVENV_LAUNCHER__ poisons the sys.executable of virtualenv interpreters launched as a subprocess of another Python interpreter: $ virtualenv -p python3 test $ test/bin/python3 -c 'import sys

[issue19398] test_trace fails with -S

2016-10-03 Thread Tim Smith
Changes by Tim Smith <pythonb...@tim-smith.us>: -- nosy: +tdsmith versions: +Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-15 Thread Tim Smith
Changes by Tim Smith <pythonb...@tim-smith.us>: -- nosy: +tdsmith ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27806> ___ __

[issue26955] Implement equivalent to `pip.locations.distutils_scheme` in distutils

2016-06-08 Thread Tim Smith
Tim Smith added the comment: As a Homebrew maintainer I'm happy to consider improving Homebrew's configuration if someone can point me to an extant package that uses this mechanism. -- nosy: +tdsmith ___ Python tracker <rep...@bugs.python.

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-12-26 Thread Tim Smith
Changes by Tim Smith <pythonb...@tim-smith.us>: -- nosy: +tdsmith ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24844> ___ __

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-06 Thread Tim Smith
Changes by Tim Smith <pythonb...@tim-smith.us>: -- nosy: +tdsmith ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25572> ___ __

[issue25136] Python doesn't find Xcode 7 stub libraries

2015-09-15 Thread Tim Smith
Changes by Tim Smith <pythonb...@tim-smith.us>: Added file: http://bugs.python.org/file40479/xcode-stubs-2.7.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25136] Python doesn't find Xcode 7 stub libraries

2015-09-15 Thread Tim Smith
New submission from Tim Smith: In Xcode 7, Apple is replacing many of the .dylibs in SDKROOT with textual stubs. [1] These files exist on disk with filenames like: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.tbd

[issue24627] Import bsddb result in error on OS X (Python 2.7.10)

2015-07-13 Thread Tim Smith
Tim Smith added the comment: Hi; I'm a Homebrew maintainer. Please open an issue at https://github.com/Homebrew/homebrew. -- nosy: +tdsmith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24627

[issue24534] disable executing code in .pth files

2015-06-29 Thread Tim Smith
Tim Smith added the comment: In Homebrew we occasionally use .pth files to call site.addsitedir. This is useful when we want to add a directory to sys.path that contains .pth files that also need to be processed (for example, when adding a directory to sys.path that contains namespace

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2015-02-12 Thread Tim Smith
Tim Smith added the comment: On Darwin, it would be nice if LINKFORMODULE used -undefined dynamic_lookup instead of explicitly linking to a framework binary. Modules with explicit links to a framework cause segfaults when they are imported from a different, but compatible, framework

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2015-01-18 Thread Tim Smith
Tim Smith added the comment: Homebrew's interest in this ticket was resolved by the release of pip 6, which includes Vinay's change to distlib to use sys.executable instead of __PYVENV_LAUNCHER__. Many thanks! I'm not marking this fixed in case it is useful to leave this open to discuss

[issue22269] Resolve distutils option conflicts with priorities

2014-11-10 Thread Tim Smith
Tim Smith added the comment: Ping! Any chance for feedback here? This behavior took me by surprise again today. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22269

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-12 Thread Tim Smith
Tim Smith added the comment: We would like to refer to python3 as /usr/local/opt/python3/bin/python3, where /usr/local/opt/python3 is a symlink to ../Cellar/python3/3.4.2, and /usr/local/Cellar/python3/3.4.2/bin/python3 is a symlink to /usr/local/Cellar/python3/3.4.2/Frameworks

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-11 Thread Tim Smith
Tim Smith added the comment: I'm attaching an updated patch; it passes tests for me locally with a framework build. -- Added file: http://bugs.python.org/file36885/dont-realpath-venv-dirname.diff-1 ___ Python tracker rep...@bugs.python.org http

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-11 Thread Tim Smith
Tim Smith added the comment: Er, because the test has been modified by taking Vinay's suggestion to test that the directories are physically identical instead of doing a string comparison. -- ___ Python tracker rep...@bugs.python.org http

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-09-24 Thread Tim Smith
New submission from Tim Smith: Homebrew, the OS X package manager, distributes python3 as a framework build. We like to be able to control the shebang that gets written to scripts installed with pip. [1] The path we prefer for invoking the python3 interpreter is like /usr/local/opt/python3

[issue22269] Resolve distutils option conflicts with priorities

2014-08-25 Thread Tim Smith
Changes by Tim Smith pythonb...@tim-smith.us: -- nosy: +tdsmith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22269 ___ ___ Python-bugs-list

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Tim Smith
Tim Smith t...@tzs.net added the comment: Here is a program that demonstrates the problem: import httplib import tempfile f = tempfile.TemporaryFile() f.write(Hello, Temporary File!) f.seek(0) c = httplib.HTTPConnection('bugs.python.org') c.request('POST', '/', f

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-06 Thread Tim Smith
New submission from Tim Smith t...@tzs.net: In httplib.py, there is this code to try to get the body length: def _set_content_length(self, body): # Set the content-length based on the body. thelen = None try: thelen = str(len(body)) except

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread Tim Smith
here's a potentially nifty way of adding decorators to input args for python: def a(int(arg1), arg2, tuple(arg3)): #arg1 is an int (or was converted to an int) #arg2's type is not known (ie this decoration is optional) #arg3 is a tuple (may have been a list coming in, but is now a

Re: Can I beat perl at grep-like processing speed?

2006-12-29 Thread Tim Smith
you may not be able to beat perl's regex speed, but you can take some steps to speed up your python program using map and filter here's a modified python program that will do your search faster #!/usr/bin/env python import re r = re.compile(r'destroy', re.IGNORECASE) def stripit(x): return