object.from
class A:
pass
a = A()
a.x = 1
print(a.x, a.__getattribute__('x'))
a.__setattr__('from', 2) # вот же идиотизм
print(a.__getattribute__('from'))
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from = 0
File "<stdin>", line 1
from = 0
^
SyntaxError: invalid syntax
>>>
from . import что_то_там # Yes I No 1 Locale nado ispolzovat
from что_то_там import что_то_там
_from = 0 # Yes
from_ = True # Yes
from_True = True # Yes