Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread 88888 Dihedral
在 2012年2月20日星期一UTC+8上午8时23分33秒,Michael Torrie写道: > On 02/18/2012 11:58 AM, SherjilOzair wrote: > > Has it been considered to add shell features to python, such that it > > can be used as a default shell, as a replacement for bash, etc. > > > > I'm sure everyone would agree that doing this would ma

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread Michael Torrie
On 02/18/2012 11:58 AM, SherjilOzair wrote: > Has it been considered to add shell features to python, such that it > can be used as a default shell, as a replacement for bash, etc. > > I'm sure everyone would agree that doing this would make the terminal > very powerful. > > What are your views o

Re: logging with logging.config.fileConfig

2012-02-19 Thread MRAB
On 19/02/2012 20:23, Herman wrote: I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [snip] [logger_abc] level=DEBUG handlers=consoleHandler qualname=abc Add this line to stop t

logging with logging.config.fileConfig

2012-02-19 Thread Herman
I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [loggers] keys=root,abc [handlers] keys=consoleHandler [formatters] keys=detailFormatter [logger_root] level=DEBUG handlers=consol

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread Terry Reedy
On 2/19/2012 3:18 AM, SherjilOzair wrote: Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in 'cd xxx' cannot work because that is not python synta

Re: entering unicode (was Python usage numbers)

2012-02-19 Thread rusi
On Feb 19, 8:44 am, Steven D'Aprano wrote: > On Sun, 12 Feb 2012 19:09:32 -0800, rusi wrote: > > I have some bunch of sanskrit (devanagari) to type.  It would be easiest > > for me if I could have the English (roman) as well as the sanskrit > > (devanagari). > > > For example using the devanagari-

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread Steven D'Aprano
On Sun, 19 Feb 2012 00:16:43 -0800, SherjilOzair wrote: > Well, if not modify python itself, I was thinking of making another > shell, which borrows a lot from python, something like merging bash and > python. such that I can do `cd ~/Desktop/dev` and `for i in > open('file.txt'): print i` at the

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread SherjilOzair
Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the some shell. This I think would be VERY useful. IPyhton is ver

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread SherjilOzair
Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the some shell. This I think would be VERY useful. IPyhton is ver