<p><a href="https://gerrit.osmocom.org/c/pysim/+/26165">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/profile.py">File pySim/profile.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/profile.py@31">Patch Set #3, Line 31:</a> <code style="font-family:monospace,monospace">_</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">you can simply use CardProfile. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't think that it is so simple. The order matches. With __subclasses__() we get a random order. Also it seems to return only classes directly inherited from CardProfile, but the CardProfileUICCSIM is inherited from CardProfileUICC and does not appear in the list.</p><p style="white-space: pre-wrap; word-wrap: break-word;">import pySim.ts_102_221 did not work, but from pySim.ts_102_221 import * worked. However, if using __subclasses__() does not work its probably better to list the classes individually anyway.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/ts_102_221.py">File pySim/ts_102_221.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/ts_102_221.py@751">Patch Set #3, Line 751:</a> <code style="font-family:monospace,monospace">match_witch_card</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">still no witches or witchcraft involved :)  I guess you meant "which"</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">oops. I ment "with"</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/ts_51_011.py">File pySim/ts_51_011.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/ts_51_011.py@977">Patch Set #3, Line 977:</a> <code style="font-family:monospace,monospace">def _match_witch_card(scc:SimCardCommands) -> bool:</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">why have this as a separate method outside of the class, only to wrap it into a @staticmethod below? […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I thought that this would help to make the actual class more readable because it is shorter then.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/26165">change 26165</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/26165"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If090d32551145f75c644657b90085a3ef5bfa691 </div>
<div style="display:none"> Gerrit-Change-Number: 26165 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 11 Nov 2021 11:43:58 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>