Elektrine lite

← Feed

@nedbat@hachyderm.io

Post #3939956

2026-07-05 16:07 UTC

@pfmoore@mastodon.social tell me more, and why those things are better described by "virtual" than they are by "project".

Replies (3)

  • @ancoghlan@mastodon.social 2026-07-05 16:36

    @nedbat@hachyderm.io @pfmoore@mastodon.social Because "project" has semantic implications which are not correct in the general case, whereas "virtual environment" is a mere behavioural description in the same sense as "virtual machine" (to contrast them with the underlying "real" runtime environments that Python installations provide by default). Many virtual environments ("how they work") are associated with a specific project ("what they're for"), but far from all of them.

    Open ##3939958

  • @pfmoore@mastodon.social 2026-07-05 19:27

    @nedbat@hachyderm.io Basically what @ancoghlan@mastodon.social said. Virtual isn't the best term in the world, but "project" has a bunch of nuances that simply don't apply to the majority of Python code I write.

    Open ##3939961

  • @pfmoore@mastodon.social 2026-07-05 19:48

    @nedbat@hachyderm.io To give you some specifics - environments used to run scripts with dependency metadata, throwaway environments to experiment at the REPL with an interesting looking library, environments to use a library like symptoms as a calculator, etc... The majority of my environments are created in $TEMP.

    Open ##3939963