Why do Perl programmers make more money than Python programmers

Fábio Santos fabiosantosart at gmail.com
Tue May 7 09:35:05 EDT 2013


>
>
> -----
>
>
> 1) The memory gain for many of us (usually non ascii users)
> just become irrelevant.
>
> >>> sys.getsizeof('maçã')
> 41
> >>> sys.getsizeof('abcd')
> 29
>
> 2) More critical, Py 3.3, just becomes non unicode compliant,
> (eg European languages or "ascii" typographers !)
>
> >>> import timeit
> >>> timeit.timeit("'abcd'*1000 + 'a'")
> 2.186670111428325
> >>> timeit.timeit("'abcd'*1000 + '€'")
> 2.9951699820528432
> >>> timeit.timeit("'abcd'*1000 + 'œ'")
> 3.0036780444886233
> >>> timeit.timeit("'abcd'*1000 + 'ẞ'")
> 3.004992278824048
> >>> timeit.timeit("'maçã'*1000 + 'œ'")
> 3.231025618708202
> >>> timeit.timeit("'maçã'*1000 + '€'")
> 3.215894398100758
> >>> timeit.timeit("'maçã'*1000 + 'œ'")
> 3.224407974255655
> >>> timeit.timeit("'maçã'*1000 + '’'")
> 3.2206342273566406
> >>> timeit.timeit("'abcd'*1000 + '’'")
> 2.9914403449067777
>
> 3) Python is "pround" to cover the whole unicode range,
> unfortunately it "breaks" the BMP range.
> Small GvR exemple (ascii) from the the bug list,
> but with non ascii characters.
>
> # Py 3.2, all chars
>
> >>> timeit.repeat("a = 'hundred'; 'x' in a")
> [0.09087790617297742, 0.07456871885972305, 0.07449940353376405]
> >>> timeit.repeat("a = 'maçãé€ẞ'; 'x' in a")
> [0.10088136800095526, 0.07488497003487282, 0.07497594640028638]
>
>
> # Py 3.3 ascii and non ascii chars
> >>> timeit.repeat("a = 'hundred'; 'x' in a")
> [0.11426985953005442, 0.10040049292649655, 0.09920834808588097]
> >>> timeit.repeat("a = 'maçãé€ẞ'; 'é' in a")
> [0.2345595188256766, 0.21637172864154763, 0.2179096624382737]
>
>
> There are plenty of good reasons to use Python. There are
> also plenty of good reasons to not use (or now to drop)
> Python and to realize that if you wish to process text
> seriously, you are better served by using "corporate
> products" or tools using Unicode properly.
>
> jmf

This is so off-topic that, after reading this, I feel I have just returned
from the Moon.

OTOH, it would seem like you know the Portuguese word for apple, so I also
feel home.

I am so confused.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130507/e7e5cf1c/attachment.html>


More information about the Python-list mailing list