Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3343
| From | Julien Salort <listes@salort.eu> |
|---|---|
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Une explication sur is |
| Date | 2020-05-11 16:21 +0200 |
| Organization | Gegeweb News Server |
| Message-ID | <r9bn0r$544$1@news.gegeweb.eu> (permalink) |
| References | <5eb7cbd8$0$4042$426a74cc@news.free.fr> <5eb7e8eb$0$9898$426a74cc@news.free.fr> |
Le 10/05/2020 à 13:43, Francois Lafont a écrit : > Mais tout ceci relève du détail d'implémentation à mon avis et il ne > faut pas > trop s'embêter avec cela. Personnellement, je retiens juste ceci : quand > on a : D'ailleurs, le caractère "détail d'implémentation" est particulièrement visible si on compare CPython avec Pypy ou Jython. % python3 Python 3.7.7 (default, Mar 17 2020, 21:58:45) [Clang 10.0.0 (clang-1000.10.44.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> a = 500 >>> b = 500 >>> a is b False % pypy3 Python 3.6.9 (?, Apr 16 2020, 19:31:08) [PyPy 7.3.1 with GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>> a = 500 >>>> b = 500 >>>> a is b True % jython Jython 2.7.2 (v2.7.2:925a3cc3b49d, Mar 21 2020, 10:03:58) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_101 Type "help", "copyright", "credits" or "license" for more information. >>> a = 500 >>> b = 500 >>> a is b True Julien
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Une explication sur is thomas <thomas.gerard256@free.fr> - 2020-05-10 11:39 +0200
Re: Une explication sur is Francois Lafont <francois.lafont@nospam.invalid> - 2020-05-10 13:43 +0200
Re: Une explication sur is thomas <thomas.gerard256@free.fr> - 2020-05-10 16:05 +0200
Re: Une explication sur is Julien Salort <listes@salort.eu> - 2020-05-11 16:21 +0200
Re: Une explication sur is Damien Wyart <damien.wyart@free.fr> - 2020-05-11 08:43 +0200
Re: Une explication sur is thomas <thomas.gerard256@free.fr> - 2020-05-11 11:11 +0200
csiph-web