[issue26491] Defer DECREFs until enum object is in a consistent state for re-entrancy

2016-03-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: serhiy.storchaka -> ___ Python tracker ___

[issue25652] collections.UserString.__rmod__() raises NameError

2016-03-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: serhiy.storchaka -> ___ Python tracker ___

[issue15216] Support setting the encoding on a text stream after creation

2016-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: quad, please don't change issue attributes to unrelated values. -- type: security -> enhancement versions: +Python 3.6 ___ Python tracker

[issue15216] Support setting the encoding on a text stream after creation

2016-03-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___

[issue15216] Support setting the encoding on a text stream after creation

2016-03-11 Thread Kwamenichols
Changes by Kwamenichols : -- components: +2to3 (2.x to 3.x conversion tool) hgrepos: +334 versions: -Python 3.6 ___ Python tracker

[issue15216] Support setting the encoding on a text stream after creation

2016-03-11 Thread Kwamenichols
Changes by Kwamenichols : -- nosy: +quad type: enhancement -> security ___ Python tracker ___

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset e54224e8d6a9 by Victor Stinner in branch 'default': Revert change 291d47954618 https://hg.python.org/cpython/rev/e54224e8d6a9 -- ___ Python tracker

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: Elena's issue13305.diff: "Zero padding can be forced on some platforms by using e.g. ``%4Y``" Sorry, I still doesn't understand the change. %4Y doesn't work with strptime() and it only work with strftime() on very few platforms. Can you explain when %4Y

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: >> About Elena Oat's patch issue13305.diff: I'm not sure that >> strftime("%4Y") works on all platforms > It doesn't, that's what the patch is trying to document. Oh. I confirm: %4Y gives "4Y" for any year on FreeBSD and Mac OS X, it raises

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: > About Elena Oat's patch issue13305.diff: I'm not sure that > strftime("%4Y") works on all platforms It doesn't, that's what the patch is trying to document. AFAICT it works on my Linux (but not on yours), it gives '4Y' on Mac, and raises an error on Windows.

[issue17605] mingw-meta: build interpeter core

2016-03-11 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue26519] Cython doesn't work anymore on Python 3.6

2016-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Stefan, could you please check that this issue is fixed and there are no other cases of pickling or copying unpickleable classes? -- ___ Python tracker

[issue22625] When cross-compiling, don’t try to execute binaries

2016-03-11 Thread Martin Panter
Martin Panter added the comment: In I suggested adding some makefile settings to manually override the pgen and _frozen_importlib programs. I imagine the changes would look something like cross-override.patch. Can someone

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Dicts are hard optimized for string keys due to using them for globals and attributes lookup. Sets are optimized too, but rather for accident. We can be sure that dicts will be always optimized, but set optimization can be eliminated for the sake of

[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-03-11 Thread Martin Panter
Martin Panter added the comment: Please don’t use nested brackets like that in English text. Try to rewrite the sentence without brackets (e.g. use a comma or say “This is equivalent to”) [or use a different kind of bracket if you really must (to make the nesting clearer)]. -- nosy:

[issue17592] mingw: configure MACHDEP and platform for build

2016-03-11 Thread Martin Panter
Martin Panter added the comment: Here is a modified patch fixing a couple of the spelling & style problems. I moved the comment introducing the ac_sys_ variables up to before the code that sets them. I rearranged the logic for _PYTHON_HOST_PLATFORM so it is clear that $host_os overrides

[issue26535] Minor typo in the docs for struct.unpack

2016-03-11 Thread Martin Panter
Martin Panter added the comment: The patch looks good to me, though it should be applied to all three unpack functions and Struct methods, and the doc strings (struct.unpack.__doc__ etc). An alternative wording is already used for struct.iter_unpack(): “the buffer’s size in bytes”. Maybe that

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: > Note: I don't understand what are domain, tag (address of the memory block?) > or quantity (size of the memory block?). Yes, the idea is basically the same as now, except with an extra const char * specifying the "domain", so that one could keep separate

[issue17590] mingw: translate gcc internal defines to python platform specific defines

2016-03-11 Thread Martin Panter
Martin Panter added the comment: Here is a possible alternative patch that moves MS_WINDOWS etc from PC/pyconfig.h to "pyport.h". Not tested with standard Windows build. -- components: -Cross-Build Added file: http://bugs.python.org/file42141/MS_WINDOWS-move.patch

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2016-03-11 Thread Martin Panter
Martin Panter added the comment: I tend to agree with the comment at . Find_library() is documented as emulating a build-time linker, not run-time. Build-time linking ignores LD_LIBRARY_PATH. Maybe it would make more sense to pass in an optional

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-03-11 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26545] os.walk is limited by python's recursion limit

2016-03-11 Thread Thomas Waldmann
Thomas Waldmann added the comment: Note: similar issues can be seen in other stdlib recursive filesystem-related functions also. -- ___ Python tracker

[issue26545] os.walk is limited by python's recursion limit

2016-03-11 Thread Thomas Waldmann
New submission from Thomas Waldmann: os.walk calls itself recursively and that limits the directory depth it can "walk" into. On Linux, one can create directory hierarchies deeper than that. For some more details see there: https://github.com/borgbackup/borg/issues/380 --

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2016-03-11 Thread Berker Peksag
Berker Peksag added the comment: Thanks Victor. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue21910] File protocol should document if writelines must handle generators sensibly

2016-03-11 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch ___ Python tracker ___ ___

[issue26544] platform.libc_ver() returns incorrect version number

2016-03-11 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26544] platform.libc_ver() returns incorrect version number

2016-03-11 Thread Thomas Waldmann
New submission from Thomas Waldmann: platform.libc_ver() is trivially broken as it uses string comparison internally to determine the maximum libc version number (which is obviously broken as "2.9" > "2.10"). -- components: Library (Lib) messages: 261624 nosy: Thomas.Waldmann

[issue26535] Minor typo in the docs for struct.unpack

2016-03-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-11 Thread Martin Panter
Martin Panter added the comment: To add a second response you would just concatenate it to the existing response. (Your existing test already uses FakeSocket.) The FakeSocket parameter just represents data that would be sent from the server. So: body = ( b"HTTP/1.1 200 OK\r\n"

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-03-11 Thread Amit Saha
Amit Saha added the comment: Thank you Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26525] Documentation of ord(c) easy to misread

2016-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The easily misread "ord('ν')" could be expanded to "ord('ν') (Greek nu)" but I agree that "ord('€') (Euro sign)" would be either better for a global doc. (And the return is 8364.) If no objection (Benjamin? Nick?), I am willing to do it for 3.5/6 There is

[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is not 'integer caching in Python'. This is strictly an implementation feature of CPython, and any other implementation that does similarly. "or id(x) == id(y)" should be "(id(x) == id(y))" as the addition is an alternate wording, not an alternate

[issue26500] Document of new star unpacking is missing.

2016-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: #19024 was about adding a general section on the various uses of '*'. This was before the new * unpacking generalizations. It was closed because the then existing uses *are* documented and are indexed in the first, Symbols, section of the index. There are

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-11 Thread Martin Panter
Martin Panter added the comment: I have looked at PEP 3141, the history of the documentation in question, and the documentation of the functions in the “math” module. It seems that trunc(), floor() and ceil() were all intended to return a numbers.Integral type, but then PEP 3141’s floor() and

[issue24136] document PEP 448: unpacking generalization

2016-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is now 10 months and 2 releases since the rather large code patch. Documenting the extensive changes does not seem easy to me ;-). Certainly, a beginner needs feedback. -- nosy: +terry.reedy ___ Python tracker

[issue2292] Missing *-unpacking generalizations

2016-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: > the docs don't need to be committed in time for beta 1. 10 months and 2 releases after the code patch, the doc patches in #24136 are incomplete (I believe), uncommitted, untouched since July, and forgotten about. The issue needs more help. --

[issue26543] imaplib noop Debug

2016-03-11 Thread Stephen Evans
New submission from Stephen Evans: With the imaplib.Debug=3 (or greater) imaplib.noop() will crash if there are any untagged responses present. The _dump_ur() function has not been converted to expect bytes in the lambda variable x[1]. An abbreviate example of the 'dict' parameter would be:

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: updated patch: Don't Py_CLEAR the dummy sentinel value in PySet_Fini. The interned set uses it. Otherwise it causes problems when re-initializing after a Fini as happens in processes the setup and tear down an embedded interpreter multiple times.

[issue26509] spurious ConnectionAbortedError logged on Windows

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: > Your patch seems to miss the ``_fatal_error`` method in > ``proactor_events.py`` (which is actually where the bug happens in my > application - it's using ``ProactorEventLoop``). Oops :-) What a shame. It's now fixed. Note:

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64d45f3d0978 by Victor Stinner in branch '3.5': Issue #20589: Fix test_pathlib https://hg.python.org/cpython/rev/64d45f3d0978 -- ___ Python tracker

[issue26488] hashlib command line interface

2016-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This strikes me as a sensible addition. While I did not review the patch in detail, it seems cleanly written and is complete in having a new main() for the code, a new doc section, and a new unittest Test class. -- nosy: +terry.reedy stage: -> patch

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: Tests fail... http://buildbot.python.org/all/builders/x86-64 Ubuntu 15.10 Skylake CPU 3.5/builds/276/ == ERROR: test_group (test.test_pathlib.PureWindowsPathTest)

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: acucci's patch doc.patch suggests to use format "%4Y". Problem: I tried it on Linux, and it looks like it doesn't work. >>> datetime.datetime.strptime("1980", "%Y") datetime.datetime(1980, 1, 1, 0, 0) >>> datetime.datetime.strptime("1980", "%4Y") Traceback

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: -Python 3.4 ___ Python tracker ___

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 291d47954618 by Victor Stinner in branch 'default': Always test datetime.strftime("%4Y") https://hg.python.org/cpython/rev/291d47954618 -- ___ Python tracker

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: About Elena Oat's patch issue13305.diff: I'm not sure that strftime("%4Y") works on all platforms, so I enabled the test on strftime("%4Y"). I will check our buildbots. -- ___ Python tracker

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd75f8d34f97 by Victor Stinner in branch 'default': Add Mock.assert_called() https://hg.python.org/cpython/rev/bd75f8d34f97 -- nosy: +python-dev ___ Python tracker

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: > Yes, this can go in. Cool. I pushed the latest patch of Amit Saha. I just modified assert_call() doc to add "at least once". Thanks Amit for your contribution! -- ___ Python tracker

[issue26542] Wrongly formatted doctest block in difflib documentation

2016-03-11 Thread Berker Peksag
Berker Peksag added the comment: Good catch, Dmitry. Thanks for the patch! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue26542] Wrongly formatted doctest block in difflib documentation

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffd0603f5251 by Berker Peksag in branch '3.5': Issue #26542: Fix markup of code example in difflib documentation https://hg.python.org/cpython/rev/ffd0603f5251 New changeset 40d92c92eb6e by Berker Peksag in branch 'default': Issue #26542: Fix

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2016-03-11 Thread Berker Peksag
Berker Peksag added the comment: I've changed the exception to raise NotImplementedError. I'm not sure about using the ctypes solution in the stdlib. Perhaps we should wrap Windows GetSecurity* APIs (similar to what we did for UNIX/POSIX APIs) first then we can use it in pathlib. --

[issue18500] mingw: detect winsock2 and setup _socket module

2016-03-11 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review title: mingw: defect winsock2 and setup _socket module -> mingw: detect winsock2 and setup _socket module ___ Python tracker

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ac695499fa3 by Berker Peksag in branch '3.5': Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise https://hg.python.org/cpython/rev/8ac695499fa3 New changeset 1602fa504e72 by Berker Peksag in branch 'default': Issue #20589:

[issue14787] pkgutil.walk_packages returns extra modules

2016-03-11 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue17605] mingw-meta: build interpeter core

2016-03-11 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +AC_LIBOBJ replacement of fileblocks, mingw: Allow Objects/exceptions.c to include "errmap.h", mingw: add wincrypt.h in Python/random.c, mingw: configure MACHDEP and platform for build, mingw: default sys.path

[issue17592] mingw: configure MACHDEP and platform for build

2016-03-11 Thread Martin Panter
Martin Panter added the comment: There are some spelling errors in the comments. It would also be good to keep the indentation, quoting, layout etc similar to the surrounding code. Regarding the comments, what is the significance of “runtime platform” vs MACHDEP? Also, what is the

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-11 Thread Michael Herold
Michael Herold added the comment: Yes, a fallback hook at the end of parsing would have to be placed before the 'required' testing, not after as in my 'group' testing. Just to clarify: Would you suggest that a fallback call returns the parsed value (i.e. the fallback calls the action or alike)

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2016-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Terry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e7c388dc3c5 by Terry Jan Reedy in branch '2.7': Issue 25959: Explain in docstring that PhotoImage.zoom arguments are https://hg.python.org/cpython/rev/1e7c388dc3c5 New changeset 7474695874d9 by Terry Jan Reedy in branch '3.5': Issue 25959: Explain

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2016-03-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2016-03-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy stage: needs patch -> commit review ___ Python tracker ___

[issue26540] Python Macros

2016-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Agreed, this is python-ideas material. The topic also came up in the past, and there are already threads where this has been discussed and even existing projects that implements macros. -- nosy: +ezio.melotti resolution: -> not a bug stage: ->

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patches and reviews! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ef74c7f3fdc by Ezio Melotti in branch '2.7': #26247: document Chrome/Chromium addition to webbrowser. Patch by Manvi B. https://hg.python.org/cpython/rev/8ef74c7f3fdc -- nosy: +python-dev ___ Python

[issue26540] Python Macros

2016-03-11 Thread Mark Dickinson
Mark Dickinson added the comment: This is really python-ideas material: you'd need to give a *lot* more details about exactly what you mean by "macros". -- nosy: +mark.dickinson ___ Python tracker

[issue26538] regrtest: setup_tests() must not replace module.__path__ (_NamespacePath) with a simple list // importlib & abspath

2016-03-11 Thread Brett Cannon
Brett Cannon added the comment: Figures. If you do decide to centralize the code then put it in importlib.util and please don't make it public. It's something that should only be done once and not something most people should have to worry about. --

[issue26542] Wrongly formatted doctest block in difflib documentation

2016-03-11 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: Look at the documentation of difflib.SequenceMatcher.get_opcodes: https://docs.python.org/dev/library/difflib.html#difflib.SequenceMatcher.get_opcodes There, the result part of the example is rendered as plain reStructuredText, separately from the code

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-03-11 Thread Barun Parruck
Barun Parruck added the comment: Hi! Okay, sorry for disappearing like that(this is becoming rather a habit isn't it!), but with Gsoc applications, I've been insanely busy trying to get patches and bugs accepted for my first Gsoc ever. I do apologize for leaving you hanging, it was not my

[issue14787] pkgutil.walk_packages returns extra modules

2016-03-11 Thread Андрей Няхайчык
Андрей Няхайчык added the comment: Any hope to add the warning in pkgutil docs about this problem? For example: Warning!!! The walk_packages function uses sys.path to import nested packages for provided paths. It means it walks deeply by relative import for subpackages. If you provide path

[issue26541] Add stop_after parameter to setup()

2016-03-11 Thread Memeplex
New submission from Memeplex: The current implementation offers a stop_after parameter for run_setup() but not for setup(). This design has some shortcomings: 1. It couples the possibility to stop setup after some phase to the fact that the setup function resides in another file. But the

[issue26538] regrtest: setup_tests() must not replace module.__path__ (_NamespacePath) with a simple list // importlib & abspath

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: Longer extract of setup_tests(), with the long comment: # Some times __path__ and __file__ are not absolute (e.g. while running from # Lib/) and, if we change the CWD to run the tests in a temporary dir, some # imports might fail. This affects only

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-11 Thread paul j3
paul j3 added the comment: Yes, the use of ordered dictionary would be right. Your code would still reorder actions that have fallback values, but that wouldn't affect others. Yes, a fallback hook at the end of parsing would have to be placed before the 'required' testing, not after as in my

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-03-11 Thread Michael Foord
Michael Foord added the comment: Yes, this can go in. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26540] Python Macros

2016-03-11 Thread Ethan Furman
Ethan Furman added the comment: That particular use-case is easily handled by simply creating the correct function/method based on the criterion: if py_ver < 3.6: def fribbletz(): # do something in a 3.0-3.5 compatible way else: def fribbletz(): # otherwise use 3.6 methods

[issue26540] Python Macros

2016-03-11 Thread Devyn Johnson
New submission from Devyn Johnson: Would it be a good idea to add macros to Python? This would allow developers to test a condition (such as, "is this code running on Linux?" or "is this Python version 3.6?"). Then, the compiled bytecode will already contain the needed code, as opposed to

[issue26538] regrtest: setup_tests() must not replace module.__path__ (_NamespacePath) with a simple list // importlib & abspath

2016-03-11 Thread Brett Cannon
Brett Cannon added the comment: I think a more important question is why is test.libregrtest doing what it's doing? Is it simply to guarantee that the `site` code is run? If so it should just import `site`. As for adding the __setitem__() method, I'm fine with it but maybe Eric has an

[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-03-11 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +paul.moore, pitrou, steve.dower, tim.golden, zach.ware stage: -> patch review ___ Python tracker

[issue26532] build fails with address sanitizer

2016-03-11 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> third party status: open -> closed ___ Python tracker ___

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: Hi Victor, This is really great, thanks for working on it! What do you think about the richer api I proposed here? http://bugs.python.org/issue18835#msg232221 -- ___ Python tracker

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: LGTM Thanks for getting this documented! -- ___ Python tracker ___ ___

[issue26531] KeyboardInterrupt while in input() not catchable on Windows 10

2016-03-11 Thread Joshua Cannell
Joshua Cannell added the comment: Yeah, so this looks like a behavior in Windows in which an EOFError is raised when a Ctrl + C is pressed, followed by a KeyboardInterrupt. This post basically explains how to overcome it:

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2016-03-11 Thread Elena Oat
Elena Oat added the comment: I submitted a patch for documentation changes related to strftime "%Y" directive inconsistencies. I am not sure that specifying the OS is correct, because I haven't tested the inconsistencies on all Linux PCs, Windows versions or OS X. I still left them there

[issue16465] dict creation performance regression

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: > Closed in the favor of issue23601. Cool! -- ___ Python tracker ___

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Manvi B
Manvi B added the comment: Submitted the patch with the text noting below the table. -- Added file: http://bugs.python.org/file42135/issue26247.diff ___ Python tracker

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Manvi B
Manvi B added the comment: @Fred L. Drake, Jr. (fdrake) Is it okay if I can remove ``versionchanged::``. And simply say that, Support for Chrome/Chromium has been added from 2.7.5 version or later. -- ___ Python tracker

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Sorry; I guess I wasn't clear. ``versionadded::`` and ``versionchanged::`` are applied to specific API points (modules, classes, methods, attributes) that are identified structurally in the documentation. That isn't the case for this. While a bit of

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Manvi B
Manvi B added the comment: Modified the patch with this directive instead ``versionchanged::``. -- Added file: http://bugs.python.org/file42134/issue26247.diff ___ Python tracker

[issue26156] Bad name into power operator syntax

2016-03-11 Thread Guido Treutwein
Guido Treutwein added the comment: Yurys answer and resolution misses the point. Nobody complained about the await operator. Fact is, that in the _power_ operator (chapter 6.5) as base specification now "await" is given. This is likely to be an inadvertent copy of the previous chapter, makes

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2016-03-11 Thread Varpu Rantala
Varpu Rantala added the comment: crashes also with Python 3.5.0 (Mac OS X 10.11.3) when x and y are the following or bigger, but works when they are smaller. Tried it with the mapbe.gif image (size 1000 x 681). 30, 27 31, 26 32, 25 33, 24 34, 24 35, 23 36, 22 37, 22 38, 22 39, 21

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2016-03-11 Thread Eryk Sun
Eryk Sun added the comment: Background Discussion The Windows 10 console uses the condrv.sys device driver, which is set up as follows in the NT namespace: C:\>odir \ -r -n con;con*$;cond* Directory of \ Device ConDrv Driver condrv GLOBAL?? CON

[issue26394] Have argparse provide ability to require a fallback value be present

2016-03-11 Thread Michael Herold
Michael Herold added the comment: Thanks so much for looking into my patch! Let me start by outlining that I don't understand how your alternate solutions are coping with the key problem. You are assuming that you get a populated Namespace object. However, `_parse_known_args` is exiting if

[issue26247] Document Chrome/Chromium for python2.7

2016-03-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: The ``versionadded::`` directive should only be used to annotate descriptions of new API entries. While it would be correctly applied to the ``Chrome`` and ``Chromium`` classes, those are not separately documented here, but are only listed in the table.

[issue26539] frozen executables should have an empty path

2016-03-11 Thread Daniel Shaulov
New submission from Daniel Shaulov: A frozen python executable should have an empty path, so it doesn't accidentally run something it was not supposed to. The attached file achieves that by setting Py_NoSiteFlag and Py_IsolatedFlag in Python/frozenmain.c It also checks for Py_FrozenFlag in

[issue16465] dict creation performance regression

2016-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Closed in the favor of issue23601. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed superseder: -> use small object allocator for dict key storage ___ Python tracker

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2016-03-11 Thread Eryk Sun
Eryk Sun added the comment: This problem has come up in several issues now (see issue 25376 and issue 26531). I'm adding a patch for Python 3.6 to call ReadConsoleA instead of fgets in PyOS_Readline. This fixes Ctrl+C and EOF handling in Windows 10 for both the interactive shell and the

[issue26295] Random failures when running test suite in parallel (-m test -j0) caused by test_regrtest

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: Oh ok, I found a bug in the setup_tests() function of libregrtest: issue #26538. Attached patch fixes this issue, it requires the patch of the issue issue #26538. -- keywords: +patch Added file:

[issue26538] regrtest: setup_tests() must not replace module.__path__ (_NamespacePath) with a simple list // importlib & abspath

2016-03-11 Thread STINNER Victor
New submission from STINNER Victor: Extract of test.libregrtest.setup_tests(): for module in sys.modules.values(): if hasattr(module, '__path__'): module.__path__ = [os.path.abspath(path) for path in module.__path__] if

[issue26525] Documentation of ord(c) easy to misread

2016-03-11 Thread Susan Sun
Susan Sun added the comment: This was changed in the following commit. changeset: 95165:f6c6304c8193 user:Benjamin Peterson date:Tue Mar 24 12:12:44 2015 -0400 summary: change Σ to ν for obscure joke reasons https://twitter.com/ncoghlan_dev/status/579173053793353728

[issue16851] Hint about correct ismethod and isfunction usage

2016-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset a90b39aa6af4 by Victor Stinner in branch '2.7': Issue #16851: Add Anna Koroliuk to Misc/ACKS https://hg.python.org/cpython/rev/a90b39aa6af4 -- ___ Python tracker

[issue16851] Hint about correct ismethod and isfunction usage

2016-03-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks Anna, I pushed your doc fix. Can you please sign the Python Contributor Agreement? https://www.python.org/psf/contrib/ -- nosy: +haypo resolution: fixed -> stage: resolved -> patch review status: closed -> open

  1   2   >