[issue13176] Broken link in bugs.rst

2011-10-14 Thread Berker Peksag
New submission from Berker Peksag : 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 components: Documentatio

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

2011-10-14 Thread Berker Peksag
Berker Peksag 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 Thanks! -- __

[issue13171] Bug in tempfile module

2011-10-14 Thread Alexander Steppke
Alexander Steppke 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() returns information fr

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

2011-10-14 Thread Alexander Steppke
Changes by Alexander Steppke : -- components: +IO title: Bug in tempfile module -> Bug in file.read(), can access unknown data. ___ Python tracker ___ ___

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

2011-10-14 Thread Alexander Steppke
Alexander Steppke 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 tracker

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

2011-10-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13158] tarfile.TarFile.getmembers misses some entries

2011-10-14 Thread Roundup Robot
Roundup Robot 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 in branch 'default': Merge with 3

[issue13158] tarfile.TarFile.getmembers misses some entries

2011-10-14 Thread Lars Gustäbel
Lars Gustäbel 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 -> closed

[issue13158] tarfile.TarFile.getmembers misses some entries

2011-10-14 Thread Sebastien Binet
Sebastien Binet added the comment: thanks! > The format of the archive is of very bad quality BTW ;-) well, that's C++ :P -s -- ___ Python tracker ___

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

2011-10-14 Thread Maurice de Rooij
Maurice de Rooij 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 = "test"; if($mystrin

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

2011-10-14 Thread STINNER Victor
STINNER Victor 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 use fread/fwrite anymore, but

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

2011-10-14 Thread STINNER Victor
STINNER Victor 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 wininst-xxx.exe binaries? If

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

2011-10-14 Thread Corey O'Brien
Corey O'Brien 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 tracker

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

2011-10-14 Thread Víctor Terrón
Changes by Víctor Terrón : Removed file: http://bugs.python.org/file23397/smtplib.py.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Ezio Melotti
New submission from Ezio Melotti : 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 exceptions is expensive.

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

2011-10-14 Thread Víctor Terrón
Víctor Terrón 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: http://bugs.python.org/file23404/smtplib.py

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

2011-10-14 Thread Alexander Steppke
Alexander Steppke 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 for the underlyin

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Ezio Melotti
Ezio Melotti 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 "/home/wolf/dev/py/3.2/Lib/

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-10-14 Thread Éric Araujo
Éric Araujo added the comment: I have a test. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Raymond Hettinger
Raymond Hettinger 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 also worked well with dict

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Benjamin, you seem to have rejected this feature request. Close it? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue12602] Missing cross-references in Doc/using

2011-10-14 Thread Éric Araujo
Éric Araujo 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

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Raymond Hettinger
Raymond Hettinger 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 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 open another bug

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Raymond Hettinger
Raymond Hettinger 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: key += kwd_mark + tuple(sort

[issue12602] Missing cross-references in Doc/using

2011-10-14 Thread Éric Araujo
Éric Araujo added the comment: BTW, I’ve done nothing about #1739468 because I don’t see why you wanted to add a link. -- ___ Python tracker ___ ___

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

2011-10-14 Thread Martin v . Löwis
Martin v. Löwis 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: full-width, width 2, c

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

2011-10-14 Thread Roundup Robot
Roundup Robot 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 #11751 from 3.2 http://hg.python

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

2011-10-14 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

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

2011-10-14 Thread Éric Araujo
New submission from Éric Araujo : 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 components: Distutils2 keywo

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-10-14 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-10-14 Thread Éric Araujo
Éric Araujo 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 with non-ASCII path

[issue13157] Build Python outside the source directory

2011-10-14 Thread Éric Araujo
Éric Araujo 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 the patch allows

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

2011-10-14 Thread Éric Araujo
Éric Araujo added the comment: Can you tell me if this works: >>> import _msi >>> from packaging.command.bdist_msi import bdist_msi -- ___ Python tracker ___ __

[issue13173] Default values for string.Template

2011-10-14 Thread Éric Araujo
Éric Araujo 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 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 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 the RESOURCES syste

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

2011-10-14 Thread Éric Araujo
Éric Araujo 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 _

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> eric.araujo nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailin

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

2011-10-14 Thread Tom Christiansen
Tom Christiansen added the comment: > Martin v. Löwis 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() function either shall return 0

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2011-10-14 Thread Éric Araujo
Éric Araujo 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 distutils2 repo i

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

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

2011-10-14 Thread Roger Serwy
New submission from Roger Serwy : 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 reproduce this erro

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

2011-10-14 Thread Éric Araujo
Éric Araujo 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 get_inidata

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

2011-10-14 Thread STINNER Victor
STINNER Victor 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 function or to a file positi

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Éric Araujo
Changes by Éric Araujo : -- 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 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. -- ___ Py

[issue13151] pysetup3 run bdist_wininst fails

2011-10-14 Thread Éric Araujo
Éric Araujo added the comment: I’ll apply your hack and fix the other issues. -- assignee: tarek -> eric.araujo ___ Python tracker ___ __

[issue13151] pysetup3 run bdist_wininst fails

2011-10-14 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +bdist_wininst depends on MBCS codec, unavailable on non-Windows ___ Python tracker ___ ___

[issue13176] Broken link in bugs.rst

2011-10-14 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue12344] Add **kwargs to get_reinitialized_command

2011-10-14 Thread Éric Araujo
Éric Araujo 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 the issue of going

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

2011-10-14 Thread Roundup Robot
Roundup Robot 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 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 doesn't warn if you actual

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

2011-10-14 Thread Martin v . Löwis
Martin v. Löwis 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 correctly in the general c

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

2011-10-14 Thread Roger Serwy
Roger Serwy 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 appropriate to use it here

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

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13173] Default values for string.Template

2011-10-14 Thread Bfontaine
Bfontaine 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

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

2011-10-14 Thread Paul Moore
Paul Moore 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 the listing. But as

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

2011-10-14 Thread Paul Moore
New submission from Paul Moore : 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 even if pysetup is

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

2011-10-14 Thread Paul Moore
Paul Moore 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 package. It would be he

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

2011-10-14 Thread Paul Moore
New submission from Paul Moore : 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 D:\Data\cpython\Lib

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

2011-10-14 Thread Paul Moore
New submission from Paul Moore : 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 get_command_class

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

2011-10-14 Thread Roger Serwy
Roger Serwy 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: http://bugs.python.org/file23409/patch13052.diff ___

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

2011-10-14 Thread Xavier de Gaye
New submission from Xavier de Gaye : 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 bar import bar def

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

2011-10-14 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-10-14 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2011-10-14 Thread Ezio Melotti
Ezio Melotti 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 difficult would be to add

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

2011-10-14 Thread Roger Serwy
Roger Serwy 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 not possible to use \n

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Eric Snow
Eric Snow 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 ... x.__traceback__ = None ... rai

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-10-14 Thread Ross Lagerwall
Ross Lagerwall 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 nice is if there were so

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

2011-10-14 Thread Vinay Sajip
Vinay Sajip 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 by "using". AFAIK, ea

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

2011-10-14 Thread Vinay Sajip
Vinay Sajip added the comment: s/dependencies between dependencies/dependencies between distributions/ -- ___ Python tracker ___ ___

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 expression" checked,

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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, whether the non-functi

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

2011-10-14 Thread Ezio Melotti
Ezio Melotti 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 the "Replace with" field,

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 ___ _

[issue13131] FD leak in urllib2

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 ___ __

[issue13139] multiprocessing.map skips finally blocks

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 2.6 __

[issue13177] Avoid chained exceptions in lru_cache

2011-10-14 Thread Ezio Melotti
Ezio Melotti 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 cache, and the cache

[issue13149] optimization for append-only StringIO

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 each cycle), I can e

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

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13152] textwrap: support custom tabsize

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 tabsize. I am almo

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 can somehow bypass

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Mark Hammond
Mark Hammond 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) Issue 7833 has a patch desig

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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, which is how we usu

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 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, Library (Lib), Window

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

2011-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 wonder if anything

[issue12344] Add **kwargs to get_reinitialized_command

2011-10-14 Thread Thomas Holmes
Thomas Holmes 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. -- ___ Python tracker

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread João Bernardo
João Bernardo 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 with the 3.x

[issue13153] IDLE crash with unicode bigger than 0xFFFF

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

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

2011-10-14 Thread Jason Howlett
New submission from Jason Howlett : 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) cd ~/pytest/other/

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

2011-10-14 Thread Phillip Feldman
New submission from Phillip Feldman : 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 http://www.python.org/peps/pep-0263.html for details

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

2011-10-14 Thread Phillip Feldman
Changes by Phillip Feldman : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy 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 improving the new im

  1   2   >