[issue16160] subclassing types.SimpleNamespace does not work

2012-10-09 Thread Eric Snow
Eric Snow added the comment: Here's a patch that fixes subclass support. It was supposed to work in the first place. Guess I had tunnel vision at the time. The fix is essentially a copy of the code in dict_new() in Objects/dictobject.c. I left out the part about releasing GC if the type is

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2012-10-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2012-10-09 Thread Ezio Melotti
Ezio Melotti added the comment: I was just in a hurry and didn't have time to check if they were indeed the same issue. Looks like they are, so I'm closing this as duplicate. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> [Py3k] Syntax

[issue16115] test the executable arg to Popen() and improve related docs

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: I would like to make a few more miscellaneous improvements to the Popen() docs, including a clarification resulting from issue #16170, which stemmed from this issue. The proposed patch is attached. -- resolution: fixed -> stage: committed/rejected ->

[issue12322] ElementPath 1.3 expressions documentation

2012-10-09 Thread Mike Hoy
Mike Hoy added the comment: >> Mike - a note for the future: when you create an updated patch, create it >> anew vs. a clean repo. Don't "compound" patches. No problem, thanks for committing the patch. Wasn't aware that compounding patches caused a problem. -- ___

[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-09 Thread Ned Batchelder
Ned Batchelder added the comment: Jesús, done! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue16177] IDLE Crash on Open Parens

2012-10-09 Thread Roger Serwy
Roger Serwy added the comment: Thanks for the directory contents. The only difference I see is the "encoding = locale" which could only be set manually since the configuration editor in IDLE does not offer a way of setting it. -- ___ Python tracker

[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Ned, could you possibly send a Contributor Form Agreement? http://www.python.org/psf/contrib/ -- nosy: +jcea ___ Python tracker ___ __

[issue14313] zipfile should raise an exception for unsupported compression methods

2012-10-09 Thread Stephen McInerney
Stephen McInerney added the comment: The patch is great, can you approve it urgently please? It is seriously buggy to silently return a bad filestream, and not just throw the exception. I just wasted over a day's productivity due to this. I'm not alone. I would argue for raising priority to H

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Never mind on the above question. Those are different argv's. -- ___ Python tracker ___ ___ Python-

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-10-09 Thread Charles-François Natali
Charles-François Natali added the comment: wget trace: Here a 404 is treated correctly: """ socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5 connect(5, {sa_family=AF_INET, sin_port=htons(4242), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 select(6, NULL, [5], NULL, {900, 0})= 1 (out [5], left {900,

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

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Python under Unix uses its own path to determine where the standard library > is, and it does so by inspecting argv[0]. Actually, how is the above able to work if sys.argv[0] is set to "-c" when Python is invoked using the "-c" option (as it is in the test).

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Some old documentation: http://web.archive.org/web/20110719052845/http://developers.sun.com/solaris/articles/event_completion.html -- ___ Python tracker _

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: If this is going to be available for Windows, I would like to help to integrate too the "Event Completion Framework" of Solaris 10 and up. -- ___ Python tracker _

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16177] IDLE Crash on Open Parens

2012-10-09 Thread Roger Serwy
Roger Serwy added the comment: Brian, can you post the files from your .idlerc-disabled directory? The directory contains configuration text files. I want to find out what configuration caused the bug. (You may want to omit the recent-files.lst if you don't want to disclose that.) --

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: > I don't understand you. Read my last message, I was wrong. -- ___ Python tracker ___ ___ Python-b

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Hum no. The bug is an issue in the design of codecs.Stream* classes: > incremental decoders and encoders should be used instead of classic > decoders/encoders. I don't understand you. StreamReader and IncrementalDecoder both use the same decoder. class I

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Roumen Petrov
Roumen Petrov added the comment: As Victor point configure script already check for endian (macro AC_C_BIGENDIAN) but you should ask python OS X guru to review . Macro is not adjusted to python needs as action for universal build is not defined yet. The default is to define AC_APPLE_UNIVERSAL_

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: >>> codecs.utf_8_decode('\u20ac'.encode('utf8')[:2]) ('', 0) Oh... codecs.CODEC_decode are incremental decoders? I misunderstood completly this. "The bug is an issue in the design of codecs.Stream* classes: incremental decoders and encoders should be used ins

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: > The main reason for keeping the compatibility is that the module is > also being used outside the stdlib for Python versions starting from > 2.4 and later. I don't want to maintain two separate versions. Which projects use their own copy of platform.py? Where

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This issue may be related or a duplicate of #11461. Oh, yes, it is a duplicate. I totally forgot about it and made the work again. > Only incremental decoder should return partial results. Other decoders are > strict and (usually) stateless. Yes, there is

[issue10551] mimetypes read from the registry should not overwrite standard mime mappings

2012-10-09 Thread Ben Hoyt
Ben Hoyt added the comment: This is definitely a real issue, and makes mimetypes.guess_type() useless out of the box on Windows. However, I believe the reason it's broken is that the fix for Issue4969 doesn't actually work, and I'm not sure this is possible with the Windows registry. You see,

[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. Hum no. The bug is an issue in the design of codecs.Stream* classes: incremental decoders and encoders should be used instead of classic decoders/encoders. I don't want to fix this issue: it's better to mo

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: > with codecs.open('test.txt', 'wb', 'utf-16-le') as fp: Since Python 2.6+, you can use io.open() which uses the new io library. The io library uses TextIOWrapper which uses incremental encoder and decoder and so handles multibyte encodings correctly (as UTF-1

[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

[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 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 para

[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 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 GetQueuedCompletionStatus

[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. -- ___ Py

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

2012-10-09 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa nosy: +lukasz.langa versions: +Python 3.2, Python 3.3 ___ Python tracker ___ _

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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:

[issue16178] atexit._run_exitfuncs should be a public API

2012-10-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[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 ___ ___ Py

[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 ___

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

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[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 #16170

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

2012-10-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[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 are

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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: That's great, thanks for the pointer, Antoine. I will try that out later today. -- ___ Python tracker ___ _

[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 ___ ___ Python-

[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 ___

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

2012-10-09 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[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: http://bugs.python.org/file27507/issue

[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 ___ ___ Python-bugs-li

[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: -> committe

[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

[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 th

[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"}''' print(hashlib.md5(data.

[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

[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 wrote:

[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. -- __

[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 hav

[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 pare

[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 peo

[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

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[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

[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(). -- ___

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

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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. --

[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 ctypes

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[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 Guido van Rossum
Changes by Guido van Rossum : -- nosy: +mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[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 _

[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 __

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

2012-10-09 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes stage: -> needs patch versions: +Python 3.4 ___ Python tracker ___ ___ Python

[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'

[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 multi

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 ___ _

[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

[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 __

[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

[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 endia

[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 6e407fcf

[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 __

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

2012-10-09 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[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

[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 in

[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 from

[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 <

[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 #16169

[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 in

[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 __

[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 suggeste

[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 we're

[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 - http://hg.python.org/cpython/file/ce0d0d05249

[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 ___ ___ Python-bugs-list mailing list Unsubscribe

[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 investi

  1   2   >