[issue22093] Compiling python on OS X gives warning about compact unwind

2014-07-28 Thread Ned Deily
Ned Deily added the comment: That warning has been around for some time. The question is: is it something to be concerned about? I don't know of any ctypes test failures on OS X. There have been various discussions of the warning in other (non-Python) contexts, for example,

[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's not a bug. Guido designed the Set ABC to use operators instead of the named methods. The += operator for the __iadd__() method that provides much of the same functionality. Mutable mapping has an update() method because it is an essential part of

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ned Deily
Ned Deily added the comment: turtle_demo_v3.patch looks good to me. I have satisfied myself that the AppleScript works OK with a non-English system. And, while it is a bit of a kludge for OS X and assuming the rest of the change works OK on Windows and Linux, I would recommend to Terry that

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-28 Thread Akira Li
Akira Li added the comment: Akira, your patch does this: -self._writetranslate = newline != '' -self._writenl = newline or os.linesep +self._writetranslate = newline in (None, '\r', '\r\n') +self._writenl = newline if newline is not None else os.linesep

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

2014-07-28 Thread Alejandro MJ
Alejandro MJ added the comment: Thanks a lot for your help, as you suggested the problem was because of the method set_tunnel. I've tested the code that you have posted and now works perfectly. I'll keep in mind this for future works. We can conclude that it's not really a bug of Python, so

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

2014-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On X11 Button-4 and Button-5 events are generated on mouse wheel roll. So you should add widget.bind('Control-Button-4', self._increaseFont) widget.bind('Control-Button-5', self._decreaseFont) But mouse wheel events still are sent to widget

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Larry Hastings
Larry Hastings added the comment: Here's an updated patch. I cleaned it up a little. I think it's about ready to go in. Zachary, iirc you're a Windows guy and have helped with ensuring patches apply cleanly to Windows in the past. Can you give this a try on Windows? -- Added file:

[issue22094] test_ossaudiodev fails unnecessarily

2014-07-28 Thread Akira Li
New submission from Akira Li: $ ./python -mtest -uaudio test_ossaudiodev [1/1] test_ossaudiodev test test_ossaudiodev failed -- Traceback (most recent call last): File ./Lib/test/test_ossaudiodev.py, line 148, in test_playback self.play_sound_file(*sound_info) File

[issue22094] oss_audio_device.write(data) produces short writes

2014-07-28 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: -- title: test_ossaudiodev fails unnecessarily - oss_audio_device.write(data) produces short writes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22094

[issue22094] oss_audio_device.write(data) produces short writes

2014-07-28 Thread Akira Li
Akira Li added the comment: From Modules/ossaudiodev.c: /* NB. writeall() is only useful in non-blocking mode: according to Guenter Geiger gei...@xdv.org on the linux-audio-dev list (http://eca.cx/lad/2002/11/0380.html), OSS guarantees that write() in blocking mode

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't have a better solution for this, although I'd slightly prefer to add a hack to the turtledemo main function to force itself to the foreground on startup. That way the hack also works when the user starts the script in a Terminal window. --

[issue22094] oss_audio_device.write(data) produces short writes

2014-07-28 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: -- components: +Library (Lib) -Tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22094 ___ ___

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

2014-07-28 Thread Akira Li
Akira Li added the comment: Maybe is_something() is a better name than get_something() if something is a boolean? -- nosy: +akira ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22054 ___

[issue22085] Update deprecated Tcl commands in Tkinter

2014-07-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Dropping support for 8.3 sounds fine with me (for Python 3.5 only, of course). Otherwise, the patch looks also fine, so please apply. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue22003] BytesIO copy-on-write

2014-07-28 Thread David Wilson
David Wilson added the comment: Newest patch incorporates Antoine's review comments. The final benchmark results are below. Just curious, what causes e.g. telco to differ up to 7% between runs? That's really huge Report on Linux k2 3.14-1-amd64 #1 SMP Debian 3.14.9-1 (2014-06-30) x86_64 Total

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

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: Maybe is_something() is a better name than get_something() if something is a boolean? os and socket modules already use getxxx() / setxxx() names: - os.get_inheritable() / os.set_inheritable() - os.getuid() / os.setuid() - os.getgroups() / os.setgroups() -

[issue1602] windows console doesn't print or input Unicode

2014-07-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +benhoyt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12970 ___ ___ Python-bugs-list

[issue20351] Add doc examples for DictReader and DictWriter

2014-07-28 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: Anything else I need to do? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20351 ___ ___ Python-bugs-list

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-07-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: larry - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___ ___

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2014-07-28 Thread Akira Li
Akira Li added the comment: I've updated os.walk() documentation to mention that *dirnames* list includes symlinks to directories. To imitate the other two cases: - treat the symlinks as files: for dirpath, dirnames, files in os.walk(top): dirs = [] for name in dirnames:

[issue22003] BytesIO copy-on-write

2014-07-28 Thread Stefan Krah
Stefan Krah added the comment: Just curious, what causes e.g. telco to differ up to 7% between runs? That's really huge. telco.py always varies a lot between runs (up to 10%), even in the big version telco.py full: http://bytereef.org/mpdecimal/quickstart.html#telco-benchmark Using the

[issue22003] BytesIO copy-on-write

2014-07-28 Thread Stefan Krah
Stefan Krah added the comment: So I wonder why the benchmark suite says that the telco slowdown is significant. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22003 ___

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

2014-07-28 Thread Akira Li
Akira Li added the comment: os and socket modules already use getxxx() / setxxx() names: - os.get_inheritable() / os.set_inheritable() - os.getuid() / os.setuid() - os.getgroups() / os.setgroups() - os.getxattr() os.setxattr() - socket.gettimeout() / socket.settimeout() -

[issue8232] webbrowser.open incomplete on Windows

2014-07-28 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232 ___ ___ Python-bugs-list

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

2014-07-28 Thread Charles-François Natali
Charles-François Natali added the comment: I agree with Akira, although it's probably too late now to rename. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22054 ___

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Zachary Ware
Zachary Ware added the comment: MSVC is not happy, here's some build output: P:\ath\to\cpython\PCbuild\pcbuild.sln (Build target) (1) - P:\ath\to\cpython\PCbuild\python.vcxproj (default target) (2) - P:\ath\to\cpython\PCbuild\pythoncore.vcxproj (default target) (3) - (ClCompile target) -

[issue21308] PEP 466: backport ssl changes

2014-07-28 Thread Alex Gaynor
Alex Gaynor added the comment: Investigations: The test_poplib failures are caused by the backporting of http://bugs.python.org/issue20951, does anyone have opinions on whether we should backport Antoine's fix for poplib, or revert that particular change? I'm not sure how to fix that

[issue20351] Add doc examples for DictReader and DictWriter

2014-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Anything else I need to do? Nothing else. I've got it from here :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20351 ___

[issue22095] Use of set_tunnel with default port results in incorrect post value in host header

2014-07-28 Thread Demian Brecht
New submission from Demian Brecht: Creating this bug for clarity, but was encountered while investigating 22041 (now set as not a bug). When using set_tunnel with default port, the port value in the host header is set to None: send: b'POST [PATH] HTTP/1.1\r\nHost:

[issue22095] Use of set_tunnel with default port results in incorrect post value in host header

2014-07-28 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file36140/issue22095.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22095 ___

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Lita Cho
Lita Cho added the comment: Thanks for the input Ronald! How would I go about forcing the turtledemo to be in the foreground? Do I just need to call 'fg' on the subprocess? I've been Googling and couldn't find anything obvious. -- ___ Python

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

2014-07-28 Thread Mark Lawrence
Mark Lawrence added the comment: I suppose that technically this can only go into 3.5, but is there any real reason that this couldn't be backported? -- versions: +Python 3.5 -Python 3.4 Added file: http://bugs.python.org/file36141/Issue19980.diff

[issue21308] PEP 466: backport ssl changes

2014-07-28 Thread Alex Gaynor
Alex Gaynor added the comment: Latest patch makes the needed change to Makefile.pre.in -- Added file: http://bugs.python.org/file36142/ssl-backport.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308

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

2014-07-28 Thread Demian Brecht
Demian Brecht added the comment: No problem, happy you were able to get things sorted. Feel free to close this issue as I've opened #22095 to address the host port header issue. -- ___ Python tracker rep...@bugs.python.org

[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-07-28 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- versions: +Python 3.5 Added file: http://bugs.python.org/file36143/issue20586.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20586 ___

[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-07-28 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file34025/clinic_sig_no_docstring.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20586 ___

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-07-28 Thread Zachary Ware
Zachary Ware added the comment: Certainly, Martin. I'm in the process of getting it updated and self-reviewing again. This patch will require #20586 and possibly another new Clinic feature (allowing output to multiple destinations; I have a change for that feature on my issue20172 sandbox

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ned Deily
Ned Deily added the comment: Ronald: I'd slightly prefer to add a hack to the turtledemo main function to force itself to the foreground on startup. That way the hack also works when the user starts the script in a Terminal window. That's exactly what the proposed patch does. The

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

2014-07-28 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22041 ___ ___

[issue17763] test_pydoc fails with the installed testsuite

2014-07-28 Thread Mark Lawrence
Mark Lawrence added the comment: Can our testing gurus shed any light on this? -- nosy: +BreamoreBoy, ezio.melotti, michael.foord, pitrou versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17763

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Larry Hastings
Larry Hastings added the comment: thanks! I'm flying from London to Brisbane (via Singapore), gonna take about a day. Now I have something to do on the flight ;-) (that and nullable ints) -- ___ Python tracker rep...@bugs.python.org

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

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: Guido van Rossum told me that he's ok for get: I'd go with get, since that seems the tradition in the os module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22054

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: Ok, I will write a a patch to raise an exception in debug mode if the socket is in blocking mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22063

[issue10572] Move test sub-packages to Lib/test

2014-07-28 Thread Mark Lawrence
Mark Lawrence added the comment: Can we get this into 3.5 for the reasons given in msg179596 ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10572

[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-28 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- components: Demos and Tools nosy: larry, zach.ware priority: normal severity: normal status: open title: Argument Clinic: add ability to specify an existing impl function type: enhancement versions: Python 3.4, Python 3.5

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2014-07-28 Thread Mark Lawrence
Mark Lawrence added the comment: Is this ever likely to be implemented or is it more likely to be rejected owing to the reasons given in msg75587 ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-28 Thread Zachary Ware
New submission from Zachary Ware: It would be nice to be able to specify an existing function as the _impl function, for cases like winreg.OpenKey and OpenKeyEx which are the same function by different names, or _winapi.GetCurrentProcess, whose impl function is return GetCurrentProcess().

[issue5833] readline update

2014-07-28 Thread Mark Lawrence
Mark Lawrence added the comment: Looking at msg128306 and msg128319 I believe this can be closed. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5833 ___

[issue11212] Python memory limit on AIX

2014-07-28 Thread Mark Lawrence
Mark Lawrence added the comment: @David (Edelsohn) what is your take on this? -- nosy: +BreamoreBoy, David.Edelsohn versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue22097] Linked list API for ordereddict

2014-07-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: Right now Python doesn't have an ordered container which allows O(1) insertion at any place. It would be nice to have such an API on ordered dicts (e.g. insert_after() / insert_before()). -- messages: 224191 nosy: pitrou, rhettinger,

[issue22097] Linked list API for ordereddict

2014-07-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22097 ___ ___ Python-bugs-list

[issue22097] Linked list API for ordereddict

2014-07-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22097 ___ ___

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

2014-07-28 Thread Richard Oudkerk
Richard Oudkerk added the comment: I can't remember why I did not use fstat() -- probably it did not occur to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18174 ___

[issue19217] Calling assertEquals for moderately long list takes too long

2014-07-28 Thread Puneeth Chaganti
Puneeth Chaganti added the comment: Hi, The attached patch is an attempt to write tests for this issue, and get all the tests passing. Since a new threshold has been introduced, `maxDiff` doesn't always make a difference and this required changing the `testAssertSequenceEqualMaxDiff`

[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: I backported and adapted most Python 3 fixes related to the Windows binary mode for stdout/stderr used when Python is started with the -u command line option. See attached binary.patch. My change to file.write() looks wrong because the function returns None

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Florian Dold
New submission from Florian Dold: Habimg __slots__ = [] on a class inheriting from ctypes.Structure prevents undefined fields from being set, as expected. When inheriting from ctypes.BigEndianStructure, however, it is possible to set undefined fields. See the attached file for small test

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Florian Dold
Changes by Florian Dold florian.d...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22098 ___ ___ Python-bugs-list

[issue19612] test_subprocess: sporadic failure of test_communicate_epipe() on Windows 8

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 039ac3f01c4e by Victor Stinner in branch '2.7': Issue #19612: subprocess.communicate() now also ignores EINVAL when using at http://hg.python.org/cpython/rev/039ac3f01c4e -- ___ Python tracker

[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: While testing binary.patch, test_subprocess failed because of the issue #19612. I backported the fix: changeset: 91905:039ac3f01c4e branch: 2.7 parent: 91895:bffa0b8a16e8 user:Victor Stinner victor.stin...@gmail.com date:Tue Jul 29

[issue19612] test_subprocess: sporadic failure of test_communicate_epipe() on Windows 8

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: I didnd't see the failure recently on Windows, so I close the issue. I backported the fix on Python 2.7 for the issue #21946. -- resolution: - fixed status: open - closed versions: +Python 2.7 ___ Python tracker

[issue21704] _multiprocessing module builds incorrectly when POSIX semaphores are disabled

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset f618f6739200 by Richard Oudkerk in branch '3.4': Issue #21704: Fix build error for _multiprocessing when semaphores http://hg.python.org/cpython/rev/f618f6739200 New changeset a9637b29954d by Richard Oudkerk in branch 'default': Issue #21704:

[issue22097] Linked list API for ordereddict

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22097 ___ ___ Python-bugs-list

[issue20766] reference leaks in pdb

2014-07-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20766 ___ ___ Python-bugs-list

[issue20746] test_pdb fails in refleak mode

2014-07-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20746 ___ ___ Python-bugs-list

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

2014-07-28 Thread STINNER Victor
STINNER Victor added the comment: Modified patch to use os.fstat(), and try to use /proc/self/fd/ on Linux. -- Added file: http://bugs.python.org/file36147/fdleak-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18174

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

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 379aad232000 by Victor Stinner in branch '3.4': Issue #11453, #18174: Fix leak of file descriptor in test_asyncore http://hg.python.org/cpython/rev/379aad232000 New changeset 0ced2d2325fb by Victor Stinner in branch 'default': (Merge 3.4) Issue

[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 379aad232000 by Victor Stinner in branch '3.4': Issue #11453, #18174: Fix leak of file descriptor in test_asyncore http://hg.python.org/cpython/rev/379aad232000 New changeset 0ced2d2325fb by Victor Stinner in branch 'default': (Merge 3.4) Issue

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

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 746339776f19 by Victor Stinner in branch '3.4': Issue #18174: Fix leak of file descriptor in test_tempfile http://hg.python.org/cpython/rev/746339776f19 New changeset 017d701116d5 by Victor Stinner in branch 'default': (Merge 3.4) Issue #18174: Fix

[issue22099] Two Save As Windows

2014-07-28 Thread Adam Kimbrough
New submission from Adam Kimbrough: I am on a Mac running Mavericks 10.9.4. Whenever I press shift+command+s to save a file as a specific name, it opens two windows. But, if I Save As through the button in the menu bar, it only opens one window. -- components: IDLE messages: 224204

[issue22099] Two Save As Windows

2014-07-28 Thread Ned Deily
Ned Deily added the comment: This is due to a bug in earlier versions of Cocoa Tk 8.5.x, originally documented in Issue11055. Unfortunately, Apple is still shipping such a version in current versions of OS X. One solution is to install a newer version of Tk 8.5, such as ActiveTcl 8.5.15 and

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with skipping 2.7. The current patch is based on importing turtledemo, while on 2.7, turtleDemo.py is in Demo/turtle/ and cannot be imported. It could run with execfile, but the viewer will only run if /turtle is the current directory. On Windows,

[issue22097] Linked list API for ordereddict

2014-07-28 Thread Yoann Aubineau
Yoann Aubineau added the comment: Here is an attempt to implement such an API. The patch adds 4 methods to OrderedDict: move_before, move_after, insert_before and insert_after with corresponding tests. The method signatures do not feel right though. I am not sure where the reference key

[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's not a bug. Guido designed the Set ABC to use operators instead of the named methods. The += operator for the __ior__() method that provides much of the same functionality. In your concrete class, you can add an update() method easily: class

[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- Removed message: http://bugs.python.org/msg224153 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22089 ___

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Ned Deily
Ned Deily added the comment: If the activate code is moved to macosxSupport.activate(), does the following work in EditorWindow.open_turtle_demo? cmd = [sys.executable, '-c', 'from idlelib.macosxSupport import activate as A; A()\n' 'from turtledemo.__main__ import main; main()'] Does the

[issue22097] Linked list API for ordereddict

2014-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like any proposed API extensions to be use case driven. The omission of these methods wasn't accidental. I studied pre-existing OD implementations for Python and looked at how they were used in the real-world (back when we still had Google Code

[issue21740] doctest doesn't allow duck-typing callables

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21740 ___ ___ Python-bugs-list

[issue21724] resetwarnings doesn't reset warnings registry

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21724 ___ ___ Python-bugs-list

[issue21710] --install-base option ignored?

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21710 ___ ___ Python-bugs-list

[issue22097] Linked list API for ordereddict

2014-07-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: My current use case is manipulation of Numba IR code. I'm working on a transformation pass that adds instructions at arbitrary places in existing IR. The primitive I need is add an instruction after another one (which is exactly the insert_after() primitive

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-07-28 Thread Milan Oberkirch
Milan Oberkirch added the comment: Thanks for the review and improvements! I fixed the warnings (didn't see them with running tests as described in the dev guide; I may improve that later), updated the docs to RFC 5321 (issue 19679 is referring to RFC 3463 which is not

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04dd26ca02f4 by Terry Jan Reedy in branch '3.4': Issue #17172: Add the ability to run turtledemo from Idle. http://hg.python.org/cpython/rev/04dd26ca02f4 -- nosy: +python-dev ___ Python tracker

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would have made the turtledemo fix a separate issue. Given the combined patch, I will just make separate NEWS entries (which I am working on now). I expect there to be other new entries for Shell/Run, and will move when that is true. --

[issue17172] Add turtledemo to IDLE menu

2014-07-28 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/issue17172 ___

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset e344539cda11 by Terry Jan Reedy in branch '3.4': Issue #17172: add NEWS http://hg.python.org/cpython/rev/e344539cda11 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17172

[issue17172] Add turtledemo to IDLE menu

2014-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: ezio.melotti - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17172 ___ ___

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22098 ___ ___ Python-bugs-list

[issue22086] Tab indent no longer works in interpreter

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22086 ___ ___ Python-bugs-list

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-07-28 Thread Yoann Aubineau
Changes by Yoann Aubineau yoann.aubin...@gmail.com: -- nosy: +yaubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22090 ___ ___ Python-bugs-list

[issue22089] collections.MutableSet does not provide update method

2014-07-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Minor correction to example. That should be: class MySet(Set): update = Set.__ior__ (no paren after __ior__, since we're assigning, not calling) -- nosy: +josh.rosenberg ___ Python tracker