Ask HN: One of our Azure accounts was hacked – how to negotiate the bill?
78 pointsby frogcoder74 comments
- foo/
|- main.py
|- module1.py
|- bar/
|- module2.py
To reference "module1.py" in "module2.py", just write import foo.module1
To reference "module2.py" in "main.py", do as follows import foo.bar.module2
There is no problem importing from any level. foo = one_or_none()
if foo:
do_stuff(foo)
Now I have the following: if foo := one_or_none():
do_stuff(foo)
This kind of code happens quite frequently, looks nicer with walrus operator to me.
Just image having a mandatory political party inside every American corporation which the board has no control over.
1. https://www.washingtonpost.com/national-security/2024/05/01/...