[Stackless] Python 2.4.3 source code

Carlos Eduardo de Paula cedepaula at yahoo.com.br
Thu Mar 30 17:46:08 CEST 2006


Richard,

I dont know if it is a valid test.. but I downloaded
the compiled 2.4.3 binaries from python.org and the
compiled DLL that you placed in stackless.com.

I got all the tests for stackless and for regression.
Running the regression under the original python DLL
and the stackless DLL gave me the same number of
errors and skips for both.

----------- Regression tests ------------
204 tests OK.
36 tests failed:
    test_MimeWriter test_asynchat test_augassign
test_cgi test_class
    test_coercion test_compare test_cookie test_email
test_exceptions
    test_extcall test_frozen test_global test_grammar
test_httplib
    test_logging test_math test_mmap test_new
test_opcodes
    test_operations test_pep277 test_pkg test_popen
test_popen2
    test_profile test_pyexpat test_regex test_rgbimg
test_scope
    test_thread test_threadedtempfile test_tokenize
test_types
    test_winreg test_winsound
50 tests skipped:
    test__locale test_aepack test_al test_applesingle
test_bsddb185
    test_bsddb3 test_cd test_cl test_codecmaps_cn
test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr
test_codecmaps_tw
    test_commands test_crypt test_curses test_dbm
test_dl test_fcntl
    test_fork1 test_gdbm test_gl test_grp test_imgfile
test_ioctl
    test_largefile test_linuxaudiodev test_macfs
test_macostools
    test_mhlib test_nis test_normalization
test_openpty
    test_ossaudiodev test_plistlib test_poll
test_posix test_pty
    test_pwd test_resource test_scriptpackages
test_signal
    test_socket_ssl test_socketserver test_sunaudiodev
    test_threadsignals test_timeout test_timing
test_urllib2net
    test_urllibnet
Those skips are all expected on win32.
---------------------------------------------------

Running the stackless tests, I had the following
errors:

C:\Carlos\Python\tests\Stackless>runAll.py
...EE.................E.....
======================================================================
ERROR: Same as 1, but with a pickled run(slightly)
tasklet.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_miscell.py", line 86, in
test_aliveness3
    dumped = pickle.dumps(t)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
1386, in dumps
    Pickler(file, protocol, bin).dump(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
231, in dump
    self.save(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
614, in save_list
    self._batch_appends(iter(obj))
  File "C:\carlos\apps\Python24\lib\pickle.py", line
629, in _batch_appends
    save(x)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
313, in save
    rv = reduce(self.proto)
  File "C:\carlos\apps\Python24\lib\copy_reg.py", line
69, in _reduce_ex
    raise TypeError, "can't pickle %s objects" %
base.__name__
TypeError: can't pickle ellipsis objects

======================================================================
ERROR: testDict
(test_pickle.TestConcretePickledTasklets)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_pickle.py", line 167, in testDict
    self.run_pickled(dicttest, 20, 13)
  File ".\test_pickle.py", line 114, in run_pickled
    pi = pickle.dumps(t)
PicklingError: Can't pickle <type 'iterator'>:
attribute lookup __builtin__.iter
ator failed

======================================================================
ERROR: test_pickle (test_watchdog.TestWatchdog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_watchdog.py", line 238, in test_pickle
    t = pickle.loads(self.get_pickled_tasklet())
  File ".\test_watchdog.py", line 234, in
get_pickled_tasklet
    return pickle.dumps(not_finished)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
1386, in dumps
    Pickler(file, protocol, bin).dump(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
231, in dump
    self.save(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
614, in save_list
    self._batch_appends(iter(obj))
  File "C:\carlos\apps\Python24\lib\pickle.py", line
629, in _batch_appends
    save(x)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
313, in save
    rv = reduce(self.proto)
  File "C:\carlos\apps\Python24\lib\copy_reg.py", line
69, in _reduce_ex
    raise TypeError, "can't pickle %s objects" %
base.__name__
TypeError: can't pickle ellipsis objects

----------------------------------------------------------------------
Ran 28 tests in 0.078s

FAILED (errors=3)
...E..................E.....
======================================================================
ERROR: Same as 1, but with a pickled run(slightly)
tasklet.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_miscell.py", line 86, in
test_aliveness3
    dumped = pickle.dumps(t)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
1386, in dumps
    Pickler(file, protocol, bin).dump(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
231, in dump
    self.save(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
614, in save_list
    self._batch_appends(iter(obj))
  File "C:\carlos\apps\Python24\lib\pickle.py", line
629, in _batch_appends
    save(x)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
313, in save
    rv = reduce(self.proto)
  File "C:\carlos\apps\Python24\lib\copy_reg.py", line
69, in _reduce_ex
    raise TypeError, "can't pickle %s objects" %
base.__name__
TypeError: can't pickle ellipsis objects

======================================================================
ERROR: test_pickle (test_watchdog.TestWatchdog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_watchdog.py", line 238, in test_pickle
    t = pickle.loads(self.get_pickled_tasklet())
  File ".\test_watchdog.py", line 234, in
get_pickled_tasklet
    return pickle.dumps(not_finished)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
1386, in dumps
    Pickler(file, protocol, bin).dump(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
231, in dump
    self.save(obj)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
614, in save_list
    self._batch_appends(iter(obj))
  File "C:\carlos\apps\Python24\lib\pickle.py", line
629, in _batch_appends
    save(x)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
338, in save
    self.save_reduce(obj=obj, *rv)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
433, in save_reduce
    save(state)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
576, in save_tuple
    save(element)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
293, in save
    f(self, obj) # Call unbound method with explicit
self
  File "C:\carlos\apps\Python24\lib\pickle.py", line
663, in save_dict
    self._batch_setitems(obj.iteritems())
  File "C:\carlos\apps\Python24\lib\pickle.py", line
677, in _batch_setitems
    save(v)
  File "C:\carlos\apps\Python24\lib\pickle.py", line
313, in save
    rv = reduce(self.proto)
  File "C:\carlos\apps\Python24\lib\copy_reg.py", line
69, in _reduce_ex
    raise TypeError, "can't pickle %s objects" %
base.__name__
TypeError: can't pickle ellipsis objects

----------------------------------------------------------------------
Ran 28 tests in 0.047s

FAILED (errors=2)


-----------------------------

Hope it helps.....

Best regards,

Carlos


--- Richard <richard at ccpgames.com> escreveu:

> 
> Hi,
> 
> I have checked in the Python 2.4.3 source code with
> the ported Stackless
> modifications into the Codespeak subversion
> repository.  There are
> however some minor things that need to be taken into
> account which you
> may be able to help me with, if you have the time.
> 
>  1. I need a generated 'configure' file.  I believe
> the 'configure.in'
>     fine should be fine, but if someone could run
> autoconf and send me
>     the result so I can check it in, it would be
> appreciated.
> 
>  2. Having the Python tests run, and the Stackless
> unittests run by
>     various people on different platforms would give
> a better indication
>     of the state of the port.
> 
>     The following instructions are of course Win32
> specific, but they
>     should be translate easily.
> 
>     a) Retrieve the 2.4.3 source code from SVN at:
>       
> http://codespeak.net/svn/stackless/Python-2.4.3/dev
> 
>     b) Compile it.
> 
>     c) Open a console in the 'Stackless\unittests'
> directory.
>        Type '..\..\PCBuild\python.exe run_all.py'.
>        
>        The expected result is that one pickling test
> will fail, this is ok
>        and it is the same known bug that we had for
> 2.4.2, which should be
>        easy enough to fix if someone wants to step
> forward and put in the
>        time and effort.
> 
>     d) Open a console in the top level of the source
> code.
>        Type 'PCBuild\python.exe
> Lib\test\regrtest.py'
> 
>        The expected result is that there will be a
> lot of skipped tests,
>        and possibly some failures depending on your
> platform.
> 
>        I had these fail:
>        - test_email
>        - test_winsound
> 
>        Neither of the errors were necessarily
> Stackless related, but it is
>        possible they are.  But if you see any for
> your build that are
>        unexpected, please mention them.
> 
> Anyway, I guess that this covers everything.
> 
> Thanks,
> Richard.
> 
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless
> 



		
_______________________________________________________ 
Novo Yahoo! Messenger com voz: Instale agora e faça ligações de graça. 
http://br.messenger.yahoo.com/

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list