Re: [Python-Dev] doctest, unicode repr, and 2to3

2010-03-05 Thread Žiga Seilnacht
Martin v. Löwis wrote: Johan Harjano ran into an interesting problem when trying to run the Django test suite under Python 3.1. Django has doctests of the form >>> a6.headline u'Default headline' Even when converting the doctest with 2to3, the expected output is unmodified. However, in 3.x, th

Re: [Python-Dev] x64 and the testsuite

2007-05-03 Thread Žiga Seilnacht
Kristján Valur Jónsson wrote: > Hello again. > A lot of overflow tests fail in the testsuite, by expecting overflow using > sys.maxint. > for example this line, 196, in test_index.py: > self.assertEqual(x[self.neg:self.pos], (-1, maxint)) Those tests should be fixed to use test.test_support.MAX_

Re: [Python-Dev] BaseException pickle issue

2007-04-01 Thread Žiga Seilnacht
Eric Huss wrote: > Some subclasses of Exception are no longer pickleable in Python 2.5. An > example: > [snip] > > Does anyone have any thoughts about this? Is it a bug? > > I can imagine one could argue that exceptions should call the base > __init__ method to properly set args, but there are

[Python-Dev] Introduction

2007-03-09 Thread Žiga Seilnacht
Hi all! I have just accepted an invitation to become a Python developer, so I feel obliged to introduce myself. My name is Žiga Seilnacht. I'm currently studying civil engineering at the University of Ljubljana, Slovenia. I started learning Python approximately two years ago, as my

Re: [Python-Dev] RFC: readproperty

2005-09-28 Thread Žiga Seilnacht
Michael Hudson python.net> writes: > > "Phillip J. Eby" telecommunity.com> writes: > > > Unfortunately, finding out a descriptor's name is non-trivial; it'd be nice > > if there were a descriptor hook __bind__(cls,name) that was called by > > classes during cls.__new__ or assignment to a cla