[issue13176] Broken link in bugs.rst

2011-10-14 Thread Berker Peksag
New submission from Berker Peksag berker.pek...@gmail.com: http://www.python.org/dev/workflow/ is missing in 3.2 documentation. See: http://docs.python.org/py3k/bugs.html It works with latest version of the documentation: http://docs.python.org/dev/bugs.html -- assignee: docs@python

[issue11880] add a {dist-info} category to distutils2

2011-10-14 Thread Berker Peksag
Berker Peksag berker.pek...@gmail.com added the comment: I'd like to work on this issue. What is the correct location of the Distutils2 project? I have found these links: http://hg.python.org/distutils2/file/98e0d3c53a2f/distutils2/ http://hg.python.org/cpython/file/2c223d686feb/Lib/packaging

[issue13171] Bug in tempfile module

2011-10-14 Thread Alexander Steppke
Alexander Steppke astep...@gmail.com added the comment: Hi David, I followed your suggestion and tried to reproduce the problem without the tempfile module. It turns out that is indeed an underlying issue. I am not sure what the root cause is but now this is even a bigger problem: read()

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread Alexander Steppke
Changes by Alexander Steppke astep...@gmail.com: -- components: +IO title: Bug in tempfile module - Bug in file.read(), can access unknown data. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13171

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread Alexander Steppke
Alexander Steppke astep...@gmail.com added the comment: Additionally after calling tmp.close() the file 'tmp' contains the string 'test', which is followed by about 4kB of binary data similar to the previous output of tmp.read(). -- ___ Python

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13171 ___ ___

[issue13158] tarfile.TarFile.getmembers misses some entries

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 341008eab87d by Lars Gustäbel in branch '3.2': Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile. http://hg.python.org/cpython/rev/341008eab87d New changeset 158430b2b552 by Lars Gustäbel

[issue13158] tarfile.TarFile.getmembers misses some entries

2011-10-14 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Thanks for the report. There was a problem decoding a special and rare kind of header field in the archive. The format of the archive is of very bad quality BTW ;-) -- resolution: - fixed stage: - committed/rejected status: open -

[issue13158] tarfile.TarFile.getmembers misses some entries

2011-10-14 Thread Sebastien Binet
Sebastien Binet bi...@cern.ch added the comment: thanks! The format of the archive is of very bad quality BTW ;-) well, that's C++ :P -s -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13158

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2011-10-14 Thread Maurice de Rooij
Maurice de Rooij mau...@gmail.com added the comment: So if I understand correctly, the maximum of 65535 repetitions is by design? Have tried a workaround by repeating the repetitions by placing it inside a capturing group, which is perfectly legal with Perl regular expressions: $mystring =

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of the issue #1394612 which has been closed as invalid. Read the following message: http://bugs.python.org/issue1394612#msg27200 I suppose that Python 3 is not affected by this issue because it doesn't

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2011-10-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It is not code under the users’ control (i.e. setup.py) that uses MBCS, but the bdist_wininst command itself. bdist_command append configuration data to a wininst-xxx.exe binary. Where does this file come from? Can we modify

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-10-14 Thread Corey O'Brien
Corey O'Brien coreypobr...@gmail.com added the comment: Building py2exe with VS2010 I had this same issue and the /MANIFEST fix mentioned here fixed the problem. I also think that this issue should be re-opened. -- nosy: +coreypobrien ___ Python

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-14 Thread Víctor Terrón
Changes by Víctor Terrón quinta...@gmail.com: Removed file: http://bugs.python.org/file23397/smtplib.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13163 ___

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The attached patch changes lru_cache to use if/else instead of try/except. This has 2 effects: 1) it avoids chained exceptions and makes the error messages clearer; 2) it probably makes lru_cache a bit faster since building and catching

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-14 Thread Víctor Terrón
Víctor Terrón quinta...@gmail.com added the comment: Patch updated. It is now a two-line patch. How impressive :-) Anyway, I have verified that the entire test suite runs without failure. Should Misc/NEWS be updated for such a trivial modification? -- Added file:

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread Alexander Steppke
Alexander Steppke astep...@gmail.com added the comment: Thank you for the update Victor. It seems to me that this is exactly the same issue. At the moment the current documentation says (http://docs.python.org/library/stdtypes.html#bltin-file-objects): Note: This function is simply a wrapper

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's an example (copied from msg142063) of what the traceback is without the patch: from functools import lru_cache @lru_cache() ... def func(arg): raise ValueError() ... func(3) Traceback (most recent call last): File

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12386 ___ ___ Python-bugs-list

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: This changes behavior so that hash() gets called twice for the key tuple, resulting in decreased performance. In an earlier version of the lru_cache before the with lock was introduced, the try/except form was more atomic. It

[issue5252] 2to3 should detect and delete import of removed statvfs module

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Benjamin, you seem to have rejected this feature request. Close it? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5252

[issue12602] Missing cross-references in Doc/using

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached path adds these links: Missing incoming: - from Invoking the Interpreter in the tutorial - direct link from runpy.run_module to -m switch Missing outgoing: - direct link from script to runpy.run_path I couldn’t add this one: -

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Another issue is that I want to keep the related accesses to the OrderedDict inside the with lock in order to avoid a race condition between the testing-for-membership step and the retrieve-the-cached-value step. --

[issue12602] Missing cross-references in Doc/using

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [Terry] It may suggest a meta-issue though - perhaps 'Documenting Python' should grow a devguide-style description of the Docs layout in source control I would just describe the layout of the Doc subtree in the same devguide page. Care to

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: One possibility is to move the call to user_function() outside of the KeyError exception handler so that user exceptions won't be chained: def wrapper(*args, **kwds): nonlocal hits, misses key = args if kwds:

[issue12602] Missing cross-references in Doc/using

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, I’ve done nothing about #1739468 because I don’t see why you wanted to add a link. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12602

[issue12568] Add functions to get the width in columns of a character

2011-10-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think the WideCharToMultibyte approach is just incorrect. I'm -1 on using wcswidth, though. We already have unicodedata.east_asian_width, which implements http://unicode.org/reports/tr11/ The outcomes of this function are these: - F:

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 866d098367c1 by Éric Araujo in branch '3.2': Increase test coverage for distutils.filelist (#11751). http://hg.python.org/cpython/rev/866d098367c1 New changeset ba894d8a2a57 by Éric Araujo in branch 'default': Merge

[issue13114] check -r fails with non-ASCII unicode long_description

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d5fb646e7ce1 by Éric Araujo in branch 'default': Add tests for Unicode handling in packaging’ check and register (#13114) http://hg.python.org/cpython/rev/d5fb646e7ce1 --

[issue13178] Need tests for Unicode handling in install_distinfo and install_data

2011-10-14 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: Currently, packaging code opens dist-info files (RECORD, RESOURCES) for writing without giving an explicit encoding. We need to add tests and probably to explicitly specify UTF-8 when writing an reading. -- assignee: tarek

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1f3459b08298 by Éric Araujo in branch 'default': Fix writing of the RESOURCES file by packaging (#12386) http://hg.python.org/cpython/rev/1f3459b08298 -- nosy: +python-dev

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve reproduced the bug and fixed it by opening in text mode, following all other calls to open in the same file. This should now work for ASCII paths and non-ASCII paths that use the same encoding as open’s default, but it’ll probably break

[issue13157] Build Python outside the source directory

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Building outside of the source directory was supported, if the source directory was clean. In practice, the source directory could be unclean as long as a few files were not there (Parser/*.o, Modules/_testembed), so it was quite annoying. If

[issue13172] pysetup run --list-commands fails with a traceback

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you tell me if this works: import _msi from packaging.command.bdist_msi import bdist_msi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13172

[issue13173] Default values for string.Template

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for your interest in Python. Can you repost your code as a diff? (See the devguide for more info) -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue13174] test_os failures on Fedora 15: listxattr() returns ['security.selinux']

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good, modulo one thing: the “xattr” name is confusing, I’d like it better if it was found_xattr or expected_xattr or something clearer. -- nosy: +eric.araujo ___ Python tracker

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: packaging.util creates a RECORD file with OS-specific line endings and csv.writerow; packaging.command.install_distinfo uses LF everywhere and csv.writerow. I’m not sure this is related to binary vs. text I/O; maybe it’s some other code like

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good. Style nit: I don’t put backslashes at end-of-lines in parens (in one re.compile call you have that). Also, I use -- where I can’t use —. -- ___ Python tracker rep...@bugs.python.org

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - eric.araujo nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13176 ___

[issue12568] Add functions to get the width in columns of a character

2011-10-14 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Martin v. Löwis mar...@v.loewis.de added the comment: I think the WideCharToMultibyte approach is just incorrect. I'm -1 on using wcswidth, though. Like you, I too seriously question using wcswidth() for this at all: The wcswidth()

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9ef20fbd340f by Éric Araujo in branch '3.2': Update dead references from py.org/dev/faq to the devguide (#13176) http://hg.python.org/cpython/rev/9ef20fbd340f -- nosy: +python-dev

[issue11880] add a {dist-info} category to distutils2

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Berker! Welcome to Python core development. Tips and guidelines for working on distutils are found here: http://wiki.python.org/moin/Distutils/Contributing It’s best if you work on packaging from the cpython repo, but you can also use the

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13176

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-14 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: IDLE's EditorWindow.py relies on using FileList.py's vars dictionary to store Tkinter variables instead of using its own. As a consequence, toggling a checked menu item in one editor window toggles the menu item in ALL editor windows. To

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It is not code under the users’ control (i.e. setup.py) that uses MBCS, but the bdist_wininst command itself. bdist_command append configuration data to a wininst-xxx.exe binary. Are you sure? The string that’s encoded with mbcs comes from the

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le 14/10/2011 14:37, Alexander Steppke a écrit : When a file is opened with update mode ('+' as the second or third character in the above list of mode argument values), You can just say '+' in the file mode . the fflush

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, mhammond title: Distutils MSVC doesn't create manifest file (with fix) - Distutils MSVC doesn't create manifest file versions: +Python 3.3 -Python 2.6 ___ Python tracker

[issue12405] packaging does not record/remove directories it creates

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If one project creates a/b/thing and another project uses a/b/otherthing, then the directories would be recorded in the first project’s RECORD, but they should be removed only when both projects are removed. --

[issue13151] pysetup3 run bdist_wininst fails

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll apply your hack and fix the other issues. -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13151 ___

[issue13151] pysetup3 run bdist_wininst fails

2011-10-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +bdist_wininst depends on MBCS codec, unavailable on non-Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13151 ___

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ebf3f2a4c61a by Éric Araujo in branch '2.7': Update dead references from py.org/dev/faq to the devguide (#13176) http://hg.python.org/cpython/rev/ebf3f2a4c61a -- ___

[issue12344] Add **kwargs to get_reinitialized_command

2011-10-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, sorry I did not make a patch that could be applied on top of your repo; I intended to, but your patch did not apply cleanly, so when merging conflicts I also did other editions and then it was too late. I hope you appreciate how I solved

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 368134e10d09 by Éric Araujo in branch '2.7': Increase test coverage for distutils.filelist (#11751). http://hg.python.org/cpython/rev/368134e10d09 -- ___ Python tracker

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2011-10-14 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The limit is an implementation detail. The pattern is compiled into codes which are then interpreted, and it just happens that the codes are (usually) 16 bits, giving a range of 0..65535, but it uses 65535 to represent no limit and

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2011-10-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The problem is that the config file is parsed using GetPrivateProfileString, and the result is then passed to TextOut, SetDlgItemText, CreateWindow, etc. all of which are defined to accept MBCS strings. I agree that this can't work

[issue13039] IDLE editor: shell-like behaviour on line starting with

2011-10-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Here's a patch. The smart_backspace_event code considers sys.ps1 even though it's not a PyShell instance. The context_use_ps1 flag is already used to modify other behavior of the editor window when it is a PyShell instance, so it is

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13052 ___ ___ Python-bugs-list

[issue13173] Default values for string.Template

2011-10-14 Thread Bfontaine
Bfontaine bati...@yahoo.fr added the comment: Here is my code as a diff -- keywords: +patch Added file: http://bugs.python.org/file23408/string_template_default_values.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13173

[issue13172] pysetup run --list-commands fails with a traceback

2011-10-14 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: No it didn't - I had not built the _msi module when I built Python for some reason. I have built _msi now, and everything works. Sorry for the false alarm. Arguably, the command shouldn't fail, it should simply omit the bdist_msi command from

[issue13180] pysetup silently ignores invalid entries in setup.cfg

2011-10-14 Thread Paul Moore
New submission from Paul Moore p.f.mo...@gmail.com: With a simple setup.cfg defining a distribution containing a single Python module, if you misspell the modules keyword (say, as module) then pysetup does nothing without reporting the error. This silent failure is very hard to debug, and

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2011-10-14 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Unfortunately, no. I have been unable to get this in a reproducible form - but I have seen it a few times now. I will keep trying to reproduce. The worst thing is that packaging fails to recognise the data in RECORD and won't uninstall the

[issue13181] pysetup install creates .pyc files but pysetup remove doesn't delete them

2011-10-14 Thread Paul Moore
New submission from Paul Moore p.f.mo...@gmail.com: The title explains. Here is an example: PS D:\Data\python-sample\python pysetup install Installing from source directory: 'D:\\Data\\python-sample\\python' running install_dist running build running build_py running install_lib byte-compiling

[issue13182] pysetup run bdist_wininst does not work (tries to use install command)

2011-10-14 Thread Paul Moore
New submission from Paul Moore p.f.mo...@gmail.com: PS D:\Data\python-sample\python pysetup run bdist_wininst running bdist_wininst running build running build_py Invalid command install Traceback (most recent call last): File D:\Data\cpython\lib\packaging\command\__init__.py, line 57, in

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I see that Ezio added me to the nosy list. Here's a patch that identifies bogus escape characters at the end of the replvar string and appends an extra \ to fix it. -- keywords: +patch Added file:

[issue13183] pdb skips frames after hitting a breakpoint and running step

2011-10-14 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: Pdb skips frames after hitting a breakpoint and running step commands that walk back the frame stack. Run the following two tests with the two files named foo.py and bar.py: === foo.py from

[issue13183] pdb skips frames after hitting a breakpoint and running step

2011-10-14 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13183 ___ ___ Python-bugs-list

[issue9150] IDLE should not save trailing whitespace after strip trailing whitespace has been used

2011-10-14 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9150 ___ ___ Python-bugs-list mailing

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the patch. This seems to fix the problem with the trailing \, but not the other issues. As I mentioned in my previous message I think re.escape might be a better solution. I also wonder if there are tests for this, and how

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I don't have the beep problem you describe under Linux using Python 3.2 (r32:88445, Mar 25 2011, 19:56:22). That may be a platform-specific bug. Here's a patch to use re.escape instead. A minor side effect of using re.escape is that it is

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Could you just cancel the chained exception? try: {}[asdf] ... except KeyError: ... try: raise Exception() ... except Exception as x: ... x.__cause__ = None ... x.__context__ = None ...

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-10-14 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I see this requires dpkg-architecture which isn't always available. While it isn't hard to install it, it isn't very clear that this is the cause of the nis and crypt modules failing to build on a fresh install of 11.10. What would be

[issue12405] packaging does not record/remove directories it creates

2011-10-14 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: If one project creates a/b/thing and another project uses a/b/otherthing, then the directories would be recorded in the first project’s RECORD, but they should be removed only when both projects are removed. I'm not sure what you mean

[issue12405] packaging does not record/remove directories it creates

2011-10-14 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: s/dependencies between dependencies/dependencies between distributions/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12405 ___

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: IDLE is sufficiently undocumented that I think we may, *if necessary*, treat the details of 'expected behavior' as undefined, or look to other programs for guidance. Certainly, 'crash' is unexpected and undesired ;-). Without [] Regular

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thank you for redirecting this issue. The goal should be to make the proxies completely transparent. They mostly are, but occasional issues arise when they are not. Sometimes the source of a problem is not clear. I wonder, for instance,

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Defining the desired behavior is a good place where to start. Next it would be good to have tests that reflect the desired behavior, and eventually make them pass with a proper patch. Currently IDLE seems to understand \n, \t, etc. in

[issue13127] xml.dom.Attr.name is not labeled as read-only

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The docs are unchanged in 3.2. I presume the behavior is also. -- nosy: +terry.reedy versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13127

[issue13131] FD leak in urllib2

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Can you test both the leak and fix (if needed) on 3.2? (I am on Win7). -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13131

[issue13139] multiprocessing.map skips finally blocks

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: One might ask why an Exception in one process kills all in the Pool. Perhaps multiprocessing emulates threading too closely. Perhaps it is assumed that if one is bad, all are. Jesse? -- nosy: +jnoller, terry.reedy versions: -Python

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Canceling the chained exception might work as a workaround, but it requires yet another try/except and it's not very elegant in my opinion. Raymond, about __missing__ it shouldn't be a problem here, because we are using in to look in the

[issue13149] optimization for append-only StringIO

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Like parts of the Python test suite, I use StringIO to capture print/write output for testing in an output...output/getvalue/reset(seek(0),truncate(0)) cycle. While this enhancement would not currently affect me (as I only do a few prints

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___ ___

[issue13144] Global Module Index link in the offline documentation is incorrect

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13144 ___

[issue13178] Need tests for Unicode handling in install_distinfo and install_data

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13178 ___ ___

[issue13152] textwrap: support custom tabsize

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am a bit surprised this was not part of the original design. 'Tabsize' make 'expand_tabs' redundant and tabsize==0 could be interpreted as expand_tabs==False. On the other hand, the meaning of 'expand_tabs' could be expanded to include the

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The current Windows build used 2-byte unicode chars because that is what Windows does. In 3.3, all builds will use a new unicode implementation that uses 1,2,or4 bytes as needed. But I suspect we will still have the paste problem unless we

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: My experience is that for VS2008 at least, the /MANIFESTFILE: option seems to be ignored if there is nothing to put in the manifest, and this tends to be true if you use a static CRT instead of the DLL based one (ie, if you use /MT)

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: My understanding is that an undocumented internal methods has two bugs that cancel, so that correct calls work correctly -- but tracebacks do not. I think this should be fixed, especially given a working patch. Optionally add a doc string,

[issue13168] Python 2.6 having trouble finding modules when invoked via a symlink

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Try upgrading to 2.6.6, 2.6.7 or 2.7.2. In any case, 2.6 is in security-fix only mode, so unless you have a problem with the most recent releases (2.7.2 or 3.2.2) this issue should be closed as out-of-date. -- nosy: +terry.reedy

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This issue has come up enough (tracker and python-list) that I think adding a mild adaptation of the C standard paragraph might be a good idea. Changing to a doc issue. -- assignee: - docs@python components: +Documentation -IO,

[issue13174] test_os failures on Fedora 15: listxattr() returns ['security.selinux']

2011-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13174 ___

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This is more of a feature request than a bug report, in that the behavior appear intentional. But that is a moot point in that new IDLE features do not have to wait for a new release. The proposed new behavior seems plausibly better. I just

[issue12344] Add **kwargs to get_reinitialized_command

2011-10-14 Thread Thomas Holmes
Thomas Holmes tho...@devminded.com added the comment: It's quite alright. Thanks for finishing it up. I realize I ended up a by out of my depth with regards to packaging's internals and the nuance involved in this fix. Thanks for all the help. --

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread João Bernardo
João Bernardo jbv...@gmail.com added the comment: Just for comparison, on Python 2.7.1 (x32 on Windows 7) it's possible to paste the char (but can't use it) and a nice error is given. u'Ң' Unsupported characters in input So the problem was partially solved but something might have happened

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread João Bernardo
João Bernardo jbv...@gmail.com added the comment: Just to complete my monologue: Here's the traceback from running IDLE in cmd line. C:\Python32\Lib\idlelibpython -i idle.py Traceback (most recent call last): File idle.py, line 11, in module idlelib.PyShell.main() File

[issue13184] Multi-layered symlinks cause runtime error. sys.path is malformed.

2011-10-14 Thread Jason Howlett
New submission from Jason Howlett jagua...@gmail.com: This error is observed in Python 2.7.2. Steps to recreate problem: 1) Create directory ~/pytest. 2) Untar Python 2.7.2 sources into ~/pytest 3) configure, build, and install with --prefix=~/pytest/pyinstall 4) mkdir -p ~/pytest/other/bin 5)

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-14 Thread Phillip Feldman
New submission from Phillip Feldman phillip.m.feld...@gmail.com: When I try to run a Python script that contains curvy quotes inside comments, the interpreter gets upset: SyntaxError: Non-ASCII character '\x92' in file ... on line 20198, but no encoding declared; see

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-14 Thread Phillip Feldman
Changes by Phillip Feldman phillip.m.feld...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13185 ___ ___

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: [Yes, indexing will still be O(1), though I personally consider that less important than most make it to be. Consistency across platforms and total time and space performance of typical apps should be the concern. There is ongoing work on

  1   2   >