[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-23 Thread Zach Byrne
Zach Byrne added the comment: I ran the whole benchmark suite. There are a few that are slower: call_method_slots, float, pickle_dict, and unpack_sequence. Report on Linux zach-vbox 3.2.0-24-generic-pae #39-Ubuntu SMP Mon May 21 18:54:21 UTC 2012 i686 i686 Total CPU cores: 1 ### 2to3 ###

[issue22036] Obsolete reference to stringobject in comment

2014-07-23 Thread Martin Matusiak
Changes by Martin Matusiak numero...@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22036 ___ ___

[issue20468] resource module documentation is incorrect

2014-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch (for the default branch) adds information about the unit of maxrss to the documentation, and removes the sentences about calculating the total memory size from the getpagesize documentation. -- assignee: ronaldoussoren -

[issue22037] Poor grammar in asyncio TCP echo client example

2014-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in d19c58e13ac9 Thanks -- nosy: +asvetlov resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue18355] Merge super() guide into documentation

2014-07-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18355 ___ ___ Python-bugs-list

[issue22037] Poor grammar in asyncio TCP echo client example

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the patch Aaron. I wrote the documentation and I'm not a native english speaker. Please don't hesitate to report other grammar issues like that. You may group all of them in a single issue. -- nosy: +haypo

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-23 Thread Lita Cho
Lita Cho added the comment: Oops! I was suppose to add 'Control' not 'Ctrl'. I can fix that quickly but I will wait till the other patch goes through. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21933

[issue21597] Allow turtledemo code pane to get wider.

2014-07-23 Thread Lita Cho
Lita Cho added the comment: Just to clarify, should I submit a new patch with outlined style changes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21597 ___

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-07-23 Thread Lars Gustäbel
Lars Gustäbel added the comment: Apparently, the problem is located in TarInfo._proc_gnulong(). I attached a patch. When tarfile reads an archive, it strips trailing slashes from all filenames, except GNUTYPE_LONGNAME headers, which is a bug. tarfile creates GNU_FORMAT tar files by default,

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2014-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cannot reproduce. -- nosy: +asvetlov resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17709

[issue21777] Separate out documentation of binary sequence methods

2014-07-23 Thread Nick Coghlan
Nick Coghlan added the comment: 3rd in progress draft - converted most of the inherently assumes ASCII docs now. I think this set of changes really makes it clear how non-trivial it actually is to infer the binary domain behaviour from the str docs, which have all sorts of Unicode

[issue21777] Separate out documentation of binary sequence methods

2014-07-23 Thread Nick Coghlan
Nick Coghlan added the comment: Note I haven't added back the immutability guarantees yet - I'll do that before declaring this ready for final review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21777

[issue21777] Separate out documentation of binary sequence methods

2014-07-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +chris.jerdonek, ezio.melotti, zach.ware stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21777 ___

[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

[issue22045] Python make issue

2014-07-23 Thread Shannon Kerr
Changes by Shannon Kerr sk...@tycoint.com: -- type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22045 ___ ___ Python-bugs-list

[issue22045] Python make issue

2014-07-23 Thread Shannon Kerr
Changes by Shannon Kerr sk...@tycoint.com: -- type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22045 ___ ___

[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()

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

2014-07-23 Thread Alejandro Mj
Changes by Alejandro Mj witchar...@gmail.com: -- nosy: -AlexMJ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22041 ___ ___ Python-bugs-list

[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 dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21591 ___ ___ Python-bugs-list mailing

[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 rep...@bugs.python.org

[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

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

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22041 ___ ___

[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

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

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21580 ___ ___

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

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21888 ___ ___

[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

[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.

[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

[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 =

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

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21888 ___

[issue18168] plistlib output self-sorted dictionary

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18168 ___

[issue1598] unexpected response in imaplib

2014-07-23 Thread Lita Cho
Changes by Lita Cho lita@gmail.com: -- nosy: -Lita.Cho ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1598 ___ ___ Python-bugs-list mailing

[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

[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. --

[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

[issue22049] argparse: type=callable 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., 2

[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 rep...@bugs.python.org http://bugs.python.org/issue22048

[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 rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___

[issue18844] allow weights in random.choice

2014-07-23 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +dkorchem ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___ Python-bugs-list

[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

[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

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

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15275

[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 nargs 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

[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 rep...@bugs.python.org http://bugs.python.org/issue5718 ___

[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

[issue11077] Tkinter is not thread safe

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - works for me status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11077 ___

[issue22049] argparse: type=callable 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

[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

[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)

[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 rep...@bugs.python.org

[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

[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

[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':

[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 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

[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 rep...@bugs.python.org http://bugs.python.org/issue21573

[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

[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

[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 ___

[issue4350] Remove dead code from Tkinter.py

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4350 ___

[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

[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 see

[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

[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

[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 rep...@bugs.python.org 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.

[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

[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 storch...@gmail.com: -- resolution: - duplicate stage: needs patch - resolved status: open - closed superseder: - IDLE - quickly closing a large file triggers a traceback ___ Python tracker rep...@bugs.python.org

[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

[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

[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

[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__(self,

[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 rep...@bugs.python.org

[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

[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

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

2014-07-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22053 ___

[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

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

2014-07-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18643 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22054

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue21597

[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 rep...@bugs.python.org http://bugs.python.org/issue21597 ___ ___

[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 BlockingIOError

[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 true

[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 rep...@bugs.python.org http://bugs.python.org/issue18174

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

2014-07-23 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2091 ___

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue21850 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue17548

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue18605

[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 rep...@bugs.python.org: 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

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

2014-07-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- Removed message: http://bugs.python.org/msg223793 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22018 ___

[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? --

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15267 ___ ___

[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 to

[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:

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

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3566 ___ ___

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

2014-07-23 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14044 ___ ___

  1   2   >