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

[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

[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

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

[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

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

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

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

[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. ```

[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

[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

[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

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

[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

[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

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

[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

[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

[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

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

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

[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

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

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

[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

[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

[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

[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",

[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

[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

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

[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

[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

[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

[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()

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

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

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

[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