mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
11 lines
147 B
Python
11 lines
147 B
Python
from collections import namedtuple
|
|
|
|
|
|
class C(namedtuple('Coord', 'latitude longitude')):
|
|
def foo(self):
|
|
return -1
|
|
|
|
|
|
c = C()
|
|
c.latitude
|