[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3dd012397b11 by Chris Jerdonek in branch '3.2': Issue #16115: Improve subprocess.Popen() documentation around args, shell, and executable arguments. http://hg.python.org/cpython/rev/3dd012397b11 New changeset 0ef3b801ccbc by Chris Jerdonek in

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16115

[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46889b772442 by Vinay Sajip in branch 'default': Issue #16141: replaced old-style exception handling code in logging with the modern idiom. http://hg.python.org/cpython/rev/46889b772442 -- nosy: +python-dev

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f3e48838a2d by Chris Jerdonek in branch 'default': Issue #16161: Update link for downloading Microsoft Visual Studio 2008. http://hg.python.org/devguide/rev/6f3e48838a2d -- nosy: +python-dev ___ Python

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16161

[issue16141] Possible simplification for old-style exception handling code in stdlib

2012-10-09 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: vinay.sajip - title: Possible simplification for logging.StreamHandler exception handling - Possible simplification for old-style exception handling code in stdlib ___ Python tracker

[issue16168] SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e31832f8275 by Vinay Sajip in branch '2.7': Issue #16168: Use specified socket type for domain sockets in SysLogHandler. http://hg.python.org/cpython/rev/6e31832f8275 New changeset f41e6ef3392a by Vinay Sajip in branch '3.2': Issue #16168: Use

[issue15922] make howto/urllib2.rst doctests pass

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6f37d503878 by Senthil Kumaran in branch '3.2': Fix Issue 15922: make howto/urllib2.rst doctests pass. http://hg.python.org/cpython/rev/a6f37d503878 New changeset a24d3e2124b6 by Senthil Kumaran in branch '3.3': Fix Issue 15922: make

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: BTW, the patch fails for 3.2 and 3.3 but works for 3.4 By patch do you mean test? And by works, do you mean fails or succeeds? :) I haven't prepared a patch yet, but I just started working on it. On my machine, I found that the test fails as is on 3.3 and

[issue15922] make howto/urllib2.rst doctests pass

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Senthil! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15922 ___ ___ Python-bugs-list mailing list

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- assignee: - chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16114 ___ ___

[issue15922] make howto/urllib2.rst doctests pass

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2f282991973 by Senthil Kumaran in branch '2.7': Fix Issue 15922: make howto/urllib2.rst doctests pass. http://hg.python.org/cpython/rev/b2f282991973 -- ___ Python tracker rep...@bugs.python.org

[issue15922] make howto/urllib2.rst doctests pass

2012-10-09 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15922 ___

[issue14039] Add metavar argument to add_subparsers() in argparse

2012-10-09 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14039 ___ ___ Python-bugs-list

[issue16110] Provide logging.config.configParserConfig

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce0d0d052494 by Vinay Sajip in branch 'default': Closes #16110: fileConfig now accepts a pre-initialised ConfigParser instance. http://hg.python.org/cpython/rev/ce0d0d052494 -- nosy: +python-dev resolution: - fixed stage: -

[issue16171] do nothing load_tests could be improved

2012-10-09 Thread Antoine Pitrou
New submission from Antoine Pitrou: unittest docs suggest the following load_tests for a __main__.py: def load_tests(loader, standard_tests, pattern): # top level directory cached on loader instance this_dir = os.path.dirname(__file__) package_tests =

[issue16119] Python 2.7 _socket DLL import error on Windows Vista

2012-10-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Note: the error message above is mojibake (cp1253-encoded message written to a cp737 console) for: Δεν ήταν δυνατό να εντοπιστεί η καθορισμένη μονάδα (The specified module could not be found) Spiros, you closed the issue. How did you fix it exactly?

[issue16061] performance regression in string replace for 3.3

2012-10-09 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16061 ___ ___ Python-bugs-list

[issue16171] do nothing load_tests could be improved

2012-10-09 Thread Michael Foord
Michael Foord added the comment: Yes the version of load_tests you show is better. However there is an outstanding issue to fix the load_tests protocol to work with pattern=None which is a better fix. (I think this is a bug in load_tests rather than a doc issue really.) Issue 11218.

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-10-09 Thread Michael Foord
Michael Foord added the comment: Changing the docs to the following fixes the original reported issue: def load_tests(loader, standard_tests, pattern): # top level directory cached on loader instance this_dir = os.path.dirname(__file__) pattern = pattern or test_*.py

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-09 Thread Kushal Das
Kushal Das added the comment: So, should I submit a new patch which will just put a warning ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16125 ___

[issue15574] IDLE crashes using clipboard copy command on OS X with ActiveTcl 8.5.12

2012-10-09 Thread Ned Deily
Ned Deily added the comment: I've been able to isolate the problem to a particular Tk checkin and have opened an Tk issue with details here: https://sourceforge.net/tracker/?func=detailaid=3575681group_id=12997atid=112997 -- ___ Python tracker

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-09 Thread Ned Deily
Ned Deily added the comment: I've been able to build Cocoa Tk and isolate the crash regression to a particular Tk checkin. This Tk issue contains the details: https://sourceforge.net/tracker/?func=detailatid=112997aid=3575664group_id=12997 -- ___

[issue16172] Fix is/== misuse

2012-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here are two patches written on the discussion in Python-Ideas [1]. The first patch fixes incorrect use of x is 0 or x is 'foo'. Result of this operations is implementation details. The second patch changes non-idiomatic use of x == None or x == True.

[issue16172] Fix is/== misuse

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file27504/equals_none_or_bool.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16172 ___

[issue16172] Fix is/== misuse

2012-10-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Tests nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16172 ___

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Try prefixing doesnotexist with the same dirname as sys.executable (i.e. `os.path.join(os.path.dirname(sys.executable), doesnotexist)`). Python under Unix uses its own path to determine where the standard library is, and it does so by inspecting argv[0].

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you prefer two macros instead of three then we should name them PY_IS_LITTLE_ENDIAN and PY_IS_BIG_ENDIAN. Fine with me. Having three macros is pointless complication. If I understand you correctly than we can't have a configure definition and need

[issue16173] Wrong offset on SyntaxError when identifier contains non-ascii characters

2012-10-09 Thread Baptiste Mispelon
New submission from Baptiste Mispelon: When a syntax error happens, the exception that gets printed has an extra line with a caret that helps locate the error. If the line also contains an identifier with non-ascii characters, then this caret is misaligned (too far on the right). I've

[issue16173] Wrong offset on SyntaxError when identifier contains non-ascii characters

2012-10-09 Thread Ezio Melotti
Ezio Melotti added the comment: See #2382. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16173 ___ ___ Python-bugs-list

[issue16174] Fix suggested usage of dummy_threading module

2012-10-09 Thread Berker Peksag
New submission from Berker Peksag: The suggested usage should be like this: try: import threading except ImportError: import dummy_threading as threading See: - http://hg.python.org/cpython/file/ce0d0d052494/Lib/queue.py#l3 -

[issue16164] there is no easy way to force unittest.main to use stdout rather than stderr

2012-10-09 Thread Michael Foord
Michael Foord added the comment: Unfortunately subclassing core components is the *intended* mechanism for customising unittest behaviour. Changing this is possible, but is a big job with very extensive changes. I don't think this request is *invalid* per-se, but it isn't something that

[issue16174] Fix suggested usage of dummy_threading module

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7de9c620716e by Andrew Svetlov in branch '3.2': Issue #16174: Fix suggested usage of dummy_threading module. http://hg.python.org/cpython/rev/7de9c620716e New changeset f02974773a71 by Andrew Svetlov in branch '3.3': Merge issue #16174: Fix

[issue16174] Fix suggested usage of dummy_threading module

2012-10-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Berker. -- nosy: +asvetlov resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16174

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-09 Thread Michael Vogt
Michael Vogt added the comment: Thanks for this detailed explaination! I will workaround this outside of python (that is easy ;) - I just thought that it would be a good idea to be able to change the fsencoding (and therefore send the patch), but in the light of e.g. sys.path it seems to be

[issue16169] ctypes.WinError() confuses errno with winerror

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3d65edc3b04 by Richard Oudkerk in branch '3.3': Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror http://hg.python.org/cpython/rev/a3d65edc3b04 New changeset d3c4dcd9a048 by Richard Oudkerk in branch 'default': Issue

[issue15641] Clean up importlib for Python 3.4

2012-10-09 Thread Brett Cannon
Brett Cannon added the comment: Finder is only documented as deprecated; actually making it work with a reasonable warning is too much of a pain for such little gain. So it can just stay in as there is no maintenance burden. -- ___ Python tracker

[issue15111] Wrong ImportError message with importlib

2012-10-09 Thread Brett Cannon
Brett Cannon added the comment: This can get fixed in 3.3.1, which is why I left Python 3.3 as an affected version. Hopefully I can get to a fix this week. I need to write a test showing that a module that doesn't exist as specified in a fromlist is silently ignored, but if a module in a

[issue12322] ElementPath 1.3 expressions documentation

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79231a12567a by Eli Bendersky in branch '3.3': Issue #12322: clarify xpath reference for cases where the path reaches ancestors of the start element. Also add missing markup for a None. Thanks to patrick vrijlandt and Mike Hoy for the report and

[issue12322] ElementPath 1.3 expressions documentation

2012-10-09 Thread Eli Bendersky
Eli Bendersky added the comment: Changes pushed. Thanks for the report and patches. Mike - a note for the future: when you create an updated patch, create it anew vs. a clean repo. Don't compound patches. -- resolution: - fixed stage: needs patch - committed/rejected status: open -

[issue16169] ctypes.WinError() confuses errno with winerror

2012-10-09 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16169 ___

[issue16082] xml.etree.ElementTree.tostringlist does not conform to its documentation

2012-10-09 Thread Eli Bendersky
Eli Bendersky added the comment: Einar, TypeError is raised because tostring/tostringlist return bytes with the default encoding, and you can't join bytes on (which is unicode). -- ___ Python tracker rep...@bugs.python.org

[issue16082] xml.etree.ElementTree.tostringlist does not conform to its documentation

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff925e135e60 by Eli Bendersky in branch '3.3': Issue #16082: clarify the documentation of tostring[list] saying that it may generate a bytestring, depending on the given encoding. http://hg.python.org/cpython/rev/ff925e135e60 New changeset

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Christian Heimes
Christian Heimes added the comment: I think it's not enough as some platforms prefix/suffix the macros with dashes. The values must be compared to BYTE_ORDER iff the macro is defined. too. I've checked some machines of the Snakebite network and came up with this macro cascade: /* * The

[issue16172] Fix is/== misuse

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 842276ae4a3f by Benjamin Peterson in branch '3.3': compare with equality not identity (issue #16172) http://hg.python.org/cpython/rev/842276ae4a3f -- nosy: +python-dev ___ Python tracker

[issue16172] Fix is/== misuse

2012-10-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Also http://hg.python.org/cpython/rev/332b93ce7bf9 -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16172

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-09 Thread R. David Murray
R. David Murray added the comment: I think we'd probably better find out if there is support for applying it before you go to the trouble of writing it. It might be appropriate as a -3 warning, since the behavior changes in python3. I would be +1 for applying it as a -3 warning, and -0 as a

[issue16173] Wrong offset on SyntaxError when identifier contains non-ascii characters

2012-10-09 Thread R. David Murray
R. David Murray added the comment: Ezio, is there a reason you didn't close this as a duplicate? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16173 ___

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16125 ___

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16166 ___

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2012-10-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2382 ___

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Christian Heimes
New submission from Christian Heimes: Guido has expressed [1] that he like to see IOCP support in the stdlib for the grant unified asyncore interface. Quote from MSDN [2]: --- I/O completion ports provide an efficient threading model for processing multiple asynchronous I/O requests on a

[issue16176] platform.platform() identifies Windows 8 as post2008Server

2012-10-09 Thread Brian Curtin
New submission from Brian Curtin: platform.platform() 'Windows-post2008Server-6.2.9200' The change is trivial, just accounting for a point release of 2 (from the major release 6). --- a/Lib/platform.py +++ b/Lib/platform.py @@ -595,8 +595,13 @@ release = '7'

[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2012-10-09 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9514 ___

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fine with me. Having three macros is pointless complication. Don't having two macros for one boolean value pointless complication too? -- ___ Python tracker rep...@bugs.python.org

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Richard Oudkerk
Richard Oudkerk added the comment: Cogen [4] uses ctypes wrapper. In the code for the IOCP reactor only ctypes.FormatError() is used from ctypes. It uses pywin32 instead. -- nosy: +sbt ___ Python tracker rep...@bugs.python.org

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: +mhammond ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16175 ___ ___ Python-bugs-list

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: Tough choice. I'm not in favor of using either ctypes or Cython for this purpose -- ctypes because it's brittle, and Cython because it is a huge complicated system of its own that I would rather not depend on. Cython already depends on CPython, so CPython

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16175 ___ ___

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Christian Heimes
Christian Heimes added the comment: Guido, Richard pointed out that pywin32 already wraps the necessary bits of IOCP. The functions are in the win32file package. Cogen's reactor uses pywin32 instead of ctypes, too. The library has an *additional* ctypes based interface in the directory

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: So do we need this ticket at all? It seems there's no code to write -- all we need to do is make sure we can integrate IOCP in the future standard reactor interface. That hardly seems a reason to keep a ticket open. --

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2382 ___ ___

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Richard Oudkerk
Richard Oudkerk added the comment: Note that since Python 3.3, multiprocessing and _winapi make some use of overlapped IO. One can use _winapi.ReadFile() and _winapi.WriteFile() to do overlapped IO on normal socket handles created using socket.socket(). --

[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2012-10-09 Thread Matthias Klose
Matthias Klose added the comment: http://www.freedesktop.org/software/systemd/man/os-release.html is the next step, with the advantage of the definition of the file format for /etc/os-release. -- ___ Python tracker rep...@bugs.python.org

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16175 ___ ___ Python-bugs-list

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fine with me. Having three macros is pointless complication. Don't having two macros for one boolean value pointless complication too? No, since you need only one to get going. Either: #ifdef PY_LITTLE_ENDIAN ... or: #ifdef PY_BIG_ENDIAN ... So this is

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch upgraded to Python 3.3. It uses a little different approach and works with invalid encoded data. unicode_utf8size.patch is not needed. This patch fixes a half of the issue - working with non-ascii non-wide characters. It's enough for many

[issue16177] IDLE Crash on Open Parens

2012-10-09 Thread Ned Deily
Ned Deily added the comment: I've not seen any reports of this behavior before. Can you try two things? One, try temporarily disabling your current IDLE preferences. Quit IDLE, then from a terminal shell, type something like: mv ~/.idlerc ~/.idlerc-disabled then launch IDLE and try the

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why we would have no code to write unless you're thinking of integrating pywin32 into the stdlib. As Richard said, overlapped I/O is already more or less supported as part of the _winapi private module. But IOCP itself isn't exposed. We could have

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Usually you need code for both alternatives. #ifdef WORDS_BIGENDIAN ... #else ... #endif What can be simpler? Of cause, using *two* macros is complicated. You need only one and second macros is unnecessary. --

[issue16177] IDLE Crash on Open Parens

2012-10-09 Thread Brian Keegan
Brian Keegan added the comment: I moved the idlerc to the disabled folder like you recommended and I haven't been able to reproduce the error again. I'll cautiously take this as an indication of a fix, but will update if it changes. Thank you! On Tue, Oct 9, 2012 at 2:40 PM, Ned Deily

[issue16178] atexit._run_exitfuncs should be a public API

2012-10-09 Thread Gregory P. Smith
New submission from Gregory P. Smith: The atexit module's _run_exitfuncs() function needs to be a public API. In Python 2.x it was exposed through a disgusting hack as sys.exitfunc() that the atexit module monkeypatched into place at import time. This monkeypatching was cleaned up in Python

[issue16179] hashlib.md5 / json inconsistency

2012-10-09 Thread Robin Åsén
New submission from Robin Åsén: I am getting inconsistent behavior when getting an md5 hexdigest on a json structure that's converted to a string. Am I doing something wrong here? import json import hashlib data = '''{key1:value1,key2:value2}'''

[issue16176] platform.platform() identifies Windows 8 as post2008Server

2012-10-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brian Curtin wrote: New submission from Brian Curtin: platform.platform() 'Windows-post2008Server-6.2.9200' The change is trivial, just accounting for a point release of 2 (from the major release 6). Looks good. Please also backport this to

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-10-09 Thread Xavier de Gaye
New submission from Xavier de Gaye: $ tmp=`mktemp /tmp/foo.XX`; echo 'def foo: pass' $tmp; python3 -m pdb $tmp; rm $tmp Traceback (most recent call last): File /usr/local/lib/python3.2/pdb.py, line 1556, in main pdb._runscript(mainpyfile) File /usr/local/lib/python3.2/pdb.py,

[issue16179] hashlib.md5 / json inconsistency

2012-10-09 Thread R. David Murray
R. David Murray added the comment: The order in which elements are produced when iterating a dictionary is not fixed. In python3.3 it is intentionally perturbed by a randomized seed at interpreter startup by default. -- nosy: +r.david.murray resolution: - invalid stage: -

[issue16160] subclassing types.SimpleNamespace does not work

2012-10-09 Thread Eric Snow
Eric Snow added the comment: Yikes. I'll get a patch up tonight. -- assignee: - eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16160 ___

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the explanation and suggestion, Antoine. I'm attaching a patch that incorporates the suggestion, but I haven't checked that it works yet (I would need to use snakebite). -- keywords: +patch Added file:

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170 ___ ___

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Chris, you can also push a custom repo to a custom builder: http://docs.python.org/devguide/buildbots.html#custom-builders -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I've just checked that your patch works under Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170 ___

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: That's great, thanks for the pointer, Antoine. I will try that out later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170 ___

[issue16181] cookielib.http2time raises ValueError for invalid date.

2012-10-09 Thread Charles Jones
New submission from Charles Jones: The docs for http2time state that None is returned if [...] the time is outside the representable range. However, it is raising a ValueError when a year larger than datetime.MAXYEAR is provided (actually raised downstream by calendar.date()). To reproduce:

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Okay, even better. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170 ___ ___ Python-bugs-list mailing

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2012-10-09 Thread Kaarle Ritvanen
New submission from Kaarle Ritvanen: Tab completion in the readline module does not seem to work well with Unicode terminals. The get_line_buffer function converts the line buffer to the str type (which are Unicode strings in Python 3), but the indices returned by get_begidx and get_endidx

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2012-10-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16182 ___

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9451908da615 by Chris Jerdonek in branch '3.3': Issue #16170: Remove Linux skip from test_subprocess's test_executable test. http://hg.python.org/cpython/rev/9451908da615 New changeset 0ee03c9b098f by Chris Jerdonek in branch 'default': Issue

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: We could have a public module exposing IOCP as a nice API :-) What about select module? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16175

[issue16088] http.server's send_error could set the content-length of the error body

2012-10-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: +1 to this change. It may be helpful in the cases like issue15991. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16088 ___

[issue16178] atexit._run_exitfuncs should be a public API

2012-10-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16178 ___ ___ Python-bugs-list mailing list

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-10-09 Thread Maciej Szulik
Maciej Szulik added the comment: I've confirmed that bug in the latest repo version, still exists. I attach patch for py3k. I'll try to have a look at it in the current version, as soon as it will be fixed I'll port it to 2.7. -- nosy: +maciej.szulik versions: +Python 3.4 Added file:

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: AC_C_BIGENDIAN -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16166 ___ ___ Python-bugs-list

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-10-09 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- assignee: - lukasz.langa nosy: +lukasz.langa versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15927 ___

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: I would be happy with requiring that the user use pywin32 if they want to use this. Have you all read the docs for IOCP? It is not for the faint of heart. E.g. it integrates with the thread scheduler. -- ___

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Have you all read the docs for IOCP? It is not for the faint of heart. E.g. it integrates with the thread scheduler. Yes, IOCP (or overlapped I/O) may use threads under the hood, but IIUC this can be ignored by the programmer, and

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: This patch fixes a half of the issue - working with non-ascii non-wide characters. The purpose of this issue is to handle CJK characters taking 2 columns instead of 1 in a terminal, or did I misunderstand it? --

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: According to http://msdn.microsoft.com/en-us/library/aa365198%28VS.85%29.aspx once you call GetQueuedCompletionStatus() your thread is managed by the IOCP and only up to a given parameter of those threads are allowed to run. They recommend setting that

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: This issue may be related or a duplicate of #11461. For example codecs.utf_16_le_decode(b'\x00\xd8\x00') should return ('', 0), but raises UnicodeDecodeError. Only incremental decoder should return partial results. Other decoders are strict and (usually)

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to http://msdn.microsoft.com/en-us/library/aa365198%28VS.85% 29.aspx once you call GetQueuedCompletionStatus() your thread is managed by the IOCP and only up to a given parameter of those threads are allowed to run. They recommend setting that

  1   2   >