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


Groups > comp.lang.python > #11224

Re: code object differences between 2.7 and 3.3a

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'discussions': 0.03; 'instance,': 0.05; 'repository': 0.05; 'subject:code': 0.07; 'subject:object': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'referenced': 0.09; 'subject:2.7': 0.09; 'tracker': 0.09; 'entries': 0.13; 'from:addr:acm.org': 0.16; 'history.': 0.16; 'mercurial,': 0.16; 'received:198.144': 0.16; 'subject:between': 0.16; 'wrote:': 0.16; 'subversion': 0.23; 'changed': 0.24; 'code': 0.25; '(the': 0.28; 'transition': 0.29; 'url:)': 0.29; 'lines': 0.30; 'changes': 0.31; 'developers': 0.32; 'earlier': 0.32; 'received:198': 0.32; 'familiar': 0.32; 'usually': 0.32; 'source': 0.33; 'there': 0.33; 'to:addr:python- list': 0.33; 'wondering': 0.33; 'difference': 0.34; 'header:User- Agent:1': 0.34; 'but,': 0.34; 'eric': 0.34; 'project': 0.34; 'preserve': 0.34; 'header:X-Complaints-To:1': 0.35; 'charset:us- ascii': 0.36; 'file': 0.36; 'url:python': 0.36; 'question': 0.36; 'using': 0.37; 'received:org': 0.38; 'url:org': 0.38; 'subject:: ': 0.39; 'sets': 0.39; 'url:docs': 0.39; 'help': 0.39; 'header :Mime-Version:1': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; 'history': 0.40; 'more': 0.60; 'your': 0.61; 'back': 0.62; 'interest': 0.65; 'yourself': 0.67; 'care': 0.71; 'become': 0.71; 'article': 0.76; 'snow': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: code object differences between 2.7 and 3.3a
Date Thu, 11 Aug 2011 10:26:44 -0700
References <CALFfu7BZoxttcgULpmrmiV4UMBCos7joUm8bRZXxQ+N25t4RrA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host baybryj.net
User-Agent MT-NewsWatcher/3.5.3b3 (PPC Mac OS X)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.2186.1313083662.1164.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1313083662 news.xs4all.nl 23895 [2001:888:2000:d::a6]:33318
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:11224

Show key headers only | View raw


In article 
<CALFfu7BZoxttcgULpmrmiV4UMBCos7joUm8bRZXxQ+N25t4RrA@mail.gmail.com>,
 Eric Snow <ericsnowcurrently@gmail.com> wrote:
> Specifically, I am wondering why there is a difference for co_names.

This is not an answer to your question but, as a metapoint, in my 
experience it is usually faster and often more reliable to try to answer 
questions like this yourself using the tools that the Python project 
provides:

- clone a copy of the hg repository and update to the branch of interest

- become familiar with the code layout (the developers guide can help 
with this (http://docs.python.org/devguide/)

- use "hg annotate" to see what lines were changed by what rev sets and 
by whom

- use "hg log -v <filename>" to browse the history entries for the file 

- look up the tracker issues referenced in those history entries and 
follow the discussions there

The Python project has an effective process for code development and one 
that emphasizes good documentation of changes and additions.  For 
instance, as part of the transition earlier this year from Subversion to 
Mercurial, great care was taken to preserve as much of the existing 
source history as possible going far back into the time machine.  It's 
to your advantage to take advantage of these sources of history.

-- 
 Ned Deily,
 nad@acm.org

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


Thread

Re: code object differences between 2.7 and 3.3a Ned Deily <nad@acm.org> - 2011-08-11 10:26 -0700

csiph-web