Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197213
| Path | csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!bawden.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Alan Bawden <alan@csail.mit.edu> |
| Newsgroups | comp.lang.python |
| Subject | Re: bool type have big problem. finally program returned "True".Is this the TRUE spec? |
| Date | Mon, 20 Jan 2025 14:16:42 -0500 |
| Organization | ITS Preservation Society |
| Lines | 7 |
| Message-ID | <865xm95m91.fsf@williamsburg.bawden.org> (permalink) |
| References | <CAAoNPLevMbMzeuCRKDqY2n6Wg2=fkSUohHEGAhN0tS83hne07Q@mail.gmail.com> <mailman.92.1737391296.2912.python-list@python.org> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 20 Jan 2025 20:16:43 +0100 (CET) |
| Injection-Info | bawden.eternal-september.org; posting-host="7a9c28da47d1ad7501354ef2786ebb8f"; logging-data="3543964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XGFMSUPX9TNt1bFPrvR7Z" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
| Cancel-Lock | sha1:3p2UYo+N1N6K+tUAEToan1tbf/g= sha1:kZEcL9RL4jC5jb+15MRTZH3XeSo= |
| Xref | csiph.com comp.lang.python:197213 |
Show key headers only | View raw
あうぇくろ <deqser25@gmail.com> writes:
tpr=composite(type,print)
print(tpr('a')==tpr(1))
Why does tpr('a')==tpr(1) return True?
Because tpr always returns the value None.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar
bool type have big problem. finally program returned "True".Is this the TRUE spec? あうぇくろ <deqser25@gmail.com> - 2025-01-18 21:55 +0900 Re: bool type have big problem. finally program returned "True".Is this the TRUE spec? Alan Bawden <alan@csail.mit.edu> - 2025-01-20 14:16 -0500
csiph-web