[issue22055] Incomplete sentence in asyncio BaseEventLoop doc

2014-07-23 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- assignee: docs@python components: Documentation, asyncio files: asyncio-eventloop-doc-incomplete-sent.diff keywords: patch nosy: docs@python, gvanrossum, haypo, sahutd, yselivanov priority: normal severity: normal status: open title: Incomplete sentence

[issue2091] file accepts 'rU+' as a mode

2014-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 3.4+ 'U' already emits deprecation warning. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue13041] argparse: terminal width is not detected properly

2014-07-23 Thread paul j3
paul j3 added the comment: For now the user could add this to his module: import os, shutil os.environ['COLUMNS'] = str(shutil.get_terminal_size().columns) -- ___ Python tracker ___

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. But it would be better to add underscore prefix to class name. -- nosy: +serhiy.storchaka stage: -> commit review ___ Python tracker __

[issue22041] http POST request with python 3.3 through web proxy

2014-07-23 Thread Demian Brecht
Demian Brecht added the comment: Ignore my previous note. Digging into this a little more, I think I've possibly found the underlying issue: If the port is not specified in set_tunnel (as in your example), the buffer sent over the wire looks like "send: b'POST [PATH] HTTP/1.1\r\nHost: [HOST]:

[issue22036] Obsolete reference to stringobject in comment

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5a80f79699e by Benjamin Peterson in branch '3.4': s/stringobject/bytesobject/ (closes #22036) http://hg.python.org/cpython/rev/a5a80f79699e New changeset 6be54158e935 by Benjamin Peterson in branch 'default': merge 3.4 (#22036) http://hg.python.org

[issue22021] shutil.make_archive() root_dir do not work

2014-07-23 Thread Weinan Li
Weinan Li added the comment: that sounds reasonable -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue22041] http POST request with python 3.3 through web proxy

2014-07-23 Thread Demian Brecht
Demian Brecht added the comment: Hi Alejandro, I've spent a little time looking into this. I haven't been able to reproduce what you're seeing on Windows exactly, but I've encountered other issues along the same path using a local squid instance (localhost:4242): from http.client import OK,

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-07-23 Thread Dan O'Reilly
Dan O'Reilly added the comment: Here's a patch that adds the new map implementation from the benchmark script to concurrent.futures.process. -- keywords: +patch Added file: http://bugs.python.org/file36059/map_chunksize.patch ___ Python tracker

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-07-23 Thread Dan O'Reilly
Dan O'Reilly added the comment: I'm seeing an even larger difference between multiprocessing.Pool and ProcessPoolExecutor on my machine, with Python 3.4: Starting multiproc...done in 2.160644769668579 s. Starting futures...done in 67.953957319259644 s. Starting futures "fixed"...done in 2.13493

[issue9949] os.path.realpath on Windows does not follow symbolic links

2014-07-23 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I have unlinked my patch since it doesn't looks correct now. Sorry for disturbing. -- ___ Python tracker ___ ___

[issue9949] os.path.realpath on Windows does not follow symbolic links

2014-07-23 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26487/issue9949.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2014-07-23 Thread Milan Oberkirch
Milan Oberkirch added the comment: This bug was resolved for SMTPServerDisconnected exceptions but not for SSLError. Is it still reproducible? If so, the attached patch should fix it for 3.x (couldn't test if it does because I don't know how to reproduce the error). -- nosy: +jesstess,

[issue1191964] add non-blocking read and write methods to subprocess.Popen

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: > I have implemented and would continue to lean towards continuing to hide > BrokenPipeError on the additional API endpoints. FYI asyncio.Process.communicate() ignores BrokenPipeError and ConnectionResetError, whereas asyncio.Process.stdin.drain() (coroutine t

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22018] Add a new signal.set_wakeup_socket() function

2014-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't like the option (B). Sockets are usually stored as objects > (socket.socket) because of Windows, not as socket handle (int) I don't understand this. If you're ok with calling fileno() under Linux, why not under Windows? -- _

[issue22018] Add a new signal.set_wakeup_socket() function

2014-07-23 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg223793 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18643] add a fallback socketpair() implementation in test.support

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: 2014-07-24 0:21 GMT+02:00 Charles-François Natali : >> You should copy the code from asyncio.windows_utils.socketpair(). It checks >> also type and proto parameter: raise a ValueError for unsupported values >> (only SOCK_STREAM and proto=0 are supported). It al

[issue18605] 2.7: test_threading hangs on Solaris 9

2014-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: Is Solaris 9 supported as I can't find any buildbots for it? -- nosy: +BreamoreBoy, jcea versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue16005] smtplib.SMTP().sendmail() and rset()

2014-07-23 Thread Milan Oberkirch
Milan Oberkirch added the comment: This bug is fixed (at least in 3.5) so you might want to close it. (See the _rset function in smtplib.py:482 and how its used in sendmail.) -- nosy: +jesstess, zvyn ___ Python tracker

[issue17548] unittest.mock: test_create_autospec_unbound_methods is skipped

2014-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: Both of these tests are still commented out in the default branch. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue21850] Fix httplib and SimpleHTTPServer in unicodeless build

2014-07-23 Thread Demian Brecht
Demian Brecht added the comment: Left a couple comments on Rietveld -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-lis

[issue22018] Add a new signal.set_wakeup_socket() function

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: Windows only supports non-blocking mode for sockets. IMO we should only support sockets on Windows. I opened the issue #22042 which proposes to change signal.set_wakeup_fd(fd) to automatically make the file descriptor non-blocking. I cannot implement it on Win

[issue22018] Add a new signal.set_wakeup_socket() function

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: Windows only supports non-blocking mode for sockets. IMO we should only support sockets on Windows. I opened the issue #22042 which proposes to change signal.set_wakeup_fd(fd) to automatically make the file descriptor non-blocking. I cannot implement it on Win

[issue2091] file accepts 'rU+' as a mode

2014-07-23 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue18174] Make regrtest with --huntrleaks check for fd leaks

2014-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: Just flagging this up as testing is rather important. -- components: +Tests nosy: +BreamoreBoy versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker _

[issue22052] Comparison operators called in reverse order for subclasses with no override.

2014-07-23 Thread R. David Murray
R. David Murray added the comment: "the subclass provides" doesn't actually imply anything about overriding, I think. For __eq__, though, that means that *every* class "provides" it. Indeed, I've always thought of the rule as "the subclass goes first" with no qualification, but that's only t

[issue18643] add a fallback socketpair() implementation in test.support

2014-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: > You should copy the code from asyncio.windows_utils.socketpair(). It checks > also type and proto parameter: raise a ValueError for unsupported values > (only SOCK_STREAM and proto=0 are supported). It also supports IPv6. It > handles BlockingIOErro

[issue21597] Allow turtledemo code pane to get wider.

2014-07-23 Thread Lita Cho
Lita Cho added the comment: Sorry about that!! Thanks for letting me know. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21597] Allow turtledemo code pane to get wider.

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lita, when replying by email, please, please delete the message you are replying to (except possibly for a directly quoted line or two). -- ___ Python tracker

[issue22042] signal.set_wakeup_fd(fd): set the fd to non-blocking mode

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: As suggested by Antoine, I created the issue #22054 to add os.get_blocking() and os.set_blocking() functions. Here is the simplified patch for signal.set_wakeup_fd(fd). It now depends on the patch of the issue #22054. -- Added file: http://bugs.python

[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: Oops, test_asyncio was failing. Fixed patched. -- Added file: http://bugs.python.org/file36053/os_blocking-2.patch ___ Python tracker ___ __

[issue14117] Turtledemo: exception and minor glitches.

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: #22053 added main(), eliminated 'while RUN', and fixed this a 3.x debug shutdown message. The main remaining problem I am aware of now is that some demos 'print' messages to the console (or shell), which would be a problem if there were not one (as with pytho

[issue18643] add a fallback socketpair() implementation in test.support

2014-07-23 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22054] Add os.get_blocking() and os.set_blocking() functions

2014-07-23 Thread STINNER Victor
New submission from STINNER Victor: Antoine suggested me to add these functions in the issue #22042. Here is a patch to implement these functions and use them in various places. -- files: os_blocking.patch keywords: patch messages: 223782 nosy: haypo, neologix, pitrou priority: normal s

[issue22053] turtledemo: clean up start and stop, fix warning

2014-07-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue22053] turtledemo: clean up start and stop, fix warning

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 823f5507bd86 by Terry Jan Reedy in branch '2.7': Issue #22053: Cleanup turtledemo start and stop and fix debug shutdown warning. http://hg.python.org/cpython/rev/823f5507bd86 New changeset 57531d65cdd4 by Terry Jan Reedy in branch '3.4': Issue #2205

[issue22053] turtledemo: clean up start and stop, fix warning

2014-07-23 Thread Terry J. Reedy
New submission from Terry J. Reedy: The patch adds a main function with the minimum needed to start the mainloop. It omits the 'while RUN' loop and development code for catching exceptions while running. They should never happen, and silently suppressing tracebacks is a bad idea. The patch al

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-23 Thread Eric V. Smith
Eric V. Smith added the comment: Looks fine to me. Normally I'd define the class being returned before the function returning it, but it doesn't really make a difference. -- nosy: +eric.smith ___ Python tracker __

[issue22052] Comparison operators called in reverse order for subclasses with no override.

2014-07-23 Thread Mark Dickinson
New submission from Mark Dickinson: As reported in a StackOverflow question [1]: the order in which the special comparison methods are called seems to be contradictory to the docs [2]. In the following snippet, __eq__ is called with reversed operands first: >>> class A: ... def __eq__(sel

[issue22042] signal.set_wakeup_fd(fd): set the fd to non-blocking mode

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9dc66b3a1d0d by Victor Stinner in branch 'default': Issue #22042: Avoid dangerous C cast in socket.setblocking() http://hg.python.org/cpython/rev/9dc66b3a1d0d -- nosy: +python-dev ___ Python tracker

[issue18643] add a fallback socketpair() implementation in test.support

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: > Barring any objection, I'll commit the patch attached within a couple days. I have objections! You should copy the code from asyncio.windows_utils.socketpair(). It checks also type and proto parameter: raise a ValueError for unsupported values (only SOCK_ST

[issue18643] add a fallback socketpair() implementation in test.support

2014-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: Barring any objection, I'll commit the patch attached within a couple days. -- title: implement socketpair() on Windows -> add a fallback socketpair() implementation in test.support Added file: http://bugs.python.org/file36050/socketpair-3.diff

[issue16547] IDLE raises an exception in tkinter after fresh file's text has been rendered

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> IDLE - quickly closing a large file triggers a traceback ___ Python tracker _

[issue14117] Turtledemo: exception and minor glitches.

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added #21933, change text font size, as dependency. Added new #22051 remove reload, as dependency. #18132: stop demo buttons from disappearing, was fixed by #21507 patch. -- dependencies: +Allow the user to change font sizes with the text pane of turtle

[issue21597] Allow turtledemo code pane to get wider.

2014-07-23 Thread Lita Cho
Lita Cho added the comment: Sweet! Thank you so much, Terry! On Wednesday, July 23, 2014, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > No, I believe this is done ;-). Onward to font sizing. > Thank you for the hard work on this. It is a great improvement. > > -- > re

[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I opened #22051 about removing reload to force better code. Since the tests are passing and I think the demo modules should be minimally tested by importing, and no one has said otherwise since the fix, I am closing this. -- resolution: -> fixed stage

[issue22051] Turtledemo: stop reloading demos

2014-07-23 Thread Terry J. Reedy
New submission from Terry J. Reedy: I propose to remove the following two lines with 'reload' from turtledemo.__main__.py. from importlib import reload ... ... def loadfile(self, filename): ... reload(self.module) Reloading modules each time a demo is run allows and even encourages mod

[issue19776] Provide expanduser() on Path objects

2014-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: > There is a question. What should pathlib's expanduser() do in case > when user directory can't be determined (or user does not exist)? > Perhaps unlike to os.path.expanduser() it should raise an exception > (as in many other pathlib's methods). Let's

[issue19493] Report skipped ctypes tests as skipped

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49a2bed5185a by Zachary Ware in branch '2.7': Issue #19493: Fix two uses of ctypes.test.requires (it's not a decorator) http://hg.python.org/cpython/rev/49a2bed5185a New changeset 374a9a259c09 by Zachary Ware in branch '3.4': Issue #19493: Fix two u

[issue4350] Remove dead code from Tkinter.py

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _

[issue4350] Remove dead code from Tkinter.py

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 549a7615abe3 by Serhiy Storchaka in branch 'default': Issue #4350: Removed a number of out-of-dated and non-working for a long time http://hg.python.org/cpython/rev/549a7615abe3 -- nosy: +python-dev ___ P

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed without change activate() parameter name. I still think this parameter name is wrong. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ae34a948cb4 by Serhiy Storchaka in branch 'default': Issue #6167: Scrollbar.activate() now returns the name of active element if http://hg.python.org/cpython/rev/6ae34a948cb4 New changeset f5df571bfe1d by Serhiy Storchaka in branch '2.7': Issue #61

[issue21573] Clean up turtle.py code formatting

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: In private email, Gregor indicated that he would like to be involved in turtle maintenance, and will be available about Aug. 1. -- ___ Python tracker _

[issue21566] make use of the new default socket.listen() backlog argument

2014-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: Committed, thanks for the reviews (I only updated one call to socket.listen(), inside multiprocessing, the rest is in the test suite). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue21597] Allow turtledemo code pane to get wider.

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, I believe this is done ;-). Onward to font sizing. Thank you for the hard work on this. It is a great improvement. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracke

[issue18132] buttons in turtledemo disappear on small screens

2014-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Fixed by New changeset 60301b9982b2 by Terry Jan Reedy in branch '2.7': Issue #21597: Turtledemo text pane can now be widened to view or copy complete http://hg.python.org/cpython/rev/60301b9982b2 New changeset 0fb515063324 by Terry Jan Reedy in branch '3.4': Is

[issue21597] Allow turtledemo code pane to get wider.

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60301b9982b2 by Terry Jan Reedy in branch '2.7': Issue #21597: Turtledemo text pane can now be widened to view or copy complete http://hg.python.org/cpython/rev/60301b9982b2 New changeset 0fb515063324 by Terry Jan Reedy in branch '3.4': Issue #21597

[issue19132] Add compact mode to pprint

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60301b9982b2 by Terry Jan Reedy in branch '2.7': Issue #21597: Turtledemo text pane can now be widened to view or copy complete http://hg.python.org/cpython/rev/60301b9982b2 New changeset 0fb515063324 by Terry Jan Reedy in branch '3.4': Issue #21597

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
Chris Bruner added the comment: Oops, my mistake: had multiple '-t' in file, but not an "action=append". Your version works just fine. Sorry for the confusion, and thank you for the correction! -- ___ Python tracker

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
Chris Bruner added the comment: Tried the format you gave. Still doesn't work. Same error message: bernoulli:myclu cwbrune$ argparse_nargs_file_bug.py usage: argparse_nargs_file_bug.py [-h] [-t N N N] argparse_nargs_file_bug.py: error: argument -t/--triple: expected 3 argument(s) bernoulli:mycl

[issue21566] make use of the new default socket.listen() backlog argument

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7643c893587 by Charles-François Natali in branch 'default': Issue #21566: Make use of socket.listen() default backlog. http://hg.python.org/cpython/rev/f7643c893587 -- nosy: +python-dev ___ Python tracke

[issue22049] argparse: type= doesn't honor nargs > 1

2014-07-23 Thread R. David Murray
R. David Murray added the comment: Nope. The documentation says: N (an integer). N arguments from the command line will be gathered together into a list The type function is applied to each argument independently. It would be easy enough to make this explicit in one of the nargs multi-a

[issue11077] Tkinter is not thread safe

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> works for me status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mail

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread R. David Murray
R. David Murray added the comment: Your input.opts file is in the wrong format. it should read --triple 1 2 3 -t 2 3 32 -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue5718] Problem compiling ffi part of build on AIX 5.3.

2014-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: @David what is your opinion on this issue? -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-

[issue22050] argparse: read nargs > 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
New submission from Chris Bruner: When reading options from a file, argparse should read all values from each line. Instead, it complains of there not being enough options. python file: #!/usr/bin/env python import argparse p = argparse.ArgumentParser(description='Reproduce argparse nargs fil

[issue15275] isinstance is called a more times that needed in ntpath

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue15275] isinstance is called a more times that needed in ntpath

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset b22aaa59d24f by Serhiy Storchaka in branch 'default': Issue #15275: Clean up and speed up the ntpath module. http://hg.python.org/cpython/rev/b22aaa59d24f -- nosy: +python-dev ___ Python tracker

[issue21500] Make use of the "load_tests" protocol in test_importlib packages

2014-07-23 Thread Zachary Ware
Zachary Ware added the comment: This has been covered by #22002. -- nosy: +zach.ware resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Make full use of test discovery in test subpackages ___ Python tracker

[issue18844] allow weights in random.choice

2014-07-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +dkorchem ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue18844] allow weights in random.choice

2014-07-23 Thread Mark Dickinson
Mark Dickinson added the comment: Closed issue 22048 as a duplicate of this one. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22048] Add weighted random choice to random package

2014-07-23 Thread Mark Dickinson
Mark Dickinson added the comment: Duplicate of #18844. -- nosy: +mark.dickinson resolution: -> duplicate status: open -> closed superseder: -> allow weights in random.choice ___ Python tracker ___

[issue22049] argparse: type= doesn't honor nargs > 1

2014-07-23 Thread Chris Bruner
New submission from Chris Bruner: >From the documentation, I think that argparse should pass the entire >nargs-long string to the "type=" callable. Instead, it only passes the first >argument (of nargs), making it impossible within argparse's framework to check >for a tuple of mixed types, e.g

[issue22002] Make full use of test discovery in test subpackages

2014-07-23 Thread Zachary Ware
Zachary Ware added the comment: Committed with a couple of changes from the posted patch: commented on the multiple dirname() calls as Serhiy suggested, removed the 'with DirsOnSysPath():' line since it turns out to be unnecessary when supplying top_level_dir to loader.discover(), and added so

[issue22048] Add weighted random choice to random package

2014-07-23 Thread Dmitry Korchemny
New submission from Dmitry Korchemny: Need to have a function for weighted randomization: given a dictionary: key -> weight (= non-negative number), return a key of the dictionary with the probability proportional to its weight. This capability is basic and is badly missing. -- compon

[issue22002] Make full use of test discovery in test subpackages

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f9f7e0fe1fd by Zachary Ware in branch '3.4': Issue #22002: Make full use of test discovery in test sub-packages. http://hg.python.org/cpython/rev/4f9f7e0fe1fd New changeset 6298895a52de by Zachary Ware in branch 'default': Closes #22002: Merge with

[issue1598] unexpected response in imaplib

2014-07-23 Thread Lita Cho
Changes by Lita Cho : -- nosy: -Lita.Cho ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue18168] plistlib output self-sorted dictionary

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue21888] plistlib.FMT_BINARY behavior doesn't send required dict parameter

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22047] argparse improperly prints mutually exclusive options when they are in a group

2014-07-23 Thread Sam Kerr
New submission from Sam Kerr: The following code: import argparse parser = argparse.ArgumentParser() group1 = parser.add_mutually_exclusive_group() group2 = group1.add_mutually_exclusive_group() group2.add_argument('-hello',action='store_true', help="A flag") args = parser.pars

[issue21888] plistlib.FMT_BINARY behavior doesn't send required dict parameter

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09746dc1a3b4 by Serhiy Storchaka in branch '3.4': Issue #21888: plistlib's load() and loads() now work if the fmt parameter is http://hg.python.org/cpython/rev/09746dc1a3b4 New changeset 275d02865d11 by Serhiy Storchaka in branch 'default': Issue #2

[issue21044] tarfile does not handle file .name being an int

2014-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 825137d0d4ca by Serhiy Storchaka in branch '3.4': Correct issue #21044 patch author. http://hg.python.org/cpython/rev/825137d0d4ca New changeset 4fe27263f9d4 by Serhiy Storchaka in branch 'default': Correct issue #21044 patch author. http://hg.pytho

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-07-23 Thread Dan O'Reilly
Dan O'Reilly added the comment: It seems like everyone agrees that this functionality is useful, so I'm reviving this in hopes of getting a patch pushed through. I've updated Andreas' patch so that it applies cleanly against the latest tree, and tweaked the handling of exceptions in initialize

[issue21888] plistlib.FMT_BINARY behavior doesn't send required dict parameter

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: + #define __ATOMIC_RELAXED 0 You should use the "_Py_" prefix for these constants, to avoid conflicts in applications. (You may also replace tabs with spaces, the PEP 7 says "Use 4-space indents and no tabs at all." but I also prefer to avoid tabs in other pl

[issue22041] http POST request with python 3.3 through web proxy

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue14484] missing return in win32_kill?

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: I understand that os.kill(pid, sig) should call TerminateProcess() or GenerateConsoleCtrlEvent() depending on the value of sig. The problem is that these two functions are very different. A process can set a control handler for CTRL_C_EVENT and CTRL_BREAK_EVEN

[issue17293] uuid.getnode() MAC address on AIX

2014-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: David is listed against AIX on the experts list https://docs.python.org/devguide/experts.html. That alone suggests to me that AIX is an officially supported platform. -- ___ Python tracker

[issue21591] "exec(a, b, c)" not the same as "exec a in b, c" in nested functions

2014-07-23 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22041] http POST request with python 3.3 through web proxy

2014-07-23 Thread Alejandro Mj
Changes by Alejandro Mj : -- nosy: -AlexMJ ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-07-23 Thread Jason Heeris
New submission from Jason Heeris: As per issue 5701, the zipfile.ZipFile.read() method will throw a NotImplementedError if the compression scheme is not supported. However, there is no mention of this possibility in the documentation for the read() method. I would suggest, say, "Calling read()

[issue22045] Python make issue

2014-07-23 Thread Shannon Kerr
Changes by Shannon Kerr : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22045] Python make issue

2014-07-23 Thread Shannon Kerr
Changes by Shannon Kerr : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22045] Python make issue

2014-07-23 Thread Shannon Kerr
New submission from Shannon Kerr: If you execute the following commands on a system that doesn’t already have Python 2.7.X installed on it, it will result in bloated libs that statically link libpythyon2.7.a instead of the locally built libpython2.7.so: ./configure make sudo make install ./con

[issue21777] Separate out documentation of binary sequence methods

2014-07-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +chris.jerdonek, ezio.melotti, zach.ware stage: -> patch review ___ Python tracker ___ ___ Python-

  1   2   >