This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add script to build many glibc configurations


On Mon, 14 Nov 2016, Mike Frysinger wrote:

> On 14 Nov 2016 15:22, Joseph Myers wrote:
> > On Mon, 14 Nov 2016, Mike Frysinger wrote:
> > > > +class Context:
> > > 
> > > please no old style classes.  all of them should inherit object.
> > > 	class Context(object):
> > 
> > There's no such thing as an old-style class in Python 3 (and this script 
> > requires 3.5 or later); inheritance from object happens by default.
> 
> the py3 behavior is irrelevant to the style choice: the object inherit
> should be explicit regardless.

Is there some style guide we're following that recommends this for Python 
3 code?  I've only seen it mentioned as something to do when you're 
writing code that's meant to work the same in Python 2 and Python 3, not 
for code unconcerned with Python 2 compatibility.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]