Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

_chrismay@fosstodon.org_

_chrismay@fosstodon.org

@_chrismay@fosstodon.org
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • Can someone explain this #Python import behavior
    _chrismay@fosstodon.org_ _chrismay@fosstodon.org

    @bmispelon My thought would be Python:
    - runs c.py and immediately starts to import a.py
    - sets `A` to 1
    - then starts to import b.py
    - module a(.py) is already in memory, so it bumps A to 2
    - finished importing b and a
    - returns to c.py and prints 2

    Uncategorized python
  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups