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

2009-11-30 Thread Lie Ryan
On 12/1/2009 4:30 AM, Falcolas wrote: Nonetheless, it would be better to implement coding standards that everyone can stick to. Agreed. You can't solve social issues with program. -- http://mail.python.org/mailman/listinfo/python-list

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

2009-11-30 Thread Falcolas
On Nov 30, 7:37 am, gil_johnson wrote: > On Nov 27, 9:58 am, "Diez B. Roggisch" wrote: > [...] > > > > so i would like to have a tool to intelligently format the code for me > > > and make the code more beautiful > > > and automated. > > > This is not possible. Consider the following situation: >

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

2009-11-30 Thread gil_johnson
On Nov 27, 9:58 am, "Diez B. Roggisch" wrote: [...] > > so i would like to have a tool to intelligently format the code for me > > and make the code more beautiful > > and automated. > > This is not possible. Consider the following situation: > [...] > Both are semantically radically different,

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

2009-11-30 Thread Neil Cerutti
On 2009-11-27, Diez B. Roggisch wrote: > The only thing that migh be automatized after a piece of code > is valid is normalization, like de-tabifying or making > everything based on 4 space characters indention. No idea if > there is something out there that does that. In vim, you can do somethin

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

2009-11-30 Thread 84715...@qq.com
On 11月27日, 下午2时40分, 李白,字一日 wrote: > or is it possible for large source files? http://www.jerseysup.com"; target="sport jersey">sport jersey http://www.sport-jersey.net"; target="sport jersey">sports jerseyhttp://www.uggwomen.net"; target="ugg women">uggboothttp://www.nike-market.com";

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

2009-11-27 Thread Diez B. Roggisch
李白,字一日 schrieb: 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 not need the forgiveness of

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 not need the forgiveness of God

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

2009-11-27 Thread Marco Mariani
??,??? 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 how you would want to format it. You can then refo

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

2009-11-27 Thread 84715...@qq.com
On 11月27日, 下午3时45分, cmptrwhz wrote: > On Nov 27, 12:40 am, 李白,字一日 wrote: > > > or is it possible for large source files? > > are you trying to format the file with the proper indentations? http://www.jerseysup.com"; target="sport jersey">sport jersey http://www.sport-jersey.net"; target="spor

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

2009-11-26 Thread cmptrwhz
On Nov 27, 12:40 am, 李白,字一日 wrote: > or is it possible for large source files? are you trying to format the file with the proper indentations? -- http://mail.python.org/mailman/listinfo/python-list

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

2009-11-26 Thread Ben Finney
李白,字一日 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 not need the forgiveness of God, but of each | _o__)other and

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