[issue13824] argparse.FileType opens a file and never closes it

2019-05-07 Thread Mitar
Mitar added the comment: > So it's already possible to do what you describe, simply by doing: I think there is an edge case here if a stdin/stdout is opened? It would get closed at exist from the context, no? So I suggest that a slight extension of what open otherwise returns is returned

[issue36807] IDLE doesn't call os.fsync()

2019-05-07 Thread Dan Halbert
Dan Halbert added the comment: >Dan, slightly OT, but I am curious whether one can access USB ports (in a >system-dependent manner) directly from python code via os.system and ctypes? Do you mean from CircuitPython? The USB impplementation provides HID keyboard, mouse, and gamepad devices,

[issue36807] IDLE doesn't call os.fsync()

2019-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I watched the talk by Nina Zakharenko at https://www.youtube.com/watch?v=35mXD40SvXM. Since I love being able to save, compile, and run a file with one keystroke, I appreciate people wanting to do the equivalent with CircuitExpress and Adafruit. In IDLE,

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-07 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-07 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36847] Segmentation fault (core dumped) Found when we import "schedule" and "mysql.connector" togather.

2019-05-07 Thread Jayesh
Change by Jayesh : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36847] Segmentation fault (core dumped) Found when we import "schedule" and "mysql.connector" togather.

2019-05-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. schedule and mysql-connector are not part of standard library distributed with CPython. This tracker deals with issues in CPython. I would propose closing it as third party unless you can reproduce the segfault without third

[issue36847] Segmentation fault (core dumped) Found when we import "schedule" and "mysql.connector" togather.

2019-05-07 Thread Jayesh
New submission from Jayesh : When we import following two library, then coredump found. import sys #!/usr/bin/python import schedule import mysql.connector Python 2.7.12 Ubuntu 16.04 x64 PackageVersion -- --- adium-theme-ubuntu 0.3.4

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2019-05-07 Thread yjq
yjq added the comment: updated: I tried the test.py and it didn't show this error. So I think what I got is not the same problem as issue33350 although it shows the same traceback message. -- ___ Python tracker

Re: Conway's game of Life, just because.

2019-05-07 Thread Richard Damon
On 5/7/19 9:33 PM, Ian Kelly wrote: > On Tue, May 7, 2019 at 1:00 PM MRAB wrote: >> On 2019-05-07 19:29, Eli the Bearded wrote: >>> In comp.lang.python, Paul Rubin wrote: >>> >>> Elijah >>> -- >>> is the torus game board unintentional? >>> >> I've never seen a version of Conway's Game of

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2019-05-07 Thread Windson Yang
Windson Yang added the comment: Hello, @Rémi, are you still working on this issue? -- nosy: +Windson Yang ___ Python tracker ___

[issue36846] range_iterator does not use __index__

2019-05-07 Thread Dan Snider
New submission from Dan Snider : I wouldn't even know where to begin to try and find a palatable solution for this that wouldn't be summarily dismissed. Perhaps it isn't unreasonable to suggest PyNumber_Index shouldn't use the less stringent PyLong_Check as the entry to the fast path. That

Building a statically linked Python, and pip

2019-05-07 Thread Simon Michnowicz via Python-list
Dear Group, I need to build a statically linked Python that has pip. I built a version following the instructions at https://wiki.python.org/moin/BuildStatically but pip was not present in the binary directory afterwards. I downloaded get-pip.py but when I tried to install it I get an error

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-05-07 Thread Ryan Govostes
Ryan Govostes added the comment: Just don’t run the last line which is just an echoing of the output of parser.parse_args() repeated. The Namespace type would need to be imported if you really wanted to but there’s no point. On Tuesday, May 7, 2019, Michael Blahay wrote: > > Michael Blahay

Re: Conway's game of Life, just because.

2019-05-07 Thread Ian Kelly
On Tue, May 7, 2019 at 1:00 PM MRAB wrote: > > On 2019-05-07 19:29, Eli the Bearded wrote: > > In comp.lang.python, Paul Rubin wrote: > > > > Thanks for posting this. I'm learning python and am very familiar with > > this "game". > > > >> #!/usr/bin/python3 > >> from itertools import chain > >>

[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Updated cert+key committed to pythontestdotnet. reassigning to EWDurbin to see that they're deployed. https://github.com/python/pythontestdotnet/commit/2d121419796dad6d4285bf5aefd464aff0f47a91 -- assignee: gregory.p.smith -> EWDurbin resolution:

[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile
Anthony Sottile added the comment: seems intentional => closing -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36812] posix_spawnp returns error when used with file_actions

2019-05-07 Thread STINNER Victor
STINNER Victor added the comment: Depending on your libc implementation and your libc version, you may get more or less info about what gone wrong. The initial issue was not a bug but a mistake in the file mode. I close the issue. -- nosy: +vstinner resolution: -> not a bug stage:

[issue36812] posix_spawnp returns error when used with file_actions

2019-05-07 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Ah okay, I'll see what information posix_spawnp() (the C function) returns on error for that case. -- ___ Python tracker ___

Re: Change in cache tag in Python 3.8 - pip confused

2019-05-07 Thread Chris Angelico
On Wed, May 8, 2019 at 8:09 AM Paul Moore wrote: > > On Tue, 7 May 2019 at 22:26, Chris Angelico wrote: > > So the next question is: Is this actually a problem? If it's something > > that can only ever happen to people who build prerelease Pythons, it's > > probably not an issue. Is there any

[issue36845] ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will accept out of valid range prefixlen

2019-05-07 Thread Nicolai Moore
New submission from Nicolai Moore : When using the tuple-form of constructing IPv4Network and IPv6Network will accept prefixlen outside of the normal allowed ranges. Example: >>> import ipaddress >>> ipaddress.IPv4Network(('172.21.1.0', 400)) IPv4Network('172.21.1.0/400') If given a negative

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2019-05-07 Thread STINNER Victor
STINNER Victor added the comment: Thanks Julien for taking care of the documentation :-) It is good to have you aboard. -- ___ Python tracker ___

[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile
Anthony Sottile added the comment: +vstinner Hmmm, actually the relevant commit appears to be 6c44fde3e03079e0c69f823dafbe04af50b5bd0d and intentional (I ran a git bisect to find this!) https://github.com/python/cpython/pull/12931 Does PEP 3149 require an update with this change, it still

Re: Change in cache tag in Python 3.8 - pip confused

2019-05-07 Thread Paul Moore
On Tue, 7 May 2019 at 22:26, Chris Angelico wrote: > So the next question is: Is this actually a problem? If it's something > that can only ever happen to people who build prerelease Pythons, it's > probably not an issue. Is there any way that a regular installation of > Python could ever change

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-05-07 Thread Miro Hrončok
Miro Hrončok added the comment: > But the impact of the change should probably also be discussed with at least > some of the large distributors. Adapting the Fedora package. Will try to mass rebuild our packages to see what breaks. -- nosy: +hroncok

[issue36840] Add stream.abort() async method

2019-05-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: The reason is: until connection_lost() is called the transport is in the active state. Destruction of closing-but-not-closed-yet trasport raises a ResourceWarning. Plain TCP socket calls connection_lost() on the next loop iteration after .abort() call.

[issue27639] UserList.__getitem__ doesn't account for slices

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

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 93aa57ac6594d1cc30d147720fc8a7a4e1ca2d3e by Miss Islington (bot) in branch '3.7': bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Mark Shannon
Mark Shannon added the comment: New changeset b1c3167c232c36ed3543ca351ff10c613639b5f5 by Mark Shannon (Michael Blahay) in branch 'master': bpo-27639: Correct return type for UserList slicing operation (#13169) https://github.com/python/cpython/commit/b1c3167c232c36ed3543ca351ff10c613639b5f5

[issue36015] streamhandler cannot represent streams with an integer as name

2019-05-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ca87eebb22d202c33f3317cbf85059cadc64fa9f by Vinay Sajip (Riccardo Magliocchetti) in branch 'master': bpo-36015: Handle StreamHandler representaton of stream with an integer name (GH-11908)

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-05-07 Thread Lisa Roach
Change by Lisa Roach : -- pull_requests: -13094 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-05-07 Thread Lisa Roach
Change by Lisa Roach : -- pull_requests: +13096 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33948] doc truncated lines in PDF

2019-05-07 Thread Julien Palard
Julien Palard added the comment: We recentrly upgraded our PDF build toolchain and I don't see it happen again. Don't hesitate to reopen if you find another occurence of it. Thanks for reporting! -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland
Change by Dino Viehland : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Change in cache tag in Python 3.8 - pip confused

2019-05-07 Thread Chris Angelico
On Wed, May 8, 2019 at 7:13 AM Paul Moore wrote: > > On Tue, 7 May 2019 at 21:53, Chris Angelico wrote: > > > > I've been building Python 3.8 pre-alphas and alphas for a while now, > > and ran into a weird problem. Not sure if this is significant or not, > > and hoping to get other people's

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread STINNER Victor
STINNER Victor added the comment: Try to compress config.log to attach it. Or at least attach the output of "./configure" as a file. I'm looking for HAVE_GETRANDOM, HAVE_GETRANDOM_SYSCALL, HAVE_GETENTROPY defines that you can find in pyconfig.h. About /dev/urandom: does this device exist?

[issue32393] nav menu jitter in old documentation

2019-05-07 Thread Julien Palard
Julien Palard added the comment: I'm closing this as a duplicate of https://bugs.python.org/issue24712, for which I opened a pull request. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Docs page's sidebar vibrates on mouse wheel scroll on

Re: Change in cache tag in Python 3.8 - pip confused

2019-05-07 Thread Paul Moore
On Tue, 7 May 2019 at 21:53, Chris Angelico wrote: > > I've been building Python 3.8 pre-alphas and alphas for a while now, > and ran into a weird problem. Not sure if this is significant or not, > and hoping to get other people's views. > > It seems that the value of sys.implementation.cache_tag

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2019-05-07 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +13095 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Christian Heimes
Christian Heimes added the comment: Could you please use a debugger and step through _Py_HashRandomization_Init and pyurandom to see, where the initialization of the RNG is failing? -- nosy: +christian.heimes ___ Python tracker

[issue35723] Add "time zone index" cache to datetime objects

2019-05-07 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > which unfortunately use `is` to determine whether two datetimes are in the > same zone or not This sounds like a bug. Whether a tzinfo is a constant from a predefined set or something with a smart comparison semantic is none of datetime's business.

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne
Robert Boehne added the comment: robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ gmake xlc_r -c -DNDEBUG -O -q64 -qlanglvl=extc99 -IObjects -IInclude -IPython -I. -I../../Python-3.7.3/Include -I/raid/checkouts-raid/robb/Python-2.7.15/Modules/zlib -DPy_BUILD_CORE -o

[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3918ad6b45da31e05265de5a455102276717c659 by Gregory P. Smith in branch 'master': bpo-36838: Suggest 'make venv' when missing Doc/ tools. (GH-13173) https://github.com/python/cpython/commit/3918ad6b45da31e05265de5a455102276717c659 --

[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-05-07 Thread Lisa Roach
Change by Lisa Roach : -- keywords: +patch pull_requests: +13094 stage: test needed -> patch review ___ Python tracker ___ ___

[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile
New submission from Anthony Sottile : This appears to be a regression between 3.8a3 and 3.8a4 -- though it may be intentional and I'm missing something? I noticed this while packaging 3.8 for deadsnakes https://github.com/deadsnakes/python3.8 I've created a minimal reproduction: $ git

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Ryan, what are the exact steps to reproduce the problem? This is what I get when I run the code you included: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser.add_argument('things', nargs=argparse.REMAINDER, default=['nothing'])

[issue34616] implement "Async exec"

2019-05-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Matthias, please use GH-13148 for pointing on github pull requests. # is for links to this tracker issues. -- stage: patch review -> ___ Python tracker

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne
New submission from Robert Boehne : build fails with: ./python -E ../../Python-3.7.3/setup.py build Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python -- components: Build messages: 341821 nosy: Robert Boehne priority: normal severity:

[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland
Change by Dino Viehland : -- keywords: +patch pull_requests: +13093 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36801] Wait for connection_lost in StreamWriter.drain

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

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 1cc0ee7d9f6a2817918fafd24c18d8bb093a85d3 by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)

Re: Conway's game of Life, just because.

2019-05-07 Thread Eli the Bearded
In comp.lang.python, MRAB wrote: > I've never seen a version of Conway's Game of Life where the board > doesn't wrap around. The one I wrote in vi macros doesn't. It's a design choice you can make. (Thanks for the explainations everyone.) Elijah -- the vi macro one is included in the vim

Change in cache tag in Python 3.8 - pip confused

2019-05-07 Thread Chris Angelico
I've been building Python 3.8 pre-alphas and alphas for a while now, and ran into a weird problem. Not sure if this is significant or not, and hoping to get other people's views. It seems that the value of sys.implementation.cache_tag changed from "cpython-38m" to just "cpython-38" at some point.

[issue36842] Implement PEP 578

2019-05-07 Thread Steve Dower
New submission from Steve Dower : Implement PEP 578 -- assignee: steve.dower messages: 341819 nosy: christian.heimes, steve.dower priority: normal pull_requests: 13091 severity: normal stage: patch review status: open title: Implement PEP 578 type: enhancement versions: Python 3.8,

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2019-05-07 Thread Julien Palard
Julien Palard added the comment: Closing this issue, it has been fixed a year ago, thanks Jan-Philip for reporting, Stéphane for fixing, and everybody! \o/ \o/ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue36841] Supporting customization of float encoding in JSON

2019-05-07 Thread SilentGhost
Change by SilentGhost : -- nosy: +ezio.melotti, rhettinger type: -> enhancement versions: +Python 3.8 ___ Python tracker ___ ___

[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I noted this at the mentored sprints this year when I suggested my mentee "cd Doc ; make html" to show them how to build the docs, check that they build and see what they look like. Once upon a time we used to auto-fetch and install sphinx (long ago?),

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3b4b28efbde63502709bede7c5f9403ec6f37428 by Gregory P. Smith in branch '3.7': [3.7] bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704) (GH-13170) https://github.com/python/cpython/commit/3b4b28efbde63502709bede7c5f9403ec6f37428

[issue36841] Supporting customization of float encoding in JSON

2019-05-07 Thread Mitar
New submission from Mitar : Currently, there is only one argument which allows customization how float numbers are encoded in JSON: allow_nan. But this does not allow one to hook into the encoding of floating points really. The JSONEncoder is not called for float numbers. The motivation

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: The regression should be fixed. It'd be helpful if owners of applications that were running into this could test their applications with this specific change. -- resolution: -> fixed stage: patch review -> commit review status: open -> closed

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-07 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13090 stage: -> patch review ___ Python tracker ___ ___

[issue32275] SSL socket methods don't retry on EINTR?

2019-05-07 Thread Julien Palard
Change by Julien Palard : -- nosy: -mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +13089 stage: -> patch review ___ Python tracker ___ ___

[issue36840] Add stream.abort() async method

2019-05-07 Thread Yury Selivanov
Yury Selivanov added the comment: If we're just calling socket.close(), then what's the point of waiting for connection_lost? (I remember us discussing this, but I don't quite remember the details). Usually .abort() is a synchronous method, which kind of signals that "i want to close this

[issue36830] Typo in collections.deque

2019-05-07 Thread Julien Palard
Julien Palard added the comment: I reopened the issue on the ja tracker: https://github.com/python/python-docs-ja/issues/20 and I'm closing it here. Thanks a lot keroru for reporting! -- stage: -> resolved status: pending -> closed ___ Python

[issue36824] Refactor str tests to reflect that str and unicode are merged in Python 3

2019-05-07 Thread Daniel Fortunov
Change by Daniel Fortunov : -- keywords: +patch pull_requests: +13088 stage: -> patch review ___ Python tracker ___ ___

[issue36840] Add stream.abort() async method

2019-05-07 Thread Andrew Svetlov
New submission from Andrew Svetlov : It should call underlying `transport.abort()`, then wait for closing event (`await self.wait_closed()`) -- components: asyncio messages: 341811 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Add stream.abort()

[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2019-05-07 Thread Julien Palard
Julien Palard added the comment: The download links are now working, EWDurbin upgraded the servers and it solved a few issues, also now when a build fail we do no longer erase the old PDF, so the links should always work. Thanks for reporting and don't hesistate to open a new issue if

[issue36824] Refactor str tests to reflect that str and unicode are merged in Python 3

2019-05-07 Thread Daniel Fortunov
Daniel Fortunov added the comment: PS opened here: https://github.com/python/cpython/pull/13172 I've tried to break down the changes into individual steps, with justification in commit messages. Happy to collapse these down into fewer commits before merge if preferred. I haven't done the

[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland
New submission from Dino Viehland : Many Python deployments involve large code based that are used in scenarios where processes are fork-and-exec'd. When running in these environments code objects can end up occupying a lot of memory. Because the code objects are on random pages and are

[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 299f69c24c5f0fcfea0b7385b0da661cda78df19 by Miss Islington (bot) in branch '3.7': bpo-35125: remove inner callback on outer cancellation in asyncio shield (GH-10340)

[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith
New submission from Gregory P. Smith : Running make in the Doc directory does not install all necessary tooling on its own. This is a hurdle to getting beginners up to speed on making documentation changes (often their very first changes in the CPython project). ```

[issue36813] QueueListener not calling task_done upon termination

2019-05-07 Thread Bar Harel
Bar Harel added the comment: Alright. Regression tests added, all tests pass. Patch ready for upload! -- nosy: +vinay.sajip ___ Python tracker ___

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan
Change by Brian Quinlan : -- pull_requests: +13087 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: I think that ProcessPoolExecutor might have a similar race condition - but not in exactly this code path since it would only be with the queue management thread (which is only started once). -- ___ Python tracker

[issue36823] shutil.copytree copies directories and files but fails with that same directory with '[Errno 1] Operation not permitted')

2019-05-07 Thread Ryan Avery
Ryan Avery added the comment: I'm actually not sure what the expected behavior would be, because I can use the os module to copy, rename, and remove files and folders in this mounted File Share. Before encountering this error, I would expect shutil to do the same. But since this error comes up

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +13086 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35924] curses segfault resizing window

2019-05-07 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: I'm still debugging this but it may be an off-by-one error in ncurses, wresize.c. I've found that if I modify the following section in ncurses, our problem goes away: /* * Dispose of unwanted memory. */ if (!(win->_flags &

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +13085 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana
Sanyam Khurana added the comment: The issue does not seem to be on 3.7 and master branch, so I'm closing the bug as well as the pull request. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 -Python 3.8

[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

Re: Conway's game of Life, just because.

2019-05-07 Thread MRAB
On 2019-05-07 19:29, Eli the Bearded wrote: In comp.lang.python, Paul Rubin wrote: Thanks for posting this. I'm learning python and am very familiar with this "game". #!/usr/bin/python3 from itertools import chain def adjacents(cell):# generate coordinates of cell neighbors

[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, I have discussed with @CuriousLearner and now he is aware that 3.5 and 3.6 are in security mode and not in bugfix mode. I remove 3.5 from the list, he is checking if there is an issue on 3.7 and master. -- nosy: +matrixise versions: +Python

[issue31200] address sanitizer build fails

2019-05-07 Thread Julien Palard
Julien Palard added the comment: Tried to reproduce it again, on master, but this does no longer segfault nor report leakages (as long as I use __INSURE__ using make -j18 profile-opt CFLAGS='-D__INSURE__') nor fail at build time. There's still a few memory warnings while running tests

[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset b35acc5b3a0148c5fd4462968b310fb436726d5a by Miss Islington (bot) (Romain Picard) in branch 'master': bpo-35125: remove inner callback on outer cancellation in asyncio shield (GH-10340)

[issue35125] asyncio shield: remove inner callback on outer cancellation

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

[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2019-05-07 Thread Brian McCutchon
Brian McCutchon added the comment: No, I do not have such an example, as most of my tests try to fake the executors. -- ___ Python tracker ___

[issue35723] Add "time zone index" cache to datetime objects

2019-05-07 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2019-05-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: I've created PR13165 to address this bug. It's 99% test updates; the actual code changes to argparse.py are trivial and should be equally trivial to review. The only functional change beyond Moritz's proposal is that I added support for having accepting '-'

[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +13083 stage: -> patch review ___ Python tracker ___ ___

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: Great report Steven! I was able to reproduce this with the attached patch (just adds some sleeps and prints) and this script: from threading import current_thread from concurrent.futures import ThreadPoolExecutor from time import sleep pool =

[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana
Sanyam Khurana added the comment: I had to clean-up my build a bit, and it seems like it's not really happening on 3.6, but it is still an issue with 3.4, 3.5, etc. I've added a PR for 3.5 to resolve the issue. -- assignee: -> CuriousLearner title: Test Suite not working on 3.4,

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2019-05-07 Thread Josh Rosenberg
Change by Josh Rosenberg : -- pull_requests: +13082 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Conway's game of Life, just because.

2019-05-07 Thread Chris Angelico
On Wed, May 8, 2019 at 4:31 AM Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, Paul Rubin wrote: > > Thanks for posting this. I'm learning python and am very familiar with > this "game". > > > #!/usr/bin/python3 > > from itertools import chain > > > > def adjacents(cell):

Re: Conway's game of Life, just because.

2019-05-07 Thread Eli the Bearded
In comp.lang.python, Paul Rubin wrote: Thanks for posting this. I'm learning python and am very familiar with this "game". > #!/usr/bin/python3 > from itertools import chain > > def adjacents(cell):# generate coordinates of cell neighbors > x, y = cell # a cell

  1   2   3   >