[issue39773] Export symbols for vectorcall

2020-03-03 Thread David Hewitt


David Hewitt  added the comment:

I had suspected that might be the case. We already use PyObject_Call but had 
been hoping to experiment with the Vectorcall optimizations.

Without the symbols I might resort to reproducing the implementation of these 
functions on the Rust side. Shouldn't be too much code duplication.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39773] Export symbols for vectorcall

2020-03-03 Thread Petr Viktorin


Petr Viktorin  added the comment:

Yes. Can you use PyObject_Call instead (or one of the non-Vectorcall variants 
listed in https://docs.python.org/3.9/c-api/call.html#object-calling-api )

Vectorcall is mainly a speed optimization over PyObject_Call. We want to allow 
the C compiler to inline PyObject_Vectorcall whenever it is used.
That can be done with static functions or macros, which does unfortunately mean 
that the symbol is not exported.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39773] Export symbols for vectorcall

2020-02-27 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +petr.viktorin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39773] Export symbols for vectorcall

2020-02-27 Thread David Hewitt


New submission from David Hewitt :

I have been looking into using vectorcall in 
[pyo3](https://github.com/PyO3/pyo3) (Rust bindings to Python) against 
python3.8.

It looks like the _PyObject_Vectorcall symbols are not included in the shared 
library. I've checked both Windows and Linux.

I think the `static inline` definition of `PyObject_Vectorcall` and related 
functions in `abstract.h` means that they won't be exported as symbols in the 
final library?

--
messages: 362789
nosy: David Hewitt
priority: normal
severity: normal
status: open
title: Export symbols for vectorcall
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com