Lines Matching +full:implicit +full:- +full:dynamic
6 # A few examples left implicit in the writeup were fleshed out, a few were
57 >>> print(a[0]) # a non-existent item
66 statement or the built-in function eval():
79 Now I'll show that defaultdict instances have dynamic instance variables,
82 >>> a.default = -1
84 -1
85 >>> a.default = -1000
87 -1000
98 {'default': -1000, 'x1': 100, 'x2': 200}
134 >>> a.default = -1
136 -1
147 Introspecting instances of built-in types
149 For instance of built-in types, x.__class__ is now the same as type(x):
231 This is just like it is for user-defined classes.
255 implicit first argument that is the *class* for which they are invoked.
320 ... raise AttributeError("this attribute is read-only")
346 >>> a.x = -10
351 Hmm -- property is builtin now, so let's try it that way too.
372 >>> a.x = -10
382 This example is implicit in the writeup.
384 >>> class A: # implicit new-style class
398 >>> class A(object): # explicit new-style class
474 # Note that doctest and regrtest both look in sys.argv for a "-v" argument,