why this is wrong?
Hi, all I just donnot know why this is wrong, you can test it in python shell: class B: def __str__(self): return u'\u5929\u4e0b' b=B() str(b) Traceback (most recent call last): File "", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) Could anybody point me out? -- bruce.who.hk 2006-10-09 -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] NumPy 1.0b4 now available
Hi, Travis I just wonder if NumPy 1.0b4 can get along with py2exe? Just a few weeks ago I made a application in Python. At first I used Numpy, it works OK, but I cannot pack it into a workable executable with py2exe and the XXX.log saied that numpy cannot find some module. I found some hints in py2exe wiki, but it still doesn't work. At Last I tried Numeric instead and it got OK. I just hope that you donnot stop the maintenance of Numeric before you are sure that Numpy can work with py2exe. - > 发件人:Travis E. Oliphant > 发送日期:2006-08-26 17:45:03 > 主题:[ANN] NumPy 1.0b4 now available >The 4th beta release of NumPy 1.0 has just been made available. > >NumPy 1.0 represents the culmination of over 18 months of work to unify >the Numeric and Numarray array packages into a single best-of-breed >array package for Python. > >NumPy supports all the features of Numeric and Numarray with a healthy >dose of it's own improved features. > >It's time to start porting your applications to use NumPy as Numeric is >no longer maintained and Numarray will only be maintained for a few more >months. > >Porting is not difficult especially using the compatibility layers >numpy.oldnumeric and numpy.numarray and the alter_code1.py modules in >those packages. The full C-API of Numeric is supported as is the C-API >of Numarray. > >More information is available at http://numpy.scipy.org > > >NumPy Developers > > > >-- >http://mail.python.org/mailman/listinfo/python-list -- bruce.who.hk 2006-08-28 -- http://mail.python.org/mailman/listinfo/python-list