In <> Sayth Renshaw 
<> writes:

> Trying to clarify why ints and strings arent treated the same.

Because they are not the same.

> You can get a valuerror from trying to cast a non-int to an int as in
> int(3.0) however you cannot do a non string with str(a).

Anything you type can be represented as a string*.  The same is
not true for integers.

* Okay, python 2.7 does have some issues with Unicode.

John Gordon                   A is for Amy, who fell down the stairs              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"


Reply via email to