eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

211
active users

#PyO3

0 posts0 participants0 posts today
Cheuk Ting Ho<p>As a final preparation for the <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> workshop tomorrow at <a href="https://fosstodon.org/tags/EuroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EuroPython</span></a>, I have updated some exercises to ensure thread-safety. We are ready for <a href="https://fosstodon.org/tags/FreeThreaded" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeThreaded</span></a> <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>! Make sure you have the setup ready: <a href="https://github.com/Cheukting/py03_101" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Cheukting/py03_101</span><span class="invisible"></span></a></p>
Cheuk Ting Ho<p>Are you interested in how <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> changes the ecosystem in <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>? Are you creating Python libraries using Rust code via <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a>? Show your interest in participating in Rust <a href="https://fosstodon.org/tags/Summit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Summit</span></a> in <a href="https://fosstodon.org/tags/EuroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EuroPython</span></a> 2025 now! (details in the comment)</p>
Wolf<p>I did, during my previously mentioned workshop, do one thing to offend <a href="https://hachyderm.io/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a>’s <a href="https://hachyderm.io/tags/borrowchecker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>borrowchecker</span></a>. I was implementing an Account struct that had a current balance and a Vec containing a history of balances. This was using <a href="https://hachyderm.io/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> so there are some special types. Because of inheritance, I have self_ instead of self. Here’s the bad thing I said:</p><p>self_.history.push(self_.as_super().balance);</p><p><span class="h-card" translate="no"><a href="https://hachyderm.io/@algo_luca" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>algo_luca</span></a></span> had to explain it to me. He didn’t even need to think about it. He instantly knew what was wrong. Now I am enlightened. I won’t make this particular kind of mistake again. </p><p>Of course the mistake is that I was trying to use a mutable reference (so I could push to history) and anything else at the same time.</p>
Nigel Small<p>After lunch, it looks like I'll be heading to "Writing Python modules in Rust - PyO3 101" because it would be rude not to.</p><p><a href="https://fosstodon.org/tags/pycon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pycon</span></a> <a href="https://fosstodon.org/tags/pyconie" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyconie</span></a> <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://fosstodon.org/tags/pyo3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyo3</span></a></p>
mgorny-nyan (on) :autism:🙀🚂🐧<p>Wiecie, że przepisywanie fragmentów paczek Pythona w Ruście idzie super, nie?</p><p>Dlatego już prawie rok użytkownicy <a href="https://pol.social/tags/CEPH" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CEPH</span></a> mają problem, bo rustowe Cryptography kłóci się z nowszymi wersjami rustowego BCrypt. Ale jest super!</p><p>A najbardziej super jest to podejście, w którym autorzy Cryptography stwierdzają, że <a href="https://pol.social/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> musi sobie jakoś z tym poradzić, zamykają zgłoszenie i blokują komentarze. Naprawdę potrzeba więcej krytycznych paczek z takim podejściem!</p><p><a href="https://bugs.gentoo.org/920906" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">bugs.gentoo.org/920906</span><span class="invisible"></span></a><br><a href="https://github.com/pyca/bcrypt/issues/694" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/pyca/bcrypt/issues/</span><span class="invisible">694</span></a><br><a href="https://github.com/pyca/cryptography/issues/9016" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/pyca/cryptography/i</span><span class="invisible">ssues/9016</span></a></p><p><a href="https://pol.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://pol.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pol.social/tags/Gentoo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gentoo</span></a></p>
Cheuk Ting Ho<p><a href="https://fosstodon.org/tags/PyConIT2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyConIT2024</span></a> folks, I will be here today after lunch for the <a href="https://fosstodon.org/tags/PyReject" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyReject</span></a> <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> workshop, come to me if you want to learn 👍🏻 <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> experience not required</p>
Cheuk Ting Ho<p>Hey <a href="https://fosstodon.org/tags/PyConIT2024" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyConIT2024</span></a> folks, since I saw the accepted <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> workshop is sold out and I happen to have a rejected PyO3 workshop (which was accepted in <a href="https://fosstodon.org/tags/PyConDE" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyConDE</span></a> and <a href="https://fosstodon.org/tags/PyConUS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyConUS</span></a>) how about we have a reject-PyO3 workshop at the hall way track tomorrow. If there’s enough likes I will do it.</p>
Cheuk Ting Ho<p>I was expecting to meet some <a href="https://fosstodon.org/tags/Pythonistas" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pythonistas</span></a> on the flight to Pittsburgh and there they are (and there’re more I met later) - now ready for my tutorial today about <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> to start my <a href="https://fosstodon.org/tags/PyConUS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyConUS</span></a> activities</p>
Cheuk Ting Ho<p>Time to plan for fun stuff to do at PyCon US (<a href="https://buff.ly/43KKptS" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">buff.ly/43KKptS</span><span class="invisible"></span></a> ) Have you registered for <a href="https://fosstodon.org/tags/HumbleData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HumbleData</span></a>, <a href="https://fosstodon.org/tags/DocSummit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DocSummit</span></a>, <a href="https://fosstodon.org/tags/PyLadies" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyLadies</span></a> auction, <a href="https://fosstodon.org/tags/PSF" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PSF</span></a> member lunch... and my workshop on <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a>? See you in Pittsburgh soon!</p>
Cheuk Ting Ho<p>Welcome to the 10th birthday of <a href="https://fosstodon.org/tags/PyConDE" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyConDE</span></a> <a href="https://fosstodon.org/tags/PyDataBerlin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyDataBerlin</span></a> <a href="https://fosstodon.org/tags/DjangoGirls" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DjangoGirls</span></a></p><p>Make sure to check out my talk later today with @terezaif about <span class="h-card" translate="no"><a href="https://fosstodon.org/@pypodcats" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>pypodcats</span></a></span> : <a href="https://pretalx.com/pyconde-pydata-2024/talk/BYH8Y8/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pretalx.com/pyconde-pydata-202</span><span class="invisible">4/talk/BYH8Y8/</span></a></p><p>and my workshop tomorrow’s about <a href="https://fosstodon.org/tags/PyO3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyO3</span></a> and <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> : <a href="https://pretalx.com/pyconde-pydata-2024/talk/8C83EA/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pretalx.com/pyconde-pydata-202</span><span class="invisible">4/talk/8C83EA/</span></a></p>