Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.060 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'subject:method': 0.09; 'def': 0.13; '80)': 0.16; 'subject:break': 0.16; 'stick': 0.18; 'trying': 0.21; 'received:209.85.210.174': 0.21; 'received:mail- iy0-f174.google.com': 0.21; '(or': 0.22; 'works.': 0.23; 'work,': 0.28; 'described': 0.28; 'pass': 0.29; 'message- id:@mail.gmail.com': 0.29; 'subject:?': 0.31; 'does': 0.32; 'that,': 0.32; 'it?': 0.33; 'test': 0.34; 'rule': 0.34; 'to:addr :python-list': 0.35; 'subject:How': 0.35; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'characters': 0.39; 'received:209': 0.39; 'expected': 0.40; 'to:addr:python.org': 0.40; 'subject:name': 0.67; 'subject:one': 0.77; 'subject:long': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Z8AtNkrVA/skZQtHWZoN4qjhm0pd/2KLtAMWy8Skpn8=; b=FjiDRjTlZExyAmYOriDre4PldHA+FcBcfJB1P4CbQtFsMvmfitFtuXsDl4T9CybKTp sB2Gg3U47wQUimkAms8zmqWxjiS48RmcGMCOepqD9ZSGeb9mvZO+reqtbHNaYKv/Ht60 6rJjPrWd224bB5fpLHKCFhgqQ411Z0aghT1wyyS3IZwHkSBCvcobqcTkBJDhHu/Er31w fJskPA6hzzxIPG2hm3Zthsz6XjQxaHz4tzYy5MCQuFWS8Ml9S2xdkl45CmieirpjA74W GK1Sh/TGtlPWZ57L8SZNwMXsqzElwWgK1CHh5QT+LiBiza7q1NCM8q+rGSky6tVRiz2F c75g== MIME-Version: 1.0 Date: Sun, 11 Mar 2012 11:53:45 -0700 Subject: How to break long method name into more than one line? From: Herman To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331492028 news.xs4all.nl 6976 [2001:888:2000:d::a6]:59477 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21500 I am trying to stick to the rule described in the TDD book that, each test method name consists of the method name to be tested, inputs and the expected outputs. It takes up a lot of space and my company has a rule of limiting 79 characters (or 80) per line. I found that def abcdeef\ dddaaa(self): pass does not work, but def \ abcsajfoijfiawifoiwejfoi(self): pass works. Is this the only way to do it?