Le Fri, 20 Sep 2013 13:19:24 +0200, Jesus Cea <jcea at jcea.es> a écrit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > """ > sys.intern(b'12121212') > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: must be str, not bytes > """ > > I wonder why. From http://docs.python.org/3.3/library/sys.html#sys.intern """sys.intern(string) Enter string in the table of “interned” strings and return the interned string [...]""" In Python 3 context, "string" means "str". Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4