allowing braces around suites

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sat Aug 28 11:56:36 CEST 2004


Isaac To wrote:
>>>>>> "Kjetil" == Kjetil Torgrim Homme <kjetilho at yksi.ifi.uio.no> writes:
> 
>     Kjetil> that's a hack, and IMHO not worthy of a Python program.
>     Kjetil> not even Perl has anything like that, AFAIK.
> 
> Hm... hacks are not for Python?!  We see every kind of hacks
> everywhere in Python just like it is in Perl, like (2,) syntax, etc.

Why would you call (2,) syntax a hack?

If you like, you can call tuple([2]), but I would consider _this_ an
ugly solution or a "hack".

Reinhold

-- 
[Windows ist wie] die Bahn: Man muss sich um nichts kuemmern, zahlt fuer
jede Kleinigkeit einen Aufpreis, der Service ist mies, Fremde koennen
jederzeit einsteigen, es ist unflexibel und zu allen anderen Verkehrs-
mitteln inkompatibel.               -- Florian Diesch in dcoulm



More information about the Python-list mailing list