[issue25478] Consider adding a normalize() method to collections.Counter()

2015-10-25 Thread Raymond Hettinger
New submission from Raymond Hettinger: Allen Downey suggested this at PyCon in Montreal and said it would be useful in his bayesian statistics courses. Separately, Peter Norvig created a normalize() function in his probablity tutorial at In[45] in http://nbviewer.ipython.org/url/norvig.com/ip

[issue25193] itertools.accumulate should have an optional initializer argument

2015-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: To me prime sieve demos and puzzle problems aren't motivating use cases. Also, the two examples in the single stack-exchange answer become awkward because they would also need a middle argument for the accumulation function: Current: cs = accumulate(chai

[issue25479] Increase unit test coverage for abc.py

2015-10-25 Thread Szymon Trapp
New submission from Szymon Trapp: Added a new function to unit tests for abc.py to increase the test coverage, specifically for the usage of __subclasshook__. This will cover lines 209-214. Note: this is my first submission to Python and I'm following the advice to start with the unit tests c

[issue25466] offer "from __future__ import" option for "raise... from"

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Except for *very* carefully considered security features for 2.7, we do not add new features to python x.y after initial release. The 2.7 security exception required a PEP, and I believe the PEP was limited to features specified in the PEP. I would expect po

[issue25478] Consider adding a normalize() method to collections.Counter()

2015-10-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25473] socket.recv() raises correct code with the misleading description 'BlockingIOError: [Errno 11] Resource temporarily unavailable'

2015-10-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is simply the way glibc defines the error messages. % python3 Python 3.4.3 (default, Sep 27 2015, 15:15:25) [GCC 4.8.5] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import errno, os >>> errno.EAGAIN, errno.EWOULDBL

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am out of ideas. You might ask on python-list (accessible as newsgroup mirror on news.gmane.org) whether any other Ubunto users have the problem or have heard of it. -- ___ Python tracker

[issue25451] tkinter: PhotoImage transparency methods

2015-10-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serhiy.storchaka, terry.reedy stage: -> needs patch versions: +Python 3.6 ___ Python tracker ___ __

[issue25444] Py Launch Icon

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rockets are also used to launch communication satellites and scientific research missions. On Windows, the IDLE icon has the double snake on a white page, while the python icon is the snakes on a dark console window. They are already well differentiated. Ho

[issue25193] itertools.accumulate should have an optional initializer argument

2015-10-25 Thread Alun Champion
Alun Champion added the comment: If you are looking for other examples. Here's a wheel factorization of an indefinite sieve (primes) that was peer reviewed on codereview.stackexchange.com, see the final result in the last post by Will Ness: http://codereview.stackexchange.com/questions/92365/w

[issue25432] isinstance documentation: explain behavior when type is a tuple

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Perhaps add after third sentence (ending with "not accepted)."), "If classinfo is a tuple, isinstance(x, classinfo) is the same as any(isinstance(x, C) for C in flatten(classinfo))". -- nosy: +terry.reedy stage: -> needs patch title: isinstance docume

[issue25154] Drop the pyvenv script

2015-10-25 Thread Brett Cannon
Brett Cannon added the comment: Sorry for the delay on this; fell ill Friday and then had guests all weekend. -- status: open -> closed ___ Python tracker ___ ___

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-25 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: Any additional input on this issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25154] Drop the pyvenv script

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a5f8418b4ab by Brett Cannon in branch 'default': Issue #25154: Make the file argument apply to the print function and https://hg.python.org/cpython/rev/7a5f8418b4ab -- ___ Python tracker

[issue25425] white-spaces encountered in 3.4

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pavan, if you want to followup, please post to python-list where you can get help explaining whatever you see as a problem. If you get agreement there that a patch to CPython is needed, we can reopen this. -- nosy: +terry.reedy resolution: -> not a b

[issue25477] text mode for pkgutil.get_data

2015-10-25 Thread Antony Lee
New submission from Antony Lee: Initially suggested in #25330: it would be helpful to provide text mode support (returning unicode, and handling universal newlines) for pkgutil.get_data (either as a keyword argument, or as a separate function). -- components: Library (Lib) messages: 25

[issue25450] Python 3.5 starts in C:\Windows\system32 as current directory

2015-10-25 Thread Steve Dower
Steve Dower added the comment: We can add more options to the start menu icon, even something like "--start-in %userprofile%" should work there, as it really is just a blob of text (though I need to test that). Accepting "--start-in ~" and os.path.expanduser() would also be fine, I believe. -

[issue25193] itertools.accumulate should have an optional initializer argument

2015-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > OTOH, none of those projects is natural fit for itertools, > so changing itertools wouldn't help them directly. Indeed, this may not be a natural fit for itertools problems. As a side note, the itertools were designed to form the elements of "an iterator

[issue25470] Random Malloc error raised

2015-10-25 Thread augustin rieunier
Changes by augustin rieunier : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25447] TypeError invoking deepcopy on lru_cache

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is redundant. update_wrapper() is called just after calling _lru_cache_wrapper() in decorating_function(). -- ___ Python tracker ___ _

[issue25476] close() behavior on non-blocking BufferedIO objects with sockets

2015-10-25 Thread David Beazley
New submission from David Beazley: First comment: In the I/O library, there is documented behavior for how things work in the presence of non-blocking I/O. For example, read/write methods returning None on raw file objects. Methods on BufferedIO instances raise a BlockingIOError for operatio

[issue25468] PyTraceBack_Print()/_Py_DisplaySourceLine() should take custom loaders into account

2015-10-25 Thread Shiz
New submission from Shiz: Currently, when an error occurs in a module loaded through a loader in sys.meta_path with no direct file name correlation on the filesystem, the traceback source line is empty as such: File "/Users/mark/Development/Projects/Rave/rave/rave/game.py", line 65, in run

[issue25469] multiprocessing .Condition.notify(_all) function has O(N) time complexity where N is the number of wait() calls with a timeout since the last notify(_all) call

2015-10-25 Thread SilentGhost
Changes by SilentGhost : -- versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-b

[issue25466] offer "from __future__ import" option for "raise... from"

2015-10-25 Thread alanf
New submission from alanf: There is no "from __future__ import" option that would allow Python 2x users the "raise... from" syntax that is provided with Python 3. This is especially unfortunate because even if the "raise... from" is included in a branch that is never executed, loading the code

[issue25475] use argparse instead of getopt

2015-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: it's not for the pleasure, but there are two api for the command line. getopt and argparse. so in this case, what's the reason to keep both ? in particular if the documentation of getopt has a note with an alternative. maybe to keep the backward compatibility

[issue25456] 3.4 _tkinter build requires undocumented manual steps to be usable

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5889dbbc382 by Zachary Ware in branch '3.4': Closes #25456: Copy Tcl/Tk DLLs to build directory on Windows https://hg.python.org/cpython/rev/b5889dbbc382 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> resolved status: open

[issue25469] multiprocessing .Condition.notify(_all) function has O(N) time complexity where N is the number of wait() calls with a timeout since the last notify(_all) call

2015-10-25 Thread SilentGhost
Changes by SilentGhost : -- nosy: +jnoller, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue1182143] making builtin exceptions more informative

2015-10-25 Thread George Jenkins
George Jenkins added the comment: Bump on this one please -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22968] Lib/types.py nit: isinstance != PyType_IsSubtype

2015-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +yselivanov stage: -> patch review versions: +Python 3.6 ___ Python tracker ___ ___ Python-bug

[issue17864] IDLE won't run

2015-10-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- superseder: -> Unable to run IDLE without write-access to home directory ___ Python tracker ___ ___ Py

[issue25475] use argparse instead of getopt

2015-10-25 Thread R. David Murray
R. David Murray added the comment: This was discussed when argparse was included in the standard library, and the conclusion was that getopt serves a different purpose than argparse and should not be deprecated. argparse is mentioned as an alternative since in many cases it is to be preferred

[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Library (Lib) nosy: +alexandre.vassalotti, gvanrossum, pitrou, serhiy.storchaka type: -> behavior versions: +Python 3.6 ___ Python tracker

[issue25447] TypeError invoking deepcopy on lru_cache

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and review Jason. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0

2015-10-25 Thread Alexey Gorshkov
Changes by Alexey Gorshkov : Removed file: http://bugs.python.org/file40855/s1.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue25447] TypeError invoking deepcopy on lru_cache

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73226f0d0f89 by Serhiy Storchaka in branch '3.5': Issue #25447: The lru_cache() wrapper objects now can be copied and pickled https://hg.python.org/cpython/rev/73226f0d0f89 New changeset d3e048c7b65a by Serhiy Storchaka in branch 'default': Issue #2

[issue24633] README file installed into site-packages conflicts with package named "readme"

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 742aefb5ca46 by Steve Dower in branch 'default': Issue #24633: Removes automatic rename of site-packages/README since README.txt is now committed. https://hg.python.org/cpython/rev/742aefb5ca46 -- ___ Py

[issue23235] run_tests.py doesn't set test.support.verbose correctly

2015-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Tests nosy: +ezio.melotti, michael.foord, pitrou ___ Python tracker ___ ___ Python-bugs-

[issue8231] Unable to run IDLE without write-access to home directory

2015-10-25 Thread Keith Teal
Keith Teal added the comment: I would also like to add that the location of this directory is not correct for Windows software. This directory should be created in %APPDATA% where users by default do have write permissions. If there are plans to ever make this application portable then it shou

[issue25454] operator.methodcaller should accept additional arguments during the call

2015-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: This would be easier to evaluate propertly if you supplied some meaningful use cases. Otherwise, it is looks like hypergeneralizing. -- nosy: +rhettinger ___ Python tracker __

[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0

2015-10-25 Thread Alexey Gorshkov
Changes by Alexey Gorshkov : Added file: http://bugs.python.org/file40856/s1.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue25474] Weird behavior when setting f_trace in a context manager

2015-10-25 Thread Fred Gansevles
New submission from Fred Gansevles: I'm playing with the idea of making a DSL based on anonynous code blocks I discovered that the behaviour of the context manager is different in some cases if there are line-continuations in the 'with' command I've attached a script that reproduces this behav

[issue7322] Socket timeout can cause file-like readline() method to lose data

2015-10-25 Thread David Beazley
David Beazley added the comment: This bug is still present in Python 3.5, but it occurs if you attempt to do a readline() on a socket that's in non-blocking mode. In that case, you probably DO want to retry at a later time (unlike the timeout case). -- ___

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

2015-10-25 Thread Michiel de Hoon
Michiel de Hoon added the comment: Anything I can do to help this patch move forward? -- ___ Python tracker ___ ___ Python-bugs-list m

[issue1749512] imaplib cannot handle mailboxes with ACL: lrs

2015-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Py

[issue25439] Add type checks to urllib.request.Request

2015-10-25 Thread Nan Wu
Changes by Nan Wu : Added file: http://bugs.python.org/file40850/urllib_request_param_type_check_3.patch ___ Python tracker ___ ___ Python-bu

[issue1749512] imaplib cannot handle mailboxes with ACL: lrs

2015-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17214] http.client.HTTPConnection.putrequest encode error

2015-10-25 Thread Michael
Michael added the comment: I should have looked more closely. The typo is part of the patch. It should be corrected there. -- ___ Python tracker ___ ___

[issue21593] Clarify re.search documentation first match

2015-10-25 Thread Joshua Landau
Changes by Joshua Landau : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25450] Python 3.5 starts in C:\Windows\system32 as current directory

2015-10-25 Thread eryksun
eryksun added the comment: Steve, I think you're right that it's simpler and more reliable to add a command-line option that sets IDLE's working directory to the current user's home directory. Terry, the default behavior in Linux, at least in Ubuntu, is to start IDLE with the working directo

[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0

2015-10-25 Thread Alexey Gorshkov
Alexey Gorshkov added the comment: telnet 127.0.0.1 9000 can be used as testing client -- ___ Python tracker ___ ___ Python-bugs-list

[issue17214] http.client.HTTPConnection.putrequest encode error

2015-10-25 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue24747] ctypes silently truncates ints larger than C int

2015-10-25 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: I wouldn't call it so carved in stone: 1) The note at `ctypes.c_int' (https://docs.python.org/2/library/ctypes.html?highlight=c_int#ctypes.c_int) is meant for explicit conversion - since the entry is about using `c_int' is Python code, not converting something

[issue8231] Unable to run IDLE without write-access to home directory

2015-10-25 Thread Keith Teal
Keith Teal added the comment: Hi Terry, I did not just make that stuff up on my last post, that is actually the standard for Windows applications. Yes, many Linux ports get it wrong but is that any reason to ever perpetuate a bad practice? To see the standards you can download the Windows SDK

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread STINNER Victor
STINNER Victor added the comment: "Also rst markup in docstrings would be distractings, so we keep docstrings and online docs separated, even though there is often some overlapping." Ah yes, and the doc in Doc/ directory contains more information like ".. versionchanged:: (...)", ".. versionad

[issue25475] use argparse instead of getopt

2015-10-25 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: not sure, but in the documentation, there is a note "Module argparse: Alternative command line option and argument parsing library." may be it's time to move from getopt to argparse and mark getopt as deprecated. We have to modify 45 files, but I can submit

[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0

2015-10-25 Thread Alexey Gorshkov
New submission from Alexey Gorshkov: socket created with listening socket set to setblocking(False). gettimeout() of accept()-returned socket returns 0.0 , but recv() method blocks while client is connected and not sending any data. If client disconnects, socket returned by accept() starting r

[issue25154] Drop the pyvenv script

2015-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixing a typo is trivial. If the typo affects several version the changeset needs to be merged on all the applicable branches before being pushed. -- nosy: +ezio.melotti ___ Python tracker

[issue25475] use argparse instead of getopt

2015-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and optparse. In fact, we have getopt, optparse and argparse. 3 API for the command line. optparse is marked as deprecated. maybe we can add getopt in this list. -- ___ Python tracker

[issue25469] multiprocessing .Condition.notify(_all) function has O(N) time complexity where N is the number of wait() calls with a timeout since the last notify(_all) call

2015-10-25 Thread Vilnis Termanis
New submission from Vilnis Termanis: multiprocessing's Condition uses a couple of semaphores to keep track of processes which are sleeping and have woken up whilst waiting for the condition. These counters however are only ever decremented in the notify(_all) functions, via a loop which results i

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: Yet another patch, this time including changes to os.walk()'s docstring as well. Ignore the two other files. -- Added file: http://bugs.python.org/file40849/os_walk_doc.patch ___ Python tracker

[issue18010] pydoc search chokes on import errors

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to have a test. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-li

[issue17214] http.client.HTTPConnection.putrequest encode error

2015-10-25 Thread Michael
Michael added the comment: The patch issue17214 did fix this issue in my 3.4.2 install on Ubuntu LTS. It triggered however another bug: File "/usr/local/lib/python3.4/urllib/request.py", line 646, in http_error_302 path = urlparts.path if urlpaths.path else "/" NameError: name 'urlpaths'

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread STINNER Victor
STINNER Victor added the comment: We don't use autodoc. It would be "nice" to have a tool to update .rst files from .py and .c files, but it's not the case right now :-/ -- ___ Python tracker __

[issue20438] inspect: Deprecate getfullargspec?

2015-10-25 Thread Yury Selivanov
Yury Selivanov added the comment: > The docs for getargspec currently read, "This function will be removed in > Python 3.6." Why? We keep all sorts of old APIs for the sake of backward > compatibility, why is this one different? getargspec was deprecated since 3.0. Besides that, it returns

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8247dff49113 by Victor Stinner in branch '2.7': Issue #25461: Rephrase os.walk() doc https://hg.python.org/cpython/rev/8247dff49113 -- ___ Python tracker _

[issue25454] operator.methodcaller should accept additional arguments during the call

2015-10-25 Thread Evgeny Kapun
Evgeny Kapun added the comment: There are methods that accept a single argument and behave like a binary operation or a predicate. It would be useful to be able to turn them into binary functions for use with higher-order functions like map and reduce: reduce(methodcaller("combine"), objs)

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2015-10-25 Thread Marcin Szewczyk
Changes by Marcin Szewczyk : -- nosy: +wodny ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25465] Pickle uses O(n) memory overhead

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That is because a pickler keeps track of all pickled objects. This is needed to preserve identity and support recursive objects. You can disable memoizing by setting the "fast" attribute of the Pickler object. def fastdump(obj, file): p = pickle.Pickler(

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: A question/comment: In this case (and there are probably other cases like it) - it seems to me that the docstring (in os.py) and the docs (in os.rst) are similar enough that the docstring from the code could be included in the docs (using Sphinx's autodoc

[issue21160] incorrect comments in nturl2path.py

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a15845142ec by Serhiy Storchaka in branch '3.4': Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić. https://hg.python.org/cpython/rev/6a15845142ec New changeset acc453391c5b by Serhiy Storchaka in branch '2.7': Issue21160: Cor

[issue25450] Python 3.5 starts in C:\Windows\system32 as current directory

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see the problem: there is only one IDLE icon for all users, so you need the env var to customize for each user, which you cannot use. Staying with the python install directory, as before, should be better. We never got any complaints about that. But the ne

[issue25447] TypeError invoking deepcopy on lru_cache

2015-10-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: Can you speak to why 'update_wrapper' should be removed? Is that indicative of a deeper issue with update_wrapper also not supporting pickle/deepcopy? -- ___ Python tracker _

[issue25470] Random Malloc error raised

2015-10-25 Thread augustin rieunier
New submission from augustin rieunier: Hello there, I face random malloc error in my code. I recently added lots of json dumps/loads operation as I plugged my application with redis. Here's the error raised, and Valgrind information right after: 127.0.0.1 - - [24/Oct/2015 15:57:44] "DELETE /

[issue25447] TypeError invoking deepcopy on lru_cache

2015-10-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: Simple and elegant. I like it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue25456] 3.4 _tkinter build requires undocumented manual steps to be usable

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 168569414215 by Zachary Ware in branch '3.4': Issue #25456: Fix test_idle when Tcl/Tk DLLs are loaded from python.exe's home https://hg.python.org/cpython/rev/168569414215 -- ___ Python tracker

[issue9051] Improve pickle format for timezone aware datetime instances

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch adds tests for timezone pickling and copying. Note, that timezone.utc identity is preserved. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file40852/timezone_test_pickle.patch ___

[issue892902] problem with pickling newstyle class instances

2015-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> needs patch versions: -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Pyth

[issue25475] use argparse instead of getopt

2015-10-25 Thread SilentGhost
SilentGhost added the comment: This seems like a change for the sake of change. I think any module that requires argparse features can be moved in its own time. -- nosy: +SilentGhost resolution: -> rejected status: open -> closed ___ Python tracker

[issue25473] socket.recv() raises correct code with the misleading description 'BlockingIOError: [Errno 11] Resource temporarily unavailable'

2015-10-25 Thread Alexey Gorshkov
New submission from Alexey Gorshkov: (in continuation to bug https://bugs.python.org/issue25471 ) socket.recv() raises 'BlockingIOError: [Errno 11] Resource temporarily unavailable' in case, if setblocking(False) on socket returned by non-blocking socket's .accept() method and client does not

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0286bb18a351 by Victor Stinner in branch '3.4': Issue #25461: Rephrase os.walk() doc https://hg.python.org/cpython/rev/0286bb18a351 New changeset 9f68e41fb4a7 by Victor Stinner in branch '3.5': Merge 3.4 (Issue #25461) https://hg.python.org/cpython/

[issue18010] pydoc search chokes on import errors

2015-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks good. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25450] Python 3.5 starts in C:\Windows\system32 as current directory

2015-10-25 Thread Steve Dower
Steve Dower added the comment: Unfortunately it looks like MSI won't let you put an environment variable into the shortcut, as it has to resolve it on install (see WkDir at https://msdn.microsoft.com/en-us/library/aa371847(VS.85).aspx) Trying some other ideas, but it looks like the most robust

[issue20438] inspect: Deprecate getfullargspec?

2015-10-25 Thread Ned Batchelder
Ned Batchelder added the comment: I'm confused: the discussion here is mostly about updating docs to note deprecation. Then at the very end, is an off-hand remark about removing getargspec. The docs for getargspec currently read, "This function will be removed in Python 3.6." Why? We keep

[issue25467] Put “deprecated” warnings first

2015-10-25 Thread Tony R.
New submission from Tony R.: Python has wonderful, detailed documentation. I love it! Unfortunately, I have often found myself reading the otherwise-excellent documentation on a class/function/whatever, only to find out at the END of my reading that it is deprecated. This is frustrating, and

[issue25456] 3.4 _tkinter build requires undocumented manual steps to be usable

2015-10-25 Thread Zachary Ware
Zachary Ware added the comment: Should be fixed now, please test? I think everything is now covered in readme.txt as well. -- ___ Python tracker ___ ___

[issue25455] Some repr implementations don't check for self-referential structures

2015-10-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-10-25 Thread Ent
Ent added the comment: Hi, Is it possible for this patch to be reviewed now? Regards, Ent -- ___ Python tracker ___ ___ Python-bugs-

[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-10-25 Thread Matt Chaput
New submission from Matt Chaput: If I try to pickle and unpickle an object of a class that has specialized a generic superclass, when I try to unpickle I get this error: TypeError: descriptor '__dict__' for 'A' objects doesn't apply to 'B' object Test case: from typing import Generic, TypeVar

[issue25469] multiprocessing .Condition.notify(_all) function has O(N) time complexity where N is the number of wait() calls with a timeout since the last notify(_all) call

2015-10-25 Thread Vilnis Termanis
Changes by Vilnis Termanis : Added file: http://bugs.python.org/file40854/condition_test.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0

2015-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10e044a734f3 by Benjamin Peterson in branch '3.4': accepted sockets shouldn't inherit the SOCK_NONBLOCK flag (closes #25471) https://hg.python.org/cpython/rev/10e044a734f3 New changeset 7577960ea17b by Benjamin Peterson in branch '3.5': merge 3.4 (#

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread STINNER Victor
STINNER Victor added the comment: > If you want to avoid ineffective because its meaning is subtle (a reasonable > request), the correct replacement would be "modifying dirnames has no effect > on the behavior of the walk", which is wordier but clearer. I prefer the new sentence, it's more exp

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Usually docstrings are short and to the point, and serve more as a remainder, whereas the online docs explain everything in detail. Also rst markup in docstrings would be distractings, so we keep docstrings and online docs separated, even though there is often so

[issue25466] offer "from __future__ import" option for "raise... from"

2015-10-25 Thread R. David Murray
R. David Murray added the comment: I doubt we are going to add such a feature to python2 at this point, since people have worked out various workarounds (see the six module). We do not at this point add features to python2 unless there's a really compelling reason (eg: security). -- n

[issue21160] incorrect comments in nturl2path.py

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> commit review type: -> enhancement versions: +Python 2.7, Python 3.6 ___ Python tracker __

[issue8231] Unable to run IDLE without write-access to home directory

2015-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle is not unique. Several other apps ported from unix also put .xyx files in the home directory on Windows. What is unusual, if not unique, about IDLE is the need to run multiple versions. If .idlerc is moved, already released versions will not be able to a

[issue892902] problem with pickling newstyle class instances

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that backports recursive objects handling to 2.7. -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch -> patch review Added file: http://bugs.python.org/file40859/pickle_recursive-2.7.patch __

[issue21160] incorrect comments in nturl2path.py

2015-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Jurko. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2015-10-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25154] Drop the pyvenv script

2015-10-25 Thread Stefan Behnel
Stefan Behnel added the comment: May I ask how difficult it is for any of the core developers to fix a known typo in a Python source file? -- nosy: +scoder ___ Python tracker __

[issue25465] Pickle uses O(n) memory overhead

2015-10-25 Thread Eric V. Smith
Eric V. Smith added the comment: In what way does the OS crash? Are there any kernel messages? Or is this the python executable crashing? Again, if so, what messages are printed? In any event, if this really is an OS crash, then it's a Linux bug and should be reported to them. -- nosy

  1   2   >