[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-15 Thread Bernat Gabor
Bernat Gabor added the comment: Taking a look at the existing documentation this should probably be mentioned under the args part of https://docs.python.org/3/library/subprocess.html#popen-constructor, not? (that's where other similar gotchas are explained too

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-15 Thread Bernat Gabor
Bernat Gabor added the comment: I wonder if this is an interaction issue with the builtin Windows provided python executable? -- nosy: +eryksun, gaborjbernat ___ Python tracker <https://bugs.python.org/issue42

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Bernat Gabor added the comment: > We need more information about the specific environment this is triggering. Both Gitub Actions Windows CPython3.9 or installer as downloaded from (on Windows 10) https://www.python.org/downloads/release/python-390/. > PYTHONHOME should not be s

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Bernat Gabor added the comment: Ok, the missing link is that the python you run into needs to be also a symlink venv: ❯ py -m venv env --without-pip --clear --symlinks ❯ .\env\Scripts\python.exe -c "import venv, subprocess; venv.EnvBuilder(with_pip=False, symlinks=True).create(

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Bernat Gabor added the comment: ❯ py -c 'import sys; print(sys.version)' 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] -- ___ Python tracker <https://bugs.python.org/issue42

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Change by Bernat Gabor : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue42

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
New submission from Bernat Gabor : Here's a small reproducible, run it on a Windows OS that has symlinks enabled: import shutil import venv import subprocess shutil.rmtree("venv", ignore_errors=True) venv.EnvBuilder(with_pip=False, symlinks=True).create("venv") # works s

[issue41973] Docs: TypedDict is now of type function instead of class

2020-10-08 Thread Bernat Gabor
Bernat Gabor added the comment: This seem to apply to typing.NamedTuple too. -- ___ Python tracker <https://bugs.python.org/issue41973> ___ ___ Python-bug

[issue41973] Docs: TypedDict is now of type function instead of class

2020-10-08 Thread Bernat Gabor
Bernat Gabor added the comment: Static checkers/linters (see e.g. https://github.com/PyCQA/pylint/issues/3884) are caught of guard by being able to inherit from functions. They'll need to adapt, but let's update the documentation to reflect

[issue41973] Docs: TypedDict is now of type function instead of class

2020-10-08 Thread Bernat Gabor
New submission from Bernat Gabor : ❯ py -3.8 -c 'from typing import TypedDict; print(type(TypedDict))' ❯ py -3.9 -c 'from typing import TypedDict; print(type(TypedDict))' Python 3.9 changed the type of the TypedDict but the documentation still says it's a class - see https

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Bernat Gabor
Change by Bernat Gabor : -- nosy: +Bernat Gabor ___ Python tracker <https://bugs.python.org/issue41619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Bernat Gabor
Bernat Gabor added the comment: I understand under the hood they're differenet, however I think cached_property wanted to be a shorter/better version of @property@lru_cache which does passes this check. Tools expecting properties to pass that check now need to extend their check

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Bernat Gabor
New submission from Bernat Gabor : from functools import cached_property, lru_cache class A: @property def a(self): return '' @cached_property def b(self): return '' @property @lru_cache def c(self): return "" print(isinstance(A.a, proper

[issue41383] Provide a limit arguments for __repr__

2020-07-24 Thread Bernat Gabor
Bernat Gabor added the comment: Thanks Rémi, did not know about it. Played around with it, and is not entirely what we'd need here. That class still generates the long string repr, just truncates it afterwards. That is unless teh Repr implements custom formatting for the types, however

[issue41383] Provide a limit arguments for __repr__

2020-07-24 Thread Bernat Gabor
New submission from Bernat Gabor : Quoting Elizaveta Shashkova from EuroPython 2020 chat about how can we improve debug experience for users: I would like to have a lazy repr evaluation for the objects! Sometimes users have many really large objects, and when debugger is trying to show them