SShortSingh.
Back to feed

Python Virtual Environments Use Symlinks, Not Copies, of the Interpreter

0
·71 views

On Linux and macOS, running python3 -m venv does not create a standalone copy of the Python interpreter. Instead, the python binary inside the virtual environment is a symlink that points back to the system-level Python installation. The only component that is truly private to a virtual environment is the site-packages directory, where user-installed packages are stored. This architecture means the venv depends on the system interpreter remaining intact and unchanged. Developers working on cloud VMs or production systems should understand this distinction to avoid unexpected breakage when system Python is updated or removed.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

RupayaTools Offers Free, Sign-Up-Free Calculators Built for Indian Students and Job Seekers

A developer built RupayaTools, a free website of online tools designed for users in India. The site offers no-account, no-download utilities such as CGPA, SGPA, and percentage calculators aligned with CBSE and university grading. It also includes salary, EMI, and income-tax calculators, along with age calculators and unit converters. All tools run in the browser, so user data stays on the device, and the creator says the site is free with no paywall.

0
ProgrammingDEV Community ·

Stock Scorer Shows Negative Predictive Power in A-Share Backtest

A developer built a three-pillar scoring model for Chinese A-shares, combining technical, volume/price, and valuation signals to rank stocks and select the top 50. When audited against 70 rebalance dates and 587 stocks, the composite score showed a significantly negative rank information coefficient, meaning higher scores tended to precede lower returns. Two of the three pillars had negative IC values, and the only positive one came from the component labeled fundamental, which the author suspects is mislabeled. Decile analysis reinforced the finding, as the highest-scoring stocks underperformed the lowest-scoring ones over the five-day horizon. The author used the same shipped code in the audit rather than a rewritten version, and noted that the results are not perfectly monotonic and occurred during a falling market window.

0
ProgrammingDEV Community ·

Maruti Suzuki's quarterly margin figures differ by measure, not by error

Maruti Suzuki's July–September 2026 results drew different margin figures from different outlets, including 5.9%, 5.5%, and 8.9%. The variation comes from measuring profit at different levels: EBITDA counts only running costs, EBIT also deducts depreciation, and pre-tax margin further adjusts for interest and other income. Maruti's large cash holdings lift its other income, which is why its pre-tax margin sits above its EBIT margin. The author notes that Indian filings are not uniformly labelled, so the platform standardised on pre-tax profit divided by sales for all Indian stocks. The piece argues that data should always be shown alongside the name of the measure used.