Source

pypy-arp11 / pypy / objspace / std / fake.py

Author Commit Message Labels Comments Date
Alex Gaynor
(alex, with review from arigo and antocuni) Improve function defaults by showing the JIT that the memory they reside in is constant, evne if function.func_defaults isn't
Amaury Forgeot d'Arc
Add space argument to all instances of w_obj.getdict()
Branches
getdict-signature
Amaury Forgeot d'Arc
kill most unwrap_spec in objspace
Branches
improve-unwrap_spec
Alex Gaynor
A bit of an ugly hack so that faked functions can work at interp-level and become bound as methods.
Amaury Forgeot d'Arc
Merge from trunk: svn merge -r77543:78227 ../trunk/ .
Branches
fast-forward
Amaury Forgeot d'Arc
Fix faking of objects without a __dict__ (file, for example)
Carl Friedrich Bolz
merge improve-kwd-args
Samuele Pedroni
merge changes to switch to using py.lib 1.0 final, also changes to the jit related conftests
Armin Rigo
Finish the merge of trunk into pyjitpl5.
Michael Hudson-Doyle
this fixes the 'failing socket tests kill traceback printing' issue. i'm not 100% sure about the whys and wheres, but at this point in fake.py's life i'm not sure it's worth worrying over. it doesn't break any more tests and it doesn't break translation...
Armin Rigo
Getting rid of an irregularity that makes the annotator and rtyper messy: the ControlFlowException class that inherited both from Exception and from BaseWrappable. Now there is only a Wrappable class left, and ControlFlowException is only an Exception; to wrap it we use a new tiny box called SuspendedUnroller (because that describes the situation in which it needs to be wrapped).
Michael Hudson-Doyle
repair import mistake, move all imports to top.
Michael Hudson-Doyle
make some imports a little more sane.
Michael Hudson-Doyle
importfun vs objspace/ objspace/std is something of a mess
Armin Rigo
details fixed to allow pypy-c to run a bit more of py.py before crashing.
Armin Rigo
* removed all remaining 'if w_obj == space.w_None'. This is definitely something that breaks the thunk space, so it is better made illegal. Removed from the coding guide too. * related details in descroperation.is_true(): trying to make the logic safe against probably uncommon patterns of usages in object spaces like the thunk.
Christian Tismer
completed replacement ofspace.is_true shortcuts
holger krekel
(arfigo, hufpk) - completely got rid of "faking <type 'file'>" when we start py.py --file. - lib-python/conftest.py is a bit broken now. More clean-up is needed regarding the way the options are applied: the object spaces should do their initialization completely based on the 'options' they get instead of being patched from the outside. - another problem is that applevel tests print output is not c…
Samuele Pedroni
avoid that what was .code (now pycode) get improperly lifted to Frame from PyFrame and that various attributes of PyCode get also lifted improperly to Code. Introduced an intermediary subclass eval.EvalFrame for .eval() based run/resume behavior. Now PyFrame inherits from it.
Samuele Pedroni
avoid .name to be lifted improperly to BaseWrappable.
Samuele Pedroni
Revised specialization, see annotation/specialize.py and changes in bookkeeper; now annotator can receive a policy object to specify both overrides and specializations through the methods specialize and override a base class version is defined in annotation/policy.py, it will use methods of the form specialize__xxx or override__xxx chosen by attaching to the callable in user-code the attribute _annspecialcase_ with values: "specialize:xxx" "override:xxx" respectively. an…
Armin Rigo
targetpypy-friendliness.
Armin Rigo
Use the same keyword arguments as CPython for constructing built-in types, e.g. int(x=5).
Armin Rigo
Replace the calls to xyz.__init__() with known calls to XyzClass.__init__(xyz). Avoids annotator surprizes.
Samuele Pedroni
more definedness fixes
Samuele Pedroni
val definedness
Armin Rigo
Changed the annotator-related behavior of Cache. It doesn't really make sense to forcibly freeze caches. What we really want is that the annotator figures out all the keys that can be used with a given cache (as SomePBCs), and build the corresponding values and add them to the cache. This change required a bit of refactoring in all places using the Cache class. (Some of these places didn't actually need to use the now-a-bit-obscure Cache machinery, and were changed into plain dict manipulations.)
Armin Rigo
Veeeery obscure hacks to fake SRE_Pattern and SRE_Match's methods. Used in ConfigParser.py: class SafeConfigParser: match = re.compile(r"...").match
Armin Rigo
Obscure, did you say?
Armin Rigo
fake.py: Produce a warning message for a case we cannot really handle.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next