Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ganesh Pal Newsgroups: comp.lang.python Subject: does the order in which the modules are placed in a file matters ? Date: Wed, 16 Dec 2015 21:39:05 +0530 Lines: 35 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de C6hLpBZBKzIIUjv/MTyRXQJmKHCid5Dcx8oy664FAsTw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '"""': 0.05; 'sys': 0.05; '__name__': 0.07; 'main()': 0.07; 'subject:file': 0.07; 'subject:modules': 0.09; 'subject:which': 0.09; 'python': 0.10; '2.7': 0.13; 'def': 0.13; "'__main__':": 0.16; 'guessing': 0.16; 'main():': 0.16; 'pep8': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:matters': 0.16; 'subprocess': 0.16; 'later': 0.16; 'to:name:python-list@python.org': 0.20; 'latter': 0.22; 'defined': 0.23; 'import': 0.24; "doesn't": 0.26; 'example': 0.26; 'linux': 0.26; 'logging': 0.27; 'subject: ?': 0.27; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'run': 0.33; 'running': 0.34; 'received:google.com': 0.35; 'received:209.85': 0.36; 'modules': 0.36; 'to:addr:python-list': 0.36; 'received:209': 0.38; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'matter': 0.63; 'bothered': 0.66; 'sounds': 0.76; '.etc': 0.84 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=XgZsT4TNQzgqDi3eSxgW5ugSQwO6vpEFAFV8zRjCNCA=; b=GZMVwmUHQk8kpQYoFcBAXN1RNe6mInvPXkqj0Wy4ImFSwuVci/ET6CwoD/Wo+U0f/r QhGjbkNRD7SKLp+vNFE0O9+stWHhTyr4EBJWHdZfJUFlgVEsFBwM/X7IdxCr+8WzDWAM YKu7gAEUNWHl/KDGjoLntP4iJumlbYVbHm3k+itMD0bSQNty6r578QgtqQNghYUrYAnJ kTtCa/gbWiNQiuril2hmUq6ji6/ooc4wCie2RbquxBORHk0VTBfcFwIqWv+WP+AFzYS5 iQONDauqkkICwuafh8c5e82Y/2HcZcg2yiA+6rdfJZcVEU1/26y6D3EeInAjRLiue3eD 12+Q== X-Received: by 10.112.171.99 with SMTP id at3mr19654252lbc.108.1450282145166; Wed, 16 Dec 2015 08:09:05 -0800 (PST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100514 Iam on python 2.7 and linux .I need to know if we need to place the modules in a particular or it doesn't matter at all order while writing the program For Example import os import shlex import subprocess import time import sys import logging import plaftform.cluster from util import run def main(): """ ---MAIN--- """ if __name__ == '__main__': main() In the above example : 1. Iam guessing may be the python modules like os , shlex etc come first and later the user defined modules like import plaftform.cluster .etc come latter Sorry if my question sounds dump , I was running pep8 and don't see its bothered much about it Regards, Ganesh