Article View: pl.comp.lang.python
Article #27230Re: class A: print A
From: Rob Wolfe
Date: Tue, 19 Jan 2010 11:34
Date: Tue, 19 Jan 2010 11:34
16 lines
1657 bytes
1657 bytes
William Bonawentura napisał(a):
> > Jak wyja�ni� takie zachowanie interpretera?
>
> W C++ czy Javie kompilacja jest dwuprzebiegowa i A byloby znane.
> Interpretacja jest jednoprzebiegowa i A jeszcze nie zostalo przypisane.
Tak z ciekawosci, moglbys pokazac analogiczny kod w C++ lub Javie,
ktory dziala:
class A:
print A
?
RW
Technical Details
Message-ID:
<c6924af6-5622-4795-951a-0158e63fcc6e@r19g2000yqb.googlegroups.com>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!postnews.google.com!r19g2000yqb.googlegroups.com!not-for-mailReferences:
<2c102a9d-5722-4565-8562-346d08ec395d@34g2000yqp.googlegroups.com> <hj40q5$2ce8$1@news2.ipartners.pl>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!postnews.google.com!r19g2000yqb.googlegroups.com!not-for-mail From: Rob Wolfe <rw@smsnet.pl> Newsgroups: pl.comp.lang.python Subject: Re: class A: print A Date: Tue, 19 Jan 2010 03:34:35 -0800 (PST) Organization: http://groups.google.com Lines: 16 Message-ID: <c6924af6-5622-4795-951a-0158e63fcc6e@r19g2000yqb.googlegroups.com> References: <2c102a9d-5722-4565-8562-346d08ec395d@34g2000yqp.googlegroups.com> <hj40q5$2ce8$1@news2.ipartners.pl> NNTP-Posting-Host: 194.197.79.18 Mime-Version: 1.0 X-Trace: posting.google.com 1263900875 28951 127.0.0.1 (19 Jan 2010 11:34:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Jan 2010 11:34:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r19g2000yqb.googlegroups.com; posting-host=194.197.79.18; posting-account=Kl85yQoAAACAhtXaf_cPVYWRBT7UPb10 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0,gzip(gfe),gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit