Article View: pl.comp.lang.python
Article #27355Re: Przestrzeń nazw (?)
From: Jordan Szubert
Date: Sun, 14 Mar 2010 13:04
Date: Sun, 14 Mar 2010 13:04
41 lines
1867 bytes
1867 bytes
Dnia 14-03-2010 o 13:06:00 pr <cricogik@gmail.com> napisał(a): > Witam, > > Czy w Pythonie (3.1) można zrobić coś takiego (jeden plik): > > class A: > class AA: > obj = B() > > > class B: > class BB: > obj = A() > > A() > B() > > ? Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class A: ... class AA: ... obj=None ... >>> class B: ... class BB: ... obj=A() ... >>> A.AA.obj=B() >>> a=A() >>> b=B() >>> -- Używam klienta poczty Opera Mail: http://www.opera.com/mail/
Technical Details
Message-ID:
<op.u9j6lmiius2y1v@klaptop7>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mailReferences:
<9100aa5e-8f93-493a-8e57-23dd86779de2@o3g2000yqb.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail From: "Jordan Szubert" <nie@podam.na.razie> Newsgroups: pl.comp.lang.python Subject: Re: Przestrzeń nazw (?) Date: Sun, 14 Mar 2010 14:04:24 +0100 Organization: HELL inc. Lines: 43 Message-ID: <op.u9j6lmiius2y1v@klaptop7> References: <9100aa5e-8f93-493a-8e57-23dd86779de2@o3g2000yqb.googlegroups.com> NNTP-Posting-Host: ast55.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.neostrada.pl 1268572552 17875 83.26.231.55 (14 Mar 2010 13:15:52 GMT) X-Complaints-To: usenet@news.neostrada.pl NNTP-Posting-Date: Sun, 14 Mar 2010 13:15:52 +0000 (UTC) User-Agent: Opera Mail/10.50 (Win32) X-Antivirus: avast! (VPS 100313-2, 2010-03-13), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit