+1 for single quotes.

Reasons:
1. Aesthetic
2. Practical. Internal string in single, external in double.
For example,HTML code assignment: python_str = '<TABLE border="1">'

Ahik

On Wed, Feb 18, 2009 at 2:04 AM, Rani Hod <[email protected]> wrote:
>>
>> When you code in python, when do you prefer "double quotes" and when do you 
>> use 'single quotes'?
>>
>> I mean for most of the little strings in your python code. What's your 
>> preference?
>
> Usually single quotes, as these don't require the shift key.
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyWeb-IL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות