[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-11-17 Thread Steve Dower


Steve Dower  added the comment:

The next releases of 3.7 and 3.8 will include _Py_SetProgramFullPath() 
functions for embedders to set the eventual value of sys.executable before 
calling Py_Initialize(). It's undocumented and not guaranteed stable (and 
indeed, it looks like Victor is already working on another patch that may see 
it removed before it's ever released), but it's in now as a workaround for the 
cases that need it.

--

___
Python tracker 

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



[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-11-17 Thread Steve Dower


Steve Dower  added the comment:


New changeset 177a41a07b7d13c70d068ea0962f07e625ae171e by Steve Dower in branch 
'master':
bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable 
(GH-9860)
https://github.com/python/cpython/commit/177a41a07b7d13c70d068ea0962f07e625ae171e


--

___
Python tracker 

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



[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-11-17 Thread Steve Dower


Steve Dower  added the comment:


New changeset e851049e0e045b5e0f9d5c6b8a64d7f6b8ecc9c7 by Steve Dower in branch 
'3.7':
bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable 
(GH-9861)
https://github.com/python/cpython/commit/e851049e0e045b5e0f9d5c6b8a64d7f6b8ecc9c7


--

___
Python tracker 

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



[issue35270] Cmd.complete does not handle cmd=None

2018-11-17 Thread daniel hahler


Change by daniel hahler :


--
keywords: +patch
pull_requests: +9833
stage:  -> patch review

___
Python tracker 

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



[issue35270] Cmd.complete does not handle cmd=None

2018-11-17 Thread daniel hahler


New submission from daniel hahler :

When `parseline` returns `None` for `cmd` (like pdb++ might cause it when 
changing a cmd "disable" to "!disable"), the following will cause a TypeError:

> compfunc = getattr(self, 'complete_' + cmd)

"None" should be also forwarded to "completedefault", just like cmd="".

--
components: Library (Lib)
messages: 330035
nosy: blueyed
priority: normal
severity: normal
status: open
title: Cmd.complete does not handle cmd=None
type: crash
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



[issue33392] pathlib .glob('*/') returns files as well as directories

2018-11-17 Thread E Kawashima


Change by E Kawashima :


--
pull_requests: +9832

___
Python tracker 

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



[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-17 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed
versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-17 Thread miss-islington


miss-islington  added the comment:


New changeset d1a97b36595726074a83452e5c476806936becba by Miss Islington (bot) 
in branch '3.7':
[3.7] bpo-25438: document what codec PyMemberDef T_STRING decodes the char * as 
(GH-10580) (GH-10586)
https://github.com/python/cpython/commit/d1a97b36595726074a83452e5c476806936becba


--

___
Python tracker 

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



[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-17 Thread miss-islington


miss-islington  added the comment:


New changeset 8945017be4cc9527767bb66673e73e28e4b0b4d3 by Miss Islington (bot) 
in branch '3.6':
[3.6] bpo-25438: document what codec PyMemberDef T_STRING decodes the char * as 
(GH-10580) (GH-10587)
https://github.com/python/cpython/commit/8945017be4cc9527767bb66673e73e28e4b0b4d3


--

___
Python tracker 

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



[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9831

___
Python tracker 

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



[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9830

___
Python tracker 

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



[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-17 Thread miss-islington


miss-islington  added the comment:


New changeset 689d555ec135d4115574addd063c358ac4897cc4 by Miss Islington (bot) 
(Windson yang) in branch 'master':
bpo-25438: document what codec PyMemberDef T_STRING decodes the char * as 
(GH-10580)
https://github.com/python/cpython/commit/689d555ec135d4115574addd063c358ac4897cc4


--
nosy: +miss-islington

___
Python tracker 

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



[issue35269] A possible segfault involving a newly-created coroutine

2018-11-17 Thread Yury Selivanov


Change by Yury Selivanov :


--
nosy: +njs

___
Python tracker 

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



[issue35269] A possible segfault involving a newly-created coroutine

2018-11-17 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +9829
stage:  -> patch review

___
Python tracker 

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



[issue35269] A possible segfault involving a newly-created coroutine

2018-11-17 Thread Zackery Spytz


New submission from Zackery Spytz :

If compute_cr_origin() fails in PyCoro_New(), coro->cr_origin won't be 
initialized. This will cause a crash during the coroutine's deallocation.

I'll create a PR for this issue.

--
components: Interpreter Core, asyncio
messages: 330031
nosy: ZackerySpytz, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: A possible segfault involving a newly-created coroutine
type: crash
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue35267] reproducible deadlock with multiprocessing.Pool

2018-11-17 Thread Ned Deily


Change by Ned Deily :


--
nosy: +pitrou

___
Python tracker 

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



[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2018-11-17 Thread R. David Murray


R. David Murray  added the comment:

No.  3.5 is in security-fix-only mode.

--

___
Python tracker 

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



[issue35268] Windows asyncio reading continously stdin and stdout Stockfish

2018-11-17 Thread Cezary Wagner

Cezary Wagner  added the comment:

It looks like StremReader.read() not work and StremReader.readline() in Windows 
or I am not understand documentation.

https://docs.python.org/3/library/asyncio-stream.html

coroutine read(n=-1)

Read up to n bytes. If n is not provided, or set to -1, read until EOF and 
return all read bytes.

If EOF was received and the internal buffer is empty, return an empty bytes 
object.



coroutine readline()

Read one line, where “line” is a sequence of bytes ending with \n.

If EOF is received and \n was not found, the method returns partially read 
data.

If EOF is received and the internal buffer is empty, return an empty bytes 
object.

--

___
Python tracker 

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



[issue35268] Windows asyncio reading continously stdin and stdout Stockfish

2018-11-17 Thread Cezary Wagner


New submission from Cezary Wagner :

I have some problems with asyncio on Windows - it block where it should go.
Documentation shows that it should work: 
https://docs.python.org/3/library/asyncio-stream.html -> StreamReader should 
return something.

See 1st example:

import asyncio

import sys


async def run_stockfish():
STOCKFISH_PATH = r'C:\root\chess\stockfish\stockfish 
9\stockfish_9_x64_bmi2.exe'

stockfish = await asyncio.subprocess.create_subprocess_exec(
STOCKFISH_PATH,
stdin=asyncio.subprocess.PIPE,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE)

stockfish.stdin.write('uci'.encode())

while True:
# BUG? - blocks at this line - no output
line = await stockfish.stdout.read()
print(line)

await stockfish.wait()


if sys.platform == "win32":
asyncio.set_event_loop_policy(
asyncio.WindowsProactorEventLoopPolicy())

asyncio.run(run_stockfish(), debug=True)

1st output (nothing):
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit 
(AMD64)] on win32
runfile('C:/Users/Cezary 
Wagner/PycharmProjects/stockfish-proxy/sandbox/async_proxy/s01_async_stockfish.py',
 wdir='C:/Users/Cezary 
Wagner/PycharmProjects/stockfish-proxy/sandbox/async_proxy')

2nd example:

import asyncio

import sys


async def run_stockfish():
STOCKFISH_PATH = r'C:\root\chess\stockfish\stockfish 
9\stockfish_9_x64_bmi2.exe'

stockfish = await asyncio.subprocess.create_subprocess_exec(
STOCKFISH_PATH,
stdin=asyncio.subprocess.PIPE,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE)

stockfish.stdin.write('uci'.encode())

while True:
# BUG? - blocks at this line
line = await stockfish.stdout.readline()
print(line)

await stockfish.wait()


if sys.platform == "win32":
asyncio.set_event_loop_policy(
asyncio.WindowsProactorEventLoopPolicy())

asyncio.run(run_stockfish(), debug=True)

2nd output is little better (first line is read):
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit 
(AMD64)] on win32
runfile('C:/Users/Cezary 
Wagner/PycharmProjects/stockfish-proxy/sandbox/async_proxy/s01_async_stockfish.py',
 wdir='C:/Users/Cezary 
Wagner/PycharmProjects/stockfish-proxy/sandbox/async_proxy')
b'Stockfish 9 64 BMI2 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott\r\n'

What should be done in both case (or maybe done):
Stockfish 9 64 BMI2 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
uci
id name Stockfish 9 64 BMI2
id author T. Romstad, M. Costalba, J. Kiiski, G. Linscott

option name Debug Log File type string default
option name Contempt type spin default 20 min -100 max 100
option name Threads type spin default 1 min 1 max 512
option name Hash type spin default 16 min 1 max 131072
option name Clear Hash type button
option name Ponder type check default false
option name MultiPV type spin default 1 min 1 max 500
option name Skill Level type spin default 20 min 0 max 20
option name Move Overhead type spin default 30 min 0 max 5000
option name Minimum Thinking Time type spin default 20 min 0 max 5000
option name Slow Mover type spin default 89 min 10 max 1000
option name nodestime type spin default 0 min 0 max 1
option name UCI_Chess960 type check default false
option name SyzygyPath type string default 
option name SyzygyProbeDepth type spin default 1 min 1 max 100
option name Syzygy50MoveRule type check default true
option name SyzygyProbeLimit type spin default 6 min 0 max 6
uciok

--
components: Windows, asyncio
messages: 330028
nosy: Cezary.Wagner, asvetlov, paul.moore, steve.dower, tim.golden, yselivanov, 
zach.ware
priority: normal
severity: normal
status: open
title: Windows asyncio reading continously stdin and stdout Stockfish
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



[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-11-17 Thread STINNER Victor


STINNER Victor  added the comment:

INADA-san: do you prefer to raise an exception? If yes, can we ensure that
an exception will always be raised? See my 2 examples.

--

___
Python tracker 

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