forked from VimPlug/jedi
34 lines
387 B
Python
34 lines
387 B
Python
"""
|
|
std library stuff
|
|
"""
|
|
|
|
# -----------------
|
|
# re
|
|
# -----------------
|
|
import re
|
|
c = re.compile(r'a')
|
|
#? int()
|
|
c.match().start()
|
|
|
|
#? int()
|
|
re.match(r'a', 'a').start()
|
|
|
|
#? int()
|
|
next(re.finditer('a', 'a')).start()
|
|
|
|
#? str()
|
|
re.sub('a', 'a')
|
|
|
|
# -----------------
|
|
# ref
|
|
# -----------------
|
|
import weakref
|
|
|
|
#? int()
|
|
weakref.proxy(1)
|
|
|
|
#? weakref.ref
|
|
weakref.ref(1)
|
|
#? int()
|
|
weakref.ref(1)()
|