There are a few I’m aware of:

  1. Rust-style use (multiple imports per statement, renaming items using as)
  2. Java-style import (single import per statement, no renaming (afaik))
  3. Zig-style let xlib = @import("xlib") (imports as assignments)
  4. C-style #include (no importing, just pastes the code of the named file)
  • kureta@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    3 days ago

    Well, I have been using python for a long time and was ready to disagree with you but damn, it really do be like that.