[issue34756] Few changes in sys.breakpointhook()

2018-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I will drop cleanup changes if they don't look good to you. -- ___ Python tracker ___ ___ Pytho

[issue34735] Modules/timemodule.c: Memory leak in time_strftime()

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset f37496e893d743dbd01c802c8e8cdc16498a1604 by Miss Islington (bot) in branch '3.6': bpo-34735: Fix a memory leak in Modules/timemodule.c (GH-9418) https://github.com/python/cpython/commit/f37496e893d743dbd01c802c8e8cdc16498a1604 -- nosy:

[issue34735] Modules/timemodule.c: Memory leak in time_strftime()

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset 975f3cb1f25406a9be019906227d53b23852f415 by Miss Islington (bot) in branch '3.7': bpo-34735: Fix a memory leak in Modules/timemodule.c (GH-9418) https://github.com/python/cpython/commit/975f3cb1f25406a9be019906227d53b23852f415 --

[issue34670] Add set_post_handshake_auth for TLS 1.3

2018-09-21 Thread Christian Heimes
Christian Heimes added the comment: Please note that SSL_verify_client_post_handshake() doesn't perform any IO by itself. A typical scenario for HTTP looks like this (actual flow may vary): * client * send ``HTTP GET /path`` * server * recv * verify_client_post_handshake * send HTTP

[issue34751] Hash collisions for tuples

2018-09-21 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29013] zipfile: inconsistent doc for ZIP64 file size

2018-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This would look good too. To be accurate, zipfile will create ZIP files that use the ZIP64 extensions when: * It contains more than 65535 files. * It is larger than 2 GiB. More accurate, when either the offset or the size of the central directory is larg

[issue34760] Regression in abc in combination with issubclass

2018-09-21 Thread Christoph Glaubitz
New submission from Christoph Glaubitz : I'm not sure if this is a bug, or a known breaking change. I didn't find anything related in the changelog, except for a rewrite of abc. But hovever, I want this to be documented. In 3.7.0: import abc def f(): pass class A(metaclass=abc.ABCMeta):

[issue34761] str(super()) != super().__str__()

2018-09-21 Thread Guillaume Dominici
New submission from Guillaume Dominici : The super proxy does not seem to forward call to .__str__() when the call occurs via str() function. It may be an expected behavior, but it looks unexpected to me. Minimal reproduction (tested on Python 3.6, but I believe may newer versions have simila

[issue34760] Regression in abc in combination with passing a function to issubclass

2018-09-21 Thread Christoph Glaubitz
Christoph Glaubitz added the comment: Maybe this is just how it should have been working the entire time, and osc is just holding it wrong. Since: class B: pass issubclass(f, B) Traceback (most recent call last): File "", line 1, in TypeError: issubclass() arg 1 must be a class ...

[issue34760] Regression in abc in combination with passing a function to issubclass

2018-09-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34761] str(super()) != super().__str__()

2018-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is an expected behavior. >From https://docs.python.org/3/library/functions.html#super: Return a proxy object that delegates method calls to a parent or sibling class of type. super() delegates explicit method calls. You shouldn't expect that it wil

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34735] Modules/timemodule.c: Memory leak in time_strftime()

2018-09-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34760] Regression in abc in combination with passing a function to issubclass

2018-09-21 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This was a conscious decision (i.e we decided that the old inconsistency is a bug). See https://bugs.python.org/issue33018 for previous discussion. What is your use case? If it is critical, we can reconsider this. -- ___

[issue29013] zipfile: inconsistent doc for ZIP64 file size

2018-09-21 Thread Monte Davidoff
Monte Davidoff added the comment: I agree it may be better if we don't describe all the details of ZIP64. How about this rewording for the second change, so we don't have to give all the details? (2) In the description of the zipfile.ZipFile class, change: "If allowZip64 is True (the defaul

[issue34751] Hash collisions for tuples

2018-09-21 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34760] Regression in abc in combination with passing a function to issubclass

2018-09-21 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- nosy: +izbyshev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34751] Hash collisions for tuples

2018-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond and Tim here: while it's inevitably true that there are many possible hash collisions, we'd need to see where the current algorithm caused real problems in real code. Pointing out a few examples where there was a collision isn't very help

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > So, jdemeyer, if it's possible to show (or describe) to us an example of a > problem you had, such that we could repeat it, that would be helpful (and > necessary) to evaluate any proposed changes. What were the inputs to hash() > that caused a problem, a

[issue34760] Regression in abc in combination with passing a function to issubclass

2018-09-21 Thread Christoph Glaubitz
Christoph Glaubitz added the comment: I just realized this while trying to use the openstack command line tools on python3.7. After reading issue33018 and the fact that even in python2 class B: pass def f(): pass issubclass(f, B) Traceback (most recent call last): File "", line 1

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-21 Thread Nick Coghlan
Nick Coghlan added the comment: Correct - it won't change anything from 3.7.0, and even the original discrepancies relative to PEP 538 only affect applications that: 1. Are embedding a CPython runtime 2. *Aren't* already ensuring that they're running in a locale other than the C locale 3. Ar

[issue27903] Avoid ResourceWarnings from platform._dist_try_harder

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue27121] imghdr does not support jpg files with Lavc bytes

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue26767] Inconsistant error messages for failed attribute modification

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue26452] Wrong line number attributed to comprehension expressions

2018-09-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think there have been some improvements merged with https://bugs.python.org/issue12458 . I am not sure if the patch covers more cases. I ran the tests attached in the patch and some of them cause RuntimeError in master. # bpo26452.py def f():

[issue26495] super() does not work in nested functions, genexps, listcomps, and gives misleading exceptions

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue26214] textwrap should minimize number of breaks in extra long words

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue24997] mock.call_args compares as equal and not equal

2018-09-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this is not reproducible at least on Python 3.6.4 and Master branch. # bpo24997.py from unittest.mock import * m = Mock() m(1,2) m.call_args print("1 ", m.call_args == call(1,2)) print("2 ", m.call_args != call(1,2)) # Master ./python.exe

[issue25240] Stack overflow in reprlib causes a core dump

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue24828] Segfault when using store-context AST node in a load context

2018-09-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the script. The crash is still reproducible as of now with at least python 2.7.14 . I need to check on the latest 2.7 branch yet. On python 3 it produces an error as below : Traceback (most recent call last): File "../backups/bpo24828

[issue25312] Cryptic error message if incorrect spec is set on a callable mock

2018-09-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +8884 stage: resolved -> patch review ___ Python tracker ___ ___ Pytho

[issue34751] Hash collisions for tuples

2018-09-21 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue34751] Hash collisions for tuples

2018-09-21 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- nosy: +sir-sigurd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34722] Non-deterministic bytecode generation

2018-09-21 Thread Peter Ebden
Change by Peter Ebden : -- keywords: +patch pull_requests: +8885 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34561] Replace list sorting merge_collapse()?

2018-09-21 Thread Vincent Jugé
Vincent Jugé added the comment: Dear all, After me and my colleagues worked on the first paper you mention, I recently created another merge-based sorting algorithm, which I called "Adaptive Shivers Sort". This is a close variant of the Augmented Shivers Sort presented by Buss & Knop in thei

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
New submission from Yury Selivanov : Unfortunately, the current C API for PEP 567 has a flaw: it uses non-PyObject pointers. This causes problems with integrating with tools like Cython, where PyObject is special and a lot of machinery recognizes it and manages refcounts correctly. It also

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +8886 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: Just to add to this issue: I originally realized that something is wrong with the design when we had a super hard to track memory leak in uvloop, caused by Cython being unable to automatically manage increfs/decrefs for PyContext* pointers. So I do believe

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's not too late to change the public C API in Python 3.7.1, since it's a very new API, I don't expect many users, and I only expect compiler warnings nor hard error if existing code pass PyContextVar* instead of PyObject*. I agree that it's way better

[issue34763] Python lacks 0x4E17

2018-09-21 Thread 草木建
New submission from 草木建 : This is very easy issue. 丗 meanning is 30.(丗 is 0x4E17) "丗".isnumeric() must returns true. but "丗".isnumeric() returns False. -- components: Unicode messages: 325992 nosy: ezio.melotti, vstinner, 草木建 priority: normal severity: normal status: open title: Pytho

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: Let’s change it ASAP. It’s still up to Ned whether to hold up 3.7.1, if he won’t it should go into 3.7.2. On Fri, Sep 21, 2018 at 8:28 AM STINNER Victor wrote: > > STINNER Victor added the comment: > > IMHO it's not too late to change the public C API in P

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-21 Thread Josh Rosenberg
Josh Rosenberg added the comment: The documentation for locals ( https://docs.python.org/3/library/functions.html#locals ) specifically states: Note: The contents of this dictionary should not be modified; changes may not affect the values of local and free variables used by the interpreter.

[issue34764] Improve documentation example for using iter() with sentinel value

2018-09-21 Thread ChrisRands
New submission from ChrisRands : This arose from this SO question: https://stackoverflow.com/questions/52446415/line-in-iterfp-readline-rather-than-line-in-fp The example given in the docs: with open('mydata.txt') as fp: for line in iter(fp.readline, ''): process_line(line) Is

[issue34765] Update install-sh

2018-09-21 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : The install-sh file that python uses for autotools is horribly outdated. Last update was 16 years ago and it's being copied from automake's source code. Updating it to modern standards could potentially fix issues for systems that use autotools, but

[issue34766] BaseProxy cache should be cleaned when Manager client is reconnected

2018-09-21 Thread Yongnan Wu
Change by Yongnan Wu : -- components: Library (Lib) nosy: wynfred priority: normal severity: normal status: open title: BaseProxy cache should be cleaned when Manager client is reconnected type: behavior versions: Python 2.7, Python 3.6, Python 3.7 _

[issue34767] Optimize asyncio.Lock

2018-09-21 Thread Yury Selivanov
New submission from Yury Selivanov : There's no point in always creating a deque() for waiters in Lock.__init__. Not all locks end up using waiters. -- components: asyncio messages: 325997 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Optimize asynci

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8887 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34765] Update install-sh

2018-09-21 Thread Zachary Ware
Zachary Ware added the comment: If there's no actual bug, it certainly does not need to be done on maintenance branches. -- nosy: +zach.ware versions: -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur that the sooner the change is applied, the better it will be for everyone. We'll need to make a prominent notice in the release notes though. -- nosy: +rhettinger ___ Python tracker

[issue33649] asyncio docs overhaul

2018-09-21 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: + ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: > We'll need to make a prominent notice in the release notes though. Something can be added at: https://docs.python.org/dev/whatsnew/3.7.html#notable-changes-in-python-3-7-1 -- ___ Python tracker

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-21 Thread Antony Lee
Antony Lee added the comment: > encourage the common assumption that locals() returns a dict where mutating > it actually works, since it usually doesn't. It does at global and class scope, not at function scope. FWIW, PEP558 (admittedly not accepted yet) proposes to modify the documentation

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: >> We'll need to make a prominent notice in the release notes though. > Something can be added at: https://docs.python.org/dev/whatsnew/3.7.html#notable-changes-in-python-3-7-1 Yeah, thank you for suggestion, I'll do that. I'll also update the PEP, docs in

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Eric Snow
Eric Snow added the comment: > one of the things we want to fix is to eliminate non-PyObject > pointer types from public APIs entirely. A notable exception is Py_buffer. [1] As well, cross-interpreter data must not be PyObject, though that isn't much of an issue (yet). :) At some point it m

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: > > one of the things we want to fix is to eliminate non-PyObject > pointer types from public APIs entirely. > A notable exception is Py_buffer. [1] Right, because Py_buffer isn't a PyObject at all :) > Using PyObject for contextvars makes sense (for the rea

[issue34760] Regression in abc in combination with passing a function to issubclass

2018-09-21 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: OK, lets close this for now. We will see if there are any other situations. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-21 Thread Neil Schemenauer
Neil Schemenauer added the comment: As someone who does AST manipulation (Quixote PTL template support), I'm interested in this patch. I think what is proposed sounds like a good change. I.e. having the extra node types is not useful and makes the compiler harder to understand. Providing s

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: > because Py_buffer isn't a PyObject at all :) It owns a PyObject reference to the buffer owner, though. -- nosy: +scoder ___ Python tracker

[issue34766] BaseProxy cache should be cleaned when Manager client is reconnected

2018-09-21 Thread Yongnan Wu
Change by Yongnan Wu : -- keywords: +patch pull_requests: +8889 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34761] str(super()) != super().__str__()

2018-09-21 Thread Eric Snow
Eric Snow added the comment: As Serhiy said, this is the correct behavior. Nearly all builtin operations are made using the appropriate "dunder" method from the object's type (not looked up on the object itself). So the following (based on your example) are equivalent: s = super(Child,

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Ned Deily
Ned Deily added the comment: Since we've already delayed 3.7.1rc cutoff for a few days, let's get it into 3.7.1 if you have the time, Yury. -- ___ Python tracker ___

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: We use the Unicode database for these methods. Could you please check whether the database marks the character as numeric ? If yes, we may need to check the database generation. Otherwise, there isn't much we can do, since we use the Unicode database as

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Matthew Barnett
Matthew Barnett added the comment: Unicode 11.0.0 has 卅 (U+5345) as being numeric and having the value 30. What's the difference between that and U+4E17? I notice that they look at lot alike. Are they different variants, perhaps traditional vs simplified? --

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Matthew Barnett
Change by Matthew Barnett : -- Removed message: https://bugs.python.org/msg326015 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Matthew Barnett
Change by Matthew Barnett : -- Removed message: https://bugs.python.org/msg326014 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Matthew Barnett
Change by Matthew Barnett : -- Removed message: https://bugs.python.org/msg326013 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Matthew Barnett
Change by Matthew Barnett : -- Removed message: https://bugs.python.org/msg326012 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I should also make it clear that the collision hash((1,0,0)) == hash((1,-2,-2)) that I reported is due to the algorithm, it's not due to some bad luck that 2 numbers happen to be the same. There are also many more similar hash collisions for tuples (all invo

[issue34764] Improve documentation example for using iter() with sentinel value

2018-09-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur that the readline() example is problematic. While it succeeds in showing how iter() works, the example itself is not the best way to solve that particular problem. Here are two possible substitute examples. 1) Simple example that focuses primar

[issue34751] Hash collisions for tuples

2018-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not one to judge the effectiveness of a new hash algorithm. But my personal concern here is making something else worse: an unintended consequence. IMO the bar for changing this would be very high, and at the least it would need to be addressing a known,

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread Christian Heimes
Christian Heimes added the comment: CVE-2018-14647 was assigned to this issue. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue34751] Hash collisions for tuples

2018-09-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM the collision of "hash((1,0,0)) == hash((1,-2,-2))" also stems from integers hashing to themselves and that twos-complement arithmetic relation, -x == ~x+1. Further, that example specifically exploits that "hash(-1) == hash(-2)" due to how error cod

[issue34768] Add documentation for the purpose of __init__.py in packages

2018-09-21 Thread Benito Kestelman
New submission from Benito Kestelman : I just learned how to make my own package in python and upload it to pypi. I mainly used the documentation here: https://packaging.python.org/tutorials/packaging-projects/ Other than the toy example, there is no explanation of __init__.py, its purpose,

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 2ec872b31e25cee1f983fe07991fb53f3fd1cbac by Yury Selivanov in branch 'master': bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473) https://github.com/python/cpython/commit/2ec872b31e25cee1f983fe07991fb53f3fd1cbac ---

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8890 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Further, that example specifically exploits that "hash(-1) == hash(-2)" No, it does not. There is no hashing of -1 involved in the example hash((1,0,0)) == hash((1,-2,-2)). -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-09-21 Thread Tim Peters
Tim Peters added the comment: For me, it's largely because you make raw assertions with extreme confidence that the first thing you think of off the top of your head can't possibly make anything else worse. When it turns out it does make some things worse, you're equally confident that the

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset 187f2dd256a917c20bf55954d019fd35fb46ab08 by Miss Islington (bot) in branch '3.7': bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473) https://github.com/python/cpython/commit/187f2dd256a917c20bf55954d019fd35fb46ab08

[issue34751] Hash collisions for tuples

2018-09-21 Thread Tim Peters
Tim Peters added the comment: Oops! """ "j odd implies j^(-2) == -j, so that m*(j^(-2)) == -m" """ The tail end should say "m*(j^(-2)) == -m*j" instead. -- ___ Python tracker __

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: PEP update: https://github.com/python/peps/commit/977a94d1a79b71336568119eb689b277d2ffec80 -- ___ Python tracker ___ ___

[issue34762] Change contextvars C API to use PyObject

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed in master and 3.7. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker __

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > FWIW, the current algorithm also has some advantages that we don't want to > lose. In particular, the combination of the int hash and tuple hash are good > at producing distinct values for non-negative numbers: >>> from itertools import product >>>

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: Hum, I'm not sure that I understood correctly: does "isinstance(node, ast.Num)" still work with the patch? If yes, I see no reason to not merge the change ;-) -- ___ Python tracker

[issue33649] asyncio docs overhaul

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset db1a80e97aa7217c561fb3627f70be1882de9534 by Yury Selivanov in branch 'master': bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475) https://github.com/python/cpython/commit/db1a80e97aa7217c561fb3627f70be1882de9534 -- ___

[issue33649] asyncio docs overhaul

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8891 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34267] find_python.bat doesn't find installed Python 3.7

2018-09-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Concerning the MULTIPLIER: > Why do you claim the original was "too small"? Too small for what purpose? If the multiplier is too small, then the resulting hash values are small too. This causes collisions to appear for smaller numbers: BEFORE: >>> L = [(a,

[issue33782] VSTS Windows-PR: internal error

2018-09-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue33649] asyncio docs overhaul

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e45662c28bfc84aa3674463a2995e45da4d63793 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475) (GH-9481) https://github.com/python/cpython/commit/e45662c28bfc84aa3674463a2995

[issue34763] Python lacks 0x4E17

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: $ ./python Python 3.8.0a0 (heads/master-dirty:06e7608207, Sep 20 2018, 01:52:01) >>> import unicodedata >>> unicodedata.unidata_version '11.0.0' >>> unicodedata.numeric('\u5345') 30.0 >>> unicodedata.numeric('\u4E17') ValueError: not a numeric character -

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-21 Thread Steve Dower
Steve Dower added the comment: I meant returning the full name of the process is intentional. But you're right that overriding it should actually override it. I found the prior bug at issue33180, but I'm closing it in favour of this one. I don't have fully fleshed out semantics in my mind fo

[issue33180] Flag for unusable sys.executable

2018-09-21 Thread Steve Dower
Steve Dower added the comment: Closing in favour of issue34725 -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue32282] When using a Windows XP compatible toolset, `socketmodule.c` fails to build

2018-09-21 Thread Steve Dower
Steve Dower added the comment: I'm going to just close this without fixing 3.5. If there's demand, we can consider it, but at this stage it's so easy for people to migrate to 3.6 or later that I'm sure that's already been done. -- resolution: -> fixed stage: backport needed -> resol

[issue32556] support bytes paths in nt _getdiskusage, _getvolumepathname, and _getfinalpathname

2018-09-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33016] nt._getfinalpathname may use uninitialized memory

2018-09-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32533] SSLSocket read/write thread-unsafety

2018-09-21 Thread Steve Dower
Steve Dower added the comment: Fixed, with a fix for the regression coming in issue34759 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33091] ssl.SSLError: Invalid error code (_ssl.c:2217)

2018-09-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> SSLSocket read/write thread-unsafety ___ Python tracker ___

  1   2   >