[Tutor] Does casting exist in Python?

Sean Perry shaleh at speakeasy.net
Wed Feb 22 20:19:17 CET 2006


Edgar Antonio Rodriguez Velazco wrote:
> Does it?
> Thanks,
> 

not exactly.

new_list = list(my_tuple)

In general Python works without having to nudge the type system.

For char -> int style conversions there is a builtin function called 'ord'.


More information about the Tutor mailing list