[issue28059] Windows: test_platform.test_architecture_via_symlink() regression

2016-09-10 Thread Steve Dower
Steve Dower added the comment: That's strange, win32 should always have _ctypes available. I'll try and take a look later today -- assignee: -> steve.dower ___ Python tracker

[issue26081] Implement asyncio Future in C to improve performance

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: The actual _futures module appears missing from your latest patch -- what's up with that? -- ___ Python tracker ___

[issue28064] String executed inside a function ignores global statements

2016-09-10 Thread Qwert225
New submission from Qwert225: String executed inside a function ignores global statements stated before string execution. See the example below - the global variable value should be changed to 'newText' by the function, but is not. Example: variable = 'text' def changeVariable(): global

[issue26900] Exclude the private API from the stable API

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

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread Brett Cannon
Brett Cannon added the comment: Do realize that the PEP author was there and made the decision along with Guido to not move forward with a new feature that has not seen the light of day in a stable release, so I don't think blaming the sprinting environment is entirely fair in this case.

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Now that you point it out, I agree "clearly" is overstating things when it comes to claiming bug fix status for a form of usage that has never worked in the entire life of zero-argument super :) -- ___ Python tracker

[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-09-10 Thread Xiang Zhang
Xiang Zhang added the comment: Gregory, the change adds a print in: https://hg.python.org/cpython/file/tip/Lib/lib2to3/fixes/fix_reload.py#l29 ./python -m test test_lib2to3 Run tests sequentially 0:00:00 [1/1] test_lib2to3 obj: Leaf(1, 'a') obj: Leaf(1, 'a') obj: Leaf(1, 'a') obj: Leaf(1, 'a')

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: > That aspect of the change is clearly a bug fix I am happy to *rule* that we can treat it as a bugfix, but I disagree that it's *clearly* a bugfix. It's definitely debatable. This area of the language is so obscure and so few people remember why it was done

[issue28061] Python crashes on 'from test import support'

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: > VS breaks at line Objects/dictobject.c:2339 - 'if > (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)' Can you elaborate? Does the compilation fail? Did you get a crash? What was you doing while getting this error/message? ... Can you please give

[issue28059] Windows: test_platform.test_architecture_via_symlink() regression

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/2553/steps/test/logs/stdio test_architecture_via_symlink (test.test_platform.PlatformTest) ... Traceback (most recent call last): File "", line 1, in File

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Hmm things are quite complicated. Brief: the build is broken for out-of-source cross-compiling if the host Python is an in-source build. (Below $build_dir refers to the directory that invokes $source_dir/configure) In an out-of-source build, setup.py relies on

[issue24391] Better repr for threading objects

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree, that the address is the least interesting thing, and I think this is an argument to make it the last thing in the repr (at least for those of us who read from left to right). Many objects in different modules outputs the address last. The only

[issue28063] Adding a mutually exclusive group to an argument group results in segmentation fault under linux

2016-09-10 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___

[issue28063] Adding a mutually exclusive group to an argument group results in segmentation fault under linux

2016-09-10 Thread John Didion
John Didion added the comment: I can't reproduce it with 3.5.2 on SL6 either. So it must be a weird issue specific to whatever environment they're using for builds on Travis. I'll close this and submit it as a bug over there. -- resolution: -> works for me status: open -> closed

[issue28054] Diff for visually comparing actual with expected in mock.assert_called_with.

2016-09-10 Thread SilentGhost
Changes by SilentGhost : -- nosy: +michael.foord versions: +Python 3.7 -Python 3.3 ___ Python tracker ___

[issue28063] Adding a mutually exclusive group to an argument group results in segmentation fault under linux

2016-09-10 Thread SilentGhost
SilentGhost added the comment: Cannot reproduce this either on stock 3.5.2 or 3.6 on Ubuntu. -- nosy: +SilentGhost ___ Python tracker ___

[issue28063] Adding a mutually exclusive group to an argument group results in segmentation fault under linux

2016-09-10 Thread John Didion
John Didion added the comment: This code also works fine when I run it myself on python 3.5.1 on an SL6 machine, so it's either specific to 3.5.2 or it's very platform-specific. -- ___ Python tracker

[issue26081] Implement asyncio Future in C to improve performance

2016-09-10 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file44531/fastfuture.patch ___ Python tracker ___

[issue28063] Adding a mutually exclusive group to an argument group results in segmentation fault under linux

2016-09-10 Thread John Didion
New submission from John Didion: The following code works fine when I run it on OSX 10.9, but causes a segmentation fault when run on linux. Specifically, the Travis build on python 3.5.2 results in a segfault when the last line is uncommented. import argparse parser =

[issue27874] inconsistent sys.path behavior when using PythonXX.zip

2016-09-10 Thread Joseph Shen
Joseph Shen added the comment: Oh, can't believe this, and I thought iPhone 8 will bring back my lovely 3.5mm jack ^_^ On Sat, Sep 10, 2016 at 22:16 Zachary Ware wrote: > > Zachary Ware added the comment: > > Joseph: "plat-win" was actually removed from the comment in

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: With this patch no extensions in Modules/ can be built. Let me check whether there's a bug in my build script. -- ___ Python tracker

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d71ce4531ac by Xavier de Gaye in branch 'default': Issue #28046: Fix get_sysconfigdata_name(). https://hg.python.org/cpython/rev/1d71ce4531ac -- ___ Python tracker

[issue27874] inconsistent sys.path behavior when using PythonXX.zip

2016-09-10 Thread Zachary Ware
Zachary Ware added the comment: Joseph: "plat-win" was actually removed from the comment in #28046; it is an obsolete name that hasn't been used since August 21, 2000. I just killed the platform directories, let's not bring them back :) -- ___

[issue27874] inconsistent sys.path behavior when using PythonXX.zip

2016-09-10 Thread Joseph Shen
Joseph Shen added the comment: Yeah it's true, anyway thanks for your support On Sat, Sep 10, 2016 at 22:10 Steve Dower wrote: > > Steve Dower added the comment: > > I don't intend to change any defaults arbitrarily, but you can easily > specify a folder with whatever

[issue27874] inconsistent sys.path behavior when using PythonXX.zip

2016-09-10 Thread Steve Dower
Steve Dower added the comment: I don't intend to change any defaults arbitrarily, but you can easily specify a folder with whatever name you like for these. I agree it would be a more sensible name, but it's such a minor issue that change would be more disruptive than helpful. --

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Zachary Ware
Zachary Ware added the comment: Xavier, that change looks good to me, please commit it. -- ___ Python tracker ___

[issue28043] Sane defaults for SSLContext options and ciphers

2016-09-10 Thread Christian Heimes
Christian Heimes added the comment: I'm planning to remove PROTOCOL_TLS again and replace it with something more sensible. -- ___ Python tracker ___

[issue27874] inconsistent sys.path behavior when using PythonXX.zip

2016-09-10 Thread Joseph Shen
Joseph Shen added the comment: I noticed someone use `plat-win` instead of `DLLs` in this http://bugs.python.org/issue28046, so what's your opinion for this? `plat-win` looks more meaningful than old `DLLs` at least for me, do your have any plan for this in the 3.6 release? --

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: Confirming the problem reported by Chi Hsuan Yen. The attached patch fixes this. Another problem is that the shared libraries names of the extension modules are now suffixed with the wrong triplet, i.e. with the build system triplet instead of the target host

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-10 Thread Matthias Klose
Matthias Klose added the comment: I don't like that configure check, because it depends on the kernel being used at runtime. For many architectures you can define in the kernel if the kernel should allow unaligned accesses or not. Sure this is not an issue for linux distro builds, but might

[issue28061] Python crashes on 'from test import support'

2016-09-10 Thread INADA Naoki
INADA Naoki added the comment: According to IRC log, the issue happens on Windows. And hg revision is a477ef882a16. I'll try building Python on Windows 10 amd64 in this weekend. -- ___ Python tracker

[issue28062] Streamline repr(partial object)

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Similar issues: issue27541 and issue21861. -- ___ Python tracker ___ ___

[issue28061] Python crashes on 'from test import support'

2016-09-10 Thread Emanuel Barry
Emanuel Barry added the comment: Latest, i.e. https://hg.python.org/cpython/rev/a477ef882a16 -- ___ Python tracker ___

[issue28061] Python crashes on 'from test import support'

2016-09-10 Thread INADA Naoki
INADA Naoki added the comment: Which hg (or git) revision do you use? -- ___ Python tracker ___ ___

[issue27137] Python implementation of `functools.partial` is not a class

2016-09-10 Thread Emanuel Barry
Emanuel Barry added the comment: Thank you Nick! I just opened #28062 to fix the repr inconsistency between functools.partial and any subclass :) -- ___ Python tracker

[issue28062] Streamline repr(partial object)

2016-09-10 Thread Emanuel Barry
New submission from Emanuel Barry: This is a followup to #27137, where it was found out the repr of a partial object includes the module (i.e. 'functools') only if it's not a subclass. This behaviour is surprising at best. Attached patch streamlines the reprs of partial objects to always

[issue28061] Python crashes on 'from test import support'

2016-09-10 Thread Emanuel Barry
New submission from Emanuel Barry: VS breaks at line Objects/dictobject.c:2339 - 'if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)' I don't have any more useful information; I'm running Windows 7. -- components: Interpreter Core messages: 275627 nosy: ebarry, haypo,

[issue27350] Compact and ordered dict

2016-09-10 Thread INADA Naoki
INADA Naoki added the comment: 3% slowdown in microbench is not surprising. Compact dict introduces one additional indirection. Instead, I've added freelist for most compact PyDictKeys. So I think overall performance is almost same to before compact dict. --

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-10 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Victor I was just checking this issue to copy the test command, to provide results to you both when I saw the lovely surprise. Thank you :) -- ___ Python tracker

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: I don't think this is necessarily a blocker for beta 1 (since it can be treated as a bug fix for beta 2 if it's decided to restore the originally proposed behaviour), but it should definitely be resolved before beta 2. -- priority: -> deferred blocker

[issue21590] Systemtap and DTrace support

2016-09-10 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Łukasz in case you're not aware, all koobs-freebsd* bots are DTrace enabled, and can be tested with the custom builder. I'm on IRC (python-dev) if you need anything from me to help progress this -- ___ Python

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening until the __definition_order__ question has been resolved. -- resolution: fixed -> stage: resolved -> commit review status: closed -> open ___ Python tracker

[issue21590] Systemtap and DTrace support

2016-09-10 Thread Kubilay Kocak
Changes by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___

[issue27792] bool % int has inconsistent return type.

2016-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: > BTW, Mark, do you think the fast path in long_mod is really needed? Actually > the same fast path has already existed in l_divmod. See issue 28060 for fast path cleanup. -- ___ Python tracker

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Martin, the patch isn't currently applying to trunk - would you have time to take a look at that? Ned, this is tangentially related to Martin's work on subclass initialization in PEP 487: one of the current problems with zero-argument super is that we don't

[issue28060] Clean up division fast paths in Objects/longobject.c

2016-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: N.B. The patch also tweaks the fast path condition to *include* the common case of a dividend of 0, and *exclude* the rare case of a negative divisor. (The latter change helps to keep the fast path code simple.) --

[issue28060] Clean up division fast paths in Objects/longobject.c

2016-09-10 Thread Mark Dickinson
New submission from Mark Dickinson: We seem to have ended up with redundant fast path checks for division in longobject.c: long_div has a fast path check, but the long_div slow path calls l_divmod, which then does a second, identical, fast path check. long_mod has similar behaviour.

[issue19837] Wire protocol encoding for the JSON module

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: For 3.6, the decoding case has been handled via Serhiy's autodetection patch in issue 17909 -- ___ Python tracker ___

[issue17909] Autodetecting JSON encoding

2016-09-10 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue22555] Tracking issue for adjustments to binary/text boundary handling

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Added another issue to the tracking list: * Automatically decode binary data in json.loads: issue #17909 -- dependencies: +Autodetecting JSON encoding ___ Python tracker

[issue10976] accept bytes in json.loads()

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: As Martin noted, Serhiy has implemented the autodetection option for json.loads in #17909 so closing this one as out of date - UTF-8, UTF-16 and UTF-32 encoded JSON data will be deserialised automatically in 3.6, while other text encodings aren't officially

[issue17909] Autodetecting JSON encoding

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for tackling this Serhiy! I removed issue 13916 from the dependency list, as while that's a reasonable suggestion, I don't think this fix is conditional on that change. -- dependencies: -disallow the "surrogatepass" handler for non utf-*

[issue17909] Autodetecting JSON encoding

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9e1bf9ec2ac by Nick Coghlan in branch 'default': Issue #17909: Accept binary input in json.loads https://hg.python.org/cpython/rev/e9e1bf9ec2ac -- nosy: +python-dev ___ Python tracker

[issue17909] Autodetecting JSON encoding

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Having hit the json.loads() problem recently when porting a project to Python 3, I'm keen to see this land for 3.6. Accodingly, assigning to myself to review and merge Serhiy's patch - if it proves necessary, we can tweak the details of the encoding detection

[issue27137] Python implementation of `functools.partial` is not a class

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset cdc91b6ae3b2 by Nick Coghlan in branch 'default': Issue #27137: align Python & C implementations of functools.partial https://hg.python.org/cpython/rev/cdc91b6ae3b2 -- nosy: +python-dev ___ Python

[issue27137] Python implementation of `functools.partial` is not a class

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks folks - for 3.6, the pure Python and accelerated C implementations of functools.partial are now both multiprocessing, subclassing, and REPL friendly :) -- resolution: -> fixed stage: commit review -> resolved status: open -> closed

[issue28004] Optimize bytes.join(sequence)

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests in the article don't look reliable. For example bytes_percent() and bytes_plus() test nothing, because b"%s %s" % (b"hi", b"there") and b"hi" + b" " + b"there" are evaluated at compile time. Yes, bytes.join(sequence) is a little slower on Python 3 for

[issue24363] httplib fails to handle semivalid HTTP headers

2016-09-10 Thread Martin Panter
Martin Panter added the comment: Patch for Python 2 -- Added file: http://bugs.python.org/file44527/header.py2.patch ___ Python tracker ___

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Ethan started a python-dev thread here: https://mail.python.org/pipermail/python-dev/2016-September/146358.html -- ___ Python tracker

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: The danger of sprints, and decisions being made without adequate input from affected parties. -- ___ Python tracker ___

[issue28043] Sane defaults for SSLContext options and ciphers

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me for a model where ssl.get_default_context() can change in maintenance releases, while the ssl.SSLContext defaults get updated for feature releases. -- ___ Python tracker

[issue28022] SSL releated deprecation for 3.6

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for a common note in all affected modules along the lines of "An appropriately configured SSLContext should be provided for any use cases that involve accepting self-signed certificates, privately signed certificates, or any other kind of certificate that

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: I think those names (with the leading underscore removed) would be fine as a public API - the fact that PySlice_EvalIndices doesn't take a reference to the slice object seems similar to a static method, where the prefix is there for namespacing reasons, rather

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch that deprecates flags not at the start. fnmatch.translate() now uses scoped flags (issue433028). -- Added file: http://bugs.python.org/file44526/re_deprecate_nonstart_flags2.patch ___ Python tracker

[issue27292] Warn users that os.urandom() prior to 3.6 can return insecure values

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: On modern Intel chips, one of the entropy sources is the CPU itself, and so this problem is mostly theoretical on such systems unless you're worried about the quality of Intel's entropy generation (in which case you're well and truly into sovereign espionage

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Got it. When calling `python -m sysconfig --generate-posix-vars`, the host (Linux x86_64) Python is used, so _get_sysconfigdata_name() returns the name for Linux instead of for Android. Maybe _get_sysconfigdata_name() should check whether it's used for

[issue16202] sys.path[0] security issues

2016-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewing the issue, I think there's still an open question regarding the way distutils handles generated script execution that may impact setuptools as, so adding Jason to the nosy list. For the "don't set sys.path[0] by default" aspect, we would need a

[issue28056] sizeof unit tests fail on ARMv7

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: According to buildbots, the issue seems to be fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue28059] Windows: test_platform.test_architecture_via_symlink() regression

2016-09-10 Thread STINNER Victor
New submission from STINNER Victor: It looks like test_platform started to fail on AMD64 Windows10 3.x between build 1456 (success) and 1458 (failure, 1457 was interrupted or something like that). The regression may be related to the issue #27932, change 31b7eaff5588.

[issue27829] test.regrtest: changed environment variables are not logged

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 491bbba73bca by Victor Stinner in branch 'default': Show regrtest env changed warn on Windows buildbot https://hg.python.org/cpython/rev/491bbba73bca -- ___ Python tracker

[issue24567] random.choice IndexError due to double-rounding

2016-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: A similar bug affects the new `choices` method: in the `choices` source, if `random() * total` happens to round up to `total`, the bisect call returns an out-of-range index. There are two ways that that could happen: (1) double rounding, as in this issue

[issue28018] Cross compilation fails in regen

2016-09-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Closing, regen is not used anymore after issue28046 landed. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Seems after this changeset Python is broken: shell@ASUS_Z00E_2:/data/local/tmp/python3 $ python3.6 Failed to import the site module Traceback (most recent call last): File "/data/local/tmp/python3/lib/python3.6/site.py", line 549, in main() File

[issue28058] [Patch] Don't use st_uid and st_gid on CloudABI

2016-09-10 Thread Ed Schouten
New submission from Ed Schouten: CloudABI is a UNIX-like runtime environment that uses a capability-based security model. As there is no support for traditional UNIX credentials (uid_t, gid_t), its struct stat doesn't provide st_uid and st_gid. Python can already deal with the absence of

[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-10 Thread Christoph Reiter
Christoph Reiter added the comment: Closing as wontfix if there are concerns regarding compatibility seems fine to me. Thanks for looking into this. I've also found a workaround for my usecase in the meantime: https://github.com/lazka/senf/commit/b7dadb05a29db5f0d74f659971b0a86d5e579028

[issue27350] Compact and ordered dict

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are a lot of other changes in interpreter core between 3.5 and 3.5 (such as new bytecode and optimized function calls). Could you compare the performance between the version just before adding new dict implementation and the version just after this?

[issue18401] Tests for pdb import ~/.pdbrc

2016-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Copied from my post to python-checkins.) On Windows, HOME is spelled USERPROFILE or ,HOMEDRIVE + HOMEPATH. These are set by default on Windows. The OS specific os.path.expanduser('~') deals with this difference. I don't know what you are testing exactly,

[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27350] Compact and ordered dict

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: As I expected, a dictionary lookup is a _little bit_ slower (3%) between Python 3.5 and Python 3.6: $ ./python -m perf timeit -s 'd={str(i):i for i in range(100)}' 'd["10"]; d["20"]; d["30"]; d["40"]; d["50"]; d["10"]; d["20"]; d["30"]; d["40"]; d["50"]'

[issue23545] Turn on extra warnings on GCC

2016-09-10 Thread Martin Panter
Martin Panter added the comment: Can one of the -Wall flags be dropped? What is the difference between $OPT and $CFLAGS_NODIST? gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-std=c99 -Wall -Wextra -Wno-unused-result

[issue27979] Remove bundled libffi

2016-09-10 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: You should reopen the discussion on python-dev, since the PEP 520 has been accepted with: "Note: Since compact dict has landed in 3.6, __definition_order__ has been removed. cls.__dict__ now mostly accomplishes the same thing instead." The PEP status is now

[issue28019] itertools.count() falls back to fast (integer) mode when step rounds to 1

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b23f963a7b45 by Serhiy Storchaka in branch '3.5': Issue #28019: itertools.count() no longer rounds non-integer step in range https://hg.python.org/cpython/rev/b23f963a7b45 New changeset 74667320778e by Serhiy Storchaka in branch '2.7': Issue

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-09-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Since issue27976, this one can be closed as third-party, just like issue27323. -- ___ Python tracker ___

[issue24363] httplib fails to handle semivalid HTTP headers

2016-09-10 Thread Martin Panter
Martin Panter added the comment: Here is a fix using a policy flag. I called it “_py_body_detached”. -- Added file: http://bugs.python.org/file44524/policy-flag.patch ___ Python tracker

[issue27350] Compact and ordered dict

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: It seems like the memory usage is between 20% and 25% smaller. Great job! Memory usage, Python 3.5 => Python 3.6 on Linux x86_64: ./python -c 'import sys; print(sys.getsizeof({str(i):i for i in range(10)}))' * 10 items: 480 B => 384 B (-20%) * 100 items: 6240

[issue24254] Make class definition namespace ordered by default

2016-09-10 Thread Ethan Furman
Ethan Furman added the comment: Not having a __definition_order__ could be a disadvantage for classes making use of __getattr__ for virtual attributes, such as Enum and proxy classes. With __definition_order__, and __dir__, Enum could present a coherent view; without it it's a big jumbled

[issue28042] Coverity Scan defects in new dict code

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: >>> ">ma_keys->dk_indices.as_1[mp->ma_keys->dk_size * >>> ((mp->ma_keys->dk_size <= 255L) ? 1UL : ((mp->ma_keys->dk_size <= 65535L) ? >>> 2UL : ((mp->ma_keys->dk_size <= 4294967295L) ? 4UL : 8UL)))]" evaluates to >>> an address that is at byte offset 255

[issue28042] Coverity Scan defects in new dict code

2016-09-10 Thread Christian Heimes
Christian Heimes added the comment: No problem, you can apply for membership at https://scan.coverity.com/projects/python . I'll approve you later today. -- ___ Python tracker

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: Sorry for the little breakage of FreeBSD buildbots, it seems to be ok now ;-) -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-10 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 3b185df3a3e2 by Victor Stinner in branch 'default': > Fix check_force_ascii() > https://hg.python.org/cpython/rev/3b185df3a3e2 @koobs: That's my tiny gift for your birthday. Happy Birthday! ;-) (It should fix FreeBSD buildbots.) --

[issue18401] Tests for pdb import ~/.pdbrc

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5aa77974dd56 by Victor Stinner in branch 'default': Issue #18401: Fix test_pdb on Windows https://hg.python.org/cpython/rev/5aa77974dd56 -- ___ Python tracker

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b185df3a3e2 by Victor Stinner in branch 'default': Fix check_force_ascii() https://hg.python.org/cpython/rev/3b185df3a3e2 -- ___ Python tracker

<    1   2