[issue33196] SEGV in mp.synchronize.Lock.__repr__ in spawn'ed proc if ctx mismatched

2018-03-31 Thread Arcadiy Ivanov
New submission from Arcadiy Ivanov : While working on GH gevent/gevent#993 I've encountered a stall trying to read from an mp.Queue passed to mp.Process's target as an argument. Trying to print out the lock state in child process I encountered as SEGV in Lock's __repr__. I

[issue33195] PyArg_Parse* should deprecate 'u' and 'z' family.

2018-03-31 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +6042 stage: -> patch review ___ Python tracker ___

[issue33195] PyArg_Parse* should deprecate 'u' and 'z' family.

2018-03-31 Thread INADA Naoki
New submission from INADA Naoki : https://docs.python.org/3/c-api/arg.html Py_UNICODE usage is not deprecated in this document. Before thinking about raising warning, deprecate it in document first. But... from when? Can I backport the "deprecated" doc to 3.6 or 3.5?

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: It turns out pydoc's CLI is looking specifically for '' in sys.path, but *not* looking for "os.getcwd()". The resulting sys.path manipulation then goes completely wrong for "python -m pydoc", since it ends up removing "scriptdir" from

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: I guess this confirms our suspicion from issue 33053 that making "-m" no longer track the current working directory had the potential to pose some non-trivial compatibility risks :( I can reproduce the issue in a 3.7 checkout without a

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Nathaniel Smith
Nathaniel Smith added the comment: You're looking for 'Path.unlink'. Agreed though that the name makes it hard to find. (I guess it makes sense to old-school Unix greybeards, but Python does generally try to be useful for more people than just them...) There was some

Unified async/sync interface

2018-03-31 Thread Demian Brecht
I might be entirely off my face, but figured I'd ask anyways given I haven't figured out a clean solution to this problem myself yet: I'm trying to write a REST API client that supports both async and synchronous HTTP transports (initially requests and aiohttp). So far, I've tried a few

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Bassem Girgis
Bassem Girgis added the comment: I Robert, One use scenario is to run deployment tests for sourceless packages and to ensure the integrity of the production environment. Very useful in container environments! In regards to the looking for the __init__ file, it is obvious

Beta release of pip version 10

2018-03-31 Thread Mikhail V
MRAB writes: > > UnicodeEncodeError: 'charmap' codec can't encode character > > > > when it meets a non-ascii char. > > > > e.g. tried this: > > pip search pygame > a.txt > > > Well, _I_ didn't get an error! > > One of the lines is: > > kundalini (0.4)- LրVE-like PyGame API > >

[issue33194] Path-file objects does not have method to delete itself if its a file

2018-03-31 Thread Marco Rougeth
New submission from Marco Rougeth : Path has the method `.rmdir()` for removing the directory, but it doesn't have anything if it correspond to a file. The `os.remove` could be used here, but I think it should have a more appropriate/explicit name like `.rmfile()`. If it

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-03-31 Thread Stuart Cuthbertson
New submission from Stuart Cuthbertson : I should clarify first that I haven't reproduced the following bug specifically with venv. I was asked to raise this here after raising an identical issue about virtualenv (https://github.com/pypa/virtualenv/issues/1154); a

Re: GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Sumana Harihareswara
On 03/31/2018 06:26 PM, Dominik George wrote: > Hi, > > On Sat, Mar 31, 2018 at 06:16:51PM -0400, Sumana Harihareswara wrote: >> The new Python Package Index at https://pypi.org is now in beta. > > Yep! > > I read that the new Warehouse does not offer GPG signature files for > download. > >

Re: Beta release of pip version 10

2018-03-31 Thread MRAB
On 2018-04-01 02:50, Mikhail V wrote: Steven D'Aprano writes: PS: was looking forward to PIP improvements on Windows, on 9.0.3 still some issues. E.g. trying to redirect output from 'pip search ... > a.txt' gives a wall of errors. it's on Windows 10. Don't be shy, tell us what those

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Robert Collins
Robert Collins added the comment: Whats the use for *unittest* - a tool to help folk develop - to run a test which is only present in sourceless form? -- ___ Python tracker

Beta release of pip version 10

2018-03-31 Thread Mikhail V
Steven D'Aprano writes: >> >> PS: was looking forward to PIP improvements on Windows, on 9.0.3 still >> some issues. E.g. trying to redirect output from 'pip search ... > >> a.txt' gives a wall of errors. it's on Windows 10. > > > > Don't be shy, tell us what those errors are. You meant - don't

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Robert Collins
Robert Collins added the comment: Oh, and why look for __init__ - in part, because it predates namespace packages, but also because unlike regular imports unittest will do negative things like reading the entire filesystem otherwise. --

Re: Beta release of pip version 10

2018-03-31 Thread Steven D'Aprano
On Sun, 01 Apr 2018 03:17:51 +0300, Mikhail V wrote: > PS: was looking forward to PIP improvements on Windows, on 9.0.3 still > some issues. E.g. trying to redirect output from 'pip search ... > > a.txt' gives a wall of errors. it's on Windows 10. Don't be shy, tell us what those errors are.

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 14:07:37 -0400, Terry Reedy wrote: > On 3/31/2018 11:58 AM, Etienne Robillard wrote: > >> Do you really think people in Somalia can afford theses things like in >> the US? > > No, many cannot afford $600 Caddilac-style phones to take 10 megapixel > pictures and watch UTube

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 10:58:51 -0400, Etienne Robillard wrote: > Hi, > > I was just wondering, could the fact that the Python community is > willing to discontinue using and developing Python 2 softwares, does > that mean we are stopping to support standard computers and laptops as > well? That

Beta release of pip version 10

2018-03-31 Thread Mikhail V
Paul Moore writes : If you discover any bugs while testing the new release, please report > them at https://github.com/pypa/pip/issues. Link not working (on pipermail archive -- remove the period on the end) https://github.com/pypa/pip/issues PS: was looking forward to PIP improvements on

[issue24978] Contributing to Python 2x and 3x Documentation. Translation to Russian.

2018-03-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: Adding a reference to PEP 545 for contributing documentation translations. -- nosy: +csabella ___ Python tracker

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e80a232f2cfdab584133d9779c83885c5f9f1ba6 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33096: Fix ttk.Treeview.insert. (GH-6228) (GH-6326)

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread miss-islington
miss-islington added the comment: New changeset 9e96e7b24e4d3ff4dce4f24c4e469cd5460712c9 by Miss Islington (bot) in branch '3.7': bpo-33132: Fix more reference counting issues in the compiler. (GH-6323)

GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Dominik George
Hi, On Sat, Mar 31, 2018 at 06:16:51PM -0400, Sumana Harihareswara wrote: > The new Python Package Index at https://pypi.org is now in beta. Yep! I read that the new Warehouse does not offer GPG signature files for download. Why not? How can I still get them (append .asc to the source

[issue33192] asyncio should use signal.set_wakeup_fd on Windows

2018-03-31 Thread Nathaniel Smith
New submission from Nathaniel Smith : I thought there was already a bug for this, but it came up in conversation again and I can't find one, so, here you go... It looks like originally there was this bug for making control-C wake up the asyncio event loop in Windows:

[issue25433] whitespace in strip()/lstrip()/rstrip()

2018-03-31 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +6041 ___ Python tracker ___

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset aa8e51f5ebb2a71c76059f050de01fc3c985376a by Serhiy Storchaka in branch 'master': bpo-33132: Fix more reference counting issues in the compiler. (GH-6323)

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6040 ___ Python tracker ___ ___

[issue25433] whitespace in strip()/lstrip()/rstrip()

2018-03-31 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25c869edd665cba7187910c5b151a0016fec4754 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6321)

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6039 ___ Python tracker ___ ___

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6038 ___ Python tracker ___ ___

[issue33132] Possible refcount issues in the compiler

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6037 ___ Python tracker ___ ___

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Rick Johnson
Grant Edwards wrote: > Etienne Robillard wrote: > > > Do you understand that a modern mobile device typically > > require a Internet subscription and an additional > > subscription for the smart phone? > > Huh? What is "an internet subscription"? Why would you > need two of them if all you

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Bassem Girgis
Bassem Girgis added the comment: Please let me know what I need to do in order to close this issue and finally merge the code. -- ___ Python tracker

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Terry Reedy
On 3/31/2018 11:58 AM, Etienne Robillard wrote: Do you really think people in Somalia can afford theses things like in the US? No, many cannot afford $600 Caddilac-style phones to take 10 megapixel pictures and watch UTube videos. Instead they buy $100 VWBug-style phones that let them get

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-03-31 Thread Brett Cannon
Brett Cannon added the comment: OK, I will update importlib.machinery.PathFinder.invalidate_caches() to also drop None from sys.path_importer_cache (objects that are not None and do not define invalidate_caches() will be left alone just like they are today). I should

[issue28053] parameterize what serialization is used in multiprocessing

2018-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd like to know if the work here will be completed soon :-) This currently lacks documentation but also tests. In particular, looking at the code (and that is supported by Will S' comment above), I feel the API isn't working as intended

[issue29595] Expose max_queue_size in ThreadPoolExecutor

2018-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please note the PR here has some review comments that need addressing. Also, it needs its conflicts with git master resolved. I'm cc'ing Thomas Moreau, who has done a lot of work recently on the concurrent.futures internals. --

[issue14119] Ability to adjust queue size in Executors

2018-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Issue 29595 has a more complete PR, so closing this issue as duplicate. -- nosy: +pitrou resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Expose max_queue_size in ThreadPoolExecutor

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Grant Edwards
On 2018-03-31, Etienne Robillard wrote: > Are you trolling? Do you understand that a modern mobile device > typically require a Internet subscription and an additional subscription > for the smart phone? Huh? What is "an internet subscription"? Why would you need two of

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Michael Torrie
On Mar 31, 2018 09:58, "Etienne Robillard" wrote: Le 2018-03-31 à 11:40, Michael Torrie a écrit : > On 03/31/2018 08:58 AM, Etienne Robillard wrote: > >> I was just wondering, could the fact that the Python community is >> willing to discontinue using and developing Python

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Anders Wegge Keller
På Sat, 31 Mar 2018 11:58:39 -0400 Etienne Robillard skrev: > Are you trolling? Do you understand that a modern mobile device > typically require a Internet subscription and an additional subscription > for the smart phone? I think the question is why you equate python3

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread bartc
On 31/03/2018 16:58, Etienne Robillard wrote: Le 2018-03-31 à 11:40, Michael Torrie a écrit : On 03/31/2018 08:58 AM, Etienne Robillard wrote: I was just wondering, could the fact that the Python community is willing to discontinue using and developing Python 2 softwares, does   that mean we

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Chris Angelico
On Sun, Apr 1, 2018 at 2:58 AM, Etienne Robillard wrote: > > > Le 2018-03-31 à 11:40, Michael Torrie a écrit : >> >> On 03/31/2018 08:58 AM, Etienne Robillard wrote: >>> >>> I was just wondering, could the fact that the Python community is >>> willing to discontinue using and

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Etienne Robillard
Le 2018-03-31 à 11:40, Michael Torrie a écrit : On 03/31/2018 08:58 AM, Etienne Robillard wrote: I was just wondering, could the fact that the Python community is willing to discontinue using and developing Python 2 softwares, does that mean we are stopping to support standard computers and

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Michael Torrie
On 03/31/2018 08:58 AM, Etienne Robillard wrote: > I was just wondering, could the fact that the Python community is > willing to discontinue using and developing Python 2 softwares, does > that mean we are stopping to support standard computers and laptops > as well? I've tried several times

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Etienne Robillard
Hi, I was just wondering, could the fact that the Python community is willing to discontinue using and developing Python 2 softwares, does that mean we are stopping to support standard computers and laptops as well? Furthermore, does it bother you to develop code primarly oriented towards

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Gene Heskett
On Saturday 31 March 2018 10:16:13 Ian Kelly wrote: > On Sat, Mar 31, 2018 at 6:29 AM, Rick Johnson > > wrote: > > On Friday, March 30, 2018 at 8:59:16 PM UTC-5, Chris Angelico wrote: > >> Wanna provide some competing information showing that other > >> languages

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Ian Kelly
On Sat, Mar 31, 2018 at 6:29 AM, Rick Johnson wrote: > On Friday, March 30, 2018 at 8:59:16 PM UTC-5, Chris Angelico wrote: >> Wanna provide some competing information showing that other >> languages are more used? > > Chris, here is how debate works: > > PersonA

Re: please test the new PyPI (now in beta)

2018-03-31 Thread Sumana Harihareswara
Quick note: we've implemented the fix Terry Jan Reedy suggested regarding window width and filters to fix https://github.com/pypa/warehouse/issues/3454 , so thank you to everyone who helped us nail this down. The next IRC/Twitter livechat hour with PyPI maintainers is Tuesday, April 3rd at 15:00

[issue33188] dataclass MRO entry resolution for type variable metaclasses: TypeError

2018-03-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +6036 ___ Python tracker ___

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Chris Angelico
On Sat, Mar 31, 2018 at 11:29 PM, Rick Johnson wrote: > Under no circumstance is PersonB required to prove PersonA'a > assertions. The onerous is on PersonA. Assertion: Rick doesn't know what "onerous" means. Under no circumstance is Rick required to prove me

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Rick Johnson
On Friday, March 30, 2018 at 8:59:16 PM UTC-5, Chris Angelico wrote: [...] > You can pooh-pooh any statistic. Yeah, except the ones supported by actual _facts_. > So far, though, you have provided NO statistics of your > own, just your own gut feeling. Uh huh. And what do you call drawing

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg314739 ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 by Serhiy Storchaka (scoder) in branch '2.7': bpo-31544: Fix a reference leak to 'self' after the previous target error handling fixes. (GH-6318)

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The correct issue for 0694b6a651ba2a53f6323ffb3b23358f43885815 and c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 is issue31455. -- ___ Python tracker

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 by Serhiy Storchaka (scoder) in branch '2.7': bpo-31544: Fix a reference leak to 'self' after the previous target error handling fixes. (GH-6318)

[issue33188] dataclass MRO entry resolution for type variable metaclasses: TypeError

2018-03-31 Thread Eric V. Smith
Eric V. Smith added the comment: Yeah, no need to change the API. I was over-generalizing. -- ___ Python tracker ___

[issue33181] SimpleHTTPRequestHandler shouldn't redirect to directories with code 301

2018-03-31 Thread Matt Eaton
Matt Eaton added the comment: Adding some core team members to the nosy list to get their take on this as well. -- nosy: +berker.peksag, eric.smith ___ Python tracker

[RELEASE] Python 3.7.0b3 is now available for testing

2018-03-31 Thread Ned Deily
On behalf of the Python development community and the Python 3.7 release team, I'm happy to announce the availability of Python 3.7.0b3. b3 is the third of four planned beta releases of Python 3.7, the next major release of Python, and marks the end of the feature development phase for 3.7. You

Beta release of pip version 10

2018-03-31 Thread Paul Moore
On behalf of the PyPA, I am pleased to announce that a beta release 10.0.0b1 of pip has just been released for testing by the community. We're planning on a final release in 2 weeks' time, over the weekend of 14/15 April. To install pip 10.0.0.b1, you can run python -m pip install --upgrade

Re: How to fill in a dictionary with key and value from a string?

2018-03-31 Thread bartc
On 30/03/2018 21:13, C W wrote: Hello all, I want to create a dictionary. The keys are 26 lowercase letters. The values are 26 uppercase letters. The output should look like: {'a': 'A', 'b': 'B',...,'z':'Z' } I know I can use string.ascii_lowercase and string.ascii_uppercase, but how do I

[issue33186] Memory corruption with urllib.parse

2018-03-31 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: Actually, Alexey shared this problem with me orally first, and then asked to have a look at his report, and I felt that just describing the technical details about what is going on is not enough, and suggested to include a brief

[issue33188] dataclass MRO entry resolution for type variable metaclasses: TypeError

2018-03-31 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +6035 stage: -> patch review ___ Python tracker ___

Re: Curious case of UnboundLocalError

2018-03-31 Thread Peter Otten
Johannes Bauer wrote: > On 30.03.2018 13:25, Johannes Bauer wrote: > >>> This mention of collections refers to ... >>> } for (_, collections) in z.items(): >>> >>> ... this local variable. >> >> Yup, but why? I mean, at the point of definition of "z", the only >> definition of

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Stefan Behnel
Stefan Behnel added the comment: PR 6318 fixes the reference leak for Py2.7. -- ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +6034 stage: resolved -> patch review ___ Python tracker ___

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 12:39:48 +0300, Marko Rauhamaa wrote: > Paul Rubin : >> All the scripts that say #!/usr/bin/python at the top will still use >> python2. > > Which is how it should be till the end of times. Don't be silly -- they should use Python 1, of course, as

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Sat, 31 Mar 2018 12:32:31 +0300, Marko Rauhamaa wrote: > Paul Rubin : > >> Marko Rauhamaa writes: >>> Yes, RHEL, CentOS and OracleLinux still only support Python2. It may >>> be another year before Python3 becomes available on them. >> >> Debian's

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Marko Rauhamaa
Paul Rubin : > All the scripts that say #!/usr/bin/python at the top will still use > python2. Which is how it should be till the end of times. Unfortunately, ArchLinux decided otherwise, which has caused quite a bit of grief in the office, where a coworker uses it. We

Re: Curious case of UnboundLocalError

2018-03-31 Thread Johannes Bauer
On 30.03.2018 16:46, Ben Bacarisse wrote: >> Yup, but why? I mean, at the point of definition of "z", the only >> definition of "collections" that would be visible to the code would be >> the globally imported module, would it not? How can the code know of the >> local declaration that only comes

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> Yes, RHEL, CentOS and OracleLinux still only support Python2. It may >> be another year before Python3 becomes available on them. > > Debian's default Python is also Python2. I don't say it *only* > supports

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2018-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: python -m test -j0 -- ___ Python tracker ___ ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-31 Thread Stefan Behnel
Stefan Behnel added the comment: Right, Zachary, thanks for noticing. Py2.7 is actually way more different than I thought, and I hadn't paid enough attention to that. Py3 does all of this in "__init__", whereas Py2 essentially implements "__new__" in C, which requires

[issue20104] expose posix_spawn(p)

2018-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: posix_spawn() is not documented, it contains reference leaks (issue33191) and can cause crashes. It's style doesn't conform PEP 7. The simplest fix requires changing the undocumented interface. -- dependencies: +Refleak

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Steven D'Aprano
On Fri, 30 Mar 2018 20:51:22 -0600, Ian Kelly wrote: > On Fri, Mar 30, 2018 at 8:43 PM, Ian Kelly > wrote: >> You really think that 90% of the active users are trolls? And yet the >> subreddit remains usable despite that allegedly terrible >> signal-to-noise ratio. > >