Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
Idioms and Anti-Idioms Question
 

Index | Next | Previous | View Flat


bcharrow at csail

Jun 21, 2009, 9:14 PM


Views: 603
Permalink
Idioms and Anti-Idioms Question

I have a question about the "Using Backslash to Continue Statements" in the
howto "Idioms and Anti-Idioms in Python"
(http://docs.python.org/howto/doanddont.html#using-backslash-to-continue-statements)


It says:

"...if the code was:

value = foo.bar()['first'][0]*baz.quux(1, 2)[5:9] \
+ calculate_number(10, 20)*forbulate(500, 360)

then it would just be subtly wrong."

What is subtly wrong about this piece of code? I can't see any bugs and can't
think of subtle gotchas (e.g. the '\' is removed or the lines become separated,
because in both cases an IndentationError would be raised).

Cheers,
Ben
--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
Idioms and Anti-Idioms Question bcharrow at csail Jun 21, 2009, 9:14 PM
    Re: Idioms and Anti-Idioms Question steven at REMOVE Jun 21, 2009, 10:51 PM
    Re: Idioms and Anti-Idioms Question lie.1296 at gmail Jun 21, 2009, 10:54 PM
        Re: Idioms and Anti-Idioms Question ldo at geek-central Jun 22, 2009, 1:01 AM
            Re: Idioms and Anti-Idioms Question wbsoft at xs4all Jun 22, 2009, 3:57 AM
        Re: Idioms and Anti-Idioms Question peter at www Jun 22, 2009, 3:52 PM
            Re: Idioms and Anti-Idioms Question ldo at geek-central Jun 23, 2009, 4:16 AM
            Re: Idioms and Anti-Idioms Question jcd at sdf Jun 23, 2009, 8:50 AM
            Re: Idioms and Anti-Idioms Question lie.1296 at gmail Jun 23, 2009, 11:07 AM
    Re: Idioms and Anti-Idioms Question ldo at geek-central Jun 22, 2009, 5:03 AM
    Re: Idioms and Anti-Idioms Question milesck at umich Jun 22, 2009, 4:34 PM
        Re: Idioms and Anti-Idioms Question gagsl-py2 at yahoo Jun 23, 2009, 8:24 AM
    Re: Idioms and Anti-Idioms Question pavlovevidence at gmail Jun 23, 2009, 8:32 AM
    Re: Idioms and Anti-Idioms Question ldo at geek-central Jun 30, 2009, 10:19 PM
        Re: Idioms and Anti-Idioms Question jcd at sdf Jul 2, 2009, 7:15 AM
    Re: Idioms and Anti-Idioms Question ldo at geek-central Jul 3, 2009, 5:08 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.