[issue23546] windows, IDLE and pep 397

2015-02-28 Thread Liam Marsh
New submission from Liam Marsh: hello, pep 397 describes a "Python launcher for the Windows platform. A Python launcher is a single executable which uses a number of heuristics to locate a Python executable and launch it with a specified command line." Problem: that affects only the

[issue23546] windows, IDLE and pep 397

2015-02-28 Thread SilentGhost
Changes by SilentGhost : -- components: +Installation versions: -Python 2.7, Python 3.2, Python 3.6 ___ Python tracker ___ ___ Python

[issue20204] pydocs fails for some C implemented classes

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What type of warning is more preferable here? It will be emitted at import. E.g.: $ ./python -Wall Python 3.5.0a1+ (default:28ba862036cc+, Feb 28 2015, 11:01:23) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue23304] Unused Superclass in calendar.py

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23458] [2.7] random: make the file descriptor non-inheritable (on POSIX)

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23528] Limit decompressed data when reading from GzipFile

2015-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23521] OverflowError from timedelta * float in datetime.py

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21619] Cleaning up a subprocess with a broken pipe

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___

[issue21619] Cleaning up a subprocess with a broken pipe

2015-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5e9ddbdd4a7 by Serhiy Storchaka in branch '3.4': Issue #21619: Popen objects no longer leave a zombie after exit in the with https://hg.python.org/cpython/rev/b5e9ddbdd4a7 New changeset cdac249808a8 by Serhiy Storchaka in branch 'default': Issue #2

[issue21619] Cleaning up a subprocess with a broken pipe

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Martin. -- resolution: -> fixed stage: patch review -> resolved type: -> resource usage versions: +Python 3.5 ___ Python tracker ___

[issue21619] Cleaning up a subprocess with a broken pipe

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21619] Cleaning up a subprocess with a broken pipe

2015-02-28 Thread STINNER Victor
STINNER Victor added the comment: Why not ignoring BrokenPipeError like communicate()? -- ___ Python tracker ___ ___ Python-bugs-list

[issue23062] test_argparse --version test cases

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why the test class is moved? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-lis

[issue21619] Cleaning up a subprocess with a broken pipe

2015-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b4d916329e7 by Serhiy Storchaka in branch '3.4': Fixed a test for issue #21619 on Windows. https://hg.python.org/cpython/rev/1b4d916329e7 New changeset eae459e35cb9 by Serhiy Storchaka in branch 'default': Fixed a test for issue #21619 on Windows.

[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be mention that the result of PyUnicode_AsUTF8() can contain null bytes? And the same for PyBytes_AS_STRING()/PyBytes_AsString()? -- nosy: +serhiy.storchaka ___ Python tracker

[issue20204] pydocs fails for some C implemented classes

2015-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: The case for RuntimeWarning: the object isn't necessarily *broken* as such (most things will still work), but pickling and some introspection features may not work properly. The case for DeprecationWarning: breaking picking and introspection is bad when the fix

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2015-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: OK, something appears to have gotten confused along the way here. Barry's original problem report was that operator.index() was returning a different answer than operator.__index__() for int subclasses. Absolutely nothing to do with the int builtin at all. While

[issue22341] Python 3 crc32 documentation clarifications

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: crc & 0x is still used in gzip, zipfile and tarfile. And some comments say about signess of 32-bit checksums. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue23200] Clarify max_length and flush() for zlib decompression

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +nadeem.vawda stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22350] nntplib file write failure causes exception from QUIT command

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue23247] Multibyte codec StreamWriter.reset() crashes

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka priority: normal -> high ___ Python tracker ___ __

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2015-02-28 Thread László Attila Tóth
László Attila Tóth added the comment: It seems I found the solution in the attached file argparse.disable_interspersed_args.python35.diff, and it's much-much easier than I thought. I assume that this patch can cleanly applied to earlier versions (python 3.2-3.4), but I didn't check it. --

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue23391] Documentation of EnvironmentError (OSError) arguments disappeared

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review nosy: +pitrou stage: -> patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ __

[issue23411] Update urllib.parse.__all__

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Stefan Krah
Stefan Krah added the comment: > I wouldn't know if they're reported to the same bug tracker...it's possible > they aren't. Well, why don't you try? :) > Additionally it's possible that the lack of locale support in libc isn't > considered a bug. Their "struct lconv" violates both the C sta

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Cyd Haselton
Cyd Haselton added the comment: >Well, why don't you try? :) Resource optimization. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue23411] Update urllib.parse.__all__

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Exposed classes are the types of results returned by urllib.parse functions. It is very unlikely that they will be directly used by the user. I see the only benefit of adding these class to __all__ that they will become visible for pydoc. Is it worth to appl

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Stefan Krah
Stefan Krah added the comment: Fine, I'm also optimizing and the "fix" isn't going into libmpdec. Android can use the Python version of decimal. -- ___ Python tracker ___ ___

[issue23545] Turn on extra warnings on GCC

2015-02-28 Thread Stefan Krah
Stefan Krah added the comment: +1. I think the flags should go into CFLAGS_NODIST. -- nosy: +skrah ___ Python tracker ___ ___ Python-b

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2015-02-28 Thread Stefan Krah
Stefan Krah added the comment: Consider the libmpdec part rejected. It is too much work given that external libmpdecs need to be compatible and Android can use the Python version of decimal. -- nosy: +skrah ___ Python tracker

[issue23547] Engineering at Google in 2015

2015-02-28 Thread Michael Bevilacqua-Linn
New submission from Michael Bevilacqua-Linn: Hey thanks so much for reaching out! I'm not really interested in leaving Philly or my current job at the moment though... Thanks! MBL On Fri, Feb 27, 2015 at 4:48 AM, Margaret O'Reilly wrote: > Hi Michael, > > I hope you are well. > > > My name i

[issue23547] Engineering at Google in 2015

2015-02-28 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23521] OverflowError from timedelta * float in datetime.py

2015-02-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: needs patch -> commit review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Cyd Haselton
Cyd Haselton added the comment: >Fine, I'm also optimizing and the "fix" isn't going into libmpdec. >Android can use the Python version of decimal. Er, ok. Not entirely sure what this means, mostly because the handful of spare cycles not allocated to a) getting a fork up, running and patched b)

[issue23446] Use PyMem_New instead of PyMem_Malloc

2015-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Pytho

[issue23490] allocation (and overwrite) of a 0 byte buffer

2015-02-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17140] Document multiprocessing.pool.ThreadPool

2015-02-28 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue23521] OverflowError from timedelta * float in datetime.py

2015-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8fe15bf68522 by Alexander Belopolsky in branch '3.4': Fixes #23521: Corrected pure python implementation of timedelta division. https://hg.python.org/cpython/rev/8fe15bf68522 New changeset d783132d72bc by Alexander Belopolsky in branch 'default': Fi

[issue23521] OverflowError from timedelta * float in datetime.py

2015-02-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-02-28 Thread Jack O'Connor
New submission from Jack O'Connor: This toy program: import asyncio @asyncio.coroutine def main(): p = yield from asyncio.create_subprocess_shell('echo hi') yield from p.wait() asyncio.get_event_loop().run_until_complete(main()) Produces this output on Arch Linux under Python 3.4.3 (but

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread James Rutherford
James Rutherford added the comment: Happy to remove OPTIONS from the list of methods that gets a content-length where body is None, but do we also want to consider behaviour if it's the empty string? My feeling is that '' implies "present but empty" (so should have a content-length set to zero

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___

[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8

2015-02-28 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower components: +Library (Lib), Windows -Extension Modules nosy: +tim.golden, zach.ware stage: needs patch -> patch review ___ Python tracker __

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: Does it also have that error if you add `asyncio.get_event_loop().close()` to the end of the program? Can you figure out what the value of `sig` and `handler` are in the traceback? My gut feeling tells me this is due to `signal.default_int_handler` being Non

[issue23549] heapq docs should be more precise about how to access the smallest element

2015-02-28 Thread Eli Bendersky
New submission from Eli Bendersky: The heapq documentation has this paragraph after the doc of nsmallest: The latter two functions perform best for smaller values of n. For larger values, it is more efficient to use the sorted() function. Also, when n==1, it is more efficient to use the buil

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Mark Lawrence
Mark Lawrence added the comment: Pang :( -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23549] heapq docs should be more precise about how to access the smallest element

2015-02-28 Thread Eli Bendersky
Eli Bendersky added the comment: Proposed patch (generated vs. the 3.4 docs) is attached -- keywords: +patch Added file: http://bugs.python.org/file38277/issue23549.1.patch ___ Python tracker __

[issue23304] Unused Superclass in calendar.py

2015-02-28 Thread Berker Peksag
Changes by Berker Peksag : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23062] test_argparse --version test cases

2015-02-28 Thread Berker Peksag
Berker Peksag added the comment: > Why the test class is moved? Just wanted to group all TestHelp* tests together. -- ___ Python tracker ___

[issue23542] Update PEP 476 for using urllib2.build_opener()

2015-02-28 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker ___ ___ Pyt

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible to make tests based on mocked server instead of real local server? NNTP_SSL still is not tested. -- versions: +Python 3.5 ___ Python tracker

[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue23062] test_argparse --version test cases

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But it already was between two help tests: TestHelpNoHelpOptional and TestHelpNone. I think that original test tested that the help attribute is optional for the --version argument and default description is printed in help output. This test shouldn't be re

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-02-28 Thread Nikolaus Rath
Nikolaus Rath added the comment: On Feb 27 2015, Martin Panter wrote: > In the code review, Nikolaus raised the idea of allowing a custom > “buffer_size” parameter for the BufferedReader. I think this would > need a bit of consideration about how it should work: > > 1. Should it be a direct wrap

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-02-28 Thread Hammerite
New submission from Hammerite: Unicode Standard Annex #15 (http://unicode.org/reports/tr15/#Stable_Code_Points) describes how each character in Unicode, for each of the four normalisation forms, has a "Quick_Check" value that aids in determining whether a given string is in that normalisation

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-02-28 Thread SilentGhost
Changes by SilentGhost : -- nosy: +benjamin.peterson, lemburg, loewis, pitrou versions: +Python 3.5 ___ Python tracker ___ ___ Python-

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a problem with the patch. When you are in interactive help utility, then the request 'help' runs nested interactive help utility. The difference between unpatched behavior is that now you need press Ctrl-D or 'q' twice to exit to normal Python inter

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file38278/issue19880v4.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file38279/issue19880v4.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-02-28 Thread Jack O'Connor
Jack O'Connor added the comment: `close()` fixes it; thanks for the workaround! When I throw a print statement inside `remove_signal_handler`, it says that sig is 17 and handler is 0. 17 looks to be SIGCHLD, presumably from the little echo subprocess exiting in this example. -- _

[issue23544] IDLE hangs when selecting Stack View with debug active

2015-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that 'Stack Viewer' does not explain what this does, which is to gives a more detail view of the stack and name bindings after an exception. The doc entry does not either. I will consider 'Stack Trace' or maybe 'Exception Review'. I think a popup me

[issue23505] Urlparse insufficient validation leads to open redirect

2015-02-28 Thread Yassine ABOUKIR
Changes by Yassine ABOUKIR : -- nosy: +benjamin.peterson, pitrou, python-dev ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23549] heapq docs should be more precise about how to access the smallest element

2015-02-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue23551] IDLE to provide menu options for using PIP

2015-02-28 Thread Raymond Hettinger
New submission from Raymond Hettinger: In teaching Python, I find that many Windows users are command-line challenged and have difficulties using and accessing PIP. In the spirit of what Tortoise has done for version control, I propose that menu options be added for PIP. PyPI (Python Package

[issue23551] IDLE to provide menu options for using PIP

2015-02-28 Thread Donald Stufft
Donald Stufft added the comment: I don't know if this should be part of IDLE or not, but I've long wondered if we should make a GUI frontend for pip. To be clear, I'm not against this being in IDLE either, but just saying I've thought about making a pip-gui project in the past, I just haven't

[issue23552] Have timeit warn about runs that are not independent of each other

2015-02-28 Thread Raymond Hettinger
New submission from Raymond Hettinger: IPython 3.0 added a useful feature that we ought to consider for inclusion either in timeit.repeat() or in the command-line interface: """Using %timeit prints warnings if there is at least a 4x difference in timings between the slowest and fastest runs, s

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

2015-02-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm also eager to hear what limitations prevented the acceptance. Please do link back here when you've posted. I have to say, I'm not entirely surprised. In my implementation, I struggled with some cases, and it certainly doesn't feel like a fully safe implem

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-02-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Can you provide a patch for this ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ok...so the joys of autoconf configuring bite again. ALL Android devices have /dev/ptmx (adb even assumes it)...should the configure script be modified to skip that check if cross-compiling for Android? -- ___ Python

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread Martin Panter
Martin Panter added the comment: Yes I agree with the behaviour that None means no body (for requests such as GET), and an empty string means an empty but present body. Correct me if I’m wrong, but I think the fix for Issue 14721 already does that. Perhaps the new behaviour needs a “Changed in

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-02-28 Thread Hammerite
Hammerite added the comment: No, I haven't done any work on it. Is that the "done" thing when suggesting something? I'm sorry, I wasn't aware. I could look into it. I am unfamiliar with the CPython codebase, but I can have a go. -- ___ Python track

[issue23411] Update urllib.parse.__all__

2015-02-28 Thread Martin Panter
Martin Panter added the comment: For what it’s worth, I have used the the SplitResult class directly to build URLs from components, and to get at the hostname:port parsing functionality, as described in Issue 23416. As well as pydoc, I notice when things are missing from __all__ when I try to

[issue23549] heapq docs should be more precise about how to access the smallest element

2015-02-28 Thread Martin Panter
Martin Panter added the comment: “Smalest” is spelt with a double L. -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mai

[issue23549] heapq docs should be more precise about how to access the smallest element

2015-02-28 Thread Eli Bendersky
Eli Bendersky added the comment: Good catch. Attaching a new version of the patch with the typo fixed. -- Added file: http://bugs.python.org/file38280/issue23549.2.patch ___ Python tracker

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread James Rutherford
James Rutherford added the comment: I actually consider this a fix for the fix in 14721, rather than a new feature. The only new behaviour here is setting content length to be zero if body is None on PATCH, POST, or PUT. Happy to change the labeling if that's the consensus but IMO it's a bugfi

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Mark Lawrence
Mark Lawrence added the comment: LGTM. I noticed this running the tests. test_modules (test.test_pydoc.PydocImportTest) ... skipped 'causes undesireable side-effects (#20128)' test_modules_search (test.test_pydoc.PydocImportTest) ... skipped 'causes undesireable side-effects (#20128)' test_mo

[issue20204] pydocs fails for some C implemented classes

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It also can be ImportWarning (warnings triggered during the process of importing a module (ignored by default)). -- ___ Python tracker ___ __

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2015-02-28 Thread Mark Lawrence
Mark Lawrence added the comment: Whilst testing #19980 I noticed that three tests are still skipped. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue23547] Engineering at Google in 2015

2015-02-28 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg236889 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a1fe339dcf6 by Serhiy Storchaka in branch 'default': Issue #19980: Improved help() for non-recognized strings. help('') now https://hg.python.org/cpython/rev/4a1fe339dcf6 -- nosy: +python-dev ___ Python

[issue23547] Misdirected

2015-02-28 Thread Ned Deily
Changes by Ned Deily : -- stage: -> resolved title: Engineering at Google in 2015 -> Misdirected ___ Python tracker ___ ___ Python-bu

[issue19980] Improve help('non-topic') response

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Mark. > I noticed this running the tests. This is temporary OK. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: So this is still strange. When you do this, does it give the same exception? >>> import signal >>> signal.signal(signal.SIGCHLD, signal.SIG_DFL) -- ___ Python tracker __

[issue23551] IDLE to provide menu options for using PIP

2015-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, I have had a very vague idea of doing something like this. Thanks for posting something more concrete. I share the sentiments of your last sentence. Reading Stackoverflow, it is apparent that some people with two+ Python versions do not know that a

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

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

[issue23551] IDLE to provide menu options for using PIP

2015-02-28 Thread Donald Stufft
Donald Stufft added the comment: I'm unlikely to have the time or motivation to do this anytime soon (just to be clear). I would be able to advise anyone who does feel like doing it the best ways to interact with pip itself though. -- ___ Python tra

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Cyd Haselton
Cyd Haselton added the comment: *ALL Android devices have /dev/ptmx (adb even assumes it)...should the *configure script be modified to skip that check if cross-compiling for *Android? Yes, definitely. See the mods to pyconfig.h here" https://code.google.com/p/python-for-android/wiki/CrossComp

[issue23551] IDLE to provide menu options for using PIP

2015-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thinking a bit more, the Idle entry point could be one entry, 'Install Packages' or 'Manage Packages' on the Options menu (or maybe Help menu). I am not sure that the new window would need a submenu, as I think everything listed in the opening post could fit

[issue23553] Reduce the number of comparison for range checking.

2015-02-28 Thread Raymond Hettinger
New submission from Raymond Hettinger: Python's core is full of bound checks like this one in Objects/listobject.c: static PyObject * list_item(PyListObject *a, Py_ssize_t i) { if (i < 0 || i >= Py_SIZE(a)) { ... Abner Fog's high-level language optimization guide, http://www.agner.org

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread Demian Brecht
Demian Brecht added the comment: > My feeling is that '' implies "present but empty" (so should have a > content-length set to zero), whereas None implies "missing" (so should only > have a content-length header set to zero if the method is expecting a body. Although I understand your thinking

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread Demian Brecht
Demian Brecht added the comment: > I actually consider this a fix for the fix in 14721, rather than a new > feature. +1 -- ___ Python tracker ___ __

[issue23553] Reduce the number of comparison for range checking.

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is a technique commonly used in STL implementations. This is why sizes and indices in STL are unsigned. But in CPython implementation sizes are signed (Py_ssize_t). The problem with using this optimization (rather low-level than high-level) is that

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2015-02-28 Thread Giovanni Cannata
New submission from Giovanni Cannata: In 18.5.4.3.2. TCP echo server protocol the class in the example code is called EchoServerClientProtocol. It should be EchoServerProtocol. (The client protocol example is correctly called EchoClientProtocol). -- assignee: docs@python components: D

[issue23553] Reduce the number of comparison for range checking.

2015-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The type of i and Py_SIZE(a) is Py_ssize_t, so when casted to > unsigned int, highest bits are lost. The correct casting type is size_t. Yes, I had just seen that a early today and deciding whether to substitute size_t for the unsigned cast or whether to

[issue23553] Reduce the number of comparison for range checking.

2015-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Wouldn't size_t always work for Py_ssize_t? Yes. But it wouldn't work for say off_t. The consistent way is always use size_t instead of Py_ssize_t. But this boat has sailed. -- ___ Python tracker

[issue23553] Reduce the number of comparison for range checking.

2015-02-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file38281/size_t.diff ___ Python tracker ___ ___

[issue23553] Reduce the number of comparison for range checking.

2015-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > But it wouldn't work for say off_t. I'm only proposing a bounds checking macro for the Py_ssize_t case which is what all of our IndexError tests look for. Also, please look at the attached deque fix. -- ___ Py

[issue20204] pydocs fails for some C implemented classes

2015-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: ImportWarning is slightly different - it's aimed at issues that happen during the operation of the import machinery itself. This isn't that - it's a warning related to the extension module actually initialising itself, so it's akin to a warning issued due to the

  1   2   >