qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-2083) [python] List of API calls using deprecated C API calls
Date Mon, 12 Aug 2019 17:14:00 GMT

    [ https://issues.apache.org/jira/browse/PROTON-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905398#comment-16905398
] 

Andrew Stitcher commented on PROTON-2083:
-----------------------------------------

None of the python transport APIs are really "calls using deprecated C API calls" simply because
the entire point of the transport class they are part of is to map directly to that C API.
So in reality the deprecation is to any client of the python API that uses these calls not
the calls themselves.

If you really want to find deprecated uses in python of these APIs you need to look for anything
that uses *these* APIs.

 

> [python] List of API calls using deprecated C API calls
> -------------------------------------------------------
>
>                 Key: PROTON-2083
>                 URL: https://issues.apache.org/jira/browse/PROTON-2083
>             Project: Qpid Proton
>          Issue Type: Task
>          Components: python-binding
>            Reporter: Kim van der Riet
>            Priority: Major
>
> The following deprecated C API calls are used within the Python API:
> proton/_endpoints.py:
> ||Python API call||Used Deprecated C API Call||Replacement C API Call||
> |Connection.error()|pn_error_code|pn_connection_condition|
> proton/_transport.py:
> ||Python API call||Used Deprecated C API Call||Replacement C API Call||
> |Transport.bind()|pn_transport_bind|pn_connection_driver_init|
> |Transport.bind_nothrow()|pn_transport_bind|pn_connection_driver_init|
> |Transport.unbind()|pn_transport_unbind|pn_connection_driver_destroy|
> |Transport.capacity()|pn_transport_capacity|Use the connection_driver API|
> |Transport.push()|pn_transport_push|Use the connection_driver API|
> |Transport.close_tail()|pn_transport_close_tail|Use the connection_driver API|
> |Transport.pending()|pn_transport_pending|Use the connection_driver API|
> |Transport.peek()|pn_transport_peek|Use the connection_driver API|
> |Transport.pop()|pn_transport_pop|Use the connection_driver API|
> |Transport.close_head()|pn_transport_close_head|Use the connection_driver API|
> |Transport.closed()|pn_transport_closed|Use the connection_driver API|
> |Transport.frames_output()|pn_transport_get_frames_output|No replacement|
> |Transport.frames_input()|pn_transport_get_frames_input|No replacement|
> |SASL.done()|pn_sasl_done|Do not use. There is no correct way to use this|
> |SSLDomain.allow_unsecured_client()|pn_ssl_domain_allow_unsecured_client|pn_transport_require_encrytion|



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message