Deutsch   English   Français   Italiano  
<example-20240704200701@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!news.swapon.de!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
Bytes: 1461

  An instructive example:

__example = 1

def f():
    print( __example )

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

f()
c().f()