Handling 3 operands in an expression without raising an exception

Chris Angelico rosuav at gmail.com
Fri Sep 27 21:59:42 EDT 2013


On Sat, Sep 28, 2013 at 8:06 AM, Νίκος <nikos.gr33k at gmail.com> wrote:
> Well to tell the truth no matter what you say to me if something can be
> written in less lines than another implementation but still retain its
> simplicity and straightforward logic behind it i would prefer it!
> I don't know why you think otherwise, especially people who are used to
> write Perl code(me being one of them) would agree with me!

It's high time you stopped trying to write Perl code that runs under
the Python interpreter, and started writing Python code that runs
under the Python interpreter.

There are rules. You first learn the rules and learn to code within
them; then later, once you actually achieve some measure of
competence, you begin learning when to break the rules.

ChrisA



More information about the Python-list mailing list