[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Windson Yang
Change by Windson Yang : -- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Windson Yang
Windson Yang added the comment: Just to be clear, as Raymond said, when we have two non-sortable objects (for instance, two instances which their class didn't implement the __lt__ and __gt__ methods), we should compare their repr() without sort() like now. -- nosy: +Windson Yang

[issue36228] Support coercion of complex to float/int

2019-03-07 Thread Марат Нагаев
Марат Нагаев added the comment: I think math.floor should raise TypeError if complex argument passed, but we need cmath.floor(and ceil). As I know floor complex number is just floor real part and floor imag. Example: z=1.1+2.5j floor(z) #2+3j I think it's correct. But I don't know about complex

[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think it should require only a a sort It's possible to have non-sortable elements in the set, so you'll either need to sort on the repr of the elements or have a fallback: assertSetEqual({10, None, 'abc'}, {20, 3+4j, 10}) -- assignee:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-03-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +12218 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue35967] Better platform.processor support

2019-03-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +12217 stage: -> patch review ___ Python tracker ___ ___

[issue35967] Better platform.processor support

2019-03-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___ ___ Python-bugs-list

[issue35435] Discourage external links to old docs.

2019-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: James Lu today posted to python-ideas 'Make Python 2.7’s online docs optionally redirect to Python 3 online docs' Andra Roberge: There exists browser extensions that do this: https://addons.mozilla.org/en-US/firefox/addon/py3direct/

[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Jess
Jess added the comment: Wow! Thank you, very fast and the precise snippet of info I needed. Will try to send something off today. Very exciting. -- ___ Python tracker ___

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Thomas Kluyver
Thomas Kluyver added the comment: As a lurker on this issue: I think a lot of energy is being expended arguing about what is and isn't legitimate use cases, when there's actually more stuff that people agree about than not. I think this issue should be broken down into two, neither of which

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-03-07 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Jess, I think this could be added. I think it should require only a a sort in https://github.com/python/cpython/blob/0f221d09cad46bee38d1b7a7822772df66c53028/Lib/unittest/case.py#L1127-L1138, to update the tests and add a blurb. You will need to get Python

[issue36226] multipart/related header causes false positive StartBoundaryNotFoundDefect and MultipartInvariantViolationDefect

2019-03-07 Thread Martin Panter
Martin Panter added the comment: Probably the same as Issue 29353. I remember than enabling "headersonly" can create inconsistencies in the message object. But I don't remember the details. According to Issue 29991 (another duplicate), my patch for Issue 24363 might help. But I don't think

[issue36230] Please sort assertSetEqual's output

2019-03-07 Thread Jess
New submission from Jess : Currently https://docs.python.org/2/library/unittest.html#unittest.TestCase.assertSetEqual returns a random list, but I'd like to see it sorted for ease of reading which running tests. Should be small, but useful. Happy to make the edit myself, but have no clue

[issue36229] Linear-time ops for some mutable collections.

2019-03-07 Thread Brandt Bucher
New submission from Brandt Bucher : Binary operations on collections are, in general, of quadratic complexity. However, we can sometimes operate in-place if we know that we hold the only reference to the object. This allows us to avoid making many intermediate copies when summing many lists

[issue36229] Linear-time ops for some mutable collections.

2019-03-07 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +12216 stage: -> patch review ___ Python tracker ___ ___

[issue36228] Support coercion of complex to float/int

2019-03-07 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed with the closure. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36228] Support coercion of complex to float/int

2019-03-07 Thread Zachary Ware
Zachary Ware added the comment: Agreed with Josh and closing the issue as rejected. I'm adding our math experts just in case they disagree or want to provide further clarity. -- components: +Interpreter Core -Extension Modules, Library (Lib) nosy: +lemburg, mark.dickinson,

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Steve Dower
Steve Dower added the comment: > You mean extra junk like .pth files? I don't see the difference between a .py > file and a .pth file, except I can’t opt out of .pth files. And you get multiple lines of code, and syntax highlighting, and linting, and all the other goodness in a genuine

[issue36228] Support coercion of complex to float/int

2019-03-07 Thread Josh Rosenberg
Change by Josh Rosenberg : -- title: Add function to complex object -> Support coercion of complex to float/int ___ Python tracker ___

[issue36228] Add function to complex object

2019-03-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: They already have a .real attribute to extract the real part, which you can call int on. I suspect the lack of support for float/int coercion is intentional; coercing float to int loses precision, but it's still a fundamentally similar value. Implicitly

[issue30831] Inconsistent or wrong documentation around Asynchronous Context Manager

2019-03-07 Thread Yury Selivanov
Yury Selivanov added the comment: I also recommend reading this page https://docs.python.org/3/library/asyncio-task.html to get a better grasp on coroutines and how they are evaluated. -- ___ Python tracker

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Eric V. Smith
Eric V. Smith added the comment: >> I should have to start that package somehow. > > `pip install` is a pretty good opt-in already imo I think that’s where we disagree. Like others, I don’t want this to affect every python script in a given installation. >> Instead of just shipping

[issue30831] Inconsistent or wrong documentation around Asynchronous Context Manager

2019-03-07 Thread Yury Selivanov
Yury Selivanov added the comment: There's no inconsistency here and the docs are correct. If you have a function: async def foo(): pass Then "foo()" call returns a "coroutine", which is an awaitable. So async def __aenter__(): ... always returns an awaitable (regardless if

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-03-07 Thread miss-islington
miss-islington added the comment: New changeset 495da292255b92dd73758fdd0e4c7d27d82b1e57 by Miss Islington (bot) (Guido van Rossum) in branch 'master': bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086)

[issue30831] Inconsistent or wrong documentation around Asynchronous Context Manager

2019-03-07 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: +adelfino, yselivanov versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36228] Add function to complex object

2019-03-07 Thread Марат Нагаев
Change by Марат Нагаев : -- title: Add function to complex objectf -> Add function to complex object ___ Python tracker ___ ___

[issue36228] Add function to complex objectf

2019-03-07 Thread Марат Нагаев
New submission from Марат Нагаев : I think complex object should have methods __float__ (returns real part) and __int__ (returns int(real)). Also I think we need floor and ceil methods om cmath module. I think, these functions are useful. -- components: Extension Modules, Library (Lib)

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-03-07 Thread paul j3
Change by paul j3 : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Steve Dower
Steve Dower added the comment: Nonetheless, it's still something that we could support better. If telling someone to set PYTHONSTARTUP is too hard, then we can design another way that can work well without relying on a barely documented (mis)feature. As one idea, we could add a way to

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-07 Thread Bernt Røskar Brenna
Change by Bernt Røskar Brenna : -- keywords: +patch pull_requests: +12215 stage: -> patch review ___ Python tracker ___ ___

[issue36219] Add edit option in IDLE to convert smart quotes to ascii quotes

2019-03-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: Would it be worthwhile to automatically convert the text when it's being pasted or would there be a scenario where it would be desirable to keep these characters in the text? It seems the point here is that the user wouldn't even realize that the quotes

[issue36227] Add default_namespace argument to xml.etree.ElementTree.tostring()

2019-03-07 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna : default_namespace is often used when serializing ET elements. tostring() is mainly a wrapper around ElementTree.write(), and it is therefore natural that it mirrors write's argument. tostring() already passes encoding, method and short_empty_elements

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 7, 2019, at 10:46, Ionel Cristian Mărieș wrote: > > There's a simple `if 'COVSOMETHING' in os.environ` check to activate it. > That can't cost a significant amount of time. This is rather another bad > actor argument. You’re overlooking the

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: What module? That check should be done directly in the pth file. -- ___ Python tracker ___

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread miss-islington
miss-islington added the comment: New changeset b19943ec97b80db97dd93ed714615f757cc12ad3 by Miss Islington (bot) in branch '2.7': bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074) https://github.com/python/cpython/commit/b19943ec97b80db97dd93ed714615f757cc12ad3

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: > because you’re on the same machine and you pip installed it, I have no > choice but to pay those costs, which I haven’t explicitly opted in to. > > At least for the coverage plugins there is a required opt in from > environment variable (as shown

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread miss-islington
miss-islington added the comment: New changeset 6ba95c38c556ad4d254c5af34f439a1307ed585c by Miss Islington (bot) in branch '3.7': bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074) https://github.com/python/cpython/commit/6ba95c38c556ad4d254c5af34f439a1307ed585c

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Brett Cannon
Brett Cannon added the comment: RE: " So basically you'd remove the whole feature just cause one package no one installs abuses it. Doesn't make sense." No, the point being made is *at least* one package that was found on PyPI is abusing it, so it exists and we need to consider the possibility

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12214 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12213 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Anthony Sottile
Anthony Sottile added the comment: >>> I should have to start that package somehow. >> >> `pip install` is a pretty good opt-in already imo > > Except that it conflates responsibilities. I may not want to opt into > coverage even being loaded in my application because I’m not going to use it

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread Steve Dower
Steve Dower added the comment: Thanks for the patch! Once the backports merge, I (or someone else) will close the issue. -- ___ Python tracker ___

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +12211 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +12212 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36140] An incorrect check in _msi.c's msidb_getsummaryinformation()

2019-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset bf94cc7b496a379e1f604aa2e4080bb70ca4020e by Steve Dower (Zackery Spytz) in branch 'master': bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 7, 2019, at 09:32, Anthony Sottile wrote: > >> I should have to start that package somehow. > > `pip install` is a pretty good opt-in already imo Except that it conflates responsibilities. I may not want to opt into coverage even being loaded in

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 7, 2019, at 07:38, Steve Dower wrote: > > Steve Dower added the comment: > > There are two features here, let's be clear about what we're removing. > > * extending sys.path with static (perhaps relative) directories > * arbitrary code execution

[issue36108] Avoid failing the build on race condition in clean

2019-03-07 Thread miss-islington
miss-islington added the comment: New changeset 34b398559fc47745473a39313a9e2ec17fe1d9ad by Miss Islington (bot) in branch '3.7': bpo-36108: Avoid failing the build on race condition in clean (GH-12217) https://github.com/python/cpython/commit/34b398559fc47745473a39313a9e2ec17fe1d9ad

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Anthony Sottile
Anthony Sottile added the comment: > What I'm dismissing is that "pip install some-package" can define a global > startup task for your interpreter. I shouldn't get debugging or code coverage > enabled every time I run "python" just because I installed some package At least for the coverage

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue35978] test_venv fails in Travis with GCC

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12210 stage: -> patch review ___ Python tracker ___ ___

[issue36108] Avoid failing the build on race condition in clean

2019-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +12209 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36108] Avoid failing the build on race condition in clean

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36108] Avoid failing the build on race condition in clean

2019-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 2f8f56499c20af70ff5037fdbc5d738e56d9eab0 by Steve Dower in branch 'master': bpo-36108: Avoid failing the build on race condition in clean (GH-12217) https://github.com/python/cpython/commit/2f8f56499c20af70ff5037fdbc5d738e56d9eab0 --

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset e37ef41289b77e0f0bb9a6aedb0360664c55bdd5 by Steve Dower in branch '2.7': bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) https://github.com/python/cpython/commit/e37ef41289b77e0f0bb9a6aedb0360664c55bdd5

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset daad2c482c91de32d8305abbccc76a5de8b3a8be by Steve Dower in branch '3.7': bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) https://github.com/python/cpython/commit/daad2c482c91de32d8305abbccc76a5de8b3a8be

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Steve Dower
Steve Dower added the comment: > I don't think there would be an alternative to how these tools function if > this feature were removed. Right now, maybe, which is why we haven't just removed it :) The point of the discussion is to say "this functionality is irreplaceable so we need to

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Steve Dower
Steve Dower added the comment: Here's a trivial workaround for the import hook problem: Assume we have "my_module.foo", and the import hook enables importing foo files. Instead of just shipping "my_module.foo", you ship "my_module.py" and "_my_module.foo", where "my_module.py" looks like:

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Steve Dower
Steve Dower added the comment: > Elaborate please, as it sounds like you're simply dismissing my usecase. I'm suggesting that to enable this functionality at startup, the user/application should have to do something like executing code or setting PYTHONSTARTUP. What I'm dismissing is that

[issue35978] test_venv fails in Travis with GCC

2019-03-07 Thread Steve Dower
Steve Dower added the comment: I'm on this. I'll make a new (or possibly complete replacement) for @skipInVenv that is @requireVenvCreate, since that's the common piece that doesn't work in a venv (except on Windows). -- assignee: -> steve.dower versions: +Python 3.7

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Anthony Sottile
Anthony Sottile added the comment: I think nearly all of the use cases in the packages are valid (except module-layout) -- or at least if this feature were removed without having a startup-time site-packages code execution feature there would be no possible replacement. I'll elaborate a

[issue33898] pathlib issues with Windows device paths

2019-03-07 Thread Steve Dower
Steve Dower added the comment: Eryk - I've got the PR ready as far as I'm concerned. Have you had a look to see if you're happy with its logic for these cases? -- ___ Python tracker

[issue36086] Split IDLE into separate feature in Windows installer

2019-03-07 Thread Steve Dower
Steve Dower added the comment: For the dependency you'll need to modify the bootstrapper to manually enforce checkbox selection. It'll also need to force the variable at planning time to support command line installs, so the checkbox is really just to help prevent users from becoming

[issue24322] Hundreds of linker warnings on Windows

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35740] openssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64

2019-03-07 Thread Steve Dower
Steve Dower added the comment: It's there now (and about to move to 1.1.1b :) ) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35978] test_venv fails in Travis with GCC

2019-03-07 Thread Steve Dower
Steve Dower added the comment: I guess we need a "skipInLinuxVenv", since it works fine on Windows :) -- ___ Python tracker ___

[issue10009] Automated MSI installation does not work

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36108] Avoid failing the build on race condition in clean

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36108] Avoid failing the build on race condition in clean

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12208 stage: -> patch review ___ Python tracker ___ ___

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12207 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36226] multipart/related header causes false positive StartBoundaryNotFoundDefect and MultipartInvariantViolationDefect

2019-03-07 Thread Christian Schmidbauer
Christian Schmidbauer added the comment: Apologies, here are the correct commit IDs: https://github.com/python/cpython/commit/89285439c7f94a3e62cee3d15e343218903c2af8 https://github.com/python/cpython/pull/12214/commits/a82e662ab3339072d7b86a8090989fba60ef9c37 --

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12205 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36226] multipart/related header causes false positive StartBoundaryNotFoundDefect and MultipartInvariantViolationDefect

2019-03-07 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12204 stage: -> patch review ___ Python tracker ___ ___

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: > * coverage, debugging, demo, except-hook - application/user responsibility, not a package's Elaborate please, as it sounds like you're simply dismissing my usecase. -- ___ Python tracker

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12203 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 16e6f7dee7f02bb81aa6b385b982dcdda5b99286 by Steve Dower in branch 'master': bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) https://github.com/python/cpython/commit/16e6f7dee7f02bb81aa6b385b982dcdda5b99286

[issue32477] Move jumps optimization from the peepholer to the compiler

2019-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After analyzing the difference between bytecodes generated by the current peepholer and the new optimizer I have found that he peepholer do not optimizes jumps in case of some multiline expressions. For example: [x for x in a if x] 1 0

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Steve Dower
Steve Dower added the comment: There are two features here, let's be clear about what we're removing. * extending sys.path with static (perhaps relative) directories * arbitrary code execution (following "import " statements) Only Barry wants to remove the first one, and the rest of us will

[issue36226] multipart/related header causes false positive StartBoundaryNotFoundDefect and MultipartInvariantViolationDefect

2019-03-07 Thread Christian Schmidbauer
Change by Christian Schmidbauer : -- hgrepos: +381 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36226] multipart/related header causes false positive StartBoundaryNotFoundDefect and MultipartInvariantViolationDefect

2019-03-07 Thread Christian Schmidbauer
New submission from Christian Schmidbauer : The current implementation of `multipart/related` in urllib triggers header defects even though the headers are valid: `[StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()]` The example header is valid according to RFC 2387

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2019-03-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12202 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36225] Lingering subinterpreters should be implicitly cleared on shutdown

2019-03-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36224] Python quit unexpectedly error

2019-03-07 Thread Ned Deily
Ned Deily added the comment: Based on the macOS traceback you provide, this is a very different problem from the one in the other issue. Here the crash is occuring in a third-party C extension module, not something provided by Python or its standard library: 0 algos.cpython-37m-darwin.so

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: fixed -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Closed in favor of PEP 572. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36225] Lingering subinterpreters should be implicitly cleared on shutdown

2019-03-07 Thread Nick Coghlan
New submission from Nick Coghlan : https://docs.python.org/3/c-api/init.html#c.Py_EndInterpreter states that "Py_FinalizeEx() will destroy all sub-interpreters that haven’t been explicitly destroyed at that point." As discussed in https://github.com/hexchat/hexchat/issues/2237, Python 3.7+

[issue11614] import __hello__ is broken in Python 3

2019-03-07 Thread Solomon Ucko
Solomon Ucko added the comment: > It changes the semantics of Python. When would the return value actually matter? Would it affect the value of the variable `__hello__`? -- ___ Python tracker

[issue36220] LOAD_NAME and LOAD_GLOBAL handle dict subclasses for globals() differently

2019-03-07 Thread STINNER Victor
STINNER Victor added the comment: Oops sorry, it was the PEP 416: Add a frozendict builtin type. I wanted to write a sandbox for Python. -- ___ Python tracker ___

[issue36220] LOAD_NAME and LOAD_GLOBAL handle dict subclasses for globals() differently

2019-03-07 Thread STINNER Victor
STINNER Victor added the comment: I wrote bpo-14385 when I was working on my PEP 410. The PEP has been rejected, I'm not sure anymore that it was a good idea to modify ceval.c :-( But I never tried to measure the overhead of the additional "if (PyDict_CheckExact(...))". --

[issue11614] import __hello__ is broken in Python 3

2019-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36139] release GIL on mmap dealloc

2019-03-07 Thread STINNER Victor
STINNER Victor added the comment: Yeah! Roundup is fixed, thanks Ezio! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36139] release GIL on mmap dealloc

2019-03-07 Thread STINNER Victor
STINNER Victor added the comment: 4th attempt (sorry for the spam, it's just to check the Roundup fix!): https://github.com/python/cpython/pull/12073/files#r263026496 -- ___ Python tracker

[issue11614] import __hello__ is broken in Python 3

2019-03-07 Thread STINNER Victor
STINNER Victor added the comment: > The byte code could be further optimized (because this is such a > speed-critical module! :)): (...) You propose to replace 8 CALL_FUNCTION1 10 POP_TOP 12 LOAD_CONST 2 (None)

[issue36223] Execution sequence for print function

2019-03-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Agreed with @remi.lapeyre. There is no delayed evaluation in Python and this is not only related to print but it's the general evaluation model in Python. Another example as below since foo(1) is used as an argument it's evaluated first and then

[issue36216] urlsplit does not handle NFKC normalization

2019-03-07 Thread STINNER Victor
STINNER Victor added the comment: FYI I added this vulnerability to: https://python-security.readthedocs.io/vuln/urlsplit-nfkc-normalization.html -- ___ Python tracker ___

  1   2   >