[issue35848] readinto is not a method on io.TextIOBase

2019-01-30 Thread Martin Panter
Martin Panter added the comment: I think it would be more practical to fix the documentation (option 1). Do you have a use case for “TextIOBase.readinto” raising ValueError (something more concrete than someone having expectations)? -- nosy: +martin.panter

[issue35848] readinto is not a method on io.TextIOBase

2019-01-30 Thread Steve Palmer
Steve Palmer added the comment: I don't have a "real" use case. I discovered the issue when I was developing a unittest suite for what it means to be "file-like". I've been codifying the description in the standard library and exercising my tests against the built-in file-likes, such as

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: > It should instead show the lines from the file as it was when the code was > executed. How is Python supposed to do that without making a copy of every module and script it runs just in case it gets modified? (That's not a rhetorical question -- if you

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Steve Pryde
Steve Pryde added the comment: > How is Python supposed to do that without making a copy of every module and > script it runs just in case it gets modified? Aha, I suspected this might be the reason. Feel free to close this issue if there's nothing else to be said here. Python certainly

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: There may be something we can do to improve the error reporting and make it less perplexing: https://mail.python.org/pipermail/python-ideas/2019-January/055041.html -- ___ Python tracker

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Jonathan Fine
Jonathan Fine added the comment: The problem, as I understand it, is a mismatch between the code object being executed and the file on disk referred to by the code object. When a module is reloaded it is first recompiled, if the .py file is newer than the .pyc file. (I've tested this at a

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue8087 that has a similar case with interactive shell where the imported module was changed on disk. It has some discussion along similar lines with some more possible cases msg145291. -- nosy: +xtreak

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Looking more into the issue8087 there is issue31300 and issue23594 that are linked as duplicates with issue31300 very similar to this report. Maybe close this to continue discussion on issue8087? -- ___

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2019-01-30 Thread Manjusaka
Manjusaka added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +11551 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +11551, 11552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +11551, 11552, 11553 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 598e15d4feaee3849a91d92c9ca51f17baafe19c by Antoine Pitrou (jdemeyer) in branch 'master': bpo-25592: Improve documentation of distutils data_files (GH-9767) https://github.com/python/cpython/commit/598e15d4feaee3849a91d92c9ca51f17baafe19c

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I cannot see why changing the order of the alternation should have this > effect. The first regex, r'(a|ab)*?b', looks for the first alternative group by matching left-to-right [1] stopping at the first matching alternation "a". Roughly, the regex

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread jcrmatos
jcrmatos added the comment: Thank you all for the help. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Stefan Behnel
Stefan Behnel added the comment: I think the REPL could, when it formats a stack trace for printing, check every referenced source file if it's newer than its compiled .pyc (bytecode) file, and insert a warning into the stack trace if that is the case. I don't see any use in doing this for

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-01-30 Thread Michael Felt
Michael Felt added the comment: OK. being more specific about the test situation. When I run ./python -m test test_multiprocessing_fork all is fine. However, when I run it as: ./python -m test -j2 test_multiprocessing_main_handling test_multiprocessing_fork

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-30 Thread Steve Dower
Steve Dower added the comment: Okay, testing more thoroughly on 3.5, symlinks are fine from the console but not via Explorer. Personally, I dislike that double-clicking python.exe is different from running it from the command line, but so be it. I'll add a note to the docs that this

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +11555, 11556 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34222] Email message serialization enters an infinite loop when folding non-ASCII headers with long words

2019-01-30 Thread Ivan Krivosheev
Ivan Krivosheev added the comment: Hello Grigory. I using our patch in my project. I have some problems with your fixes. Source text: Subject: test Венесуэла собирается пересмотреть стоимость заключенных с Россией контрактов на поставку вооружений, а также отношения с Москвой в целом. Об

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixing this on 2.7 would require additional investigation (distutils might have diverged), so I'm closing now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset ebae1ce9c40e62ce52dc968f86ed11578d2fcdfd by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11701)

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-01-30 Thread Michael Felt
Michael Felt added the comment: After enabling PYTHONTHREADDEBUG=1 I got the dprintf output. I added line info (as fixed text) asin: Python/thread_pthread.h: +511 PyLockStatus +512 PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, +513

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29999] repr() of ImportError misses keyword arguments name and path

2019-01-30 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think the issue steems from the more general #27015 for which a PR is ready that fixes the repr not only for ImportError but all other BaseException subclasses that override __init__. -- keywords: +patch nosy: +remi.lapeyre pull_requests: +11554

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread James Davis
James Davis added the comment: Thanks for your thoughts, Raymond. I understand that the alternation has "short-circuit" behavior, but I still find it confusing in this case. Consider these two: Regex patternmatched? matched string captured content

[issue30951] Documentation error in inspect module

2019-01-30 Thread Utkarsh Gupta
Utkarsh Gupta added the comment: Serhiy: What change d'you possibly suggest then? -- ___ Python tracker ___ ___ Python-bugs-list

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c79891026c57046f5ac596080ea60c515e0560a by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523) (GH-11669)

[issue35760] test_asyncio: test_async_gen_asyncio_gc_aclose_09() race condition

2019-01-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this used to happen rarely on Appveyor builds too in the past randomly. Past report of the same issue issue32646 -- nosy: +xtreak ___ Python tracker

[issue35810] Object Initialization Bug with Heap-allocated Types

2019-01-30 Thread Eddie Elizondo
Eddie Elizondo added the comment: Hi Petr, Please take a look at the Github PR. What do you think that's missing to move this forward? I'd be more than happy to add more documentation/testing to it. Let me know what you think -- ___ Python

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Ma Lin
Change by Ma Lin : -- nosy: +Ma Lin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the analysis and PR! Sorry that the slow process here was frustrating. -- ___ Python tracker ___

[issue35860] ProcessPoolExecutor subprocesses crash & break pool when raising an exception with keyword-only args and an arg passed to Exception

2019-01-30 Thread Bence Nagy
New submission from Bence Nagy : ProcessPoolExecutor's subprocesses normally transparently proxy exceptions raised within a child to the parent process. One special case I bumped into however causes a crash within the stdlib code responsible for communication. The special case is triggered

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +11555, 11556, 11557 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- nosy: +Mariatta resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-30 Thread STINNER Victor
STINNER Victor added the comment: The GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88892 has been fixed in the development branch ("trunk"): https://gcc.gnu.org/viewcvs/gcc?view=revision=268083 I requested a fix for GCC 8.2. -- ___ Python

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread miss-islington
miss-islington added the comment: New changeset 7516f265a8517e4fdc7d6e63d72ae1b57fda26ee by Miss Islington (bot) in branch '3.7': bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)

[issue35760] test_asyncio: test_async_gen_asyncio_gc_aclose_09() race condition

2019-01-30 Thread STINNER Victor
STINNER Victor added the comment: The bug can be triggered on Linux using this patch: diff --git a/Lib/test/test_asyncgen.py b/Lib/test/test_asyncgen.py index 71b0968c79..5e0084dc32 100644 --- a/Lib/test/test_asyncgen.py +++ b/Lib/test/test_asyncgen.py @@ -668,8 +668,8 @@ class

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +11555 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-30 Thread miss-islington
miss-islington added the comment: New changeset cf991e653ac550a9f011631447c61ce583404a57 by Miss Islington (bot) (João Matos) in branch 'master': bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-30 Thread STINNER Victor
STINNER Victor added the comment: I was confused with PR, so here you have: * master: https://github.com/python/cpython/pull/11523 * 3.7: https://github.com/python/cpython/pull/11669 Both are merged, so I close the issue. Thanks Rémi Lapeyre for the fix! --

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-30 Thread miss-islington
miss-islington added the comment: New changeset 03082a836b707528f885080bda9732d89849d4e3 by Miss Islington (bot) in branch '3.7': bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700) https://github.com/python/cpython/commit/03082a836b707528f885080bda9732d89849d4e3

[issue35862] Change the environment for a new process

2019-01-30 Thread Tobias Däullary
New submission from Tobias Däullary : There should be a possibility to change the environment of a process created with multiprocessing. For subprocess this is possible thanks to the "env" attribute. Elaboration: While it is trivial to change os.environ manually, in some cases this is not

[issue35862] Change the environment for a new process

2019-01-30 Thread Tobias Däullary
Change by Tobias Däullary : -- keywords: +patch, patch, patch pull_requests: +11558, 11559, 11560 stage: -> patch review ___ Python tracker ___

[issue35862] Change the environment for a new process

2019-01-30 Thread Tobias Däullary
Change by Tobias Däullary : -- keywords: +patch, patch pull_requests: +11558, 11559 stage: -> patch review ___ Python tracker ___

[issue35862] Change the environment for a new process

2019-01-30 Thread Tobias Däullary
Change by Tobias Däullary : -- keywords: +patch pull_requests: +11558 stage: -> patch review ___ Python tracker ___ ___

[issue35862] Change the environment for a new process

2019-01-30 Thread Tobias Däullary
Change by Tobias Däullary : -- keywords: +patch, patch, patch, patch pull_requests: +11558, 11559, 11560, 11561 stage: -> patch review ___ Python tracker ___

[issue28494] is_zipfile false positives

2019-01-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35862] Change the environment for a new process

2019-01-30 Thread Rohit travels and tours
Rohit travels and tours added the comment: rtat.net -- nosy: +roufique7 Added file: https://bugs.python.org/file48088/bq-nix.snapshot.json ___ Python tracker ___

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-30 Thread Steve Dower
Steve Dower added the comment: New changeset a1f9a3332bd4767e47013ea787022f06b6dbcbbd by Steve Dower in branch 'master': bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700) https://github.com/python/cpython/commit/a1f9a3332bd4767e47013ea787022f06b6dbcbbd --

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Matthew Barnett
Matthew Barnett added the comment: It matches, and the span is (0, 2). The only way that it can match like that is for the capture group to match the 'a', and the final 'b' to match the 'b'. Therefore, re.search(r'(ab|a)*b', 'ab').groups() should be ('a', ), as it is for the pattern with a

[issue35861] test_named_expressions raises SyntaxWarning

2019-01-30 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : SyntaxWarning was recently added for comparison using "is" over literals with issue34850. This is raised on master for a PEP 572 related test. The warning is emitted twice which is covered with bpo-35798 and I verified the patch. The fix for this

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Jonathan Fine
Jonathan Fine added the comment: For information - all taken from docs and Lib/*.py https://docs.python.org/3.7/library/traceback.html traceback -- Print or retrieve a stack traceback Source code: Lib/traceback.py === This module provides a standard interface to extract, format and print stack

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Matthew Barnett
Matthew Barnett added the comment: It looks like a bug in re to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35862] Change the environment for a new process

2019-01-30 Thread Rohit travels and tours
Change by Rohit travels and tours : -- hgrepos: +379 Added file: https://bugs.python.org/file48089/bq-nix.manifest ___ Python tracker ___

[issue28494] is_zipfile false positives

2019-01-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: it's a bugfix, it seems reasonable for 3.7 to me. I agree that the previous is_zipfile check is too lenient. I'll follow up on jjolly's PR for any specific concerns I have with the implementation. -- assignee: serhiy.storchaka -> gregory.p.smith

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-30 Thread Eryk Sun
Eryk Sun added the comment: > Okay, testing more thoroughly on 3.5, symlinks are fine from the > console but not via Explorer. I gave up on using EXE symlinks with Explorer and ShellExecute[Ex]. The shell handles symlinks like shortcuts instead of leaving it up to the file system. In

[issue35861] test_named_expressions raises SyntaxWarning

2019-01-30 Thread Emily Morehouse
Emily Morehouse added the comment: Yes, you're exactly correct! Feel free to submit a PR and add me as a reviewer when you're ready. -- assignee: -> xtreak stage: -> needs patch ___ Python tracker

[issue30670] pprint for dict in sorted order or insert order?

2019-01-30 Thread Valentin Beyer
Valentin Beyer added the comment: Please reopen this. With version 3.7 and guaranteed dict order pprint should not sort by key. -- nosy: +Valentin Beyer ___ Python tracker

[issue28494] is_zipfile false positives

2019-01-30 Thread Matthew Ryan
Change by Matthew Ryan : -- nosy: +mryan1539 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not at all clear on how these features should interact (alternation, non-greedy matching, and group capture). Was just pointing that the first-match behavior of alternation is the documented behavior and that re.DEBUG can be used to explore what the

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +effbot, serhiy.storchaka, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35862] Change the environment for a new process

2019-01-30 Thread Rohit travels and tours
Change by Rohit travels and tours : Added file: https://bugs.python.org/file48087/core-nix.snapshot.json ___ Python tracker ___ ___

[issue35863] email.headers wraps headers badly

2019-01-30 Thread Jon Ribbens
New submission from Jon Ribbens : email.headers can wrap headers by putting a FWS as the very first thing in the output: >>> from email.header import Header >>> Header("a" * 67, header_name="Content-ID").encode() '\n aaa' i.e.

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +11564 stage: -> patch review ___ Python tracker ___ ___

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch, patch pull_requests: +11564, 11565 stage: -> patch review ___ Python tracker ___

[issue35861] test_named_expressions raises SyntaxWarning

2019-01-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Emily, I am marking this as easy since it's related to tests and doesn't affect alpha release. If no one gets to this I will raise a fix for this by Sunday. -- keywords: +easy ___ Python tracker

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch, patch, patch pull_requests: +11564, 11565, 11566 stage: -> patch review ___ Python tracker ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2019-01-30 Thread Pascal van der Donck
Change by Pascal van der Donck : -- assignee: -> docs@python components: +2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, Cross-Build, Demos and Tools, Documentation, Extension Modules, FreeBSD, IDLE, IO, Installation, Interpreter Core, Library (Lib), Regular Expressions,

[issue30670] pprint for dict in sorted order or insert order?

2019-01-30 Thread Joseph Shen
Joseph Shen added the comment: I reopened this issue, and change affected versions to 3.6, 3.7 and 3.8. -- status: closed -> open versions: +Python 3.8 ___ Python tracker ___

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-30 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Fixing this on 2.7 would require additional investigation (distutils might > have diverged) Let's be honest, we are talking about distutils here. So it's way more likely that it didn't diverge and that the behavior is exactly the same on 2.7 and 3.8. So

[issue35863] email.headers wraps headers badly

2019-01-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread Ma Lin
Ma Lin added the comment: You can `#define VERBOSE` in file `_sre.c`, it will print the engine's actual actions: |02FAC684|02FC7402|MARK 0 ... |02FAC6BC|02FC7401|MARK 1 In my computer, 02FC7400 points to "ab", 02FC7401 points 'b' in "ab", 02FC7402 points to the end of "ab". This capture

[issue20767] Some python extensions can't be compiled with clang 3.4

2019-01-30 Thread Larry Hastings
Change by Larry Hastings : -- priority: high -> normal type: resource usage -> compile error ___ Python tracker ___ ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2019-01-30 Thread Larry Hastings
Larry Hastings added the comment: It's too late to fix this for Python 3.4 and 3.5, as those are now in security-fixes-only mode. Also, please don't select every possible component that could be remotely connected. -- components: -2to3 (2.x to 3.x conversion tool), Argument

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: > For information - all taken from docs and Lib/*.py I'm sorry Jonathon, I don't see how they are relevant or interesting to the topic in hand other than "they're used to print stack traces". Okay, they're used to print stack traces. And...? Can you

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
New submission from Raymond Hettinger : Now that regular dicts are ordered and compact, it makes more sense for the _asdict() method to create a regular dict (as it did in its early days) rather than an OrderedDict. The regular dict is much smaller, much faster, and has a much cleaner

[issue35858] Consider adding the option of running shell/console commands inside the REPL

2019-01-30 Thread jcrmatos
New submission from jcrmatos : Consider adding the option of running shell/console commands inside the REPL. Something like >>>!ls -- messages: 334556 nosy: jcrmatos priority: normal severity: normal status: open title: Consider adding the option of running shell/console commands

[issue35858] Consider adding the option of running shell/console commands inside the REPL

2019-01-30 Thread pmpp
pmpp added the comment: Hi, maybe have a look to third parties for that because repl internals are tied to each supported platforms. https://xon.sh/index.html https://github.com/pmp-p/aioprompt https://github.com/prompt-toolkit -- nosy: +pmpp

[issue35858] Consider adding the option of running shell/console commands inside the REPL

2019-01-30 Thread jcrmatos
jcrmatos added the comment: Yes, I understand that, but I don't see why that should prevent this feature from going forward. -- ___ Python tracker ___

[issue35823] Use vfork() in subprocess on Linux

2019-01-30 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: I've been struggling with fixing spurious -Wclobbered GCC warnings. Originally, I've got the following: /scratch2/izbyshev/cpython/Modules/_posixsubprocess.c: In function ‘subprocess_fork_exec’: /scratch2/izbyshev/cpython/Modules/_posixsubprocess.c:612:15:

[issue35859] Capture behavior depends on the order of an alternation

2019-01-30 Thread James Davis
New submission from James Davis : I have two regexes: /(a|ab)*?b/ and /(ab|a)*?b/. If I re.search the string "ab" for these regexes, I get inconsistent behavior. Specifically, /(a|ab)*?b/ matches with capture "a", while /(ab|a)*?b/ matches with an empty capture group. I am not actually sure

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-30 Thread Steve Dower
Steve Dower added the comment: No, removing it was accidental. But when I tried it myself with a few regular installs of 3.5 and later, none of them updated sys.path correctly, and all of them resolved the links in the loader (or perhaps the shell?). I hadn't activated the environments, as