# Enforce proper version requirements import sys +reload(sys) +sys.setdefaultencoding(sys.stdin.encoding)
if sys.version[0:3] < '2.3': raise ImportError('Python Version 2.3 or above is required for IPython.') diff -ruNp ipython-0.8.1.orig/IPython/iplib.py ipython-0.8.1/IPython/iplib.py --- ipython-0.8.1.orig/IPython/iplib.py 2007-05-05 04:01:13.000000000 +0800 +++ ipython-0.8.1/IPython/iplib.py 2007-11-28 13:30:42.000000000 +0800 @@ -1884,7 +1884,7 @@ want to merge them back into the new fil source = 'if 1:\n%s' % source
$ ipython Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32) Type "copyright", "credits" or "license" for more information.
IPython 0.8.1 -- An enhanced Interactive Python. ? -> Introduction to IPython's features. %magic -> Information about IPython's 'magic' % functions. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: cd 离歌 --------------------------------------------------------------------------- <type 'exceptions.UnicodeEncodeError'> Traceback (most recent call last)
/var/lib/python-support/python2.5/IPython/iplib.py in multiline_prefilter(self, line, continue_prompt) 2282 out = [] 2283 for l in line.rstrip('\n').split('\n'): -> 2284 out.append(self._prefilter(l, continue_prompt)) 2285 return '\n'.join(out) 2286
/var/lib/python-support/python2.5/IPython/iplib.py in _prefilter(self, line, continue_prompt) 2197 (self.rc.multi_line_specials or not continue_prompt): 2198 return self.handle_magic(line,continue_prompt, -> 2199 pre,iFun,theRest) 2200 else: 2201 return self.handle_normal(line,continue_prompt)
/var/lib/python-support/python2.5/IPython/genutils.py in make_quoted_expr(s) 985 # give up, backslash-escaped string will do 986 return '"%s"' % esc_quotes(s) --> 987 res = itpl("$raw$quote$s$tailpadding$quote$tail") 988 return res 989
/var/lib/python-support/python2.5/IPython/Itpl.py in itpl(text) 250 251 # utilities for fast printing --> 252 def itpl(text): return str(Itpl(text)) 253 def printpl(text): print itpl(text) 254 # versions with namespace
/var/lib/python-support/python2.5/IPython/Itpl.py in __str__(self) 216 loc, glob = frame.f_locals, frame.f_globals 217 --> 218 return self._str(glob,loc) 219 220 class ItplNS(Itpl):
/var/lib/python-support/python2.5/IPython/Itpl.py in _str(self, glob, loc) 199 app = result.append 200 for live, chunk in self.chunks: --> 201 if live: app(str(eval(chunk,glob,loc))) 202 else: app(chunk) 203 out = ''.join(result)
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)
In [2]:
On Nov 28, 2007 1:34 PM, Jiahua Huang <jhuangjia...@gmail.com> wrote:
> if sys.version[0:3] < '2.3': > raise ImportError('Python Version 2.3 or above is required for IPython.') > diff -ruNp ipython-0.8.1.orig/IPython/iplib.py ipython-0.8.1/IPython/iplib.py > --- ipython-0.8.1.orig/IPython/iplib.py 2007-05-05 04:01:13.000000000 +0800 > +++ ipython-0.8.1/IPython/iplib.py 2007-11-28 13:30:42.000000000 +0800 > @@ -1884,7 +1884,7 @@ want to merge them back into the new fil > source = 'if 1:\n%s' % source
if sys.version[0:3] < '2.3': raise ImportError('Python Version 2.3 or above is required for IPython.') _______________________________________________ python-chinese Post: send python-chin...@lists.python.cn Subscribe: send subscribe to python-chinese-requ...@lists.python.cn Unsubscribe: send unsubscribe to python-chinese-requ...@lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese
Package: ipython Priority: optional Section: universe/python Installed-Size: 2544 Maintainer: Ubuntu MOTU Developers <ubuntu-m...@lists.ubuntu.com> Original-Maintainer: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org> Architecture: all Version: 0.8.1-1 Replaces: python2.3-ipython, python2.4-ipython, ipython-common Depends: python, python-support (>= 0.2), python-pexpect Recommends: python-numeric, python-numeric-ext, python-matplotlib Suggests: python-profiler Conflicts: python2.3-ipython, python2.4-ipython, ipython-common Filename: pool/universe/i/ipython/ipython_0.8.1-1_all.deb Size: 1047256 MD5sum: dbca77e2abad63a7fe1c2afadd78d29a SHA1: 3df0f85b4a65603429a2d8fecd279354c0b8b942 SHA256: f35288075d8b71d80bd84fe6a40b479c4509f200234b9b75daf1886f8fdf98b9 Description: enhanced interactive Python shell IPython can be used as a replacement for the standard Python shell, or it can be used as a complete working environment for scientific computing (like Matlab or Mathematica) when paired with the standard Python scientific and numerical tools. It supports dynamic object introspections, numbered input/output prompts, a macro system, session logging, session restoring, complete system shell access, verbose and colored traceback reports, auto-parentheses, auto-quoting, and is embeddable in other Python programs. . Homepage: http://ipython.scipy.org/ Bugs: mailto:ubuntu-us...@lists.ubuntu.com Origin: Ubuntu
On Nov 29, 2007 12:11 PM, 篱笆 <namel...@gmail.com> wrote:
> 路过一下.ipython是什么?
另外, google 甚至 baidu 一下都可以知道的。 _______________________________________________ python-chinese Post: send python-chin...@lists.python.cn Subscribe: send subscribe to python-chinese-requ...@lists.python.cn Unsubscribe: send unsubscribe to python-chinese-requ...@lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese