[pypy-svn] r55200 - pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun May 25 10:34:15 CEST 2008
Author: cfbolz
Date: Sun May 25 10:34:14 2008
New Revision: 55200
Modified:
pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py
Log:
use is_same_object instead of is
Modified: pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py
==============================================================================
--- pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py (original)
+++ pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py Sun May 25 10:34:14 2008
@@ -730,7 +730,7 @@
@expose_primitive(PRIMITIVE_SIGNAL, unwrap_spec=[object])
def func(interp, w_rcvr):
# XXX we might want to disable this check
- if w_rcvr.getclass() is not classtable.classtable['w_Semaphore']:
+ if not w_rcvr.getclass().is_same_object(classtable.classtable['w_Semaphore']):
raise PrimitiveFailedError()
wrapper.SemaphoreWrapper(w_rcvr).signal(interp)
return w_rcvr
@@ -738,7 +738,7 @@
@expose_primitive(PRIMITIVE_WAIT, unwrap_spec=[object])
def func(interp, w_rcvr):
# XXX we might want to disable this check
- if w_rcvr.getclass() is not classtable.classtable['w_Semaphore']:
+ if not w_rcvr.getclass().is_same_object(classtable.classtable['w_Semaphore']):
raise PrimitiveFailedError()
wrapper.SemaphoreWrapper(w_rcvr).wait(interp)
return w_rcvr
@@ -746,7 +746,7 @@
@expose_primitive(PRIMITIVE_RESUME, unwrap_spec=[object])
def func(interp, w_rcvr,):
# XXX we might want to disable this check
- if w_rcvr.getclass() is not classtable.classtable['w_Process']:
+ if not w_rcvr.getclass().is_same_object(classtable.classtable['w_Process']):
raise PrimitiveFailedError()
wrapper.ProcessWrapper(w_rcvr).resume(interp)
return w_rcvr
@@ -754,7 +754,7 @@
@expose_primitive(PRIMITIVE_SUSPEND, unwrap_spec=[object])
def func(interp, w_rcvr):
# XXX we might want to disable this check
- if w_rcvr.getclass() is not classtable.classtable['w_Process']:
+ if not w_rcvr.getclass().is_same_object(classtable.classtable['w_Process']):
raise PrimitiveFailedError()
wrapper.ProcessWrapper(w_rcvr).suspend(interp)
return w_rcvr
More information about the Pypy-commit
mailing list