[issue15330] allow deque to act as a thread-safe circular buffer

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Thanks for the info. A couple questions: what does won't break mean -- that it won't throw an exception of a type that it wouldn't normally throw in a single-threaded environment? And does this mean that not even deque.pop() is

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I think some of the information in the issue 15330 comments would be very helpful to add as well (what thread-safe means in Python, distinction between thread-safe and atomic, and which deque methods are thread-safe and/or atomic). If

[issue15188] test_ldshared_value failure on OS X using python.org Pythons

2012-07-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The resolution of this test failure is dependent on the resolution of Issue15298, which will change the approach needed. Since this is a relatively minor issue, I don't think there is a need for a interim fix. -- components: +Tests priority:

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (Once this issue is resolved, a permanent fix for the minor OS X test case failure of Issue15188 can be developed and applied.) -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue15188] test_ldshared_value failure on OS X using python.org Pythons

2012-07-12 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- dependencies: +_sysconfigdata is generated in srcdir, not builddir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15188 ___

[issue15320] thread-safety issue in regrtest.main()

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I wrote this patch with the assumption that it shouldn't hurt if multiple threads call deque.extend() at the same time. By looking at the implementation, I found that if multiple threads call dequeue.extend() at the same time, all

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Please leave this for Python 3.4 -- it is not a bugfix. -- nosy: +georg.brandl versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15302

[issue15320] thread-safety issue in regrtest.main()

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: That sounds fine. And thanks for investigating. By the way, I created issue 15329 earlier today to clarify what guarantees deque provides with respect to multithreading. For example, the distinction between thread-safe and atomic is

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I think you're right that the casts are incorrect. I think the existing cast ia a day one bug in Python 3. The question is why hasn't it been a problem? That area needs fixing up since NSModuleForSymbol, NSLookupAndBindSymbol, and

[issue15189] tkinter.messagebox does not use the application's icon

2012-07-12 Thread Mark Summerfield
Mark Summerfield m...@qtrac.eu added the comment: I think there is a solution to this that can be applied in one's own code: app = tkinter.Tk() icon = tkinter.PhotoImage(file=icon.gif) app.tk.call(wm, iconphoto, app, -default, icon) According to the docs (and it seems to be true), the icon

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: sys.stdin.write returns the wrong error message when passed a non-string. Presently it returns io.UnsupportedOperation instead of TypeError: must be str, not ... It's not a bug. sys.stdin.write raises io.UnsupportedOperation in

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Ah. See blockfiles-3.diff then. Well, I have no objections. Patch fixes this issue. Where do you see that? In my patch, _RPCInputFile inherits from _RPCFile, which is neither output nor input. Instead, _RPCOutputFile also inherits

[issue7163] IDLE suppresses sys.stdout.write() return value

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Reply to Roger's emailed answer to my Rietveld comment. On 07/11/2012 11:10 AM, storch...@gmail.com wrote: http://bugs.python.org/review/7163/diff/4367/Lib/idlelib/OutputWindow.py File Lib/idlelib/OutputWindow.py (right):

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The current code works, and I don't understand why it does. I'd love to get rid of the long deprecated APIs like NSModuleForSymbol as well, but we'll have to ask the RM if that is an acceptable change at this point in the 3.3 release

[issue15331] Missing codec aliases for bytes-bytes codecs

2012-07-12 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: In writing a post looking at a potentially different way of handling codec pipelines that is source compatible across both Python 2 and 3, I noticed that the bytes-bytes codec aliases are all missing but are still listed in the

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: The patch looks good enough. Not sure if we should write Linux though. I sincerely hope we’ll support xattrs on other OSes soonish. Did you catch Georg somewhere whether this can still go in? Would be nice as xattrs are new to 3.3. Changing this

[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-07-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I didn’t, because I pulled an Antoine and enjoyed weather, people and Florence. :) I understand it’s okay to apply this towards 3.2 3.3 (with the proposed fixes)? 2.7 is not necessary because this problem doesn’t exist there:

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yeah, good to go. But please re-insert a blank line in the test suite changes after the end of the method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15238

[issue7163] IDLE suppresses sys.stdout.write() return value

2012-07-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: We can ask the author. Martin, why OutputWindow.write accepts bytes in a724279fc931? That change was to add support for str8, a type that no longer exists. Should it be deleted if it is deprecated artifact or should

[issue7163] IDLE suppresses sys.stdout.write() return value

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: That change was to add support for str8, a type that no longer exists. str8 was renamed to bytes in 0d462d789b18. The general design guideline apparently is that sys.stdout in IDLE should work the same as the interactive shell.

[issue15328] datetime.strptime slow

2012-07-12 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15328 ___ ___ Python-bugs-list

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've attached a new version of the patch: * copy to tmp buffer instead of argv0_buffer (see comment by Ned) * add include in pythonw.c to avoid compiler warning * use _Py_char2wchar instead of blindly casting a char* to a wchar_t*

[issue15331] Missing codec aliases for bytes-bytes codecs

2012-07-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Don't you have to resolve issue 7475 before you can add them, though? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15331

[issue15332] 2to3 should fix bad indentation (or warn about it)

2012-07-12 Thread Jakub Wilk
New submission from Jakub Wilk jw...@jwilk.net: Python 3 is more rigid about mixing tabs and spaces within a single file. 2to3 should either fix indentation that would become a syntax error in Python 3.X, or maybe issue a warning about it (or both). Example: $ python badtabs.py echo okay

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: based on code inspection I'd say that sys.executable was broken without my patch as well. The code that sets that value is unchanged from Python 3.2, and that points to the executable inside the Python.app application bundle. I've

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Georg: done. Hynek: You must forgive me, I'm a recovering Windows programmer. I thought extended attributes were a Linux-only thing. Can you tell me what other platforms they are available on? And/or suggest some alternate language?

[issue15320] thread-safety issue in regrtest.main()

2012-07-12 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Why not use locks to guard critical sections rather than relying on implementation details regarding atomicity? -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: On 07/12/2012 04:13 AM, Serhiy Storchaka wrote: Serhiy Storchakastorch...@gmail.com added the comment: sys.stdin.write returns the wrong error message when passed a non-string. Presently it returns io.UnsupportedOperation instead of

[issue15320] thread-safety issue in regrtest.main()

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Yes, that is what I took Amaury's comment to mean. I started working on a patch that incorporates a lock. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15320

[issue15333] import on Windows will recompile a pyc file created on Unix

2012-07-12 Thread Andrew MacKeith
New submission from Andrew MacKeith and...@mackeith.net: In certain cases, a compiled Python file (.pyc) created on Unix will be recompiled when imported on Windows, despite the original code file (.py) being the same. The cause is the use of the c fstat function in import.c. This behavior is

[issue15333] import on Windows will recompile a pyc file created on Unix

2012-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Is this the same issue as issue #13863? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15333 ___

[issue15320] thread-safety issue in regrtest.main()

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, that is what I took Amaury's comment to mean. I started working on a patch that incorporates a lock. For the sake of clarity, I think Raymond suggests using a lock in regrtest, not in deque. --

[issue15333] import on Windows will recompile a pyc file created on Unix

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is this the same issue as issue #13863? Judging by Andrew's diagnosis, I think so. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - import.c sometimes generates incorrect timestamps on Windows + NTFS

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It shouldn't affect 3.3 anymore (importlib using the os module rather than direct C calls to msvcrt). Could someone check? -- nosy: +mackeith versions: -Python 3.3 ___ Python tracker

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I think you're over-reaching. We make almost no guarantees about atomicity. Having multiple implementations of Python makes that an even harder task. In general, critical sections need to be guarded with locks. If an object

[issue15330] allow deque to act as a thread-safe circular buffer

2012-07-12 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: A couple questions: what does won't break mean That means that its internal invariants always survive in a multi-threaded environment. that it won't throw an exception of a type that it wouldn't normally throw in a

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: sys.stdin.write('qwe') Traceback (most recent call last): File stdin, line 1, in module io.UnsupportedOperation: not writable -- ___ Python tracker rep...@bugs.python.org

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Pypy tends to make fewer guarantees because it implements more classes in pure python. This is not exactly true; in PyPy the _collection module was rewritten in RPython (which is translated to C) for this very reason: to make

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Classes written in C are necessarily thread-safe (they rely on the GIL) That's not really true. A single Py_DECREF() can release the GIL by way of executing a Python __del__ method (or a weakref callback, or even the tp_dealloc of a file

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: sys.stdin.write('qwe') Traceback (most recent call last): File stdin, line 1, inmodule io.UnsupportedOperation: not writable -- I'm passing a number, *not* a string. -- ___ Python

[issue15334] access denied for HKEY_PERFORMANCE_DATA

2012-07-12 Thread Jeremy Kloth
New submission from Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: The registry key HKEY_PERFORMANCE_DATA is not accessible for non-interactive users (e.g., buildbot as a service). The following patches skip the offending test when the tests unless the they are run from an interactive

[issue15334] access denied for HKEY_PERFORMANCE_DATA

2012-07-12 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: Added file: http://bugs.python.org/file26369/winreg-3.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15334 ___

[issue15334] access denied for HKEY_PERFORMANCE_DATA

2012-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin, stutzbach, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15334 ___

[issue15335] IDLE - debugger steps through run.py internals

2012-07-12 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: The IDLE debugger steps through the internals of _RPCFile. To reproduce this bug, create a new .py file with a few print statements, enable the debugger, and then run the file. Stepping through the print statement enters into _RPCFile.

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: while I appreciate the fix for #13150, it's the patch for #13150 which introduces the ugliness to build the file in the srcdir in the first place. re-setting the bug severity. the current behaviour can result in a bogus installation; please

[issue13150] Most of Python's startup time is sysconfig

2012-07-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: the current ability to cross-build python now relies on being able to run the build python with the host library, using the _sysconfigdata.py from the host. if somebody decides to implement _sysconfigdata as a C extension, please ensure that

[issue15335] IDLE - debugger steps through run.py internals

2012-07-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Debugger.py has a method in_rpc_code which ultimately prevents stepping though code from rpc.py. (Presently an external file named rpc.py can not be debugged using IDLE.) Adding run.py to the check would prevent run.py from being stepped,

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298 ___ ___ Python-bugs-list

[issue15335] IDLE - debugger steps through run.py internals

2012-07-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I suggest to add a decorator @Debugger.internal for all methods that the debugger should not step into. It should set a function attribute that the debugger then checks for. OTOH, I fail to see the problem. Stepping through the standard

[issue15332] 2to3 should fix bad indentation (or warn about it)

2012-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You can already find this using python -tt and fix it using reindent.py. -- nosy: +benjamin.peterson priority: normal - low ___ Python tracker rep...@bugs.python.org

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: See open Issue12978. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15238 ___ ___

[issue6858] This is a python file, apply syntax highlighting

2012-07-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to allow toggling of the ColorDelegator. It can be toggled using the existing, but undocumented, Control-/ binding. The patch modifies the toggle_colorize_event to fully remove coloring or fully recolorize the text

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset afdb0e1a9dac by Stefan Krah in branch 'default': Issue #7652: Clean up _mpd_qinvroot() and mark it LIBMPDEC_ONLY. Use the http://hg.python.org/cpython/rev/afdb0e1a9dac --

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I switched the algorithm in mpd_qsqrt() to the one from decimal.py. Previously the square root was calculated in terms of 1/invsqrt(x). Curiously enough this scheme _always_ seems to produce exact results when expected, but I don't have

[issue15336] Argparse required arguments incorrectly displayed as optional arguments

2012-07-12 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: In this script, '-x' is required argument: -- import argparse p = argparse.ArgumentParser() p.add_argument('-x', required=True) p.print_help() However, the automatically generated help

[issue15337] The cmd module incorrectly lists help as an undocument command

2012-07-12 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: The following minimal script: - import cmd class C(cmd.Cmd): pass C().cmdloop() Creates the following help display: --- (Cmd) help Undocumented commands:

[issue15338] test_UNC_path failure in test_import

2012-07-12 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: On the Win64 buildbot, trying to access an UNC path raises PermissionError, which makes a test fail: == ERROR: test_UNC_path (test.test_import.PathsTests)

[issue15338] test_UNC_path failure in test_import

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Example URL for the aforementioned failure: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/282/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue9867] Interrupted system calls are not retried

2012-07-12 Thread Daniel Neuhäuser
Changes by Daniel Neuhäuser dasdas...@googlemail.com: -- nosy: +DasIch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9867 ___ ___ Python-bugs-list

[issue9867] Interrupted system calls are not retried

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This has been fixed in issue #10956 (Python 3 and the io module) and issue #12268 (Python 2's file objects). -- components: +Interpreter Core resolution: - out of date status: open - closed versions: -Python 3.1

[issue9867] Interrupted system calls are not retried

2012-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: out of date - duplicate superseder: - file readline, readlines readall methods can lose data on EINTR versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue15339] document the threading facts of life in Python

2012-07-12 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: I think it would be helpful if the Python documentation included certain high-level information about multi-threading in Python. At minimum, I think it would help for the documentation to provide a definition that can be linked to

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I created issue 15339 to document the multi-threading facts of life in Python (independent of any particular module or package, including this one), along the lines suggested by Raymond. --

[issue15339] document the threading facts of life in Python

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This sounds like a good idea. Either a HOWTO or a FAQ would sound appropriate. -- nosy: +pitrou versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I compared both implementations, and they are the same. I noticed that on line 7537, the call to mpd_qshiftl() may goto malloc_error;. I think there is a memory leak in this case, mpd_del(c) and 2 others lines are skipped.

[issue15340] OSError with import random when /dev/urandom doesn't exist (regression from 2.6)

2012-07-12 Thread Ian Wienand
New submission from Ian Wienand i...@wienand.org: Hi, Lib/random.py has a fallback if os.urandom() returns NotImplementedError --- from os import urandom as _urandom ... def seed(self, a=None): if a is None: try: a = long(_hexlify(_urandom(16)), 16)

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Thanks, Amaury! -- goto malloc_error should not leak, because there's always a jump to the out label in line 7563. I use this idiom a lot ever since I saw it in several places in the Linux kernel. Of course it's a matter of taste.

[issue15341] Cplex and python

2012-07-12 Thread moras moorshed
New submission from moras moorshed moorshe...@yahoo.com: Im beginner with python, and I want to connect python to Cplex, IBM optimizer, I installed the python on this path: 'C:\Program Files\IBM\ILOG\CPLEX_Studio123\cplex\python\x86_win32\cplex' but when i want to create new file using

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: like other platform dependent files _sysconfigdata.py should be installed in plat-* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: like other platform dependent files _sysconfigdata.py should be installed in plat-* What are you talking about? plat-* files are only OS-specific, while _sysconfigdata also depends on configure options and other stuff. --

[issue15341] Cplex and python

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Hi, the bug tracker is not designed to get help. Please ask questions on the python-list forum, or the comp.lang.python newsgroup. There are many friendly people there... Be ready to come with a short script showing the error.

[issue4832] idle filename extension

2012-07-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Terry, are you planning to commit this? If not, I can do it. It would be good to get this into 3.3.0b2 since it does fix an important usability issue. -- ___ Python tracker rep...@bugs.python.org

[issue4832] idle filename extension

2012-07-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree. Go ahead. But what do you think of applying to 2.7 and or 3.2? I want to add a sentence to Idle help, which I want to edit for the tooltips issue also. But that is not a rush. -- ___

[issue15342] os.path.join behavior

2012-07-12 Thread Pan Yongzhi
New submission from Pan Yongzhi fossi...@users.sourceforge.net: I am constructing a source directory argument to rsync. It has to end with slash due to rsync behavior. I use: os.path.join('/src/dir', os.path.sep) And run it and realized the source directory becomes '/'. Luckily it is not the

[issue15320] thread-safety issue in regrtest.main()

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Here is another patch -- this one making no implementation assumptions about thread-safety or atomicity. -- Added file: http://bugs.python.org/file26371/issue-15320-3.patch ___ Python

[issue1767933] Badly formed XML using etree and utf-16

2012-07-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Thanks, this looks much better. I've reviewed the _4 patch with some minor comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933

[issue15336] Argparse required arguments incorrectly displayed as optional arguments

2012-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +bethard, ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15336 ___

[issue10614] ZipFile: add a filename_encoding argument

2012-07-12 Thread umedoblock
umedoblock umedobl...@gmail.com added the comment: I fixed this problem. I make new methos _decode_filename(). -- keywords: +patch nosy: +umedoblock Added file: http://bugs.python.org/file26372/zipfile.patch ___ Python tracker rep...@bugs.python.org

[issue15343] pydoc -w package write out page with empty package contents section

2012-07-12 Thread Christopher the Magnificent
New submission from Christopher the Magnificent ultimate.mac.fana...@gmail.com: Let there be a folder testpkg contained in $SOME_DIR with three empty files: __init__.py, bob.py, and sally.py If I run pydoc3.2 -w testpkg inside $SOME_DIR, it will output the file $SOME_DIR/testpkg.html In

[issue15343] pydoc -w package writes out page with empty Package Contents section

2012-07-12 Thread Christopher the Magnificent
Changes by Christopher the Magnificent ultimate.mac.fana...@gmail.com: -- title: pydoc -w package writes out page with empty package contents section - pydoc -w package writes out page with empty Package Contents section ___ Python tracker

[issue15343] pydoc -w package writes out page with empty package contents section

2012-07-12 Thread Christopher the Magnificent
Changes by Christopher the Magnificent ultimate.mac.fana...@gmail.com: -- title: pydoc -w package write out page with empty package contents section - pydoc -w package writes out page with empty package contents section ___ Python tracker

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Serhiy - why did you remove that documentation bit? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15296 ___

[issue15344] devinabox: failure when running make_a_box multiple times

2012-07-12 Thread Eric Snow
New submission from Eric Snow ericsnowcurren...@gmail.com: When running make_a_box.py: Fetching Mercurial ... make_a_box.py:197: ResourceWarning: unclosed socket.socket object, fd=3, family=2, type=1, proto=6 file_url = self._download_url() Traceback (most recent call last): File

[issue15344] devinabox: failure when running make_a_box multiple times

2012-07-12 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: I'm re-running it from a clean directory one more time just to make sure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15344 ___

[issue14790] use packaging in setup.py

2012-07-12 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- priority: - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___ ___

[issue14600] Change ImportError reference handling, naming

2012-07-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Eric: your note appears to be fixed in the code. Can this issue be closed? -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14600

[issue13238] Add shell command helpers to subprocess module

2012-07-12 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___ ___ Python-bugs-list