Can a simple a==b 'hang' in and endless loop?
Steven D'Aprano
steve at REMOVEMEcyber.com.au
Thu Jan 19 03:43:04 EST 2006
Claudio Grondi wrote:
> Exactly this is what Python does under the hood when writing
> a = "some string"
> b = "some string"
> where a and b are actually, in terms of C, pointer to Python object data
> structures which provide strings as arrays where it is possible to say
> a[0], but ... if here
> if(a==b):
> print "True"
> _does not_ print True, the Python engine is definitely broken.
Why are you comparing C behaviour to Python behaviour?
What is the point of the discussion?
--
Steven.
More information about the Python-list
mailing list