I strongly dislike Python 3
Ricardo Aráoz
ricaraoz at gmail.com
Thu Jul 1 10:50:58 EDT 2010
On 30/06/2010 01:23 p.m., Lie Ryan wrote:
> On 07/01/10 01:42, Michele Simionato wrote:
>
>> On Jun 30, 2:52 pm, Lie Ryan<lie.1... at gmail.com> wrote:
>>
>>> On 06/27/10 11:24, Steven D'Aprano wrote:
>>>
>>>
>>>>>> Producing print function takes a little bit more effort than producing a
>>>>>> print statement.
>>>>>>
>>>
>>>> (1) The main use-cases for print are quick (and usually dirty) scripts,
>>>> interactive use, and as a debugging aid.
>>>>
>>> That is precisely how the quick-and-dirty syntax of print statement can
>>> be justified. While debugging, you'll need to be able to quickly add and
>>> delete prints here and there, and the extra parens can quickly become
>>> irritating.
>>>
>> Actually when debugging I use pdb which uses "p" (no parens) for
>> printing, so having
>> print or print() would not make any difference for me.
>>
> You mean I have to start a full-blown debugger to figure out the value
> of a variable? No thanks, debugger has its use for stepping through
> program, but not when printing values is sufficient.
>
Let's, as an exercise, count how many keystrokes and clicks you have
spent on this thread and others complaining on the subject. How many
programs do you think you could debug with this count (considering you
spend a stroke in each print sentence, and I assume you being smart will
not need many prints to figure out problem)?
So let's say you'll keep complaining for a couple of years till you are
ready to adopt Py3. You see what I mean? If you stop complaining right
now the keystrokes you'll save will mean you'll have no extra typing to
do at all.
HTH
More information about the Python-list
mailing list