Re: [pypy-dev] Bringing Cython and PyPy closer together

2012-03-18 Thread Stefan Behnel
Stefan Behnel, 26.02.2012 20:54: > Amaury Forgeot d'Arc, 18.02.2012 15:41: >> 2012/2/18 Stefan Behnel >>> Here's an example. >>> >>> Python code: >>> >>> def print_excinfo(): >>> print(sys.exc_info()) >>> >>> Cython code: >>> >>> from stuff import print_excinfo >>> >>> try: >>> raise T

Re: [pypy-dev] String replace() method causing error on translate

2012-03-18 Thread Benjamin Peterson
2012/3/18 Nathan Alday :\ > It's not clear to me what the issue is. Is there another type that has a > replace method that is confusing the type inference system? It appears the annotator sees someone passing None into tokenize. -- Regards, Benjamin _

[pypy-dev] String replace() method causing error on translate

2012-03-18 Thread Nathan Alday
I'm trying to see if I can get Peter Norvig's lis.py (from here: http://norvig.com/lispy.html) to translate using translate.py, but I get the following error: AnnotatorError: [translation:ERROR] -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ [translation:ERROR] Blocked block -- opera