MCPcopy Index your code
hub / github.com/python/cpython / venv

Method venv

Lib/test/support/venv.py:74–81  ·  view source on GitHub ↗
(self, name=None, **venv_create_args)

Source from the content-addressed store, hash-verified

72
73class VirtualEnvironmentMixin:
74 def venv(self, name=None, **venv_create_args):
75 venv_name = self.id()
76 if name:
77 venv_name += f'-{name}'
78 return VirtualEnvironment.from_tmpdir(
79 prefix=f'{venv_name}-venv-',
80 **venv_create_args,
81 )

Calls 2

from_tmpdirMethod · 0.80
idMethod · 0.45

Tested by 1