Immutable and Mutable Types

Stargaming stargaming at gmail.com
Mon Mar 17 12:42:20 EDT 2008


On Mon, 17 Mar 2008 16:03:19 +0000, Duncan Booth wrote:

> For the answer I actually want each asterisk substitutes for exactly one
> character.

Played around a bit and found that one:

Python 3.0a3+ (py3k:61352, Mar 12 2008, 12:58:20)
[GCC 4.2.3 20080114 (prerelease) (Debian 4.2.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1
>>> b = 1//1
>>> if a is b: print('yes!')
...
>>> b
1
>>> type(b)
<type 'int'>



More information about the Python-list mailing list