mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
*** empty log message ***
This commit is contained in:
parent
3cbc16d904
commit
7565b93414
8 changed files with 51 additions and 49 deletions
|
|
@ -2,16 +2,15 @@
|
|||
|
||||
|
||||
def vec(*v):
|
||||
return apply(Vec().init, v)
|
||||
return apply(Vec, v)
|
||||
|
||||
|
||||
class Vec:
|
||||
|
||||
def init(self, *v):
|
||||
def __init__(self, *v):
|
||||
self.v = []
|
||||
for x in v:
|
||||
self.v.append(x)
|
||||
return self
|
||||
|
||||
|
||||
def fromlist(self, v):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue