[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

Re: python3 regex?

2016-09-10 Thread Jussi Piitulainen
dkole...@olearycomputers.com writes: > Hey; > > Long term perl ahderent finally making the leap to python. From my > reading, python, for the most part, uses perl regex.. except, I can't > seem to make it work... > > I have a txt file from which I can grab specific titles via a perl > one-liner:

How do I automatically download files from a pop up dialog using selenium-python?

2016-09-10 Thread John
Please help. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

[issue27979] Remove bundled libffi

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

[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,

[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

[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

[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

RevDB, a reverse debugger

2016-09-10 Thread Armin Rigo
Hi all, It is my pleasure to announce the first beta release of RevDB: a "reverse debugger" for Python. A reverse debugger is a debugger where you can go forward and backward in time. RevDB is designed to track down the annoying, hard-to-reproduce bug in your Python program. It is based on

[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

Re: Extend unicodedata with a name/pattern/regex search for character entity references?

2016-09-10 Thread Veek 'this_is_not_my_name' M
Veek 'this_is_not_my_name' M wrote: > Rustom Mody wrote: > >> On Saturday, September 3, 2016 at 5:25:48 PM UTC+5:30, Veek. M wrote: >>> https://mail.python.org/pipermail//python-ideas/2014-October/029630.htm >>> >>> Wanted to know if the above link idea, had been implemented and if >>> there's

Re: Extend unicodedata with a name/pattern/regex search for character entity references?

2016-09-10 Thread Tim Golden
On 10/09/2016 11:26, Veek 'this_is_not_my_name' M wrote: Veek 'this_is_not_my_name' M wrote: /me claps TJG -- https://mail.python.org/mailman/listinfo/python-list

[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

[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 ___

[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

[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

[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"]'

[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

[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.

[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
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

[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 INADA Naoki
INADA Naoki added the comment: Which hg (or git) revision do you use? -- ___ Python tracker ___ ___

[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

Re: python3 regex?

2016-09-10 Thread Jussi Piitulainen
Jussi Piitulainen writes: > dkole...@olearycomputers.com writes: >> [- -] > import re > p = re.compile('"?[1-9]*\.') That should be a raw string: r'"?[1-9]*\.' Sorry about that. I wish Python would complain. -- https://mail.python.org/mailman/listinfo/python-list

[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

[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

[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

[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

[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

[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.

[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

[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

[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. --

[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 ___

[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

[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

[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

[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

python-can 1.5 release

2016-09-10 Thread Brian Thorne
The can package provides controller area network support for Python developers; providing common abstractions to different hardware devices, and a suite of utilities for sending and receiving messages on a can bus. The library supports Python 2.7, Python 3.3+ and runs on Mac, Linux and Windows.

[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

[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

[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 ___

[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.) --

[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

[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

[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

[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

[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 ___

[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 ___

[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

ANN: A new version (0.3.9) of python-gnupg has been released.

2016-09-10 Thread Vinay Sajip via Python-announce-list
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is an enhancement and bug-fix release, and all users are encouraged to upgrade. See the project website [1] for more information. Brief summary: * Fixed #38: You can now request

[issue28062] Streamline repr(partial object)

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

[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

[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.) --

Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-10 Thread Steve D'Aprano
On Fri, 9 Sep 2016 08:13 am, Grant Edwards wrote: > After all, that boilerplate just makes the corporation look stupid and > incompetent. I wish that were true. Unfortunately, in the corporate world, it *doesn't* make them look stupid and incompetent. It makes them look conventional, careful,

Re: python3 regex?

2016-09-10 Thread breamoreboy
On Saturday, September 10, 2016 at 4:12:17 AM UTC+1, Doug OLeary wrote: > Hey; > > Long term perl ahderent finally making the leap to python. From my reading, > python, for the most part, uses perl regex.. except, I can't seem to make it > work... > > I have a txt file from which I can grab

[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: 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-*

[issue21590] Systemtap and DTrace support

2016-09-10 Thread Kubilay Kocak
Changes by Kubilay Kocak : -- nosy: +koobs ___ 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 ___

Re: python3 regex?

2016-09-10 Thread Doug OLeary
Hey, all; thanks for the replies - reading data in one slurp vs line by line was the issue. In my perl programs, when reading files, I generally do it all in one swell foop and will probably end up doing so again in this case due to the layout of the text; but, that's my issue. Thanks again.

[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

[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

[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

[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

Re: How to diagnose CERTIFICATE_VERIFY_FAILED on Windows for websites working in browsers?

2016-09-10 Thread dieter
Chi Hsuan Yen writes: > ... > I found that OpenSSL provides an X509 callback hook that allows clients to > know why the verification process fails. For a long time, Python 2 (unlike Python 3) did not perform certificate validation at all. As a consequence, some developpers

[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

[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 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

[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

[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 ___

[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

[issue28059] Windows: test_platform.test_architecture_via_symlink() regression

2016-09-10 Thread Steve Dower
Steve Dower added the comment: Though ctypes here is incorrect anyway. I really ought to rewrite it into the winapi module. I'll revert the memory leak fix and fix the tests for b1, then look at converting it into a native function for b2. -- ___

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

2016-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Haha whoops, that'd be my debugging. I'll remove it this weekend if nobody else has gotten to it. On Sat, Sep 10, 2016, 9:44 AM Xiang Zhang wrote: > > Xiang Zhang added the comment: > > Gregory, the change adds a print in: >

[issue28065] Update Windows build to xz-5.2.2

2016-09-10 Thread Zachary Ware
New submission from Zachary Ware: Attached patch builds xz-5.2.2 ourselves rather than relying on pre-built binaries. It copies the project file from xz and modifies it to fit our setup, so updates may not be a 3 line change like a sqlite3 update. This is rather beta-quality, I'm sure

[issue10342] trace module cannot produce coverage reports for zipped modules

2016-09-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker ___

[issue28059] Windows: test_platform.test_architecture_via_symlink() regression

2016-09-10 Thread Steve Dower
Steve Dower added the comment: This bug is entirely because _ctypes cannot be found when we launch from the symlink without also setting PYTHONPATH. I've already removed the import of _ctypes, but I'll also set PYTHONPATH in the test as there's no reason to require only builtins here.

[issue22627] Calling timestamp() on a datetime object modifies the timestamp of a different datetime object.

2016-09-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Superseded by #28067. -- resolution: -> duplicate status: open -> closed superseder: -> Do not call localtime in datetime module ___ 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

[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

[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.

[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 ___

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch, the python test suite runs smoothly on android and without errors on linux. On android, there are two new failed test cases in test_sysconfig that I will look into later (in the frame of this issue, I guess ?), but otherwise about the

[issue8915] Use locale.nl_langinfo in _strptime

2016-09-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2016-09-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.7 -Python 3.3 ___ Python tracker ___

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

2016-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: Serhiy: thanks for the review. Replying here, since I get a 500 error every time I try to reply from Rietveld. I'd rather not rely on either NSMALLPOSINTS > 0 or on digit 0 existing when Py_SIZE is 0. We don't rely on that elsewhere, and the code should stay

[issue28068] Error in freeze.py due to unguarded sys.abiflags usage under Windows

2016-09-10 Thread Gevorg Voskanyan
New submission from Gevorg Voskanyan: Traceback (most recent call last): File ".../freeze.py", line 493, in main() File ".../freeze.py", line 222, in main flagged_version = version + sys.abiflags AttributeError: module 'sys' has no attribute 'abiflags' -- components: Demos

[issue27629] Cannot create ssl.SSLSocket without existing socket

2016-09-10 Thread Christian Heimes
Christian Heimes added the comment: I'm considering to not fix this bug and rather remove the dead code. This feature was never documented and has been broken since 3.3, maybe earlier. It's also hard to use it correctly because you need to pass the correct socket family and type. For 3.6 I'm

[issue28069] signalmodule.c does "is" comparisons for SIG_IGN and SIG_DFL

2016-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: Also applies to 2.7, 3.5. -- versions: +Python 2.7, Python 3.5 ___ 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 =

collect2: ld returned 1 exit status when building from source

2016-09-10 Thread Steve D'Aprano
I'm trying to build from source using: ./configure --with-pydebug && make -s -j2 At first the output is okay, then I get a whole heap of similar errors: Python/dtrace_stubs.o: In function `PyDTrace_LINE': /home/steve/python/python-dev/cpython/Include/pydtrace.h:25: multiple definition of

[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

  1   2   3   >