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

2014-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: While we are at it, lets compute "sys.platform == 'darwin'" just once and use conditional expressions. (I just condensed config_gui() with conditional expressions, but avoided changing the context for the patches here.) -- Added file: http://bugs.pyth

[issue21308] PEP 466: backport ssl changes

2014-07-27 Thread Ned Deily
Ned Deily added the comment: Some results from a quick build/test on OS X 10.9.4 with Xcode 5.1.1 clang and openssl 1.0.1h from MacPorts (similar results when built with Apple-supplied openssl 0.9.8y and on OS X 10.5.8 ppc with Apple-supplied openssl 0.9.7l): - Modules/_ssl.c:2861:52: warning:

[issue21308] PEP 466: backport ssl changes

2014-07-27 Thread Alex Gaynor
Alex Gaynor added the comment: Ned, did you apply the patch from http://bugs.python.org/issue22023 first? That bt looks like what you'd see without it. -- ___ Python tracker ___

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

2014-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 3.5 lists should work as fine as tuples. But in earlier version it would be safer to convert list to tuple. Configure's value is preprocessed in Misc._options. If it is a tuple or a list with only int and str items, it will stringified. But if a list cont

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2014-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > By static, you mean not a heap type? Yes. Sorry for bad wording. -- ___ Python tracker ___ ___

[issue22089] collections.MutableSet does not provide update method

2014-07-27 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21308] PEP 466: backport ssl changes

2014-07-27 Thread Christian Heimes
Christian Heimes added the comment: Does https://github.com/alex/cpython/commits/backport-ssl contain all relevant code changes? I like to review the changes during my train ride home. -- ___ Python tracker __

[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2014-07-27 Thread Alon Mishne
Alon Mishne added the comment: Patch for 2.7.8. The patch is just changing "globals are" to "mapping of ‘__builtins__’ is", and subsequent paragraph reformatting. -- keywords: +patch Added file: http://bugs.python.org/file36128/evalglobals2.patch __

[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2014-07-27 Thread Alon Mishne
Alon Mishne added the comment: Patch for 3.5.x The patch is just changing "globals are" to "mapping of ‘__builtins__’ is", and subsequent paragraph reformatting. Nearly identical to 2.7.8 patch. -- Added file: http://bugs.python.org/file36129/evalglobals3.patch __

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

2014-07-27 Thread Mark Dickinson
New submission from Mark Dickinson: There's a minor inconsistency between Decimal and float formatting for the `%` format type when handling infinities and nans: >>> from decimal import Decimal >>> format(float('inf'), '.2%') # includes trailing '%' 'inf%' >>> format(Decimal('inf'), '.2%') #

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

2014-07-27 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that Decimal is wrong here. PEP 3101 says the result should include the trailing '%'. -- ___ Python tracker ___

[issue21308] PEP 466: backport ssl changes

2014-07-27 Thread Ned Deily
Ned Deily added the comment: > did you apply the patch from http://bugs.python.org/issue22023 first? Sorry, missed that. Let's try again with that applied as well: OS X 10.9.4 with Xcode 5.1.1 clang and openssl 1.0.1h from MacPorts - Modules/_ssl.c:2861:52: warning: invalid conversion specifi

[issue8489] Support RFC 6531 in smptlib

2014-07-27 Thread moijes12
Changes by moijes12 : -- nosy: +moijes12 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

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

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: This patch doesn't apply anymore (to c55300337932); please update it. -- nosy: +loewis ___ Python tracker ___ _

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

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: 2 hunks of _winapi.c currently fail to apply. Can you please update the patch? -- nosy: +loewis ___ Python tracker ___

[issue22091] __debug__ in compile(optimize=1)

2014-07-27 Thread Armin Rigo
New submission from Armin Rigo: The documentation of the built-in compile() function is not 100% clear but I think it says that giving the "optimize=1" argument turns "__debug__" to false in the compiled code ( https://docs.python.org/3.5/library/functions.html?highlight=compile#compile ). I

[issue22091] __debug__ in compile(optimize=1)

2014-07-27 Thread SilentGhost
SilentGhost added the comment: I can reproduce your example on 3.4, but for the comparison: >>> exec(compile("if __debug__: print(42)", "exec", "exec", optimize=1)) >>> exec(compile("if __debug__: print(42)", "exec", "exec", optimize=0)) 42 So, it's not as straightforward as one might imagine.

[issue22003] BytesIO copy-on-write

2014-07-27 Thread David Wilson
David Wilson added the comment: Hey Antoine, Thanks for the link. I'm having trouble getting reproducible results at present, and running out of ideas as to what might be causing it. Even after totally isolating a CPU for e.g. django_v2 and with frequency scaling disabled, numbers still jump

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a2ec0a15017 by Martin v. Löwis in branch 'default': Issue #20173: Convert sha1, sha256, sha512 and md5 to ArgumentClinic. http://hg.python.org/cpython/rev/5a2ec0a15017 -- nosy: +python-dev ___ Python tra

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: The codecsmodule still remains to be done. -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: BTW, Vajrasky: Thanks for the patch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-27 Thread STINNER Victor
STINNER Victor added the comment: See aslo issue #21998: "asyncio: a new self-pipe should be created in the child process after fork". -- ___ Python tracker ___

[issue22091] __debug__ in compile(optimize=1)

2014-07-27 Thread eryksun
eryksun added the comment: If __debug__ were referenced from the code object's co_consts instead of checking locals, globals and builtins (LOAD_NAME), then optimize=1 would work consistently for a given code object. Currently in 3.4.1: >>> dis.dis(compile("if __debug__: x = 1", "", "exec

[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ryan, 4 hunks of your patch fail to apply now. Can you please update the patch? -- nosy: +loewis ___ Python tracker ___ ___

[issue22018] signal.set_wakeup_fd() should accept sockets on Windows

2014-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- title: Add a new signal.set_wakeup_socket() function -> signal.set_wakeup_fd() should accept sockets on Windows ___ Python tracker ___ ___

[issue1234674] filecmp.cmp's "shallow" option

2014-07-27 Thread Steven Barker
Steven Barker added the comment: I think that your test patch misses the confusing/possibly wrong case. That case is when two files have the same contents, but different mtimes. If you attempt a shallow comparison, you'll actually get a deep comparison (reading the whole files) and a result of

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2014-07-27 Thread Akira Li
Akira Li added the comment: Related issue21859 "Add Python implementation of FileIO" -- nosy: +akira ___ Python tracker ___ ___ Python

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- title: signal.set_wakeup_fd(fd): set the fd to non-blocking mode -> signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode ___ Python tracker

[issue22018] signal.set_wakeup_fd() should accept sockets on Windows

2014-07-27 Thread STINNER Victor
STINNER Victor added the comment: New version 9 of my patch: - signal.set_wakeup_fd() now also supports socket handles on Windows (That's all: files are still supported on Windows.) -- Added file: http://bugs.python.org/file36130/wakeup_fd-9.patch _

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

2014-07-27 Thread STINNER Victor
STINNER Victor added the comment: Can someone please review my patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file36054/os_blocking-2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-27 Thread STINNER Victor
STINNER Victor added the comment: signal_check_nonblocking.patch: signal.set_wakeup_fd() now raises a ValueError if the file descriptor is in blocking mode. The patch depends on the patch of the issue #22054. I didn't test the patch on Windows, but all calls to signal.set_wakeup_fd() must fai

[issue22082] Clear interned strings listed in slotdefs

2014-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2d3feeb61ed by Victor Stinner in branch 'default': Issue #22082: Fix a compiler warning (function is not a prototype) http://hg.python.org/cpython/rev/c2d3feeb61ed -- ___ Python tracker

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2014-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d3d0659b55e by Martin v. Löwis in branch 'default': Issue #20179: Apply Argument Clinic to bytes and bytearray. http://hg.python.org/cpython/rev/4d3d0659b55e -- nosy: +python-dev ___ Python tracker

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Tal: Thanks for the patch. I applied it with updates to the current Argument Clinic. _ssl and _overlapped are still to be done. -- nosy: +loewis ___ Python tracker _

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-07-27 Thread Vajrasky Kok
New submission from Vajrasky Kok: For examples: $ ./python Lib/unittest/test/test_runner.py Traceback (most recent call last): File "Lib/unittest/test/test_runner.py", line 10, in from .support import LoggingResult, ResultWithNoStartTestRunStopTestRun SystemError: Parent module '' not lo

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-07-27 Thread Vajrasky Kok
Changes by Vajrasky Kok : Removed file: http://bugs.python.org/file36132/fix_test_inside_unittest.patch ___ Python tracker ___ ___ Python-bugs

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-07-27 Thread Vajrasky Kok
Changes by Vajrasky Kok : Added file: http://bugs.python.org/file36133/fix_test_inside_unittest.patch ___ Python tracker ___ ___ Python-bugs-l

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: For the unicodeobject changes, see Rietveld. In addition, it produces many cast errors from PyUnicodeObject* to PyObject*. Otherwise, it looks fine - please apply (after these fixes). -- nosy: +loewis ___ Python tr

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch does not apply anymore. Can you please update it, and rerun AC on it? -- nosy: +loewis ___ Python tracker ___ ___

[issue22003] BytesIO copy-on-write

2014-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Even after totally isolating a CPU for e.g. django_v2 and with frequency > scaling disabled, numbers still jump around for the same binary by as much as > 3%. That's expected. If the difference doesn't go above 5-10%, then you IMO can pretty much consider y

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

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: multibytecodec_derby.diff looks fine, please apply. -- nosy: +loewis ___ Python tracker ___ ___ Pyt

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-27 Thread Dan O'Reilly
Dan O'Reilly added the comment: I've added a unit test that spawns a new forked process via multiprocessing, and verifies that the loop returned by get_event_loop is not the same as the one we have in the parent. -- Added file: http://bugs.python.org/file36134/handle_mp_unix_with_test.

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

2014-07-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: The cmath patch fails to apply; please update it. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-27 Thread Dan O'Reilly
Dan O'Reilly added the comment: re: #21998, perhaps it's time to revive #16500? Without that, I'm not sure what can be done aside from documenting the need to call "loop = asyncio.get_event_loop()" in the child immediately after forking. -- ___ Pyth

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

2014-07-27 Thread Berker Peksag
Changes by Berker Peksag : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-27 Thread STINNER Victor
STINNER Victor added the comment: A simple pid check in the policy should be enough. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-27 Thread Dan O'Reilly
Dan O'Reilly added the comment: Hmm, I'm not sure what you mean. What check in the policy would prevent this issue you described in #21998?: import asyncio, os loop = asyncio.get_event_loop() pid = os.fork() if pid: print("parent", loop._csock.fileno(), loop._ssock.fileno()) else: print

[issue22066] subprocess.communicate() does not receive full output from the called process.

2014-07-27 Thread juj
juj added the comment: Further testing suggests that this is not a Python issue, but instead an issue in node.js, reported already earlier here https://github.com/joyent/node/issues/1669 Closing this as invalid. -- ___ Python tracker

[issue22066] subprocess.communicate() does not receive full output from the called process.

2014-07-27 Thread juj
Changes by juj : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22066] subprocess.communicate() does not receive full output from the called process.

2014-07-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue22076] csv module bad grammar in exception message

2014-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0c7da9f0069 by Berker Peksag in branch 'default': Issue #22076: Minor grammar fix. http://hg.python.org/cpython/rev/c0c7da9f0069 -- nosy: +python-dev ___ Python tracker

[issue22076] csv module bad grammar in exception message

2014-07-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Martin. -- assignee: -> berker.peksag nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue17942] IDLE Debugger: names, values misaligned

2014-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15335] IDLE - debugger steps through run.py internals

2014-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7949] IDLE: problems with dark GTK or KDE color schemes

2014-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list ma

[issue16023] IDLE freezes on ^5 or ^6 (Un-)Tabify Region with OS X Cocoa Tk 8.5

2014-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list m

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

2014-07-27 Thread Andrew Barnert
Andrew Barnert 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 Any

[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-07-27 Thread Anthony Kong
Changes by Anthony Kong : -- nosy: +Anthony.Kong ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2014-07-27 Thread Ned Deily
Ned Deily added the comment: Several review comments on tdemo-font-34-t2.diff: - Terry's question: >Ned, with this binding, (ignored on Mac?) >widget.bind_all('', self._updateFont) >plain wheel moves scroll as desired while Control-wheel changes font sizes. >>This is standard behavior o

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

2014-07-27 Thread Vajrasky Kok
New submission from Vajrasky Kok: OS X version 10.9.4. $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread m

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-07-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2014-07-27 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, https://sourcew

[issue22089] collections.MutableSet does not provide update method

2014-07-27 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 th