[issue15342] os.path.join behavior

2012-07-12 Thread Ned Deily
Ned Deily added the comment: os.path.join is working as documented. See http://docs.python.org/library/os.path.html#os.path.join "If any component is an absolute path, all previous components (on Windows, including the previous drive letter, if there was one) are thrown away, and joining con

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed in 3.3 Thanks for the patch -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b97cea795d8 by Eli Bendersky in branch 'default': Issue #15296: Fix minidom.toxml/toprettyxml for non-unicode encodings. Patch by Serhiy Storchaka, with some minor style adjustments by me. http://hg.python.org/cpython/rev/7b97cea795d8 --

[issue13686] Some notes on the docs of multiprocessing

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Switching this to 3.3 only Fixes for 1-3 committed in caea3c64442b -- ___ Python tracker ___ ___ Py

[issue13686] Some notes on the docs of multiprocessing

2012-07-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset caea3c64442b by Eli Bendersky in branch 'default': Some fixes for the documentation of multiprocessing (per issue #13686) http://hg.python.org/cpython/rev/caea3c64442b -- nosy: +python-dev ___ Python tra

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy - why did you remove that documentation bit? Because it's not relevant anymore. With patch you will never get UnicodeError exceptions in case of unrepresentable text data. -- ___ Python tracker

[issue15344] devinabox: failure when running make_a_box multiple times

2012-07-12 Thread Eric Snow
Eric Snow added the comment: I just got the same error with a clean install. I'll have to poke at it some other time. -- ___ Python tracker ___ ___

[issue13238] Add shell command helpers to subprocess module

2012-07-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14600] Change ImportError reference handling, naming

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Eric: your note appears to be fixed in the code. Can this issue be closed? -- nosy: +eli.bendersky ___ Python tracker ___ __

[issue14790] use packaging in setup.py

2012-07-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- priority: -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue15344] devinabox: failure when running make_a_box multiple times

2012-07-12 Thread Eric Snow
Eric Snow added the comment: I'm re-running it from a clean directory one more time just to make sure. -- ___ Python tracker ___ ___

[issue15344] devinabox: failure when running make_a_box multiple times

2012-07-12 Thread Eric Snow
New submission from Eric Snow : When running make_a_box.py: Fetching Mercurial ... make_a_box.py:197: ResourceWarning: unclosed file_url = self._download_url() Traceback (most recent call last): File "make_a_box.py", line 323, in ins.create() File "make_a_box.py", line 219, in create

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy - why did you remove that documentation bit? -- ___ Python tracker ___ ___ Python-bugs-list m

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

2012-07-12 Thread Christopher the Magnificent
Changes by Christopher the Magnificent : -- title: "pydoc -w " write out page with empty "package contents" section -> "pydoc -w " writes out page with empty "package contents" section ___ Python tracker

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

2012-07-12 Thread Christopher the Magnificent
Changes by Christopher the Magnificent : -- title: "pydoc -w " writes out page with empty "package contents" section -> "pydoc -w " writes out page with empty "Package Contents" section ___ Python tracker ___

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

2012-07-12 Thread Christopher the Magnificent
New submission from Christopher the Magnificent : 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 testpkg.html there will b

[issue10614] ZipFile: add a filename_encoding argument

2012-07-12 Thread umedoblock
umedoblock 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 ___

[issue15336] Argparse required arguments incorrectly displayed as optional arguments

2012-07-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +bethard, ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks, this looks much better. I've reviewed the _4 patch with some minor comments. -- ___ Python tracker ___ __

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

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek 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 tracker

[issue15342] os.path.join behavior

2012-07-12 Thread Pan Yongzhi
New submission from Pan Yongzhi : 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 destination. Why should join

[issue4832] idle filename extension

2012-07-12 Thread Terry J. Reedy
Terry J. Reedy 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. -- ___ Python tracker

[issue4832] idle filename extension

2012-07-12 Thread Ned Deily
Ned Deily 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 __

[issue15341] Cplex and python

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. -- nosy: +amaury.f

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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. --

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Matthias Klose
Matthias Klose added the comment: like other platform dependent files _sysconfigdata.py should be installed in plat-* -- ___ Python tracker ___

[issue15341] Cplex and python

2012-07-12 Thread moras moorshed
New submission from moras moorshed : 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 cplex.Cplex() it gives me th

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Stefan Krah
Stefan Krah 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. --

[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 : 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) except Not

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. -- ___

[issue15339] document the threading "facts of life" in Python

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek 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. -- ___ Python tracker

[issue15339] document the threading "facts of life" in Python

2012-07-12 Thread Chris Jerdonek
New submission from Chris Jerdonek : 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 of what it means when some

[issue9867] Interrupted system calls are not retried

2012-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- 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 __

[issue9867] Interrupted system calls are not retried

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 Daniel Neuhäuser
Changes by Daniel Neuhäuser : -- nosy: +DasIch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15338] test_UNC_path failure in test_import

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue15338] test_UNC_path failure in test_import

2012-07-12 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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) ---

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

2012-07-12 Thread Raymond Hettinger
New submission from Raymond Hettinger : The following minimal script: - import cmd class C(cmd.Cmd): pass C().cmdloop() Creates the following help display: --- (Cmd) help Undocumented commands: == help For people w

[issue15336] Argparse required arguments incorrectly displayed as optional arguments

2012-07-12 Thread Raymond Hettinger
New submission from Raymond Hettinger : 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 shows it as optional: -

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Stefan Krah
Stefan Krah 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 a proof. I remember I left

[issue7652] Merge C version of decimal into py3k.

2012-07-12 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

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

2012-07-12 Thread Roger Serwy
Roger Serwy 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 rather than its existing

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Ned Deily
Ned Deily added the comment: See open Issue12978. -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2012-07-12 Thread Benjamin Peterson
Benjamin Peterson 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 __

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

2012-07-12 Thread Martin v . Löwis
Martin v. Löwis 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 library may be usefu

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2012-07-12 Thread Roger Serwy
Roger Serwy 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, but it applies t

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

2012-07-12 Thread Matthias Klose
Matthias Klose 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 this information

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Matthias Klose
Matthias Klose 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 let the release ma

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

2012-07-12 Thread Roger Serwy
New submission from Roger Serwy : 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. -- components:

[issue15334] access denied for HKEY_PERFORMANCE_DATA

2012-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, stutzbach, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15334] access denied for HKEY_PERFORMANCE_DATA

2012-07-12 Thread Jeremy Kloth
Changes by Jeremy Kloth : Added file: http://bugs.python.org/file26369/winreg-3.x.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue15334] access denied for HKEY_PERFORMANCE_DATA

2012-07-12 Thread Jeremy Kloth
New submission from Jeremy Kloth : 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 session. -- components: Tests,

[issue15318] IDLE - sys.stdin is writeable

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

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 object that happens

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 dequeue.append atomic

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> sys.stdin.write('qwe') Traceback (most recent call last): File "", line 1, in io.UnsupportedOperation: not writable -- ___ Python tracker

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

2012-07-12 Thread Raymond Hettinger
Raymond Hettinger 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 single-threaded environment?

[issue15329] clarify which deque methods are thread-safe

2012-07-12 Thread Raymond Hettinger
Raymond Hettinger 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 claims to be thread-safe,

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

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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

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

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 ___

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

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou 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. -- ___ Python

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

2012-07-12 Thread Mark Dickinson
Mark Dickinson added the comment: Is this the same issue as issue #13863? -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-

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

2012-07-12 Thread Andrew MacKeith
New submission from Andrew MacKeith : 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 contrary to the sta

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

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek 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 ___ _

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Roger Serwy
Roger Serwy added the comment: On 07/12/2012 04:13 AM, Serhiy Storchaka wrote: > Serhiy Storchaka 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 ... > I

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

2012-07-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why not use locks to guard critical sections rather than relying on implementation details regarding atomicity? -- nosy: +rhettinger ___ Python tracker ___

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Larry Hastings
Larry Hastings 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? -- __

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

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren 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 attached v3 of my patch, th

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

2012-07-12 Thread Jakub Wilk
New submission from Jakub Wilk : 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 okay $ 2to3 bad

[issue15331] Missing codec aliases for bytes-bytes codecs

2012-07-12 Thread R. David Murray
R. David Murray added the comment: Don't you have to resolve issue 7475 before you can add them, though? -- nosy: +r.david.murray ___ Python tracker ___

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

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren 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* The behavior is not perfe

[issue15328] datetime.strptime slow

2012-07-12 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka 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. > > Since the interacti

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

2012-07-12 Thread Martin v . Löwis
Martin v. Löwis 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 > OutputWindow.write return bytes

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Georg Brandl
Georg Brandl 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 ___ __

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

2012-07-12 Thread Hynek Schlawack
Hynek Schlawack 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: > os.path.join(b'foo', u'bar

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-12 Thread Hynek Schlawack
Hynek Schlawack 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 in 3.4 would

[issue15331] Missing codec aliases for bytes-bytes codecs

2012-07-12 Thread Nick Coghlan
New submission from Nick Coghlan : 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 documentation as being supporte

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

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren 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 process. BTW. Is adding

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

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka 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): > > > > http://bugs.python.

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka 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 from _RPCFile. I m

[issue15318] IDLE - sys.stdin is writeable

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka 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 standard interpreter.

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

2012-07-12 Thread Mark Summerfield
Mark Summerfield 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 thus set

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

2012-07-12 Thread Ned Deily
Ned Deily 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 NSLibraryNameForModule are now

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

2012-07-12 Thread Chris Jerdonek
Chris Jerdonek 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 not currently mentioned.

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

2012-07-12 Thread Georg Brandl
Georg Brandl 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 ___ _

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

2012-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 items will be added

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

2012-07-12 Thread Ned Deily
Changes by Ned Deily : -- dependencies: +_sysconfigdata is generated in srcdir, not builddir ___ Python tracker ___ ___ Python-bugs-li

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-12 Thread Ned Deily
Ned Deily 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

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

2012-07-12 Thread Ned Deily
Ned Deily 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: high -> norma