Staging
v0.5.1
v0.5.1
Revision f350a268a7071ce7d7a5bb86a9b1229782d4963b authored by Łukasz Langa on 14 September 2017, 18:33:00 UTC, committed by GitHub on 14 September 2017, 18:33:00 UTC
This makes the default behavior (without specifying `globalns` manually) more predictable for users, finds the right globalns automatically. Implementation for classes assumes has a `__module__` attribute and that module is present in `sys.modules`. It does this recursively for all bases in the MRO. For modules, the implementation just uses their `__dict__` directly. This is backwards compatible, will just raise fewer exceptions in naive user code. Originally implemented and reviewed at https://github.com/python/typing/pull/470.
1 parent d393c1b
File | Mode | Size |
---|---|---|
clinic | ||
stringlib | ||
README | -rw-r--r-- | 41 bytes |
abstract.c | -rw-r--r-- | 66.2 KB |
accu.c | -rw-r--r-- | 2.4 KB |
boolobject.c | -rw-r--r-- | 6.5 KB |
bytearrayobject.c | -rw-r--r-- | 68.7 KB |
bytes_methods.c | -rw-r--r-- | 21.1 KB |
bytesobject.c | -rw-r--r-- | 99.5 KB |
call.c | -rw-r--r-- | 36.8 KB |
capsule.c | -rw-r--r-- | 7.2 KB |
cellobject.c | -rw-r--r-- | 5.0 KB |
classobject.c | -rw-r--r-- | 18.2 KB |
codeobject.c | -rw-r--r-- | 26.7 KB |
complexobject.c | -rw-r--r-- | 32.2 KB |
descrobject.c | -rw-r--r-- | 55.4 KB |
dict-common.h | -rw-r--r-- | 2.3 KB |
dictnotes.txt | -rw-r--r-- | 6.0 KB |
dictobject.c | -rw-r--r-- | 126.6 KB |
enumobject.c | -rw-r--r-- | 12.9 KB |
exceptions.c | -rw-r--r-- | 86.6 KB |
fileobject.c | -rw-r--r-- | 14.8 KB |
floatobject.c | -rw-r--r-- | 71.0 KB |
frameobject.c | -rw-r--r-- | 32.7 KB |
funcobject.c | -rw-r--r-- | 29.2 KB |
genobject.c | -rw-r--r-- | 67.8 KB |
iterobject.c | -rw-r--r-- | 9.0 KB |
listobject.c | -rw-r--r-- | 86.9 KB |
listsort.txt | -rw-r--r-- | 34.9 KB |
lnotab_notes.txt | -rw-r--r-- | 5.7 KB |
longobject.c | -rw-r--r-- | 166.7 KB |
memoryobject.c | -rw-r--r-- | 88.7 KB |
methodobject.c | -rw-r--r-- | 9.2 KB |
moduleobject.c | -rw-r--r-- | 22.3 KB |
namespaceobject.c | -rw-r--r-- | 7.1 KB |
object.c | -rw-r--r-- | 59.1 KB |
obmalloc.c | -rw-r--r-- | 60.5 KB |
odictobject.c | -rw-r--r-- | 76.2 KB |
rangeobject.c | -rw-r--r-- | 34.3 KB |
setobject.c | -rw-r--r-- | 73.3 KB |
sliceobject.c | -rw-r--r-- | 19.2 KB |
structseq.c | -rw-r--r-- | 13.1 KB |
tupleobject.c | -rw-r--r-- | 30.6 KB |
typeobject.c | -rw-r--r-- | 234.8 KB |
typeslots.inc | -rw-r--r-- | 3.9 KB |
typeslots.py | -rwxr-xr-x | 1.2 KB |
unicodectype.c | -rw-r--r-- | 7.5 KB |
unicodeobject.c | -rw-r--r-- | 453.6 KB |
unicodetype_db.h | -rw-r--r-- | 233.8 KB |
weakrefobject.c | -rw-r--r-- | 29.5 KB |
Computing file changes ...