Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Don't feed the bats tonight.


comp / comp.lang.python / An instructive example

SubjectAuthor
o An instructive exampleStefan Ram

1
Subject: An instructive example
From: Stefan Ram
Newsgroups: comp.lang.python
Organization: Stefan Ram
Date: Thu, 4 Jul 2024 19:07 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: An instructive example
Date: 4 Jul 2024 19:07:21 GMT
Organization: Stefan Ram
Lines: 13
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <example-20240704200701@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de z/raftdTeWWyEBGOIEBI6wCMyKOvox4C+2vgoPnE/Sgt1T
Cancel-Lock: sha1:1KCUuwhlvSkDy6jjDE5fsUG6/Xw= sha256:R8PdS1lz9P5KO+p71Q4fHJ1z8iNkQRRQuQtJuXrVBo4=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
View all headers

An instructive example:

__example = 1

def f():
print( __example )

class c:
def f( self ):
print( __example )

f()
c().f()

1

rocksolid light 0.9.8
clearnet tor