[issue19488] idlelib tests are silently skipped by test.regrtest on 2.7

2013-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I explained on the checkins list, I am do hg import --no-commit indirectly though TortoiseHg Workbench Repository/import. It normally brings up an edit box for a commit message after patching and if that is left blank, it does not commit. With a message in

[issue19422] Neither DTLS nor error for SSLSocket.sendto() of UDP socket

2013-11-04 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to raise error when using sock dgram in wrap_socket. I am still unsure whether I should put the validation in C code (private function _wrap_socket) or not. -- keywords: +patch nosy: +vajrasky Added file:

[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suppose this is related to pickling. I were puzzled why it works with bytearray subclasses. But now I investigated that print() implicitly converts str and bytearray subclasses to str and left unicode subclasses as is. You can reproduce this bug for str

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-04 Thread Ned Deily
New submission from Ned Deily: Piet van Oostrum (on python-dev and elsewhere) wrote: I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 and 3.3.3. I am on Mac OS X 10.6.8. Although the installation gave no problems, there is a problem with Tcl/Tk. The new Pythons

[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch for 3.x. Without it following code hangs. class S(str): pass import sys sys.stdout.write('\u20ac') €1 sys.stdout.write(S('\u20ac')) €1 -- Added file: http://bugs.python.org/file32491/idle_write_string_subclass-3.x.patch

[issue17827] Document codecs.encode and codecs.decode

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I just noticed an interesting issue here in drafting the 2.7 backport: as near as I can tell, these aren't tested, so other implementations that failed to provide them would pass the 2.7 and 3.3 test suites. -- Added file:

[issue17827] Document and test codecs.encode and codecs.decode

2013-11-04 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: Document codecs.encode and codecs.decode - Document and test codecs.encode and codecs.decode versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-04 Thread Ned Deily
Ned Deily added the comment: That's unfortunate. It looks like matplotlib on OS X (darwin) has cpp code that interfaces directly with Tk and, hence, needs Tk headers. Further, for OS X (darwin), its setup.py assumes that Tkinter is linked with Tcl and Tk installed as frameworks in

[issue17827] Document codecs.encode and codecs.decode

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, never mind - the tests are already there (and have been since MAL's original commit prior to Python 2.4), I just fail at searching code. -- title: Document and test codecs.encode and codecs.decode - Document codecs.encode and codecs.decode

[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-11-04 Thread Ned Deily
Ned Deily added the comment: Pickling for the RPC protocol between the GUI process and the interpreter subprocess, which would explain why there is no problem when running idle -n (no subproces)? -- ___ Python tracker rep...@bugs.python.org

[issue19491] Python Crashing When Saving Documents

2013-11-04 Thread Carolyn Reed
New submission from Carolyn Reed: The ICT teacher at the school I work at has reported that frequently students are experiencing their Python software crashing when they attempt to save files. No error message is reported, the software just freezes. They are using the IDLE GUI Python v 3.2.4

[issue19491] Python Crashing When Saving Documents

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: Could you try to collect more information, like an error message, or better a traceback? Do you get a Windows popup like program crashed? Try to run IDLE from the command line, not from the icon, to get the traceback. -- nosy: +haypo

[issue19491] Python Crashing When Saving Documents

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: By the way, Python 3.2.4 is old, you should try to reproduce your issue with a newer Python version, like Python 3.3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19491

[issue19491] Python Crashing When Saving Documents

2013-11-04 Thread Carolyn Reed
Carolyn Reed added the comment: Unfortunately we are unable to run it from the command line - as we are a school this is locked down for students. There are no error messages at all, the program just freezes. -- ___ Python tracker

[issue19491] Python Crashing When Saving Documents

2013-11-04 Thread Carolyn Reed
Carolyn Reed added the comment: Okay, we'll see if we can go to V 3.3.2 and see what difference this makes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19491 ___

[issue17827] Document codecs.encode and codecs.decode

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset bdb30bdf60a5 by Nick Coghlan in branch '2.7': Close #17827: Document codecs.encode codecs.decode http://hg.python.org/cpython/rev/bdb30bdf60a5 -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed

[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 536a7c09c7fd by Victor Stinner in branch 'default': Issue #16286: write a new subfunction bytes_compare_eq() http://hg.python.org/cpython/rev/536a7c09c7fd -- nosy: +python-dev ___ Python tracker

[issue19491] Python Crashing When Saving Documents

2013-11-04 Thread Carolyn Reed
Carolyn Reed added the comment: There doesn't seem to be a Pygame version for 3.3 on the pygame webpage? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19491 ___

[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5fa291435740 by Victor Stinner in branch 'default': Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same http://hg.python.org/cpython/rev/5fa291435740 -- ___ Python tracker

[issue18702] Report skipped tests as skipped

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I forgot to merge branches? Thanks Ned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___ ___

[issue19424] _warnings: patch to avoid conversions from/to UTF-8

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 494f736f5945 by Victor Stinner in branch 'default': Issue #19424: PyUnicode_CompareWithASCIIString() normalizes memcmp() result http://hg.python.org/cpython/rev/494f736f5945 -- ___ Python tracker

[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset da9c6e4ef301 by Victor Stinner in branch 'default': Issue #16286: remove duplicated identity check from unicode_compare() http://hg.python.org/cpython/rev/da9c6e4ef301 -- ___ Python tracker

[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: I applied changes unrelated to the hash. -- Added file: http://bugs.python.org/file32493/compare_hash-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16286

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19466 ___ ___

[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: Results of benchmarks using compare_hash-3.patch: $ time ../benchmarks/perf.py -r -b default ./pythonorig ./pythonhash INFO:root:Skipping benchmark slowspitfire; not compatible with Python 3.4 INFO:root:Skipping benchmark slowpickle; not compatible with Python

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: @Stefan: Did you my comments on Rietveld? http://bugs.python.org/review/7442/#ps1473 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7442 ___

[issue18931] new selectors module should support devpoll on Solaris

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: @Giampaolo: Your patch doesn't apply cleanly anymore. Could you update it? Issue #19172 has been fixed, selectors now have a get_map() method. -- ___ Python tracker rep...@bugs.python.org

[issue19480] HTMLParser fails to handle some characters in the starttag

2013-11-04 Thread Ezio Melotti
Ezio Melotti added the comment: For 2.7 that sounds like a reasonable option, for 3.3/3.4 however I'm keeping the name but I change the regex groups, so it might break if someone is using it with groups. In theory I could add a third name and leave that unchanged, but I'm not sure it's worth

[issue19251] bitwise ops for bytes of equal length

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: You got me, Antoine! I'm working on a Python-only implementation of PBKDF2_HMAC. It involves XOR of two bytes in one place. If you want super-fast code, you should probably reimplement it in C. Python is not designed for performances... --

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file32494/022955935ba3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file32478/65e72bf01246.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file32211/57ae01bf96cb.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___

[issue19480] HTMLParser fails to handle some characters in the starttag

2013-11-04 Thread R. David Murray
R. David Murray added the comment: Then for 3.3 you are bug fixing the regex, so anyone using it ought to want the change, right? :) If the same is true for 2.7, then creating an alias would probably be fine. I haven't looked at the details, so I'll leave it to your judgment. I just don't

[issue19017] selectors: towards uniform EBADF handling

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: What is the status of this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19017 ___ ___

[issue19492] Report skipped distutils tests as skipped

2013-11-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some skipped distutils tests are reported as passed. Arfrever pointed out on some of these tests on IRC. Proposed patch adds explicit reporting them as skipped. See also issue18702. -- assignee: eric.araujo components: Distutils, Tests messages:

[issue19493] Report skipped ctypes tests as skipped

2013-11-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some skipped ctypes tests are reported as passed. Proposed patch adds explicit reporting them as skipped. See also issue18702. -- components: Tests, ctypes files: skip_tests_ctypes.patch keywords: patch messages: 202124 nosy: amaury.forgeotdarc,

[issue17828] More informative error handling when encoding and decoding

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: Updated patch. The results of this suggests to me that the input wrappers are likely infeasible at this point in time, but improving the errors for the wrong *output* type is entirely feasible. Since the main conversion we need to prompt is things like

[issue18702] Report skipped tests as skipped

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Related issues: issue19492 and issue19493. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-11-04 Thread Stefan Krah
Stefan Krah added the comment: Yes, I saw the comments. I'm still wondering if we should just write an mbstowcs_l() function instead. Even then, there would still be a small chance that a C extension that creates its own thread picks up the wrong LC_CTYPE. --

[issue19492] Report skipped distutils tests as skipped

2013-11-04 Thread Vajrasky Kok
Vajrasky Kok added the comment: You forgot to upload the proposed patch, Serhiy. -- nosy: +vajrasky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19492 ___

[issue17828] More informative error handling when encoding and decoding

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, came up with a relatively simple solution based on an internal helper function with an optional output flag: import codecs codecs.encode(bhello, bz2_codec).decode(bz2_codec) Traceback (most recent call last): File stdin, line 1, in module TypeError:

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: For anyone interested, I have a patch up on issue 17828 that produces the following output for various codec usage errors: import codecs codecs.encode(bhello, bz2_codec).decode(bz2_codec) Traceback (most recent call last): File stdin, line 1, in module

[issue17828] More informative error handling when encoding and decoding

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: The other thing is that this patch doesn't wrap AttributeError. I'm OK with that, since I believe the only codec in the standard library that currently throws that for a bad input type is rot_13. -- ___ Python

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: What is this locale_t type used for the locale parameter of mbstowcs_l()? Are you sure that it is a string? According to this patch, it looks like a structure: http://www.winehq.org/pipermail/wine-cvs/2010-May/067264.html --

[issue17828] More informative error handling when encoding and decoding

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: It would be simpler to just drop these custom codecs (rot13, bz2, hex, etc.) instead of helping to use them :-) -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17828

[issue19487] Correct the error of the example given in the doc of partialmethod

2013-11-04 Thread Nick Coghlan
New submission from Nick Coghlan: Thanks for the report, this has now been fixed in http://hg.python.org/cpython/rev/ac1685661b07 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19378] Clean up Python 3.4 API additions in the dis module

2013-11-04 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19378 ___ ___ Python-bugs-list

[issue4331] Add functools.partialmethod

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed, added to __all__ in http://hg.python.org/cpython/rev/ac1685661b07 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___

[issue19492] Report skipped distutils tests as skipped

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky. -- keywords: +patch Added file: http://bugs.python.org/file32498/skip_tests_distutils.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19492

[issue19406] PEP 453: add the ensurepip module

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: I created https://github.com/pypa/pip/issues/1294 for the script versioning issue on the pip side, as I'd prefer not to be doing the temporary directory dance if we don't need to. How do we want to handle this for beta 1? Is it OK to do an initial commit that

[issue19406] PEP 453: add the ensurepip module

2013-11-04 Thread Donald Stufft
Donald Stufft added the comment: Tweaking the Wheels won't work. The scripts are generated at install time. We need to fix it in pip, I was waiting on answers to http://bugs.python.org/issue19406#msg201954 before coming up with a solution and making a PR request as that will influence the

[issue19017] selectors: towards uniform EBADF handling

2013-11-04 Thread Charles-François Natali
Charles-François Natali added the comment: What is the status of this issue? AFAICT, we haven't reached a consensus yet on the best way to handle EBADF. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19017

[issue19406] PEP 453: add the ensurepip module

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: I'm OK with an unqualified pip install --upgrade pip retaining pip's current behaviour of always writing the unqualified script versions. However, running pip3 install --upgrade pip would ideally leave the pip and easy_install scripts alone. For make

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Vinay Sajip
Vinay Sajip added the comment: This issue had dropped off my radar, thanks for bringing it back into view. I see that the patch follows Antoine's suggestion of a chown parameter, but I'm not sure that's the best way to provide this functionality. What concerns me about a chown parameter: 1.

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Claudiu.Popa
Claudiu.Popa added the comment: Sure, thanks for the review, it's really insightful regarding API design. I will try to contribute an example for the cookbook later this day. -- ___ Python tracker rep...@bugs.python.org

[issue17828] More informative error handling when encoding and decoding

2013-11-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.11.2013 14:30, STINNER Victor wrote: It would be simpler to just drop these custom codecs (rot13, bz2, hex, etc.) instead of helping to use them :-) -1 for the same reasons I keep repeating over and over and over again :-) The codec system was

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2013-11-04 Thread Matej Cepl
New submission from Matej Cepl: GitHub API v3 is intentionally broken (see http://developer.github.com/v3/auth/): The main difference is that the RFC requires unauthenticated requests to be answered with 401 Unauthorized responses. In many places, this would disclose the existence of user

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-11-04 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor rep...@bugs.python.org wrote: What is this locale_t type used for the locale parameter of mbstowcs_l()? Are you sure that it is a string? According to this patch, it looks like a structure:

[issue19017] selectors: towards uniform EBADF handling

2013-11-04 Thread Guido van Rossum
Guido van Rossum added the comment: AFAICT, we haven't reached a consensus yet on the best way to handle EBADF. By which you mean that you still don't agree with my proposal? Which is to fix it for most syscalls but not for select(), poll() and similar (anything that the new selectors module

[issue19017] selectors: towards uniform EBADF handling

2013-11-04 Thread Charles-François Natali
Charles-François Natali added the comment: By which you mean that you still don't agree with my proposal? Which is to fix it for most syscalls but not for select(), poll() and similar (anything that the new selectors module interfaces to). I agree with your proposal, but that's another issue

[issue19492] Report skipped distutils tests as skipped

2013-11-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Lib/distutils/tests/test_build_ext.py ... -ALREADY_TESTED = True +ALREADY_TESTED = type(self).__name__ Why this change? Lib/distutils/tests/test_build_ext.py ... +@unittest.skipIf(sys.version '2.6', +

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-04 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/issue19490 ___

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-11-04 Thread Gereon Kremer
Gereon Kremer added the comment: I stumbled about this issue again and would really like to see it fixed. I see the possibility to create a test case in combination with the first test sequence which creates a temporary mail. Would it be enough, that we just call IDLE in some folder, create a

[issue19017] selectors: towards uniform EBADF handling

2013-11-04 Thread Guido van Rossum
Guido van Rossum added the comment: Eww, sorry. That's the second time I mistook this thread for the other. I re-read the original description and I now think that we should follow your original advice. There are two separate cases: (1) Registering an invalid FD; this succeeds for

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2013-11-04 Thread Damien Moore
New submission from Damien Moore: It would be useful if timeit had a class like `timeblock` below that would allow one to easily time code inside a `with` block: import time class timeblock: def __init__(self,descr=''): self.descr=descr def __enter__(self):

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2013-11-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, georg.brandl, giampaolo.rodola stage: - needs patch versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue17883] Fix buildbot testing of Tkinter

2013-11-04 Thread Zachary Ware
Zachary Ware added the comment: The buildbots appear to be happy, no more hanging and no more testLoadWithUNC failure. There is a failure in test_tcl on one bot, but it is not related to this issue. -- resolution: - fixed stage: patch review - committed/rejected status: open -

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2013-11-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I think I have already proposed something similar in past but I can't find any reference on the tracker (so maybe I didn't after all). BTW I have something like this [1] in a utils module I use across different projects and I would definitively welcome an

[issue19496] Website link

2013-11-04 Thread Sergey
New submission from Sergey: Wrong ling following to Windows help file on the Python 2.7.6 RC 1 Web page. It is the following: http://www.python.org/ftp/python/2.7.6/python275.chm And should be: http://www.python.org/ftp/python/2.7.6/python276rc1.chm -- components: Build messages:

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible to write a test for this behavior? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19466 ___

[issue19496] Website link

2013-11-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +benjamin.peterson, brian.curtin, terry.reedy, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19496 ___

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm afraid clearing thread states is a bit too brutal. What if some destructor relies on contents of the thread states (e.g. thread locals)? -- ___ Python tracker rep...@bugs.python.org

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Instead, a mixin which redefined _open would seem to fulfil the requirements, and the same strategy could be used to cater for other requirements without any stdlib changes. One desireable aspect is to still be able to configure logging using dictConfig().

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2013-11-04 Thread Matej Cepl
Matej Cepl added the comment: Also let me add from RFC 2617, end of section 2: A client MAY preemptively send the corresponding Authorization header with requests for resources in that space without receipt of another challenge from the server. Similarly, when a client sends a request to a

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Vinay Sajip
Vinay Sajip added the comment: If you are using dictConfig(), you don't need to specify a class for your handler: you can specify a callable which configures and returns a handler, and the callable could be a function which created a file with appropriate ownership and then returned a

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you are using dictConfig(), you don't need to specify a class for your handler: you can specify a callable which configures and returns a handler, and the callable could be a function which created a file with appropriate ownership and then returned a

[issue19017] selectors: towards uniform EBADF handling

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: To find an invalid FD when select() fails with EBAD, we can use something like: http://ufwi.org/projects/nufw/repository/revisions/b4f66edc5d4dc837f75857f8bffe9015454fdebc/entry/src/nuauth/tls_nufw.c#L408 -- ___

[issue19496] Website link

2013-11-04 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The link is now fixed. -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19496

[issue19085] Add tkinter basic options tests

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3fa22d04fb2 by Serhiy Storchaka in branch '2.7': Issue #19085: Fix Tkinter tests on Tk 8.5 with patchlevel 8.5.12. http://hg.python.org/cpython/rev/c3fa22d04fb2 New changeset 583347b79aa0 by Serhiy Storchaka in branch '3.3': Issue #19085: Fix

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: 2013/11/4 Antoine Pitrou rep...@bugs.python.org: I'm afraid clearing thread states is a bit too brutal. What if some destructor relies on contents of the thread states (e.g. thread locals)? When Py_Finalize() is called, only one Python thread hold the GIL.

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: 2013/11/4 Serhiy Storchaka rep...@bugs.python.org: Is it possible to write a test for this behavior? It is possible to test it manually using warn_shutdown.py attached to #19442. The warnings module may be used to test the change. --

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am referring to the following part of your patch: +/* Clear the state of the current thread */ +PyThreadState_Clear(tstate); You are clearing the thread state of the currently executing thread, which doesn't sound right. -- nosy: +neologix

[issue19497] selectors and modify()

2013-11-04 Thread Arnaud Faure
Changes by Arnaud Faure faure.a...@gmail.com: -- files: modify_data.patch keywords: patch nosy: Arnaud.Faure priority: normal severity: normal status: open title: selectors and modify() type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file32499/modify_data.patch

[issue19498] IDLE is behaving badly in Python 2.7.6rc1

2013-11-04 Thread Raymond Hettinger
New submission from Raymond Hettinger: IDLE is behaving badly in Python 2.7.6rc1 with a fresh install. The problem occurs with a sequence of creating a new window, pasting code, and running the code: Cmd-N, Cmd-V, Cmd-S, F5 The visible effect in IDLE is that a new window named idle is

[issue19498] IDLE is behaving badly in Python 2.7.6rc1

2013-11-04 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue19426. The fix for it will be in 2.7.6 final. -- nosy: +ned.deily resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - Opening a file in IDLE causes a crash or hang

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-04 Thread STINNER Victor
STINNER Victor added the comment: You are clearing the thread state of the currently executing thread, which doesn't sound right. Oh, I didn't realize that PyThreadState_Clear() clears also Python thread locals. Here is a new patch without PyThreadState_Clear(tstate) and with two unit

[issue19497] selectors and modify()

2013-11-04 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: +gvanrossum, neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19497 ___ ___

[issue19498] IDLE is behaving badly in Python 2.7.6rc1

2013-11-04 Thread Ned Deily
Ned Deily added the comment: P.S. For users comfortable with the command line, there is an procedure documented here for applying the fix to 2.7.6rc1 (2.7.6 final is expected soon): http://bugs.python.org/issue19484#msg202062 -- ___ Python tracker

[issue19085] Add tkinter basic options tests

2013-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe7aaf14b129 by Serhiy Storchaka in branch '2.7': Issue #19085: Fix running test_ttk_textonly on displayless host. http://hg.python.org/cpython/rev/fe7aaf14b129 New changeset 47d3714dcb33 by Serhiy Storchaka in branch '3.3': Issue #19085: Fix

[issue19497] selectors and modify()

2013-11-04 Thread Guido van Rossum
New submission from Guido van Rossum: The patch doesn't actually apply, not just because the pathnames are different, but because the unittests in Lib/test/test_selectors.py have a different structure. -- ___ Python tracker rep...@bugs.python.org

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2013-11-04 Thread Zachary Ware
Zachary Ware added the comment: Having another chance to look at this one, my previous message was incorrect; Terry's patch does not fix the issue for an installed Python 2.7. The only change it needs to work, though, is to replace 'Tkinter' with 'FixTk' in the import_fresh_module call.

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Vinay Sajip
Vinay Sajip added the comment: But can I pass the file owner in the config dict? You should be able to; I'll address that in the example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18345

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2013-11-04 Thread Zachary Ware
Zachary Ware added the comment: An alternative that works and also removes repeated Warning -- os.environ was modified by test_* is to import FixTk at the top of test_support, allowing the environment to be set up and to persist throughout all of the tests. I'm not sure if this is the right

[issue19497] selectors and modify()

2013-11-04 Thread Arnaud Faure
Arnaud Faure added the comment: Didn't thaught about that :( Did my way throught the developper tutorial, got the default cpython repo, did the modif, run patchcheck then the tests with ./python -m test -j3. Thanks for your patience ;) -- Added file:

[issue19497] selectors and modify()

2013-11-04 Thread Guido van Rossum
Guido van Rossum added the comment: Check out my review: http://bugs.python.org/review/19497/#ps9821 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19497 ___

[issue17828] More informative error handling when encoding and decoding

2013-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: I think I figured out a better way to structure this that avoids the need for the output flag and is more easily expanded to whitelist additional exception types as safe to wrap. I'll try to come up with a new patch tonight. -- assignee: - ncoghlan

[issue19308] Tools/gdb/libpython.py does not support GDB linked against Python 3

2013-11-04 Thread Julian Taylor
Julian Taylor added the comment: I tested the latest patch (python27-gdb_py3.patch) with ubuntu 13.10 gdb compiled against python3.3, while it fixes the syntax errors it does not fix the functionality. E.g. one gets this error on breakpoints: Python Exception class 'gdb.error' There is no

[issue19497] selectors and modify()

2013-11-04 Thread Arnaud Faure
Arnaud Faure added the comment: patch updated -- Added file: http://bugs.python.org/file32504/modify_data.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19497 ___

[issue13637] binascii.a2b_* functions could accept unicode strings

2013-11-04 Thread Martin Panter
Martin Panter added the comment: The a2b_qp() function also documents a byte string restriction for 3.2, and now 3.3 also seems to support ASCII-compatible text strings. Maybe the documentation should reflect this also? -- nosy: +vadmium ___ Python

[issue19308] Tools/gdb/libpython.py does not support GDB linked against Python 3

2013-11-04 Thread Julian Taylor
Julian Taylor added the comment: on further investigation I seem to have screwed up patching the files. Patching properly they do work. Sorry for the noise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19308

  1   2   >