pypy / lib_pypy / _ctypes / function.py

Author Commit Message Labels Comments Date
Antonio Cuni avatarAntonio Cuni
(theller)
Antonio Cuni avatarAntonio Cuni
kill old commented out code which comes from the old version of ctypes
Antonio Cuni avatarAntonio Cuni
this is no longer a tentative hack, it's the real solution :-)
Antonio Cuni avatarAntonio Cuni
make errcheck compatible with the fast path
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
fix the failing test, by checking that we can actually cast the pointer also for primitive types (and switch to the slow path in case we cannot)
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
make sure that we enable the fastpath only if we are allowed to
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
fix the tests
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
make errcheck a property, too
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
add a property also for _com_index. Completely untested, it seems there is no test at all for _com_index in general :-(
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
remove explicit check of callable during __call__; replace it with a property which reverts to the slowpath as soon as we set it
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
- add a test checking that we do the right thing in case argtypes is reset to None
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
hg merge default
Branches
jitypes2
Anders Hammarquist avatarAnders Hammarquist
Make ctypes warn about calling functions before declaring argument
Antonio Cuni avatarAntonio Cuni
add a method to get the ffi type from the ctype type
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
manually re-apply the following changeset:
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
manually re-apply the following changeset:
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
manually re-apply the following changesets:
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
manually re-apply this changeset (limited to function.py); test_callbacks.test_callback_void passes again
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
partial merge of default; _ctypes/function.py had very hard conflicts, I'll try to manually merge the changes in the next commits
Branches
jitypes2
Amaury Forgeot d'Arc avatarAmaury Forgeot d'Arc
COM methods are boolean True. Fix one test in test_pointers.py
Amaury Forgeot d'Arc avatarAmaury Forgeot d'Arc
Implement _ctypes.call_function() and fix on test in test_random_things
tav avatartav
Added kwargs/extended paramflags support and tests to ctypes.CFUNCTYPE.
tav avatartav
Improved ctypes.CFUNCTYPE prototype and paramflags handling.
Amaury Forgeot d'Arc avatarAmaury Forgeot d'Arc
Don't print a TypeError when a "void f()" callback function returns None.
Antonio Cuni avatarAntonio Cuni
kill dead code
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
add tests that check that the fastpath is actually taken
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
cache the result of make_specialized_subclass
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
alternative approach to make ctypes call fast: first, we try to call the
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
move the logic for how to unwrap ctypes values into _ffi compatible values from the Function class to the various _CData classes; this will probably make things easier to optimize later
Branches
jitypes2
Antonio Cuni avatarAntonio Cuni
remove unused parameter
Branches
jitypes2
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.