[issue12743] C API marshalling doc contains XXX

2016-09-28 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.7 Added file: http://bugs.python.org/file44871/issue12743_v2.diff ___ Python tracker

[issue27322] test_compile_path fails when python has been installed

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: The buildbot is now green. Closing this as fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26869] unittest longMessage docs

2016-09-28 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___

[issue28281] Remove year limits from calendar

2016-09-28 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___

[issue28300] [PATCH] Fix misspelled "implemented" word

2016-09-28 Thread Shlomi Fish
Shlomi Fish added the comment: You're welcome and thanks for applying it (and so quickl). -- ___ Python tracker ___

[issue2504] Add gettext.pgettext() and variants support

2016-09-28 Thread Leonid Suprun
Changes by Leonid Suprun : -- nosy: +Leonid Suprun ___ Python tracker ___ ___

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2016-09-28 Thread STINNER Victor
STINNER Victor added the comment: > Is it possible to backport this patch to 2.7? No. Python 2.7 supports many implementations of threads: $ ls Python/thread_*h -1 Python/thread_atheos.h Python/thread_beos.h Python/thread_cthread.h Python/thread_foobar.h Python/thread_lwp.h Python/thread_nt.h

[issue27322] test_compile_path fails when python has been installed

2016-09-28 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your fix :-) -- ___ Python tracker ___ ___ Python-bugs-list

[issue28303] [PATCH] Fix broken grammar in "pydoc3 unittest"

2016-09-28 Thread Shlomi Fish
Shlomi Fish added the comment: You're welcome, and thanks for applying the patch so quickly. -- ___ Python tracker ___

[issue27740] Fix doc of Py_CompileStringExFlags

2016-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee76e84f115f by Berker Peksag in branch '3.5': Issue #27740: Fix typo in Py_CompileStringExFlags https://hg.python.org/cpython/rev/ee76e84f115f New changeset 2ee939b314a2 by Berker Peksag in branch '3.6': Issue #27740: Merge from 3.5

[issue27740] Fix doc of Py_CompileStringExFlags

2016-09-28 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Ron Barak
New submission from Ron Barak: Successfully did: $ gunzip Python-3.6.0b1.tgz $ tar xvf Python-3.6.0b1.tar $ pushd Python-3.6.0b1 $ ./configure --disable-ipv6 --with-optimizations However, when trying to do: $ make profile-opt I get: ... gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g

[issue28281] Remove year limits from calendar

2016-09-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The proposed interpretation of nonpositive years is not arbitrary, it is a natural extension of the same formulas that we use for positive years. On the other hand 1- limits are arbitrary. If we wanted to restrict calendars to 4-digit years we

[issue27322] test_compile_path fails when python has been installed

2016-09-28 Thread Chris Angelico
Chris Angelico added the comment: Also working for me. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list

[issue28304] Condition.wait() doesn't raise KeyboardInterrupt

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: Per Victor's comment in issue 8844 (http://bugs.python.org/issue8844#msg277640), I'm closing this as 'wont fix'. Thanks for the report! -- nosy: +berker.peksag resolution: -> wont fix stage: -> resolved status: open -> closed

[issue28255] TextCalendar.prweek/month/year outputs an extra whitespace character

2016-09-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___

[issue28304] Condition.wait() doesn't raise KeyboardInterrupt

2016-09-28 Thread Adam Roberts
New submission from Adam Roberts: This was fixed for Python 3 in https://bugs.python.org/issue8844 but needs to be backported. -- components: Library (Lib) messages: 277639 nosy: Adam Roberts priority: normal severity: normal status: open title: Condition.wait() doesn't raise

[issue28275] LZMADecompressor.decompress Use After Free

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. And may be worth to rewrite lzma test in your style. -- resolution: fixed -> stage: resolved -> commit review ___ Python tracker

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Maybe add also itermonthdays4() that yields 4-tuples (year, month, day, day_of_week)? I seen a code that filters out weekends from itermonthdates(). -- ___ Python tracker

[issue21903] ctypes documentation MessageBoxA example produces error

2016-09-28 Thread Eryk Sun
Eryk Sun added the comment: The GetWindowRect example seems fine, for the most part. The docs don't have to show it being called. If I were to call it, I'd use GetForegroundWindow to get a window handle. GetActiveWindow returns the active window attached to the current thread's message queue,

[issue20754] distutils should use SafeConfigParser

2016-09-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: Do the changes in issue20120 address this concern? -- ___ Python tracker ___

[issue22392] Clarify documentation of __getinitargs__

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: https://docs.python.org/2/library/pickle.html#object.__getinitargs__ states: "If it is desirable that the __init__() method be called on unpickling, an old-style class can define a method __getinitargs__(), which should return a tuple containing the arguments

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Christian Heimes
Christian Heimes added the comment: Cygwin is an unsupported platform. It seems like Cygwin broke siginfo_t. The struct must have a si_band member, see http://man7.org/linux/man-pages/man2/rt_sigaction.2.html . -- nosy: +christian.heimes ___ Python

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Ron Barak
Ron Barak added the comment: Can I apply http://bugs.python.org/file44208/3.5-issue21085-struct_siginfo-2.patch to 3.6 as is? -- ___ Python tracker ___

[issue28281] Remove year limits from calendar

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Okay, if this is specified by ISO 8601 standard, I think we can extend calendar below year 1. But the meaning of non-positive years should be documented. And maybe even provide a way to customize the representation of year (this is a separate issue).

[issue28210] argparse with subcommands difference in python 2.7 / 3.5

2016-09-28 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___

[issue9253] argparse: optional subparsers

2016-09-28 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___

[issue28148] [Patch] Also stop using localtime() in timemodule

2016-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3afad465b3e1 by Alexander Belopolsky in branch '3.6': Issue #28148: Added a NEWS entry. https://hg.python.org/cpython/rev/3afad465b3e1 -- ___ Python tracker

[issue20754] distutils should use SafeConfigParser

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Alex. SafeConfigParser has been renamed to ConfigParser in Python 3.2 and distutils already uses ConfigParser in Python 3: >From Distribution.parse_config_files(): ... parser = ConfigParser() For 2.7, can you try it with

[issue22969] Compile fails with --without-signal-module

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, but --with(out)-signal-module option has been removed in d5bb5ad5a108. -- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue23701] Drop extraneous comment from winreg.QueryValue's docstring

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and for the patch, Claudiu. The part you mentioned has already been removed in 6e613ecd70f0. Here's the current version: "Values in the registry have name, type, and data components. This method retrieves the data for a key's first value

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Spencer Brown
Spencer Brown added the comment: Alternatively, SETUP_WITH could additionally check for the other method, and raise an AttributeError with a custom message mentioning both methods. -- nosy: +Spencer Brown ___ Python tracker

[issue28148] [Patch] Also stop using localtime() in timemodule

2016-09-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27845] Optimize update_keyword_args() function

2016-09-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue28148] [Patch] Also stop using localtime() in timemodule

2016-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c81b9107ec42 by Alexander Belopolsky in branch '3.6': Issue #28148: Stop using localtime() and gmtime() in the time module. https://hg.python.org/cpython/rev/c81b9107ec42 -- nosy: +python-dev ___ Python

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is applied cleanly on the default branch. I don't think there is a need to open a new issue. The last patch implements the original Raymond's intention, but taking into account all comments: drops the oldest item, doesn't depend on implementation details

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2016-09-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: As a data point confirming that: we tried backporting the much nicer non-polling condition implementation (https://github.com/python/cpython/commit/15801a1d52c25fa2a19d649ea2671080f138fca1.patch) to our Python 2.7 interpreter at work but ran into actual

[issue28306] incorrect output "int division or modulo by zero" in Handling Exceptions tutorial

2016-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset f60396d8f95c by Berker Peksag in branch '3.5': Issue #28306: Update exception message of ZeroDivisionError https://hg.python.org/cpython/rev/f60396d8f95c New changeset e6dcb14829cf by Berker Peksag in branch '3.6': Issue #28306: Merge from 3.5

[issue2504] Add gettext.pgettext() and variants support

2016-09-28 Thread Antti Haapala
Antti Haapala added the comment: *wow* isn't this in Python 3 yet (I've been using Zope translationstrings lately so I didn't know that pgettext is still not supported). -- nosy: +ztane ___ Python tracker

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> compile error Python3.3 on Cygwin ___ Python tracker

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread Ron Barak
Ron Barak added the comment: Re: Cygwin is an unsupported platform. Currently, from the contents of Python-3.6.0b1, one may be led to believe that Cygwin _is_ supported, e.g. - see the references to Cygwin in the README file: $ grep -i cygwin README On Unix, Linux, BSD, OSX, and Cygwin: find

[issue28306] incorrect output "int division or modulo by zero" in Handling Exceptions tutorial

2016-09-28 Thread Viorel Tabara
New submission from Viorel Tabara: I'm reading the Python 3.5.2 documentation at: https://docs.python.org/3/tutorial/errors.html#handling-exceptions which shows the following example: >>> def this_fails(): ... x = 1/0 ... >>> try: ... this_fails() ... except

[issue28306] incorrect output "int division or modulo by zero" in Handling Exceptions tutorial

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: Good catch! Thanks for the report. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue28294] HTTPServer server.py assumes sys.stderr != None

2016-09-28 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread R. David Murray
R. David Murray added the comment: cygwin used to be fully supported, but support broke because there was no one around that was maintaining it. There has been renewed interest, and some progress toward fixing cygwin support (more help is appreciated), but it cannot be called a supported

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Ned Deily
Changes by Ned Deily : -- stage: -> patch review versions: +Python 3.6 ___ Python tracker ___

[issue28305] Make error for Python3.6 on Cygwin

2016-09-28 Thread R. David Murray
R. David Murray added the comment: If you can't please report it on that issue. -- ___ Python tracker ___ ___

[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-09-28 Thread Shaun Walbridge
Changes by Shaun Walbridge : -- nosy: +scw ___ Python tracker ___ ___

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2016-09-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to take the #1 approach, and also implement an itermonthdays3() generator that would be like itermonthdates(), but return 3-tuples (year, month, day) instead of datetime.date objects. The name "itermonthdays3" is subject to discussion, but

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would rather not introduce an OrderedDict dependency to the re module while other implementations are using the pure python version or where the OD implementation is in flux. This is a barely worth it proposal, so we should either make a modest,

[issue26224] Add "version added" for documentation of asyncio.timeout for documentation of python 3.4, 3.5, 3.6

2016-09-28 Thread Berker Peksag
Changes by Berker Peksag : -- type: -> behavior ___ Python tracker ___ ___

[issue26550] documentation minor issue : "Step back: WSGI" section from "HOWTO Use Python in the web"

2016-09-28 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Alejandro. Doc/howto/webservers.rst has been removed in Python 3 so I just fixed 2.7. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: enhancement -> behavior versions: -Python 3.2, Python 3.3,

[issue20766] reference leaks in pdb

2016-09-28 Thread Jack Liu
Jack Liu added the comment: Will the issue be fixed in Python formal build? I still meet the same issue with Python 3.5.1. It cost me a bit time to track down this issue. I'm using pdb to debug a Python script, there are global variables in the script. Duo the leak of sigint_handler, calling

[issue28275] LZMADecompressor.decompress Use After Free

2016-09-28 Thread Martin Panter
Martin Panter added the comment: Here is a patch to fix the corresponding bug in the bzip decompressor. I will try to commit it soon if there are no objections. For the record, these bugs were introduced with the max_length support in Issue 15955. The bzip code was modelled after the LZMA

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The re module now depends on the enum module, and the latter already depends on OrderedDict. Thus the patch doesn't introduce new dependency. Python implementation of OrderedDict doesn't override __getitem__ and therefore don't slow down the common case. I

[issue20766] reference leaks in pdb

2016-09-28 Thread Jack Liu
Jack Liu added the comment: Now, I have to set nosigint to True to fix the reference leaks issue for my app. -- ___ Python tracker ___

[issue28183] Clean up and speed up dict iteration

2016-09-28 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file44874/dict_iter5.patch ___ Python tracker ___

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-28 Thread Davin Potts
Davin Potts added the comment: @naught101: Thanks for the wording change -- I think your suggested doc change will be a good one. I've added a comment which you can access via the "review" link to the right of the link for your mp.map.starmap.patch attachment. --

[issue28247] Add an option to zipapp to produce a Windows executable

2016-09-28 Thread Brett Cannon
Brett Cannon added the comment: Only backport if you want; it's not a bug fix so technically it doesn't need to be backported. -- ___ Python tracker ___

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Perhaps: _cache.pop(next(iter(_cache))) This can raise KeyError if the cache is cleared in other thread. And it is a little slower. I remember why I didn't propose this idea earlier. This depends on the ordering of dict. But this is implementation

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Xiang Zhang
Xiang Zhang added the comment: Why not OrderedDict.popitem(last=False)? -- ___ Python tracker ___ ___

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why not OrderedDict.popitem(last=False)? Yes, this should work. Here is a patch. -- Added file: http://bugs.python.org/file44855/re_cache_ordered_dict_popitem.patch ___ Python tracker

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Maybe use OrderedDict? But this adds heavy dependency to the re module. We can use the same trick as in the enum module. Here is a patch. -- Added file: http://bugs.python.org/file44854/re_cache_ordered_dict_del_first.patch

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for 3.6 from me - as you say, this is fixing a usability bug in the error handling rather than being a new feature. -- ___ Python tracker

[issue28294] HTTPServer server.py assumes sys.stderr != None

2016-09-28 Thread Jaap van der Velde
New submission from Jaap van der Velde: On line 556 of server.py, the sys.stderr.write assumes that sys.stderr is assigned and not None. However, when developing Windows services using the pypiwin32 library (as an example), sys.stderr == None A workaround is to override the log_message

[issue28293] Don't completely dump the regex cache when full

2016-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: This has gotten crazy. I withdraw the suggestion. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: +1, but I'd name the env var PYTHON3WARNINGS. Who knows, when Python 4 comes around the corner, we may need a PYTHON4WARNINGS... -- nosy: +lemburg ___ Python tracker

[issue28297] sched module example has wrong output

2016-09-28 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2016-09-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +mark.dickinson, meador.inge ___ Python tracker ___

[issue12974] array module: deprecate '__int__' conversion support for array elements

2016-09-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28183] Clean up and speed up dict iteration

2016-09-28 Thread INADA Naoki
Changes by INADA Naoki : -- versions: +Python 3.7 Added file: http://bugs.python.org/file44864/dict_iter4.patch ___ Python tracker

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2016-09-28 Thread azrdev
azrdev added the comment: (Sorry for not replying so long, I expected an email notification) > Why not use string.Template? because it's so slow > I think that there may be a good argument to be made for a safe_format with > *named* arguments, like string.Template, but not positional

[issue28247] Add an option to zipapp to produce a Windows executable

2016-09-28 Thread Paul Moore
Paul Moore added the comment: OK, here's a first draft documentation patch. As it's purely a documentation change, I guess it should go into the 3.5, 3.6 and trunk branches? For now it's against trunk (it's not like that file has changed recently anyway), and I'll sort out the merge dance

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2016-09-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2016-09-28 Thread Eric V. Smith
Eric V. Smith added the comment: >> But that would require some discussion, to decide on the correct behaviour. >What open question(s) do you think of? You need to provide an exact specification of what you want. It's not clear, for example, if you want to support required positional

[issue5895] socketmodule.c on HPUX ia64 without _XOPEN_SOURCE_EXTENDED compiles incorrectly

2016-09-28 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue28297] sched module example has wrong output

2016-09-28 Thread Xiang Zhang
Xiang Zhang added the comment: Though the delay arguments of keyword and positional are both 5, but their register time has tiny difference: 930343695.274 vs 930343695.275, so positional is printed first. -- nosy: +xiang.zhang ___ Python tracker

[issue28297] sched module example has wrong output

2016-09-28 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry, it's not 930343695.274 vs 930343695.275. I mean the register time is time.time() + delay, so there is tiny difference between the two. You can change the timefunc to lambda: int(time.time()), then you'll see keyword is printed first. --

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2016-09-28 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file44861/CPythonTestOutput.txt ___ Python tracker ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2016-09-28 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch Added file: http://bugs.python.org/file44862/issue28298_ver1.diff ___ Python tracker ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2016-09-28 Thread Oren Milman
Changes by Oren Milman : -- versions: +Python 3.7 ___ Python tracker ___ ___

[issue28257] Regression for star argument parameter error messages

2016-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes error message for var-positional arguments. It adds new opcode BUILD_TUPLE_UNPACK_WITH_CALL. >>> min(1, *2) Traceback (most recent call last): File "", line 1, in TypeError: min() argument after * must be an iterable, not int >>>

[issue28296] Add __le__ and __ge__ to collections.Counter

2016-09-28 Thread Manuel Krebber
Manuel Krebber added the comment: Oh, I should have searched properly before creating this ticket. Sorry about that. I guess I will be subclassing Counter in my project then, to get this functionality... Only problem is, that when using the builtin __add__ etc. of my Counter subclass, I will

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2016-09-28 Thread Oren Milman
New submission from Oren Milman: current state On my Windows 10, on a 32-bit Python, The following runs fine: import array array.array('L').append(2 ** 32 - 1) However, in the following, an OverflowError('Python int too large to convert to C long') is raised

[issue28295] PyUnicode_AsUCS4 doc and impl conflict on exception

2016-09-28 Thread Xiang Zhang
New submission from Xiang Zhang: PyUnicode_AsUCS4 declares to raise ValueError if buffer length is smaller than string length. But now the implementation raises SystemError. -- components: Interpreter Core messages: 277595 nosy: haypo, serhiy.storchaka, xiang.zhang priority: normal

[issue28296] Add __le__ and __ge__ to collections.Counter

2016-09-28 Thread Manuel Krebber
New submission from Manuel Krebber: I would really like there to be comparison operators for collection.Counter similar to the ones for sets. While you can now use minus to some degree for that comparison, it is very inefficient. I have attached an implementation of __ge__ and __le__ as a

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-09-28 Thread Kubilay Kocak
Kubilay Kocak added the comment: Attach file with test results. It's worth mentioning that these results may (or may not) be different than output when running under the process id started by twistd, which is executed by root (startup script), and results in the following command: buildbot

[issue28183] Clean up and speed up dict iteration

2016-09-28 Thread INADA Naoki
INADA Naoki added the comment: Draft Misc/NEWS entry (and commit message) is: Core and Builtins - +- Issue #28183: Optimize dict iteration. + -- ___ Python tracker

[issue28147] Unbounded memory growth resizing split-table dicts

2016-09-28 Thread INADA Naoki
INADA Naoki added the comment: haypo, Could you review fix-28147-py35.patch and fix-28147.patch ? Draft NEWS entry: - Issue #28147: Fixed split table dict may consume unlimited memory. -- ___ Python tracker

[issue28300] [PATCH] Fix misspelled "implemented" word

2016-09-28 Thread Shlomi Fish
New submission from Shlomi Fish: This patch fixes two places where "implement" was misspelled. I hereby disclaim all ownership of my changes (but crediting me will be appreciated.) -- files: python-fix-spelling-of-implement.patch keywords: patch messages: 277616 nosy: shlomif priority:

[issue28299] DirEntry.is_dir() evaluates True for a file on Windows

2016-09-28 Thread Paul Moore
Paul Moore added the comment: is_dir is a *method*. To find out if an entry is a directory, you need to call it. So you need from os import DirEntry, scandir def test_is_dir(): for item in os.scandir(TEST_DIR): if item.is_dir(): # ^^ note change

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2016-09-28 Thread Michael Felt
Michael Felt added the comment: ok - false needs to be False and true needs to be True seemed so simple. Sigh. -- ___ Python tracker ___

[issue28296] Add __le__ and __ge__ to collections.Counter

2016-09-28 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2016-09-28 Thread Michael Felt
Michael Felt added the comment: Is this suitable? def test_find(self): # to track that at least one call to find_library() found something found = false for name in ("c", "m"): lib = find_library(name) if lib: found = true

[issue28299] DirEntry.is_dir() evaluates True for a file on Windows

2016-09-28 Thread David Staab
New submission from David Staab: I'm using Python 3.5.2 on Windows 10 Pro to run the following code with the attached file structure. The test code is: from os import DirEntry, scandir def test_is_dir(): for item in os.scandir(TEST_DIR): if item.is_dir:

[issue28299] DirEntry.is_dir() evaluates True for a file on Windows

2016-09-28 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-09-28 Thread INADA Naoki
INADA Naoki added the comment: lgtm -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28294] HTTPServer server.py assumes sys.stderr != None

2016-09-28 Thread R. David Murray
R. David Murray added the comment: That would be masking an error, I think. What might be reasonable would be to convert it to use the logging module in 3.7. -- nosy: +r.david.murray ___ Python tracker

[issue28300] [PATCH] Fix misspelled "implemented" word

2016-09-28 Thread SilentGhost
SilentGhost added the comment: LGTM -- assignee: -> docs@python components: +Documentation nosy: +SilentGhost, docs@python stage: -> commit review type: -> behavior versions: +Python 3.6 ___ Python tracker

[issue28183] Clean up and speed up dict iteration

2016-09-28 Thread INADA Naoki
INADA Naoki added the comment: Updated with small refactoring. Confirmed passes quicktest and no warning from clang on OS X. -- Added file: http://bugs.python.org/file44857/dict_iter3.patch ___ Python tracker

  1   2   >