🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #26992

Re: dyskryptory

#26992
From: ak3031884
Date: Sun, 29 Nov 2009 02:33
27 lines
2341 bytes
On 28 Lis, 21:47, Elus <tomasz.ele...@gmail.com> wrote:
> On 28 Lis, 20:45, ak3031884 <ak3031...@gmail.com> wrote:
>
> > To znaczy że ?
>
ok ale jak to sie ma do różnic miedzy funkcjami
object.__getattr__(self, name) a   def __get__(self, obj, cls):
object.__setattr__(self, name, value) a def __set__(self, obj,
value):

?


> > On 28 Lis, 16:57, Daniel Mróz <be...@alpha.pl> wrote:
>
> > > On 28.11.2009, sacre <sacre...@wp.pl> wrote:>          assert obj is not None,'access only from instance!'
>
> > > Uczulam: asercje nie są sprawdzane przy prekompilacji z optymalizacją.
>
> To z grubsza znaczy, że wszelkie wyrażenia `assert` zostaną usunięte w
> procesie optymalizacji:
>
> $ python -c "assert 1==2"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> AssertionError
> $ python -Oc "assert 1==2"  # cicho
Technical Details
Message-ID: <88db6ba9-dfd7-476d-8c7b-5c3749163ab2@l13g2000yqb.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!l13g2000yqb.googlegroups.com!not-for-mail
References: <slrnhh0li5.ljo.beorn@pino.cyberdeck.pl> <slrnhh0pgf.llt.beorn@pino.cyberdeck.pl> <her5pc$22d$1@inews.gazeta.pl> <slrnhh2j1l.mbg.beorn@pino.cyberdeck.pl> <b20fb8c6-a545-45ed-8d5e-fd1f09423e3d@u7g2000yqm.googlegroups.com> <c1c937d4-4371-4710-bbd7-269813ab935f@e27g2000yqd.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!l13g2000yqb.googlegroups.com!not-for-mail
From: ak3031884 <ak3031884@gmail.com>
Newsgroups: pl.comp.lang.python
Subject: Re: dyskryptory
Date: Sat, 28 Nov 2009 18:33:50 -0800 (PST)
Organization: http://groups.google.com
Lines: 31
Message-ID: <88db6ba9-dfd7-476d-8c7b-5c3749163ab2@l13g2000yqb.googlegroups.com>
References: <slrnhh0li5.ljo.beorn@pino.cyberdeck.pl> <slrnhh0pgf.llt.beorn@pino.cyberdeck.pl>  <her5pc$22d$1@inews.gazeta.pl> <slrnhh2j1l.mbg.beorn@pino.cyberdeck.pl>  <b20fb8c6-a545-45ed-8d5e-fd1f09423e3d@u7g2000yqm.googlegroups.com>  <c1c937d4-4371-4710-bbd7-269813ab935f@e27g2000yqd.googlegroups.com>
NNTP-Posting-Host: 83.6.113.117
Mime-Version: 1.0
X-Trace: posting.google.com 1259462030 24154 127.0.0.1 (29 Nov 2009 02:33:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 29 Nov 2009 02:33:50 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: l13g2000yqb.googlegroups.com; posting-host=83.6.113.117;  posting-account=2S2y4QoAAACzknOmZD98y2Ho84xcl2a1
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.15)  Gecko/2009101601 Firefox/3.0.15,gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit