[issue35510] pickling derived dataclasses

2018-12-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You need to set the __module__ attribute.

B.__module__ = __name__

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35511] Some methods of profile.Profile are not supported but the docs doesn't mention it.

2018-12-15 Thread bombs


bombs  added the comment:

To elaborate, the docs simply says "Both the profile and cProfile modules 
provide the following functions... enable(), disable(), create_stats() ..."

--

___
Python tracker 

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



[issue35511] Some methods of profile.Profile are not supported but the docs doesn't mention it.

2018-12-15 Thread bombs


Change by bombs :


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

___
Python tracker 

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



[issue35511] Some methods of profile.Profile are not supported but the docs doesn't mention it.

2018-12-15 Thread bombs


New submission from bombs :

Currently enable, disable methods are only supported by Profile class of 
cProfile module, not profile module. But the docs doesn't give this 
information. I think we should, at least mention it, in the docs.

--
assignee: docs@python
components: Documentation
messages: 331917
nosy: asvetlov, bluewhale8202, docs@python
priority: normal
severity: normal
status: open
title: Some methods of profile.Profile are not supported but the docs doesn't 
mention it.
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



[issue35238] Alleviate memory reservation of fork_exec in subprocess.Popen via forkserver

2018-12-15 Thread 4-launchpad-kalvdans-no-ip-org


Change by 4-launchpad-kalvdans-no-ip-org :


--
nosy: +4-launchpad-kalvdans-no-ip-org

___
Python tracker 

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



[issue35500] Align expected and actual calls on mock.assert_called_with error message

2018-12-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks Mario for the feedback. The alignment was just a personal preference of 
mine. I agree with you on adding "Expected call not found" next to 
AssertionError. I will wait if others have more feedback on this before 
proceeding on the PR.

--

___
Python tracker 

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



[issue35510] pickling derived dataclasses

2018-12-15 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eric.smith

___
Python tracker 

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



[issue18799] Resurrect and fix test_404 in Lib/test/test_xmlrpc.py

2018-12-15 Thread Vajrasky Kok


Vajrasky Kok  added the comment:

Serhiy, okay, I'll create a pull request soon (in 2-3 days).

--

___
Python tracker 

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



[issue35510] pickling derived dataclasses

2018-12-15 Thread Satrajit S Ghosh


New submission from Satrajit S Ghosh :

I'm not sure if this is intended behavior or an error. I'm creating dataclasses 
dynamically and trying to pickle those classes or objects containing instances 
of those classes. This was resulting in an error, so I trimmed it down to this 
example.

```
import pickle as pk
import dataclasses as dc

@dc.dataclass
class A:
 pass
pk.dumps(A)  # --> this is fine

B = dc.make_dataclass('B', [], bases=(A,))
pk.dumps(B)  # --> results in an error

# PicklingError: Can't pickle : attribute lookup B on types 
failed
```

is this expected behavior? and if so, is there a way to create a dynamic 
dataclass that pickles?

--
components: Library (Lib)
messages: 331914
nosy: satra
priority: normal
severity: normal
status: open
title: pickling derived dataclasses
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



[issue35483] tarfile.extractall on existing symlink in Ubuntu overwrites target file, not symlink, unlinke GNU tar

2018-12-15 Thread Martin Panter


Martin Panter  added the comment:

The first aspect, incorrectly assuming the OS does not support symlinks, is 
described at . Lars proposed a 
fix  which will let the OS 
exception escape to the caller. However I think that patch needs more work.

The second aspect is replacing existing symlinks and other directory entries. 
This was implemented in 2.7 in Issue 10761 and Issue 12088 (only when replacing 
non-subdirectories with symbolic links and hard links), and is discussed more 
generally in Issue 19974.

I suggest to close this in favour of resolving Issue 23228 and Issue 19974.

--
nosy: +lars.gustaebel, martin.panter
superseder:  -> The tarfile module crashes when tarfile contains a symlink and 
unpack directory contain it too

___
Python tracker 

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



[issue19974] tarfile doesn't overwrite symlink by directory

2018-12-15 Thread Martin Panter

Martin Panter  added the comment:

I’m not sure if this should be considered a bug fix, but if it goes into 2.7 it 
would overlap with Issue 10761 and Issue 12088. In 2.7 existing directory 
entries (including broken symlinks, but not including subdirectories) may be 
replaced by symbolic and hard links.

--

___
Python tracker 

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



[issue23228] The tarfile module crashes when tarfile contains a symlink and unpack directory contain it too

2018-12-15 Thread Martin Panter

Martin Panter  added the comment:

The problem with WindowsError should only exist in 3.4+. 2.7 doesn’t support 
creating symlinks on Windows.

Michael’s fix is the same as already done in 2.7 for Issue 10761 and (part of) 
Issue 12088. However I’m not sure that is the best approach for a bug fix. Also 
see Issue 19974 proposing to replace existing directory entries in all cases, 
including replacing empty subdirectories, and not just when extracting symlinks.

I suspect Michael has only fixed the recursive loop on Unix. What happens if an 
exception is raised because symlinks are not supported (e.g. Windows)? Possible 
test case:

data = BytesIO()
writer = tarfile.TarFile(fileobj=data, mode='w')
selflink = tarfile.TarInfo('self')
selflink.size = 0
selflink.type = tarfile.SYMTYPE
selflink.linkname = selflink.name
writer.addfile(selflink)
writer.close()
data.seek(0)
tarfile.TarFile(fileobj=data).extractall()

--
nosy: +martin.panter

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2018-12-15 Thread Eryk Sun


Change by Eryk Sun :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35496] left-to-right violation in match order

2018-12-15 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

> See attached script, which is self-explanatory.

I'm glad one of us thinks so, because I find it clear as mud.

I spent *way* longer on this than I should have, but I simplified your sample 
code to the best of my ability. (See attached.) As far as I can tell, your code 
and mine does roughly the same thing, but please check that you agree.

I agree that with the IPV6 portion of the regex removed, it matches on 
"208.123.4.22", but with the IPV6 portion included, it matches on 
":::208.123.4.22". But I'm not sure that's a bug. I think it is working as 
designed. For example:


py> import re
py> text = 'green pepper'
py> re.search('pepper|green pepper', text).group(0)
'green pepper'


seems to be analogous to your example, but simpler. Do you agree? If not, it 
would also help a lot if you could find a simpler regex that demonstrates the 
issue. See http://www.sscce.org/

In your case, I believe that the rightmost alternative matches from position 1 
of the text, while the leftmost alternative doesn't match until position 8. So 
starting from position 0, the IPV6 check matches first, and so wins.

It is possible you were expecting that the IPV4 check would be tested against 
position 0, then position 1, then position 2, then ... and so on until the end 
of the string, and only then the IPV6 check tested against position 0, then 1 
etc.

--
nosy: +steven.daprano
Added file: https://bugs.python.org/file48000/logcheck3.py

___
Python tracker 

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



[issue35500] Align expected and actual calls on mock.assert_called_with error message

2018-12-15 Thread Mario Corchero


Mario Corchero  added the comment:

Makes sense!

I'd not align them though but that might be my view as I generally don't like 
aligning text like that.

Also if you feel that the exceptions read "weird" with the first sentence is 
empty, an option might be to say the calls don't match, to make it symmetric 
with the assert_calls message. Example:


Traceback (most recent call last):
  File "/tmp/bar.py", line 5, in 
m.assert_called_with(2, 3)
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/unittest/mock.py", 
line 827, in assert_called_with
raise AssertionError(_error_message()) from cause
AssertionError: Expected call not found.
Expected call: mock(2, 3)
Actual call: mock(1, 2)

This way all error reports give you the issue in the first line of the message 
and further details in the next lines.

--

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2018-12-15 Thread Eryk Sun


Eryk Sun  added the comment:

It's also inconsistent. ismount() is true for a bind mount to the parent 
directory (e.g. dir/mount -> dir).

--

___
Python tracker 

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



[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Good catch Zackery! Thank you for your PR.

--

___
Python tracker 

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



[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

> Why is it using -1 instead of NULL as the "not-set-indicator"?

Because the field of the C structure has integer type, and it can not be the 
NULL pointer.

--

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2018-12-15 Thread Eryk Sun


Change by Eryk Sun :


--
nosy: +eryksun
stage:  -> needs patch
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



[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-15 Thread Zackery Spytz


Zackery Spytz  added the comment:

PR 11175 fixes some other related SystemErrors (and segfaults).

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-15 Thread Zackery Spytz


Change by Zackery Spytz :


--
pull_requests: +10416

___
Python tracker 

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



[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-15 Thread Tal Einat


Tal Einat  added the comment:

Terry, I'm not sure I follow your thinking, but it feels like over-thinking.  
This is a simple bug with a simple fix.

Barring the current bug (which the attached PR fixes), the current logic counts 
lines, taking soft wrapping into account.  This was chosen to make things as 
simple as possible for the users, in terms of what's displayed on squeezed 
buttons and in terms of configuring auto-squeezing.  The fix is simple and with 
it Squeezer works quickly and consistently.

If you'd like to change the behavior, let's discuss that elsewhere.

--

___
Python tracker 

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



[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-12-15 Thread Yury Selivanov


Yury Selivanov  added the comment:

Please don't merge the PR. I'll need some time to think about this before 
giving it a green light.

--

___
Python tracker 

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



[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
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



[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Cezary Wagner


Cezary Wagner  added the comment:

It just tested it today and I found in parallel same solution as you suggested. 
Sometimes it happen even your skilled programmer - at least one time in year :) 

I was just blind. Let's close it since it is invalid report.

I just skipped new line at end of 'uci' should be 'uci\n'. Now I am unblocked 
to test async pipes more and write very nice program. It looks very promising.

Thank you for attention. I am sorry for bad report.

--

___
Python tracker 

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



[issue34171] Lib/trace.cover not removed by the clean target

2018-12-15 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
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



[issue35450] venv module doesn't create a copy of python binary by default

2018-12-15 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

It looks like the documentation has regenerated.  Thanks!

--
nosy: +cheryl.sabella
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



[issue35509] Unable to inherit from logging.Formatter

2018-12-15 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

The following script runs fine on Python 3.7.1 but not on master (f5107dfd42).

import logging

class Foo(logging.Formatter):
def __init__(self):
super().__init__(self)

Foo()

The output is:

Traceback (most recent call last):
  File "t.py", line 9, in 
Foo()
  File "t.py", line 6, in __init__
super().__init__(self)
  File "/usr/lib/python3.8/logging/__init__.py", line 589, in __init__
self._style.validate()
  File "/usr/lib/python3.8/logging/__init__.py", line 441, in validate
if not self.validation_pattern.search(self._fmt):
TypeError: expected string or bytes-like object

Most likely there's something wrong in the newly-added validation step 
(issue34844).

/cc the primary reviewer of the aforementioned patch.

--
components: Library (Lib)
messages: 331900
nosy: vinay.sajip, yan12125
priority: normal
severity: normal
status: open
title: Unable to inherit from logging.Formatter
type: behavior
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



[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I think links from "as" are not needed. They are just refer to the beginning of 
the same section. In all occurrences of "as" the corresponding "with", 
"import", or "try"/"except" keywords are mentioned too, and links from them 
refer to the correct section. I think it is better to remove links from "as" at 
all.

There are same issues with the "else" keyword which is used in the "if", 
"while", "for" and "try" statements and in the "if" expression. There are same 
issues with the "if" and "for" keyword in the context of comprehensions, with 
the "if" keyword in the context of the "if" expression, and with the "in" 
keyword in the context of "for".

The proposed PR removes redundant and incorrect links from keywords. It removes 
also redundant links if the same keyword is mentioned several times in the 
single paragraph (in same cases there were up to 5 links to the same target). 
It fixes also some other minor bugs.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Sorry, the bug tracker is for working on Python bugs, not on bugs of your 
programs written with Python.

The behavior of subprocesses running is tested intensively, scenarios like you 
described works well.

I don't know sockfish protocol but highly likely the problem is in 
communicating with the program.
For example, are you sure that sending `uci` without endline is enough to start 
processing the command?

Tools like ProcMon 
https://docs.microsoft.com/en-us/sysinternals/downloads/procmon or WinDbg can 
help with understanding what data is actually received by a process and what is 
sent back.

--

___
Python tracker 

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



[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10415

___
Python tracker 

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



[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Cezary Wagner


Cezary Wagner  added the comment:

Another code try - this time I am using task:

import asyncio

import sys


async def process_line_reader(process, on_line=None, on_eof=None):
while not process.stdout.at_eof():
# BUG? after first line it becomes dead
line = await process.stdout.readline()
if on_line is not None:
on_line(line.decode())
if on_eof is not None:
on_eof()
print('eof')


async def run_stockfish():
STOCKFISH_PATH = r'C:\root\chess\stockfish\stockfish 
10\stockfish_10_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())

task = asyncio.create_task(process_line_reader(
process=stockfish, on_line=lambda line: print(f'{line}')
))

# await task

await stockfish.wait()


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

asyncio.run(run_stockfish(), debug=True)
print('done')


All is blocked after first line (no print of eof or done):
C:\root\Python37-64\python.exe "C:/Users/Cezary 
Wagner/PycharmProjects/cw_chess_uci/sandbox/async_proxy/s02_async_stockfish.py"
Stockfish 10 64 BMI2 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

--

___
Python tracker 

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



[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Cezary Wagner


Cezary Wagner  added the comment:

See new code example (little changed):

It block after first stdout:

import asyncio

import sys


async def run_stockfish():
STOCKFISH_PATH = r'C:\root\chess\stockfish\stockfish 
10\stockfish_10_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 not stockfish.stdout.at_eof():
# BUG? - blocks at this line
line = await stockfish.stdout.readline()
print(line.decode())

await stockfish.wait()


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

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

Output:
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/cw_chess_uci/sandbox/async_proxy/s01_async_stockfish.py',
 wdir='C:/Users/Cezary Wagner/PycharmProjects/cw_chess_uci/sandbox/async_proxy')
Stockfish 10 64 BMI2 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott

Valid output is:
C:\Users\Cezary Wagner>"C:\root\chess\stockfish\stockfish 
10\stockfish_10_x64_bmi2.exe"
Stockfish 10 64 BMI2 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
uci
id name Stockfish 10 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 24 min -100 max 100
option name Analysis Contempt type combo default Both var Off var White var 
Black var Both
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 84 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 UCI_AnalyseMode 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 7 min 0 max 7
uciok

--

___
Python tracker 

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



[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Cezary Wagner


Cezary Wagner  added the comment:

Stockfish works like that:
1. Run command line and listen stdout.
2. Send some stdin and listen stdin.
3. stdout is asynchronous and continous (there no single output, line is 
generated every some time).

I want to send some stdin than listen stdout response from Stockfish.

I tested that first execute of it block all:
line = await stockfish.stdout.read()

One line is read and application becomes dead. Should show much more lines but 
it stops in Windows 10.

--
title: Windows asyncio reading continously stdin and stdout Stockfish -> 
Windows 10 asyncio reading continously stdin and stdout Stockfish

___
Python tracker 

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



[issue35508] array.index should take optional start and stop indices like for lists

2018-12-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

No problem. I adding duplicate as resolution linking to issue31956. Feel free 
to add yourself on issue31956 to keep track of it.

Thanks

--
resolution:  -> duplicate
superseder:  -> Add start and stop parameters to the array.index()

___
Python tracker 

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



[issue35508] array.index should take optional start and stop indices like for lists

2018-12-15 Thread Neil Booth


Neil Booth  added the comment:

Sorry for the duplicate; a simple search didn't find it.

--
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



[issue35508] array.index should take optional start and stop indices like for lists

2018-12-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Please see issue31956 that has an open PR and discussion.

--
nosy: +xtreak

___
Python tracker 

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



[issue35508] array.index should take optional start and stop indices like for lists

2018-12-15 Thread Neil Booth


New submission from Neil Booth :

list.index has signature:

   index(value, [start, [stop]])

array.index from the array module should provide the same facility

--
components: Library (Lib)
messages: 331891
nosy: kyuupichan
priority: normal
severity: normal
status: open
title: array.index should take optional start and stop indices like for lists
type: enhancement
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



[issue35488] pathlib Path.match does not behave as described

2018-12-15 Thread anthony shaw


anthony shaw  added the comment:

Yes, this is similar to https://bugs.python.org/issue29249
In that issue, it suggests this feature is not supported, but that is neither 
documented, nor tested.

--
nosy:  -serhiy.storchaka

___
Python tracker 

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