Difference between " and '

Terry Hancock hancock at anansispaceworks.com
Fri Jul 22 10:29:58 EDT 2005


On Friday 22 July 2005 08:09 am, François Pinard wrote:
> [Robert Kern]
> > One habit that seems to crop up, though, is that I will use '' for
> > internal strings and "" for strings that will eventually get seen by
> > the user.  Don't ask me why.
> 
> One sure thing is that it would help, later, if you ever want to
> internationalise a Python program.  Not that it occurs that often! :-)

Whoa.  Why?  Does xgettext not recognize _('')?  I'm just learning
to use it.  Maybe I should pay attention to this point if that's so.

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com




More information about the Python-list mailing list