Re: how to format a python source file with tools?

2009-11-27 Thread
On Nov 27, 7:04 pm, Marco Mariani wrote: > ??,??? wrote: > > or is it possible for large source files? > > Google for polystyle. > > It's a tool that reformats a program (in several languages) using an > example you must provide (let's call it a "style sheet", written in > Python or whatever) of h

Re: how to format a python source file with tools?

2009-11-27 Thread
On Nov 27, 3:35 pm, Ben Finney wrote: > 李白,字一日 writes: > > or is it possible for large source files? > > Is what possible? What do you want the tool to do? > > -- >  \           “I do not believe in forgiveness as it is preached by the | >   `\        church. We do

how to format a python source file with tools?

2009-11-26 Thread
or is it possible for large source files? -- http://mail.python.org/mailman/listinfo/python-list

Re: a question about python

2009-11-26 Thread
thanks. On Nov 26, 5:45 pm, Steven D'Aprano wrote: > On Thu, 26 Nov 2009 01:21:39 -0800, 李白,字一日 wrote: > > hi, > > i have a question on python programming. > > > let file a.py has a class named a, > >   class a(): > >     __G__ = "" >

a question about python

2009-11-26 Thread
hi, i have a question on python programming. let file a.py has a class named a, class a(): __G__ = "" in file b.py i need to insert an attribute __C__ to class a it would be as if class a defined in file a.py like this: class a(): __G__ = "" __C__ = "2" how this be d