Python Newbie

rurpy at yahoo.com rurpy at yahoo.com
Tue Feb 26 16:30:31 EST 2013


On Tuesday, February 26, 2013 11:59:51 AM UTC-7, Ethan Furman wrote:
> On 02/26/2013 10:23 AM, rurpy at yahoo.com wrote:
> > On 02/26/2013 01:32 AM, Larry Hudson wrote:
> >> Python variables do NOT have any data type.
> > I have no problem interpreting the OP's statement
> > as meaning that he wanted to use a Python variable to
> > consistently reference a particular type and wanted a name
> > that would remind him of that type.
> 
> Which is all well and good, so long as the OP also realizes
> that the name does not have any restriction's on it from 
> Python's side, and certain functions will end up pointing
> the name at a different object with a possibly different type 
> than his original, as in my int/float example.

Which I presume he did, given that he responded to your post with:

On Sunday, February 24, 2013 5:08:06 PM UTC-7, piterrr.... at gmail.com wrote:
[...]
> Yes I did see that it is possible to redefine the type of a variable.
> But I don't think I would ever do this intentionally; need to be really 
> careful with Python.



More information about the Python-list mailing list