[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset 753d0c05b39f21d5987d59d7fe8b5a6d721bc22c by Miss Islington (bot) 
in branch '3.7':
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
https://github.com/python/cpython/commit/753d0c05b39f21d5987d59d7fe8b5a6d721bc22c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset a67bc10e42fa9a077eb4d9d7bd767c3efddbc366 by Miss Islington (bot) 
in branch '3.8':
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
https://github.com/python/cpython/commit/a67bc10e42fa9a077eb4d9d7bd767c3efddbc366


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38783] the window size is bigger than the specific size when create a window with a fix size in Windows platform

2019-11-12 Thread John Liao


New submission from John Liao :

from tkinter import *

master = Tk()
master.resizable(False, False)
master.geometry("100x100")

master.mainloop()

When using the simple code above to create a fix size window, the actual window 
client area's size is about 126x126 pixels.

Environment:
Windows 10 Home 64 bit edition, python 3.7.4, tkinter verion 8.4

--
components: Tkinter
messages: 356519
nosy: johnliao
priority: normal
severity: normal
status: open
title: the window size is bigger than the specific size when create a window 
with a fix size in Windows platform
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16650
pull_request: https://github.com/python/cpython/pull/17141

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16651
pull_request: https://github.com/python/cpython/pull/17142

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 9c2844927d15b2d3e21b28d62249dead02b5b597 by Terry Jan Reedy 
(Zackery Spytz) in branch 'master':
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
https://github.com/python/cpython/commit/9c2844927d15b2d3e21b28d62249dead02b5b597


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

My intent is that a followup patch should, for font sample and entry widgets, 
set insertofftime=0 on creation if not cursor_blink.  A new 
idleConf.set_cursor_blink(widget), something like the new 
EditorWindow.update_cursor_blink could be used multiple places.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38736] argparse: wrong type from get_default when type is set

2019-11-12 Thread paul j3


Change by paul j3 :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4630] IDLE: add cursor noblink option

2019-11-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Zackary's patch toggles blinking immediately in editor/shell/output windows, 
but does not affect the FontSample and numerous dialog entry lines.  I changed 
the patch to store 'insertofftime' just once, as idleConf.blink_off_time.  This 
is set the first time a shell or editor is created.

This can be used in a future patch to set the option when other cursor widgets 
are created. (Trying to update all visible or hidden entry lines is too much 
work.)  For dialogs created just once, this will be the next time IDLE is 
started.  Having these blink for the remainder of a session, if used again, 
should be a minor nuisance compared to blinking in the shell and editors.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-11-12 Thread Cameron Simpson


Cameron Simpson  added the comment:

Just a remark about the preamble comment: it reads to me as though PEP499 is a 
misfeature. Possibly change:

  We actually want the double import, so remove the alias if it exists.

to:

  This module is unusual, and actually wants the double import.
  Therefore we remove the __spec__.name alias if it exists
  so that a subsequent import by name will make a distinct instance.

Verbose, but at least I know the intent.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38772] shutil.copytree fail to copy some bytes

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

This looks much more like a hardware problem than a Python bug.

In the future, please post text instead of images.

--
nosy: +benjamin.peterson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset e5125f7b3b88d8d4814ed7bddbd4f34d24d763dd by Miss Islington (bot) 
in branch '3.8':
Add Ilya Kulakov to Misc/ACKS. (GH-17130)
https://github.com/python/cpython/commit/e5125f7b3b88d8d4814ed7bddbd4f34d24d763dd


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29302] add contextlib.AsyncExitStack

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset e5125f7b3b88d8d4814ed7bddbd4f34d24d763dd by Miss Islington (bot) 
in branch '3.8':
Add Ilya Kulakov to Misc/ACKS. (GH-17130)
https://github.com/python/cpython/commit/e5125f7b3b88d8d4814ed7bddbd4f34d24d763dd


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16648
pull_request: https://github.com/python/cpython/pull/17138

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset d6d6e2aa0249bb661541705335ddbb97a53d64c8 by Benjamin Peterson 
(Ilya Kulakov) in branch 'master':
Add Ilya Kulakov to Misc/ACKS. (GH-17130)
https://github.com/python/cpython/commit/d6d6e2aa0249bb661541705335ddbb97a53d64c8


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29302] add contextlib.AsyncExitStack

2019-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16649
pull_request: https://github.com/python/cpython/pull/17138

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29302] add contextlib.AsyncExitStack

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset d6d6e2aa0249bb661541705335ddbb97a53d64c8 by Benjamin Peterson 
(Ilya Kulakov) in branch 'master':
Add Ilya Kulakov to Misc/ACKS. (GH-17130)
https://github.com/python/cpython/commit/d6d6e2aa0249bb661541705335ddbb97a53d64c8


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-11-12 Thread Cameron Simpson


Cameron Simpson  added the comment:

I want to start with an apology. I have become a little swamped by work and 
didn't let anyone know I've made little time for this since March.

To my naive eye Nick's snippet looks like it would work for pdb; I became a 
little stalled there trying to understand how pdb managed the main module.

I totally lack the expertise to address pickle; I've never used it and the long 
history of feature updates sugests to me that I cannot get a deep enough 
understanding in a meaningful time.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 9788f97bf69230ec6b38a483c90e88828eba9a1b by Benjamin Peterson in 
branch '3.8':
[3.8] closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode 
files. (GH-17136)
https://github.com/python/cpython/commit/9788f97bf69230ec6b38a483c90e88828eba9a1b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38738] Fix formatting of True and False

2019-11-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Serhiy, thank you for carrying this through, including the backports.

Ready to close?

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset b8b3e4377ec38c7d64570afabbd0923a51f0666c by Benjamin Peterson in 
branch '3.7':
[3.7] closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode 
files. (GH-17137)
https://github.com/python/cpython/commit/b8b3e4377ec38c7d64570afabbd0923a51f0666c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset 0a8e7fde064c8fb6eb8e78752d4bcdab56643065 by Miss Islington (bot) 
in branch '3.8':
bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)
https://github.com/python/cpython/commit/0a8e7fde064c8fb6eb8e78752d4bcdab56643065


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38764] Deterministic globbing.

2019-11-12 Thread Guido van Rossum


Guido van Rossum  added the comment:

Let's not do this, for all the reasons brought up.

--
nosy: +gvanrossum
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2019-11-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +16647
pull_request: https://github.com/python/cpython/pull/17137

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2019-11-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +16646
pull_request: https://github.com/python/cpython/pull/17136

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 74fa9f723f700a342e582b5ad4b51a2c4801cd1c by Benjamin Peterson in 
branch 'master':
closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. 
(GH-17112)
https://github.com/python/cpython/commit/74fa9f723f700a342e582b5ad4b51a2c4801cd1c


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-12 Thread Steve Dower


Steve Dower  added the comment:

Thanks for the PR!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16645
pull_request: https://github.com/python/cpython/pull/17135

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38782] Convert importlib.abc to use typing.Protocol

2019-11-12 Thread Brett Cannon


New submission from Brett Cannon :

Now that typing.Protocol exists we should convert the ABCs in importlib over to 
protocols as the import system functions off of structural typing and not 
nominal typing.

--
components: Library (Lib)
messages: 356501
nosy: brett.cannon
priority: low
severity: normal
status: open
title: Convert importlib.abc to use typing.Protocol
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-12 Thread Steve Dower


Steve Dower  added the comment:


New changeset d593881505c1f4acfd17f41312b27cc898451816 by Steve Dower (jsnklln) 
in branch 'master':
bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)
https://github.com/python/cpython/commit/d593881505c1f4acfd17f41312b27cc898451816


--
nosy: +steve.dower

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-11-12 Thread Nick Coghlan


Nick Coghlan  added the comment:

[Belatedly updating this issue with the current status as of March]

Cameron's implementation generally looks good, but there are couple of 
compatibility/migration questions that we need to consider, as spelled out in 
the PEP update that added me as BDFL-Delegate: 
https://github.com/python/peps/pull/946/files

* We need a generic porting guide entry to handle projects that turn out to 
have been relying on their name *not* being bound in sys.modules. For example, 
adding this preamble:

if __name__ == "__main__":
# To prevent inadvertent double imports, the -m
# switch in Python 3.9+ defaults to aliasing __main__
# under the executed module's import name. We actually
# want the double import, so remove the alias if it exists
import sys
_main_module = sys.modules.get(__name__)
_spec_module = sys.modules.get(__spec__.name)
if _main_module is _spec_module:
sys.modules.pop(__spec__.name)

We'd test the above snippet by adding it to the `pdb` module (and reverting the 
other compatibility changes to that module)

* We need to understand the implications for pickle compatibility, and provide 
a porting guide snippet, similar to the one above for explicitly requesting the 
double-import behaviour. For example:

if __name__ == "__main__":
# To prevent inadvertent double imports, the -m
# switch in Python 3.9+ defaults to aliasing __main__
# under the executed module's import name. We need
# pickle to use the real module name for objects from
# __main__ though, so we set the import name here
_running_as_main = True
__name__ = __spec__.name

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37095] [Feature Request]: Add zstd support in tarfile

2019-11-12 Thread Jerrod Frost


Jerrod Frost  added the comment:

Curious about this as well.

--
nosy: +Jerrod Frost

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38692] add a pidfd child process watcher

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

It will be fixed, though, as soon as the user upgrades systemd.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

I started a thread on python-dev about this issue:
"Pass the Python thread state to internal C functions"
https://mail.python.org/archives/list/python-...@python.org/thread/PQBGECVGVYFTVDLBYURLCXA3T7IPEHHO/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38644] Pass explicitly tstate to function calls

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

I started a thread on python-dev about this issue:
"Pass the Python thread state to internal C functions"
https://mail.python.org/archives/list/python-...@python.org/thread/PQBGECVGVYFTVDLBYURLCXA3T7IPEHHO/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38692] add a pidfd child process watcher

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

> Why is that sandbox configuration important enough to handle? It won't be 
> tested by our CI and no one will know whether they can ever remove the EPERM 
> skipping case.

It's just convenient for users who use/test Python in a Linux sandbox.

The fact is that 2 days after you merged the new test, a first user reported a 
failure. I expect more issues if we don't simply fix the test :-) Sandboxes on 
Linux are more and more common.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38692] add a pidfd child process watcher

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Sure, that change on it's own looks small and harmless. My point is that it's a 
slippery slope. Why is that sandbox configuration important enough to handle? 
It won't be tested by our CI and no one will know whether they can ever remove 
the EPERM skipping case.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38692] add a pidfd child process watcher

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

> We should not claim to support running our tests in weird syscall sandboxes. 
> There's an infinite number of possible sandboxing configurations, and we 
> can't fix them all.

There is no request to support an "an infinite number of possible sandboxing 
configurations". Only to skip the test if the syscall fails with EPERM. That 
sounds reasonable to me.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17013] Allow waiting on a mock

2019-11-12 Thread Ilya Kulakov


Change by Ilya Kulakov :


--
pull_requests: +16643
pull_request: https://github.com/python/cpython/pull/17133

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38731] bad input crashes py_compile library

2019-11-12 Thread Gregory Shevchenko


Change by Gregory Shevchenko :


--
keywords: +patch
pull_requests: +16644
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17134

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38781] Clear buffer in MemoryHandler flush

2019-11-12 Thread Daniel Andersson


Change by Daniel Andersson :


--
keywords: +patch
pull_requests: +16642
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17132

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38692] add a pidfd child process watcher

2019-11-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

We should not claim to support running our tests in weird syscall sandboxes. 
There's an infinite number of possible sandboxing configurations, and we can't 
fix them all.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16142] ArgumentParser inconsistent with parse_known_args

2019-11-12 Thread Lewis Gaul


Change by Lewis Gaul :


--
nosy: +aeros

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

As you noted /dev/log doesn't exist on macOS (the correct path is 
/var/run/syslog).

I guess the change that would be most in spirit of the comment is to set 
self.socket to None when the socket cannot be opened and test for that before 
closing the socket.  Likewise, emit() can test if self.socket is None and then 
attempt to open the socket (and not write to the log when the socket still is 
None)

This makes errors pass silently, but does match the spirit of the POSIX API 
(where the syslog function does not return an error).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38781] Clear buffer in MemoryHandler flush

2019-11-12 Thread Daniel Andersson


New submission from Daniel Andersson :

The `logging.handlers.MemoryHandler` has a method `flush` which clears the 
buffer by assigning an empty list literal:

self.buffer = []

This forces the buffer to be a list instance.
My suggestion is to clear the buffer like this instead:

self.buffer.clear()

In this way it would be possible to implement a custom buffer or use the 
`collections.deque` when subclassing `MemoryHandler`. At the moment you must 
copy-past the `flush` method and modify it accordingly in the subclass:

```
def flush(self):
# (Docstring skipped)
self.acquire()
try:
if self.target:
for record in self.buffer:
self.target.handle(record)
self.buffer = []  # <-- change to `self.buffer.clear()`
finally:
self.release()
```

Example where this change is useful
===
This example creates a DequeMemoryHandler which uses the `collections.deque` as 
a buffer. Only the latest `capacity` number of records will stored in the 
buffer. The buffer is then flushed if and only if a record has a level greater 
or equal to `logging.ERROR`.

```
import collections
import logging
from logging.handlers import MemoryHandler


class DequeMemoryHandler(MemoryHandler):

def __init__(self, capacity, *args, **kwargs):
super().__init__(capacity, *args, **kwargs)
self.buffer = collections.deque(maxlen=capacity)

def shouldFlush(self, record):
return record.levelno >= self.flushLevel


handler = DequeMemoryHandler(capacity=5, target=logging.StreamHandler())
logging.basicConfig(level=logging.INFO, handlers=[handler])

for i in range(1, 21):
logging.info('Spam %d', i)
if i % 10 == 0:
logging.error(f'---> Eggs {i}')
```


Desired output (with the change):
-
Spam 7
Spam 8
Spam 9
Spam 10
---> Eggs 10
Spam 17
Spam 18
Spam 19
Spam 20
---> Eggs 20


Actual output (without the change):
---
Spam 7
Spam 8
Spam 9
Spam 10
---> Eggs 10
Spam 11
Spam 12
Spam 13
Spam 14
Spam 15
Spam 16
Spam 17
Spam 18
Spam 19
Spam 20
---> Eggs 20

--
components: Library (Lib)
messages: 356489
nosy: penlect, vinay.sajip
priority: normal
severity: normal
status: open
title: Clear buffer in MemoryHandler flush
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38692] add a pidfd child process watcher

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

> It seems like systemd-nspawn is just breaking everything: 
> https://sourceware.org/ml/libc-alpha/2019-11/msg00277.html

Well, we can try to argue to not block syscalls, but I'm not sure that we can 
win such battle :-) For os.urandom(), I chose to handle EPERM as ENOSYS in 
bpo-27955. Extract of Python/bootstrap_hash.c:

/* ENOSYS: the syscall is not supported by the kernel.
   EPERM: the syscall is blocked by a security policy (ex: SECCOMP)
   or something else. */
if (errno == ENOSYS || errno == EPERM) {
getrandom_works = 0;
return 0;
}

We can just skip the test if the syscall fails with EPERM.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

> FYI: this affects tornado_http and django_template as well.

Please report pyperformance issues at:
https://github.com/python/pyperformance/issues

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37855] Compiling Python 3.7.4 with Intel compilers 2019

2019-11-12 Thread STINNER Victor


Change by STINNER Victor :


--
resolution: fixed -> duplicate
superseder:  -> Error build Python with Intel compiler:  doesn't 
provide atomic_uintptr_t

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37855] Compiling Python 3.7.4 with Intel compilers 2019

2019-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

This issue looks like a variant of bpo-37415 which has been fixed in the 3.7 
branch by:

New changeset b102e4f05278c1b06130885eba961bd0193733b4 by Miss Skeleton (bot) 
in branch '3.7':
bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)
https://github.com/python/cpython/commit/b102e4f05278c1b06130885eba961bd0193733b4

You can try the 3.7 branch to get the fix, or apply manually the fix.

Note: The icc compiler is not officially supported.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38644] Pass explicitly tstate to function calls

2019-11-12 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +16641
pull_request: https://github.com/python/cpython/pull/17131

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread Brett Cannon


Brett Cannon  added the comment:

Adding Lisa to potentially add the PR from Ilya.

--
assignee:  -> lisroach

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I could imagine extending the shutdown code to catch the reported error 
(https://github.com/python/cpython/blob/138ccbb02216ca086047c3139857fb44f3dab1f9/Lib/logging/__init__.py#L2130-L2135),
 but that wouldn't address the error in emit.

Similarly, the SysLogHandler could override shutdown to bypass the error if no 
socket attribute is present, but that again wouldn't address the emit case.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-12 Thread Brett Cannon


Brett Cannon  added the comment:

I would like to bring this issue back on topic as this about how to expose PEP 
523 support in Python 3.8, not whether Fabio should be using a different 
approach when he has been something sanctioned in an accepted PEP and was 
previously doable that was (accidentally) taken away from him.

If people want to do a separate PEP to roll back PEP 523 that's fine, but until 
that occurs I think we should move forward with the fact that PEP 523 is active.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38773] Fatal Python error: Aborted

2019-11-12 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

In the downstream issue, it's also reported that crashes occur in emit as well, 
suggesting that the comment is additionally wrong on that front.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

The issue probably stems from 
https://github.com/python/cpython/blob/138ccbb02216ca086047c3139857fb44f3dab1f9/Lib/logging/handlers.py#L828-L835.
 I doubt the logic of that comment, as in the non-unix-socket case, the error 
is raised if a connection cannot be established. Fixing the issue by 
re-considering that comment would have backward-incompatible implications and 
would violate the intention of the comment's author.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

For background, this issue originated from 
https://github.com/pytest-dev/pytest-services/issues/20.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread Ilya Kulakov


Change by Ilya Kulakov :


--
pull_requests: +16639
pull_request: https://github.com/python/cpython/pull/17130

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29302] add contextlib.AsyncExitStack

2019-11-12 Thread Ilya Kulakov


Change by Ilya Kulakov :


--
pull_requests: +16640
pull_request: https://github.com/python/cpython/pull/17130

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38741] Definition of multiple ']' in header configparser

2019-11-12 Thread Jason Killen


Change by Jason Killen :


--
keywords: +patch
pull_requests: +16638
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17129

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I guess that makes sense, as `/dev/log` doesn't exist on macOS. So maybe this 
usage is invalid. But still I'd expect the handler to error early or at least 
not error on shutdown.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Ned Deily


Change by Ned Deily :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
components: +Library (Lib), macOS
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I only observe this issue on macOS. On Linux, the error doesn't occur.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16885] SQLite3 iterdump ordering

2019-11-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 42b619ac9aa7f889dcd8eeb14d813f17468454d9 by Serhiy Storchaka in 
branch '3.7':
[3.7] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17128)
https://github.com/python/cpython/commit/42b619ac9aa7f889dcd8eeb14d813f17468454d9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


New submission from Jason R. Coombs :

On Python 3.8.0:

$ python -c "import logging.handlers, socket; handler = 
logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_LOCAL7,
 address='/dev/log', socktype=socket.SOCK_RAW)" 

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py",
 line 2112, in shutdown
h.close()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/handlers.py",
 line 892, in close
self.socket.close()
AttributeError: 'SysLogHandler' object has no attribute 'socket'

Probably that shouldn't happen.

--
messages: 356475
nosy: jaraco
priority: normal
severity: normal
status: open
title: SysLogHandler crash atexit

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38780] SysLogHandler crash atexit

2019-11-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

Same error on Python 2.7 and 3.7

--
versions: +Python 2.7, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38731] bad input crashes py_compile library

2019-11-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +easy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38777] plist handling of real data type

2019-11-12 Thread David Nicolson


David Nicolson  added the comment:

It looks like it's just inconsistency in plutil that is causing the confusion.

/usr/libexec/PlistBuddy -c Print test.plist
Dict {
FloatExample2 = 0.10
FloatExample3 = 100.00
FloatExample = 0.00
}

cat test.plist | plutil -convert xml1 -o - -- -

http://www.apple.com/DTDs/PropertyList-1.0.dtd;>


FloatExample
0.0
FloatExample2
0.10001
FloatExample3
100



--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16637
pull_request: https://github.com/python/cpython/pull/17128

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset d360346640e19231032b072216195484fa2450b4 by Serhiy Storchaka in 
branch '3.8':
[3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)
https://github.com/python/cpython/commit/d360346640e19231032b072216195484fa2450b4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad

Torbjørn Wikestad  added the comment:

I could not reproduce the error when I open the script in Spyder anew.

--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad

Torbjørn Wikestad  added the comment:

The script has been tried and found to work as intended in the Idle IDE, which 
runs on a standard win32 python shell. So the error is linked only with IPython 
or Spyder.

--
Added file: 
https://bugs.python.org/file48711/2019-11-12_try-clause,numpy,random,copy,time,ipython,spyder,python36.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-11-12 Thread Phil Connell


Change by Phil Connell :


--
nosy: +pconnell

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-12 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +16635
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17127

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-11-12 Thread Benjamin Edwards


Benjamin Edwards  added the comment:

Have opened a PR, let me know if there is anything that needs fixing

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-11-12 Thread Benjamin Edwards


Change by Benjamin Edwards :


--
keywords: +patch
pull_requests: +16634
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17126

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34716] MagicMock.__divmod__ should return a pair

2019-11-12 Thread Jackson Riley


Jackson Riley  added the comment:

Hi Serhiy,

Option 3 sounds most sensible to me.
I'd be happy to pick up this issue, please do let me know.

--
nosy: +jacksonriley

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16633
pull_request: https://github.com/python/cpython/pull/17125

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38777] plist handling of real data type

2019-11-12 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I don't think this is a bug. The value's in the plutil output are correct, and 
marked up with the correct type in both cases. 

The difference between 0.1 and 0.10001 is the usual problem with 
floating point representation (see the python.org FAQ).  Plutil uses a 
different algorithm for printing float's than Python, but both evaluate to the 
same binary representation for the float value.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15243] Misleading documentation for __prepare__

2019-11-12 Thread Alex


Change by Alex :


--
nosy: +alclarks

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17306] Improve the way abstract base classes are shown in help()

2019-11-12 Thread Jackson Riley


Jackson Riley  added the comment:

Hi Raymond - here's a first attempt at adding class-level docstrings, based off 
the format of Sequence.__doc__. Apologies if some things are not well worded 
etc.

It looks like all of the non-magic methods have docstrings already but if you 
think the magic methods need docstrings then I will add them.

--
keywords: +patch
Added file: https://bugs.python.org/file48710/abc_class_level.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15243] Misleading documentation for __prepare__

2019-11-12 Thread Alex


Change by Alex :


--
pull_requests: +16632
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17124

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38738] Fix formatting of True and False

2019-11-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 138ccbb02216ca086047c3139857fb44f3dab1f9 by Serhiy Storchaka in 
branch 'master':
bpo-38738: Fix formatting of True and False. (GH-17083)
https://github.com/python/cpython/commit/138ccbb02216ca086047c3139857fb44f3dab1f9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H


Michael H  added the comment:

Many thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I considered this. There is a limited number of functions that can produce 
RawFD (os.open(), os.dup(), etc), and this is a single source of file 
descriptors in an isolated program. File descriptors can be inherited by child 
processes. But there are other methods of interprocess communication, and 
depending of the serialization method the type of the file descriptor can be 
lost. So there is a possibility to break existing programs. The transition can 
be made smooth, with corresponding deprecation period if we decide that the 
final befit is larger than the transition cost.

In any case this is a large change. It should be discussed on the Python-ideas 
or Python-Dev mailing lists.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Zachary Ware


Zachary Ware  added the comment:

You're right, it is correct as is; the regular output of the REPL is 
essentially `print(repr(_))`.

Please do feel free to report any issues you find, though you may want to send 
a message to tu...@python.org to check anything you're not sure about.

Welcome to Python!

--
nosy: +zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H


Michael H  added the comment:

Sorry, its my bad, it is correct as it is, I hadn't read further on about the 
print statement being needed. As I am working through the tutorial in pycharm, 
I am had already used print statement.

Thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-12 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +16629
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17123

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34651] Disallow fork in a subinterpreter.

2019-11-12 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +16630
pull_request: https://github.com/python/cpython/pull/17123

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H


New submission from Michael H :

https://docs.python.org/3/tutorial/introduction.html#strings

In the strings part of the basic tutorial, there is an output error regarding 
the escaping of the single quote

>>> '"Isn\'t," they said.'
'"Isn\'t," they said.' # I think the output should be correct

Thanks

--
assignee: docs@python
components: Documentation
messages: 356461
nosy: Michael H2, docs@python
priority: normal
severity: normal
status: open
title: Simple typo in strings module documentation
type: compile error
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Zufu Liu


Zufu Liu  added the comment:

I'm fine with this been closed.
Maybe it's better to have a RawFd type like Julia:

julia> RawFD
RawFD

julia> typeof(RawFD)
DataType

julia> RawFD(0)
RawFD(0x)

julia> RawFD(0)==0
false

Rust has RawFd as c_int.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-12 Thread Phil Connell


New submission from Phil Connell :

Add a comment to the os.fork docs to note that forking from a subinterpreter is 
no longer allowed (see issue34651)

--
assignee: docs@python
components: Documentation
messages: 356459
nosy: docs@python, eric.snow, pconnell
priority: normal
severity: normal
status: open
title: Document that os.fork is not allowed in subinterpreters
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38731] bad input crashes py_compile library

2019-11-12 Thread Григорий Шевченко

Change by Григорий Шевченко :


--
nosy: +Григорий Шевченко

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Please try your script in the vanilla Python interpreter. If it behaves 
correctly, you should report this issue to Spyder and/or IPython.

--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35856] bundled pip syntaxwarning

2019-11-12 Thread Pradyun Gedam


Pradyun Gedam  added the comment:

Closing this sounds reasonable to me!

There are a couple of pending PRs for updating the pip, in the current
versions of CPython. That's being tracked separately so likely don't need
this to stay open anymore.

On Tue, 12 Nov 2019 at 6:20 PM, Inada Naoki  wrote:

>
> Change by Inada Naoki :
>
>
> --
> resolution:  -> third party
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

Thank you for the fix!

--
nosy: +petr.viktorin
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset 29fd6a77d509cffacc5691ebd9dab53455ad959e by Miss Islington (bot) 
in branch '3.8':
[3.8] bpo-38421: Update email.utils documentation (GH-16678) (GH-17122)
https://github.com/python/cpython/commit/29fd6a77d509cffacc5691ebd9dab53455ad959e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-11-12 Thread miss-islington


miss-islington  added the comment:


New changeset eadddad6b093bca74601b1ea91ab96119bc543d8 by Miss Islington (bot) 
in branch '3.7':
[3.7] bpo-38421: Update email.utils documentation (GH-16678) (GH-17121)
https://github.com/python/cpython/commit/eadddad6b093bca74601b1ea91ab96119bc543d8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >