+1 for double quotes. Don't know why, I just prefer them. C background is an
interesting analysis, that could be the reason.

2009/2/18 Amit Aronovitch <[email protected]>

> 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?
>
> When patching someone else's code, I try to adopt the existing style (if I
> remember...) - note that some projects are not consistent (e.g. standard
> library files, even within single packages (e.g. email) are strongly author
> dependent in this respect).
>
> Left on my own, I tend to use double quotes, except when the string
> contains such. Seems that this is a common practice among people that also
> do C/C++ programming.
> See also here:
>
> http://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python
>
> I imagine that for people who can stick to pure-python (lucky b****rds ;-)
> ) single quote would be more attractive (for reasons stated by others).
>
>    Amit
>
>
> >
>
> _______________________________________________
> Python-il mailing list
> [email protected]
> http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
>
>


-- 
Check out my blog: http://orip.org

--~--~---------~--~----~------------~-------~--~----~
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

לענות