- **status**: review --> fixed
- **Comment**:
commit 321e1d9eeac01d5259c73c88cea56e34462ebe8e (HEAD -> develop,
origin/develop, ticket-3351)
Author: thien.m.huynh <[email protected]>
Date: Tue Apr 23 10:16:38 2024 +0700
pyosaf: Allow SaStringT compare with str by default [#3351]
An earlier patch supporting Python 3 introduced the SaStringT class.
With str type, default SaStringT cannot be compared.
This commit is to allow compare with str class if without casting
---
**[tickets:#3351] pyosaf: python3 SaStringT compare with str alway fail**
**Status:** fixed
**Milestone:** 5.24.09
**Created:** Fri Apr 19, 2024 11:15 AM UTC by Thien Minh Huynh
**Last Updated:** Tue Apr 23, 2024 03:50 AM UTC
**Owner:** Thien Minh Huynh
using ping-pong samples and reproduce with python3
~~~
def print_admin_operation_info(dn, params):
""" Print admin operation information """
print("INFO: I am %s" % dn)
if params:
print("INFO: Received parameters")
for param in params:
if param.name == "testing":
# condition is pass if run with python2
print("pass")
print("\t- %s: %s (%s)" % (param.name, param.value, param.type))
~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets