Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9065
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bahamutzero8825@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Does': 0.04; 'arguments': 0.05; 'instance': 0.05; 'operator': 0.05; 'interpreter': 0.07; 'type,': 0.07; 'compares': 0.09; 'instance.': 0.09; 'type)': 0.09; 'subject:file': 0.13; 'wrote:': 0.15; 'clarified': 0.16; 'type:': 0.16; 'pm,': 0.16; '>>>': 0.16; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'obviously': 0.23; 'explicitly': 0.29; 'subject:support': 0.30; 'compare': 0.31; 'subject:?': 0.31; 'word.': 0.32; 'message-id:@gmail.com': 0.32; 'does': 0.32; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'there': 0.34; 'test': 0.34; 'none': 0.35; 'identical': 0.35; 'but': 0.37; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'steven': 0.38; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'ever': 0.65; 'care': 0.73; 'difference.': 0.84; 'subject:mode': 0.84; 'received:209.85.218.46': 0.91; 'received:mail-yi0-f46.google.com': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=YJ8JoWqYaCp77Tms2yE28GaSeX65Dw+TZnd8mrsKz84=; b=OaZGDTAF18dtuc0sSnns7vezNBfyPOJsbeixfGB6Y4sLlvQ438Mj3st+1uOPN/XP7q LRikz3snrJ1LfuVOesmFA3Vbk2efebn6e56ftn4ebYfTeqtgpYHXltlHYli1IkaIK/UJ Djps/E3kmdC+MSkGefUM/Ca2hQ2qHbaEzynfQ= |
| Date | Thu, 07 Jul 2011 21:32:59 -0500 |
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version | 1.0 |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: Does hashlib support a file mode? |
| References | <0c058f60-3fd7-4b67-85a2-0658b2bb1887@glegroupsg2000goo.googlegroups.com> <9e976158-94c7-4e8b-8aa8-f0daa644b06d@fv14g2000vbb.googlegroups.com> <4e14ecd4$0$29965$c3e8da3$5496439d@news.astraweb.com> <mailman.739.1310043020.1164.python-list@python.org> <0cd66788-5603-421e-82fb-fa3ac089711c@u42g2000yqm.googlegroups.com> <mailman.740.1310045106.1164.python-list@python.org> <6218f9fc-2155-4f31-aa07-fe2caadac190@y30g2000yqb.googlegroups.com> <mailman.741.1310047140.1164.python-list@python.org> <4e166165$0$29983$c3e8da3$5496439d@news.astraweb.com> |
| In-Reply-To | <4e166165$0$29983$c3e8da3$5496439d@news.astraweb.com> |
| X-Enigmail-Version | 1.2 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.766.1310092389.1164.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1310092389 news.xs4all.nl 21805 [2001:888:2000:d::a6]:39999 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:9065 |
Show key headers only | View raw
On 2011.07.07 08:46 PM, Steven D'Aprano wrote: > None is not a type, it is an instance. > > >>> isinstance(None, type) # is None a type? > False > >>> isinstance(None, type(None)) # is None an instance of None's type? > True > > So None is not itself a type, although it *has* a type: > > >>> type(None) > <type 'NoneType'> > >>> isinstance(type(None), type) # is NoneType itself a type? > True I worded that poorly. None is (AFAIK) the only instance of NoneType, but I should've clarified the difference. > The is operator does not compare types, it compares instances for identity. > There is no need for is to ever care about the type of the arguments -- > that's just a waste of time, since a fast identity (memory location) test > is sufficient. "Compare" was the wrong word. I figured the interpreter doesn't explicitly compare types, but obviously identical instances are going to be of the same type.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Does hashlib support a file mode? Carl Banks <pavlovevidence@gmail.com> - 2011-07-06 13:25 -0700
Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-06 14:07 -0700
Re: Does hashlib support a file mode? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-07 09:16 +1000
Re: Does hashlib support a file mode? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-07 07:50 -0500
Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-07 06:11 -0700
Re: Does hashlib support a file mode? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-07 08:24 -0500
Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-07 06:39 -0700
Re: Does hashlib support a file mode? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-07 08:58 -0500
Re: Does hashlib support a file mode? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-08 11:46 +1000
Re: Does hashlib support a file mode? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-07 21:32 -0500
Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-07 20:26 -0700
Re: Does hashlib support a file mode? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-08 17:42 +1000
Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-08 06:03 -0700
Re: Does hashlib support a file mode? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-09 14:44 +1000
csiph-web