datetime question

Chris Angelico rosuav at gmail.com
Tue Nov 12 08:35:15 CET 2013


On Tue, Nov 12, 2013 at 6:25 PM, alex23 <wuwei23 at gmail.com> wrote:
> On 12/11/2013 2:49 PM, Grant Edwards wrote:
>>
>> Don't forget that there are also some differences between American and
>> Imperial whitespace.  Since it's ASCII whitespace, you should probably
>> assume American...
>
>
>>>> sys.getsizeof(' ')
> 34
>>>> sys.getsizeof(u' ')
> 52
>
> bad by design

Yeah, but the proper way to delimit whitespace is with parentheses,
not quotes. Look:

>>> sys.getsizeof(( ))
28

ChrisA



More information about the Python-list mailing list