[issue23120] installation order of 32bit and 64bit python seems to matter

2014-12-27 Thread Peter Santoro
New submission from Peter Santoro: It appears that installation order matters when installing both 32bit and 64bit versions of Python. If you install the 32bit version first, the 64bit version will uninstall the 32bit version. Here are the steps I used: 1. Starting point (Windows 7 64bit

[issue21427] installer not working

2014-06-21 Thread Peter Santoro
Peter Santoro added the comment: I believe I may have hit a related issue yesterday. I'm using Python 3.3.5 (32 and 64 bit) and 3.4.1 (32 and 64 bit) releases all on the same Windows 7SP1/64bit PC (patched with latest MS updates). The Tkinter applications that I wrote and have been using

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-20 Thread Peter Santoro
Peter Santoro added the comment: It seems clear to me that the logic in shutil._unpack_zipfile that silently skips paths that start with '/' (indicates absolute path) or that contain references to the parent directory ('..') was added to prevent malicious zip files from making potential

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-13 Thread Peter Santoro
New submission from Peter Santoro: Since Python 3.3.1, ZipFile.extractall was enhanced to better handle absolute paths and illegal characters. The associated logic within shutil._unpack_zipfile essentially skips zip members with these issues. If a zip file contains all absolute paths

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-13 Thread Peter Santoro
Peter Santoro added the comment: I've attached a zip file which contains a test script and test zip files for the previously submitted Python 3.3.5 patch. See the included README.txt for more information. To view the contents of the included bad.zip file, use the following command: unzip

[issue18577] lru_cache enhancement: lru_timestamp helper function

2014-02-02 Thread Peter Santoro
Peter Santoro added the comment: As requested, I published this for review on http://code.activestate.com/recipes/578817-lru_timestamp-cache-entry-aging-for-functoolslru_c/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue20102] shutil._make_zipfile possible resource leak

2014-01-01 Thread Peter Santoro
New submission from Peter Santoro: Now that zipfile.ZipFile supports the context manager protocol, shouldn't shutil._make_zipfile make use of it to avoid the possibility of the archive file not being closed properly if an exception occurs? It should be noted that shutil._unpack_zipfile does

[issue18577] lru_cache enhancement: lru_timestamp helper function

2013-07-29 Thread Peter Santoro
Peter Santoro added the comment: I updated my proposed lru_timestamp function with the following change: 1) raise TypeError instead of ValueError -- Added file: http://bugs.python.org/file31079/lru.py ___ Python tracker rep...@bugs.python.org http

[issue18577] lru_cache enhancement: lru_timestamp helper function

2013-07-28 Thread Peter Santoro
New submission from Peter Santoro: The attached proposed lru_timestamp function provides developers with more control over how often lru_cache entries are refreshed. Doc string follows: def lru_timestamp(refresh_interval=60): Return a timestamp string for @lru_cache decorated functions

[issue18577] lru_cache enhancement: lru_timestamp helper function

2013-07-28 Thread Peter Santoro
Peter Santoro added the comment: I updated my proposed lru_timestamp function with the following changes: 1) restricted refresh_interval to int type 2) updated doc string Updated doc string follows: def lru_timestamp(refresh_interval=60): Return a timestamp string for @lru_cache

[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows

2013-06-17 Thread Peter Santoro
Peter Santoro added the comment: As requested, I've attached a small test script called shadow.py. Steps to reproduce: 1) pyvenv.py bugtest 2) copy the attached shadow.py script to bugtest and bugtest\scripts 3) cd bugtest 4) run shadow.py (first entry in sys.path is refers to bugtest

[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows

2013-06-15 Thread Peter Santoro
New submission from Peter Santoro: I've recently hit an issue with pyvenv in Python 3.3.2 that is causing AttributeErrors in other packages on Windows (see https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4). Here's what I believe is going on: On Windows