[Freeipa-devel] [freeipa PR#275][comment] Enhance __repr__ method of Principal

martbab freeipa-github-notification at redhat.com
Tue Nov 29 17:01:01 UTC 2016


  URL: https://github.com/freeipa/freeipa/pull/275
Title: #275: Enhance __repr__ method of Principal

martbab commented:
"""
Sorry I somehow botched that, but it worked nevertheless. I have re-worked the PR according to your comments.

```
In [1]: import ipapython.kerberos
In [2]: p = ipapython.kerberos.Principal(u"HTTP/replica1.ipa.test")
In [3]: p
Out[3]: ipapython.kerberos.Principal('HTTP/replica1.ipa.test')
In [5]: r = eval('p')
In [6]: r
Out[6]: ipapython.kerberos.Principal('HTTP/replica1.ipa.test')
In [7]: r == p
Out[7]: True
```
"""

See the full comment at https://github.com/freeipa/freeipa/pull/275#issuecomment-263630652


More information about the Freeipa-devel mailing list