Is it a bug?

Abhishek Mishra ideamonk at gmail.com
Wed Sep 2 07:49:12 EDT 2009


Oops, missed out that... thanks

On Sun, Aug 30, 2009 at 2:25 PM, Jan Kaliszewski<zuo at chopin.edu.pl> wrote:
> 30-08-2009 o 06:10:46 Abhishek Mishra <ideamonk at gmail.com> wrote:
>
>> The single quote \' is the culprit.
>> When you say  words = ["Hi", "Whats up", "Bye"] and try print words,
>> you get this -
>> ['Hi', 'Whats up', 'Bye']
>>
>> All double quotes converted to single ones. Now as for your input,
>> notice the single quote in What's
>> Now wrapping that word with single quotes won't be correct, so python
>> uses double quotes to avoid any quote completion errors.
>> But there's hardly much difference "foo" and 'foo' right? While in php
>> you can notice some difference.
>>
>> Abhishek Mishra
>> http://ideamonk.blogspot.com
>
> Hello,
>
> You posted your message only to me -- and probably wanted to post it
> to the list?
>
> Cheers,
> *j
>
> --
> Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>
>



More information about the Python-list mailing list