Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51482

import syntax

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <devyncjohnson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'importing': 0.05; 'that?': 0.05; 'collier': 0.09; 'recommends': 0.09; 'pep8': 0.16; 'subject:import': 0.16; 'import': 0.22; 'header:User-Agent:1': 0.23; 'this:': 0.26; 'received:10.0.0': 0.31; 'os,': 0.31; 'johnson': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:10.0': 0.36; 'received:10': 0.37; 'performance': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'email addr:gmail.com': 0.63
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=JgRVRqdcw9YGLQdoTjatJKbaMm/PVT3DzNjYT2qvMSE=; b=ljhH5/TouPYGo7QtooZMfh4P9d+vjQCOtHw/gYwSY3T9eH5Lsp82dP3Fw3QrtiKgdF a2DEUUYlCTf0EVeWAicyS3MYDS8DwiyZfXAb/TL3N1dpaMJKxMrH2Nj5/LG9QmNfIkAs GLl4PmjJlNws1CdmkMT9uVxtxuYtWKjfQiCrXag5iT86xzH9VBp/RZoQxQ6ZsFKDdbyV 8NerFB7K6NVespnWm0wJ8ab/fCZp1gAXmJR8TAixe4PqaQxWEqSL4QP6Yi64j01CCiru LeWQG72i3GZFHKKX8ivlvbx58bXc/ZwtTQGYlLJpNX8BSZW+cZi5IIKJv0ln/uJrWamU 2DKw==
X-Received by 10.59.9.69 with SMTP id dq5mr25523317ved.87.1375127331807; Mon, 29 Jul 2013 12:48:51 -0700 (PDT)
Date Mon, 29 Jul 2013 15:48:48 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version 1.0
To Python Mailing List <python-list@python.org>
Subject import syntax
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5258.1375127678.3114.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375127678 news.xs4all.nl 15871 [2001:888:2000:d::a6]:35188
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51482

Show key headers only | View raw


The PEP8 recommends importing like this:

import os
import re

not like this:

import os, re

Why is that? Is there a performance advantage to one of the styles?


Mahalo,

Devyn Collier Johnson
DevynCJohnson@Gmail.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

import syntax Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-29 15:48 -0400

csiph-web