[issue6532] thread.get_ident() should return unsigned value

2015-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is updated patch. Added few tests. -- Added file: http://bugs.python.org/file38167/thread_id_unsigned_3.patch ___ Python tracker ___ _

[issue23474] Enhance locale testing

2015-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23427] Python should expose command when invoked with -c

2015-02-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23474] Enhance locale testing

2015-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ef372f656d1 by Serhiy Storchaka in branch '2.7': Issue #23474: Enhanced locale testing. https://hg.python.org/cpython/rev/7ef372f656d1 New changeset b53aadd9cf85 by Serhiy Storchaka in branch '3.4': Issue #23474: Enhanced locale testing. https://hg

[issue18986] Add a case-insensitive case-preserving dict

2015-02-17 Thread Martin Panter
Martin Panter added the comment: I will be interested to see those reasons. Another way to do a similar thing might be using a Key(value, transform) class, somewhat along the lines of Issue 20632, but as a separate class rather than part of the core type system. But I have not thought that ide

[issue23410] Document more BaseHTTPRequestHandler attributes

2015-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9ff2a5bbbe2 by Benjamin Peterson in branch '3.4': document the requestline and close_connection attributes, use real booleans, and add tests (closes #23410) https://hg.python.org/cpython/rev/f9ff2a5bbbe2 New changeset 6e3e252cf047 by Benjamin Pete

[issue18986] Add a case-insensitive case-preserving dict

2015-02-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: FYI, the PEP for this isn't going to be accepted (I'm working on the write-up for the reasons why and will post on python-dev). That said, it would be great if the code continues to be improved and then posted on the Python Package Index. -- ___

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-17 Thread John Nagle
John Nagle added the comment: To try this with the OpenSSL command line client, use this shell command: openssl s_client -connect www.verisign.com:443 -CAfile cacert.pem This provides more detailed error messages than Python provides. "verify error:num=20:unable to get local issuer certifi

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-17 Thread John Nagle
John Nagle added the comment: Add cert file for testing. Source of this file is http://curl.haxx.se/ca/cacert.pem -- Added file: http://bugs.python.org/file38166/cacert.pem ___ Python tracker

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-02-17 Thread John Nagle
New submission from John Nagle: SSL certificate verification fails for "www.verisign.com" when using the cert list from Firefox. Other sites ("google.com", "python.org") verify fine. This may be related to a known, and fixed, OpenSSL bug. See: http://rt.openssl.org/Ticket/Display.html?id=2732

[issue6532] thread.get_ident() should return unsigned value

2015-02-17 Thread STINNER Victor
STINNER Victor added the comment: On Linux, the following C program tells me that pthread_t is unsigned. --- #include #include #define TYPE_IS_SIGNED(TYPE) ((TYPE)-1 < (TYPE)0) int main() { printf("signed? %i\n", TYPE_IS_SIGNED(pthread_t)); return 0; } --- So it's fair to modify thre

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2015-02-17 Thread STINNER Victor
STINNER Victor added the comment: Oh, I missed the issue #12822 which looks to fix similar bugs. -- ___ Python tracker ___ ___ Python-

[issue23472] Setup locales on buildbots

2015-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lemburg, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23475] asyncio: reference leak in test_close_kill_running()

2015-02-17 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23475] asyncio: reference leak in test_close_kill_running()

2015-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f6ddf944521 by Victor Stinner in branch '3.4': Issue #23475, asyncio: Fix test_close_kill_running() https://hg.python.org/cpython/rev/0f6ddf944521 -- nosy: +python-dev ___ Python tracker

[issue9099] multiprocessing/win32: WindowsError: [Error 0] Success on Pipe()

2015-02-17 Thread Davin Potts
Davin Potts added the comment: Though the code may have changed a bit in the meantime (Issue11750 in particular), the calls to _winapi.SetNamedPipeHandleState in Lib/multiprocessing/connection.py are still present and largely the same as when this issue was first opened. The implementation of

[issue23474] Enhance locale testing

2015-02-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.02.2015 19:34, Serhiy Storchaka wrote: > > Proposed patch enhance locale testing. test__locale is converted to support > unittest discovery. When there are no suitable locales (e.g. there is only > POSIX locale) tests are reported as skipped. Tested

[issue23475] asyncio: reference leak in test_close_kill_running()

2015-02-17 Thread STINNER Victor
New submission from STINNER Victor: The test_close_kill_running() test of test.test_asyncio.test_subprocess leaks references. It may be a reference cycle. -- haypo@selma$ ./python -Wall -b -m test.regrtest -R 3:3:refleaks -m test_close_kill_running test_asyncio [1/1] test_

[issue21998] asyncio: support fork

2015-02-17 Thread STINNER Victor
STINNER Victor added the comment: How do other event loops handle fork? Twisted, Tornado, libuv, libev, libevent, etc. -- ___ Python tracker ___ _

[issue21998] asyncio: support fork

2015-02-17 Thread Martin Richard
Martin Richard added the comment: The goal of the patch is to create a duplicate selector (a new epoll() structure with the same watched fds as the original epoll). It allows to remove fds watched in the child's loop without impacting the parent process. Actually, it's true that with the curre

[issue21998] asyncio: support fork

2015-02-17 Thread STINNER Victor
STINNER Victor added the comment: 2015-02-17 20:16 GMT+01:00 Charles-François Natali : > What would you do with the selector after fork(): register the FDs in > a new epoll, remove them? See the patch: +def _at_fork(self): +# don't unregister file descriptors: epoll is still

[issue23067] Export readline forced_update_display

2015-02-17 Thread Olivier Matz
Olivier Matz added the comment: By the way, I have my own implementation of the patch that did before checking the issue tracker. Instead of adding an argument to readline.redisplay(), it adds a new function readline.forced_update_display(). I attach the patch for reference, I don't know what

[issue23067] Export readline forced_update_display

2015-02-17 Thread Olivier Matz
Olivier Matz added the comment: Hi, I'm also interrested in this feature. Indeed, exporting rl_forced_update_display() is the only way I've found to make readline.set_completion_display_matches_hook() working properly. Without forcing the redisplay, the prompt is not displayed. This seems to

[issue22623] Missing guards for some POSIX functions

2015-02-17 Thread Link Mauve
Changes by Link Mauve : Added file: http://bugs.python.org/file38161/getedig.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue22623] Missing guards for some POSIX functions

2015-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.2 and 3.3 are only for security fixes now. -- nosy: +serhiy.storchaka versions: -Python 3.2, Python 3.3 ___ Python tracker ___

[issue2528] Change os.access to check ACLs under Windows

2015-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21998] asyncio: support fork

2015-02-17 Thread Charles-François Natali
Charles-François Natali added the comment: > @neologix: Would you be ok to add a *private* _at_fork() method to selectors > classes in Python 3.4 to fix this issue? Not really: after fork(), you're hosed anyway: """ Q6 Will closing a file descriptor cause it to be removed from all epol

[issue2528] Change os.access to check ACLs under Windows

2015-02-17 Thread Mark Lawrence
Mark Lawrence added the comment: The solution proposed here could help resolve #22107. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-17 Thread Mark Lawrence
Mark Lawrence added the comment: The feedback here https://mail.python.org/pipermail/python-dev/2011-May/111530.html seems positive. It references #2528 which is still open but strikes me as the way forward. Why don't we go for it and nail this issue once and for all? -- __

[issue22623] Missing guards for some POSIX functions

2015-02-17 Thread Link Mauve
Link Mauve added the comment: Removed the unwanted introduced function, and added a comment signaling the end of the HAVE_TTYNAME #ifdef. The full patch is attached, the diff with the previous version can be found at http://linkmauve.fr/files/getedig.patch -- Added file: http://bugs.p

[issue23474] Enhance locale testing

2015-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch enhance locale testing. test__locale is converted to support unittest discovery. When there are no suitable locales (e.g. there is only POSIX locale) tests are reported as skipped. Tested thousands_sep with non-english locales. Tested non-as

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2015-02-17 Thread Robin Schoonover
Robin Schoonover added the comment: I'm not sure I follow, as it has little to say on whether the application's expected behavior here, and only a recommendation that the server allow it. But, it also defers to the "Python Standard Library", which does have an opinion. I feel that (in hindsi

[issue23472] Setup locales on buildbots

2015-02-17 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue23473] Allow namedtuple to be JSON encoded as dict

2015-02-17 Thread Zack
New submission from Zack: We used to be able to override _iterencode prior to 2.7 to get our namedtuples to be encoded as dict using json.dump(s) but now we can not. Namedtuples are automatically encoded as list but it would be more logical and convenient to have them encoded as dict

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2015-02-17 Thread PJ Eby
PJ Eby added the comment: This is a misreading of the spec. The read() method is defined as taking exactly one parameter. The server *should* support it being optional, but the app invoking it without an argument is not compliant, and wsgiref.validate is validating that the *app* performs ac

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-02-17 Thread Demian Brecht
Demian Brecht added the comment: I’ve updated the patch to include the latin-1 charset in legal header values. It still uses a space as delimiter, but all other comments should now be addressed. -- Added file: http://bugs.python.org/file38158/issue22928_2.patch ___

[issue21998] asyncio: support fork

2015-02-17 Thread Martin Richard
Martin Richard added the comment: In that case, I suggest a small addition to your patch that would do the trick: in unix_events.py: +def _at_fork(self): +super()._at_fork() +self._selector._at_fork() +self._close_self_pipe() +self._make_self_pipe() + becomes

[issue23472] Setup locales on buildbots

2015-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Tests use following locales: test_types: en_US.UTF-8 test_codecs: tr_TR test_decimal: ps_AF test_float: fr_FR or de_DE test_imaplib: de_DE or fr_FR test_locale: (en_US.UTF-8, en_US.ISO-8859-1, en_US.US-ASCII, or en_US), tr_TR test_pickle: de_DE or fr_FR test

[issue21998] asyncio: support fork

2015-02-17 Thread STINNER Victor
STINNER Victor added the comment: > It will (obviously) not work with python 3.4 since self._selector won't have > an _at_fork() method. asyncio doc contains: "The asyncio package has been included in the standard library on a provisional basis. Backwards incompatible changes (up to and includ

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The main issue is not tempfile raises a FileExistsError, but that it hangs for several seconds (for example if the temp dir doesn't exist). The patch allows to fail early and try other temp dir. os.access() is not enough, we can add os.path.isdir(). Could yo

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-17 Thread Tim Golden
Tim Golden added the comment: And, just to be clear to Serhiy who I know doesn't use Windows, os.access really is a worthless function in its present form: worse, even, because it can be misleading. I have a long-standing patch to convert it to use AccessCheck but I've never quite had the guts to

[issue21998] asyncio: support fork

2015-02-17 Thread Martin Richard
Martin Richard added the comment: I read the patch, it looks good to me for python 3.5. It will (obviously) not work with python 3.4 since self._selector won't have an _at_fork() method. I ran the tests on my project with python 3.5a1 and the patch, it seems to work as expected: ie. when I clo

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-17 Thread Roger Upole
Roger Upole added the comment: It doesn't actually do anything, so why do it at all? In order to distinguish why it failed, you might try checking if the file actually exists, and if it is a folder. -- ___ Python tracker

[issue23425] Windows getlocale unix-like with french, german, portuguese, spanish

2015-02-17 Thread albertjan
albertjan added the comment: Hi, Thanks for your replies. Eryksun (nice to meet you here too!), your function seems very useful, thank you very much. I had indeed already switched to your 'getrawlocale' approach. Perhaps off-topic (because I have never seen this happen in Windows), but loca

[issue22883] Get rid of references to PyInt in Py3 sources

2015-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue22883] Get rid of references to PyInt in Py3 sources

2015-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f0c1937d716 by Serhiy Storchaka in branch 'default': Issue #22883: Got rid of outdated references to PyInt and PyString in comments. https://hg.python.org/cpython/rev/2f0c1937d716 New changeset c8d08de14030 by Serhiy Storchaka in branch '3.4': Issu