[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset bab4fe320ad2e24c1084fd57d2059ef342688aa9 by Benjamin Peterson (Miss Islington (bot)) in branch '3.7': closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5548 ___ Python tracker ___

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5547 ___ Python tracker ___

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread breamoreboy
On Monday, February 19, 2018 at 1:07:02 PM UTC, Anders Wegge Keller wrote: > På Mon, 19 Feb 2018 04:39:31 + (UTC) > Steven D'Aprano skrev: > > On Mon, 19 Feb 2018 04:26:32 +0100, Anders Wegge Keller wrote: > > > > > På Mon, 19 Feb 2018 08:47:14 +1100 > > > Tim Delaney skrev: > > >> On 18

Re: Gmane seems to be gone

2018-02-19 Thread breamoreboy
On Sunday, February 18, 2018 at 8:23:03 PM UTC, Mark Lawrence wrote: > On 18/02/18 18:03, Grant Edwards wrote: > > On 2018-02-18, Dennis Lee Bieber wrote: > >> On Sun, 18 Feb 2018 17:26:54 + (UTC), Grant Edwards > >> declaimed the following: > >> > >>> > >>> It was

Re: could use some help with this problem! I've been working on it for days but cant seem to get it right !

2018-02-19 Thread breamoreboy
On Tuesday, February 20, 2018 at 5:08:49 AM UTC, Marc Cohen wrote: > USING PYTHON 2: > > Write a program to play this game. This may seem tricky, so break it down > into parts. Like many programs, we have to use nested loops (one loop inside > another). In the outermost loop, we want to keep

could use some help with this problem! I've been working on it for days but cant seem to get it right !

2018-02-19 Thread Marc Cohen
USING PYTHON 2: Write a program to play this game. This may seem tricky, so break it down into parts. Like many programs, we have to use nested loops (one loop inside another). In the outermost loop, we want to keep playing until we are out of stones. Inside that, we want to keep alternating

[issue32881] pycapsule:PyObject * is NULL pointer

2018-02-19 Thread zhaoya
New submission from zhaoya : i have question:call,c-->python-->c. 1.the c pointer void* abc="123" by pycapsule in the c code. .. void* lpContext = "abc"; PyObject * lpPyContext = PyCapsule_New(lpContext, "Context",NULL); .. PyTuple_SetItem(pArgs, 1, lpPyContext);

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: set_str sets self.str and self.study_level. After the first call, attempts to access unset instance parse attributes from other modules will raise AttributeError. Removing the unneeded class setting will just add 2 more names to the list

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me for making the change 3.7.0+ only - 3.6 isn't doing the right thing, but given folks are relying on it doing the wrong thing, then let's leave it alone given where it is in its lifecycle. --

[issue32820] Add bits method to ipaddress

2018-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: The python-ideas discussion didn't turn up any major concerns we hadn't already considered, so you're in "wait for PR review" mode now. If you wanted to do a self-review in the meantime, then

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Rick Johnson
On Saturday, February 17, 2018 at 12:58:49 AM UTC-6, Paul Rubin wrote: [...] > Beyond that, the Python community (with some exceptions) seems to have a > widespread hatred of threads. It instead prefers to handle concurrent > i/o with in-thread async schemes that the rest of the world left behind

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let's consider the todo questions at the end of the class Parser code. --- # XXX - is this used? lastopenbracketpos = None def get_last_open_bracket_pos(self): "Return index of last open bracket or None."

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Rick Johnson
On Friday, February 16, 2018 at 10:25:32 PM UTC-6, Chris Angelico wrote: [...] > This is often touted as a necessity for industrial-grade > software. It isn't. There are many things that a type > system, no matter how sophisticated, cannot catch; for some > reason, though, we don't hear people

Re: How to link to python 3.6.4 library on linux ?

2018-02-19 Thread Jason Qian via Python-list
Thanks Chris, I think I figured it out that when build python on Linux, we need to enable-shared. Thanks again, On Mon, Feb 19, 2018 at 5:04 PM, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list > wrote: > > Hi, >

[issue31848] "aifc" module does not always initialize "Aifc_read._ssnd_chunk"

2018-02-19 Thread Zackery Spytz
Change by Zackery Spytz : -- components: -Tests nosy: +ZackerySpytz type: crash -> behavior versions: +Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-19 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 ___ Python tracker ___

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-19 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +5546 stage: -> patch review ___ Python tracker ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Pyparse was mostly written in the early 2000s, with the only one code change since 2007 in 2014. #32874 will add tests for pyparse 'as is' (though with some docstring and comment changes). This issue will change pyparse code, and change

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset 8e149ff481acbb3889c825b8bf7b10aa191f09a7 by Steve Dower (Miss Islington (bot)) in branch '3.6': bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5766)

[issue32879] Race condition in multiprocessing Queue

2018-02-19 Thread Tim Peters
Tim Peters added the comment: The docs could be clearer about this: the argument to .put() is _not_ pickled at the time .put() is called. The object is remembered (by reference, not by value), and a feeder thread pickles the value and puts the pickle on the queue when the

[issue32879] Race condition in multiprocessing Queue

2018-02-19 Thread Simon Bouchard
New submission from Simon Bouchard : The clear list function call in made after the put(data) on the queue. But the data is sometime clear in the queue (randomly). Since both function are call within the same process, a race condition is not expected. --

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

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

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset a3d6c1b23b8a49b5003fdbd115d3598fe3d4c4bf by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5765)

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Richard Damon
On 2/19/18 10:35 AM, Chris Angelico wrote: On Tue, Feb 20, 2018 at 12:34 AM, Steven D'Aprano wrote: On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote: As an integer, 3.141590 is 107853 $ Looks to me like C is perfectly happy to interpret a

Re: Python 2 to 3 Conversion

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 12:05 PM, Wildman via Python-list wrote: > On Tue, 20 Feb 2018 10:55:28 +1100, Chris Angelico wrote: > >> The given homepage URL is >> http://alastairs-place.net/projects/netifaces/ - is that the right >> one? >> >> ChrisA > > Yes, that is the right

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5545 ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5543, 5544 ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5543 ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset 6240917b773b52f8883387b9e3a5f327a4372068 by Steve Dower in branch 'master': bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 10:55:28 +1100, Chris Angelico wrote: > The given homepage URL is > http://alastairs-place.net/projects/netifaces/ - is that the right > one? > > ChrisA Yes, that is the right one. Now I'm feeling a little stupid. I should have remembered that many python library package

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2018-02-19 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: OK, never mind with the test. I've finally got to a FreeBSD box and reproduced the problem. It has to do with 'revoke' feature of *BSD. When revoke is called on a terminal device (as part of logout process, for example), all descriptors

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2018-02-19 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > I think that we can even drop dup-based validation from is_valid_fd() For POSIX, that is. There is no fstat on Windows, and dup is probably OK there (or, even better, dup2(fd, fd) -- no need to close). --

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Steve Dower
Steve Dower added the comment: Sounds good to me -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Windows: subprocess debug assertion on failure to execute the process ___

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Zachary Ware
Zachary Ware added the comment: I fixed this independently earlier today, tied to bpo-30121 (the issue that introduced the test bug) because I didn't find this one. See PR5758, PR5759 (3.7), and PR5760 (3.6). -- ___ Python

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

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- stage: needs patch -> patch review ___ Python tracker ___

[issue32878] Document value of st_ino on Windows

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5542 stage: -> patch review ___ Python tracker ___

Re: Python 2 to 3 Conversion

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 10:09 AM, Wildman via Python-list wrote: > Yes, you are correct. Third-party pip packages are always > a no-no. > > Speaking of which, there is a library called Netifaces that > will easily do exactly what I want with a few lines of code. > But, it

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: I had also noticed that the `after` commands didn't have tests. Did you want me to add tests in a separate issue before this one is merged or did you want me to add tests under this PR? Thanks! --

[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +5541 stage: -> patch review ___ Python tracker ___

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Steve Dower
Steve Dower added the comment: Turns out this is a trivial typo in the test, so I stole the issue from Greg and pushed a PR. -- assignee: gregory.p.smith -> steve.dower ___ Python tracker

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5540 stage: needs patch -> patch review ___ Python tracker ___

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 05:31:27 +1100, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 3:49 AM, Wildman via Python-list > wrote: >> On Mon, 19 Feb 2018 12:32:49 +, Rhodri James wrote: >> >>> On 18/02/18 16:18, Wildman via Python-list wrote: > But that's only going to

[issue32876] HTMLParser raises exception on some inputs

2018-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: The HTMLParser has been updated to handle HTML5 and should never fail parsing a document, so if it raises an error it's probably a bug. -- ___ Python tracker

[issue32840] Must install python 3.6.3 when 3.6.4 already installed

2018-02-19 Thread Steve Dower
Steve Dower added the comment: We confirmed offline that it's not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 05:39:15 +1100, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 3:53 AM, Wildman via Python-list > wrote: >> On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote: >> >>> * Opaque IOCTLs >> >> Would you mind to elaborate a little about your >>

[issue32876] HTMLParser raises exception on some inputs

2018-02-19 Thread Hanno Boeck
Hanno Boeck added the comment: Actually BeautifulSoup also uses the python html parser in the backend, so it has the same problem. (It can use alternative backends, but the python parser is the default and they also describe it as "lenient", which I would interpret as "it

[issue32876] HTMLParser raises exception on some inputs

2018-02-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: The stdlib HTML parser requires correct HTML. To parse broken HTML, as you find in the real world, you need a third-party library like BeautifulSoup. BeautifulSoup is much more complex (about 7-8 times as many LOC) but can handle

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2018-02-19 Thread Steve Dower
Steve Dower added the comment: I took another look at this and it's still unclear whether it's worth the performance loss. Perhaps moving fsencode and fsdecode (almost) entirely into C would be a better approach? That shouldn't send us backwards at all, and all they

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

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5539 stage: needs patch -> patch review ___ Python tracker ___

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

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower stage: patch review -> needs patch versions: +Python 3.7 ___ Python tracker

[issue32873] Pickling of typing types

2018-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: I'm honestly not too concerned about what happens with List[int] (though doing a sensible thing here is not wrong :-), but I feel strongly that a pickle containing a reference to typing.List should be compatible between Python 3.6 and 3.7.

Re: [ANN] Biovarase ver 2

2018-02-19 Thread Beppe
Il giorno lunedì 19 febbraio 2018 23:02:43 UTC+1, Chris Angelico ha scritto: > On Tue, Feb 20, 2018 at 8:45 AM, Beppe wrote: > > > > Biovarase has been updated to version 2, > > > > The project has been migrated from python 2.7 to python 3.5 > > > > Biovarase is an

[issue32878] Document value of st_ino on Windows

2018-02-19 Thread Guido van Rossum
New submission from Guido van Rossum : We received a report from a well-meaning security researcher who was confused by the non-zero and arbitrary value of st_ino in stat() results on Windows (where in Python 2 this was always zero). The researcher was worried that this was

Re: How to link to python 3.6.4 library on linux ?

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list wrote: > Hi, > > I am calling python from a c application. > It compiles and works fine on the windows. How do I compile and link > it on the linux for Python 3.6.4 ? > > Under python dir, it

Re: [ANN] Biovarase ver 2

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 8:45 AM, Beppe wrote: > > Biovarase has been updated to version 2, > > The project has been migrated from python 2.7 to python 3.5 > > Biovarase is an application to manage clinical quality control data. > > The purpose of Quality Control

How to link to python 3.6.4 library on linux ?

2018-02-19 Thread Jason Qian via Python-list
Hi, I am calling python from a c application. It compiles and works fine on the windows. How do I compile and link it on the linux for Python 3.6.4 ? Under python dir, it only have a static library, /opt/Python-3.6.4*/lib*/*libpython3.6m.a* * If I link to it, I

[issue32874] IDLE: Add tests for pyparse

2018-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: My only contact with pyparse has been #21765, which modified hyperparser and pyparse to support unicode identifiers. It also added tests for hyperparser, but not pyparse (msg223150: "it seems to be working as expected"). Thanks for

[ANN] Biovarase ver 2

2018-02-19 Thread Beppe
Biovarase has been updated to version 2, The project has been migrated from python 2.7 to python 3.5 Biovarase is an application to manage clinical quality control data. The purpose of Quality Control Assurance in a clinical laboratory is to allow the control of the performances of an

[issue32877] Login to bugs.python.org with Google account NOT working

2018-02-19 Thread ruffsl
New submission from ruffsl : I've been unable to login to bugs.python.org using Google's oauth. After clicking the google oauth logo on the sidebar on bugs.python.org, I am either slowly redirected to a google login page (after about 1 min) to select an account, then

[issue32566] Not able to run Python 3.6 on Windows

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30439] Expose the subinterpreters C-API in the stdlib.

2018-02-19 Thread pmpp
Change by pmpp : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread pmpp
Change by pmpp : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Help on convert PyObject to string (c) Python 3.6

2018-02-19 Thread Jason Qian via Python-list
Thanks a lot and I will take a look Cython, On Mon, Feb 19, 2018 at 3:23 PM, Stefan Behnel wrote: > Jason Qian via Python-list schrieb am 04.02.2018 um 17:52: > >This is the case of calling python from c and the python function > will > > return a string. > > Hi Jason,

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2018-02-19 Thread miss-islington
miss-islington added the comment: New changeset 622a824802771fc5aa133ae92101bc8303360294 by Miss Islington (bot) in branch '3.7': bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

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

2018-02-19 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread Zachary Ware
Zachary Ware added the comment: I'm pretty sure that report is still running on the last changeset on hg.python.org; can you confirm that Antoine? -- nosy: +pitrou ___ Python tracker

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2018-02-19 Thread miss-islington
miss-islington added the comment: New changeset ef0bb5c7b76a49a5f3c5b85b5f9112cfefe54328 by Miss Islington (bot) in branch '3.6': bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread Yury Selivanov
Yury Selivanov added the comment: FYI I found out about this refleak from https://mail.python.org/pipermail/python-checkins/2018-February/153907.html So it's definitely not Mac OS X specific thing. -- ___ Python tracker

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread Zachary Ware
Zachary Ware added the comment: Looks like macOS rather than Windows, and I can't reproduce it locally with current master: 14:28 $ ./python.exe -m test -R3:3 test_multiprocessing_fork Run tests sequentially 0:00:00 load avg: 2.68 [1/1] test_multiprocessing_fork

Re: Help on convert PyObject to string (c) Python 3.6

2018-02-19 Thread Stefan Behnel
Jason Qian via Python-list schrieb am 04.02.2018 um 17:52: >This is the case of calling python from c and the python function will > return a string. Hi Jason, I noticed that you ran into a couple of problems using the C-API, so I suggest looking into Cython instead. It basically translates

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread Eric Snow
Eric Snow added the comment: Davin, any thoughts on how my most recent commit (for this issue) might be causing the leaks Yury found? -- nosy: +davin ___ Python tracker

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread Eric Snow
Eric Snow added the comment: I'm not seeing any refleak (on linux/clang). I'm guessing this is Windows-specific (based on use of "./python.exe"). How does test_multiprocessing_fork even run on Windows? I thought "fork" is an unsupported start method on Windows

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Brett Cannon
Brett Cannon added the comment: I'm personally fine if the change gets reverted. I don't think the odd behaviour is severe enough to justify breaking projects in a maintenance release. Besides, they will learn soon enough about their code breaking in Python 3.7. --

Re: c code generator from python

2018-02-19 Thread Stefan Behnel
bhattacharya.kush...@gmail.com schrieb am 17.01.2018 um 12:03: > Is there any python framework or any tool as which can generate C code from > python code as it is . http://cython.org/ Stefan -- https://mail.python.org/mailman/listinfo/python-list

[issue32876] HTMLParser raises exception on some inputs

2018-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5537 ___ Python tracker ___

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5538 ___ Python tracker ___

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2018-02-19 Thread Zachary Ware
Zachary Ware added the comment: New changeset 5537646bfacec463b450871dde31cb06c44a0556 by Zachary Ware in branch 'master': bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2018-02-19 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thank you for checking. If this issue happens even when Python is run manually from an ordinary shell, fixing it in the same way as in #30225 is probably not what you want because while the error message will be gone the corresponding

[issue32876] HTMLParser raises exception on some inputs

2018-02-19 Thread Hanno Boeck
New submission from Hanno Boeck :

I noticed that the HTMLParser will raise an exception on some inputs.
I'm not sure what the expectations here are, but given that real-world HTML 
often contains all kinds of broken content I would assume an HTMLParser to 
always try to 

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2018-02-19 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +5536 ___ Python tracker ___ ___

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-19 Thread Eric Snow
Eric Snow added the comment: @Yury, thanks! I thought I had checked before I made the PR, but apparently not. I'll git it fixed. -- ___ Python tracker

[issue32820] Add bits method to ipaddress

2018-02-19 Thread Eric Osborne
Eric Osborne added the comment: I brought it up on python-ideas. Since I've not been through this process before - what happens now? Do I wait for code review on github, or is there more I need to do? eric On Tue, Feb 13, 2018 at 11:56 PM Nick Coghlan

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Ned Batchelder
On 2/19/18 1:01 PM, Paul Moore wrote: On 19 February 2018 at 17:11, Ned Batchelder wrote: On 2/19/18 10:39 AM, Paul Moore wrote: I'm curious - How would you explain Python's "variables" to someone who knows how C variables work, in a way that ensures they don't carry

[issue31937] Add the term "dunder" to the glossary

2018-02-19 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32875] Add __exit__() method to event loops

2018-02-19 Thread Victor Porton
New submission from Victor Porton : Please add `__exit__()` method to event loops, to use them with `with`. -- components: asyncio messages: 312360 nosy: asvetlov, porton, yselivanov priority: normal severity: normal status: open title: Add __exit__() method to event

Re: Python 2 to 3 Conversion

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 3:53 AM, Wildman via Python-list wrote: > On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote: > >> * Opaque IOCTLs > > Would you mind to elaborate a little about your > concerns? Look at your original code: it's impossible to figure out what

[issue32854] Add ** Map Unpacking Support for namedtuple

2018-02-19 Thread Jay Crotts
Jay Crotts added the comment: Thanks Raymond, I wasn't sure if it was a common pattern or not, that makes sense. -- ___ Python tracker

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Ned Deily
Change by Ned Deily : -- priority: critical -> release blocker ___ Python tracker ___ ___

Re: Python 2 to 3 Conversion

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 3:49 AM, Wildman via Python-list wrote: > On Mon, 19 Feb 2018 12:32:49 +, Rhodri James wrote: > >> On 18/02/18 16:18, Wildman via Python-list wrote: But that's only going to show one (uplink) address. If I needed to get ALL addresses

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Ned Deily
Ned Deily added the comment: Now that we know that this change *does* break some existing code, I think it is worth having that talk as mentioned in PR 5481: "I suppose it's possible that this will break existing code, but I'd argue that because current behavior runs counter

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote: > * Opaque IOCTLs Would you mind to elaborate a little about your concerns? -- GNU/Linux user #557453 "There are only 10 types of people in the world... those who understand Binary... and those who don't." -Spike --

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5535 stage: needs patch -> patch review ___ Python tracker ___

Re: How to run script from interpreter?

2018-02-19 Thread windhorn
On Saturday, February 17, 2018 at 8:50:48 AM UTC-6, Steven D'Aprano wrote: > > For me, the tool I use is a set of re-usable tools: > > - a text editor; > - a system command prompt in a terminal/console window; > - a Python REPL for running code snippets and looking up help(obj). > > Other

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Paul Moore
On 19 February 2018 at 17:11, Ned Batchelder wrote: > On 2/19/18 10:39 AM, Paul Moore wrote: >> >> I'm curious - How would you explain Python's "variables" to someone >> who knows how C variables work, in a way that ensures they don't carry >> across any unfortunate

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Ned Batchelder
On 2/19/18 10:39 AM, Paul Moore wrote: On 19 February 2018 at 15:18, Ned Batchelder wrote: On 2/19/18 9:54 AM, Steven D'Aprano wrote: On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote: [1] The most basic question, which people making such claims often can't

  1   2   >