Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P762
(An Untitled Masterwork)
Active
Public
Actions
Authored by
vlorentz
on Sep 13 2020, 8:59 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
>>>
bar
Traceback
(
most
recent
call
last
):
File
"<stdin>"
,
line
1
,
in
<
module
>
NameError
:
name
'bar'
is
not
defined
>>>
class
Foo
:
...
global
bar
...
bar
=
42
...
>>>
bar
42
>>>
Foo
.
bar
Traceback
(
most
recent
call
last
):
File
"<stdin>"
,
line
1
,
in
<
module
>
AttributeError
:
type
object
'Foo'
has
no
attribute
'bar'
Event Timeline
vlorentz
created this paste.
Sep 13 2020, 8:59 PM
2020-09-13 20:59:27 (UTC+2)
Log In to Comment