Latest entries in category 'Unicode'https://www.b-list.org/weblog/categories/unicode/2023-12-23T21:14:40.116268-06:00James BennettCompare strings the right way2023-12-23T19:14:06-06:002023-12-23T21:14:40.116268-06:00James Bennetthttps://www.b-list.org/tag:www.b-list.org,2023-12-23:/weblog/2023/dec/23/compare-python-strings/<p>This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See <a href="/weblog/2023/dec/03/python-enums/">the first post for an introduction</a>.</p>
<h2>Unicode’s unique complexity</h2>
<p>It is the year 2023 — almost 2024! — and hopefully you’re using a programming language that is fully Unicode-aware. Python is; its string type is a sequence of …</p>
<p><a href="https://www.b-list.org/weblog/2023/dec/23/compare-python-strings/">Read full entry</a></p>
https://www.b-list.org/about/copyright/Truths programmers should know about case2018-11-26T08:00:00-06:002020-04-23T05:14:35.535673-05:00James Bennetthttps://www.b-list.org/tag:www.b-list.org,2018-11-26:/weblog/2018/nov/26/case/<p>A couple weeks ago I gave <a href="https://www.youtube.com/watch?v=NIebelIpdYk">a talk about usernames</a> at <a href="https://2018.northbaypython.org/">North Bay Python</a>. The content came mostly from things I’ve learned in roughly 12 years of maintaining <a href="/projects/django-registration/">django-registration</a>, which has taught me more than I ever wanted to know about how complex even “simple” things can be.</p>
<p>I mentioned toward the beginning of the talk, though, that it wasn’t going to be one of those “falsehoods programmers believe about <em>X</em>” things. If …</p>
<p><a href="https://www.b-list.org/weblog/2018/nov/26/case/">Read full entry</a></p>
https://www.b-list.org/about/copyright/django-registration 3.02018-09-04T09:30:12-05:002020-04-23T05:14:32.483628-05:00James Bennetthttps://www.b-list.org/tag:www.b-list.org,2018-09-04:/weblog/2018/sep/04/three-dot-oh/<p>Today I’m pleased to announce the release of <a href="/projects/django-registration/">django-registration</a> 3.0. This is a pretty big update, and one that’s been coming for a while, so I want to take a moment to go briefly through the changes (if you want the full version, you can check out <a href="https://django-registration.readthedocs.io/en/3.0/upgrade.html">the upgrade guide</a> in the documentation).</p>
<p>This also marks the retirement of the 2.x release series of django-registration; 2.5.2 is on PyPI, and I intend for it to be …</p>
<p><a href="https://www.b-list.org/weblog/2018/sep/04/three-dot-oh/">Read full entry</a></p>
https://www.b-list.org/about/copyright/Let's talk about usernames2018-02-11T06:09:06-06:002020-04-23T05:14:30.201800-05:00James Bennetthttps://www.b-list.org/tag:www.b-list.org,2018-02-11:/weblog/2018/feb/11/usernames/<p>A few weeks ago I released <a href="/projects/django-registration/">django-registration</a> 2.4.1. The 2.4 series is the last in the django-registration 2.x line, and from here on out it’ll only get bugfixes. The <code>master</code> branch is now prepping for 3.0, which will remove a lot of the deprecated cruft that’s accumulated over the past decade of maintaining it, and try to focus on best practices for modern Django applications.</p>
<p>I’ll write more about that sometime soon, but right now I …</p>
<p><a href="https://www.b-list.org/weblog/2018/feb/11/usernames/">Read full entry</a></p>
https://www.b-list.org/about/copyright/How Python does Unicode2017-09-05T06:24:41-05:002020-04-23T05:14:27.889991-05:00James Bennetthttps://www.b-list.org/tag:www.b-list.org,2017-09-05:/weblog/2017/sep/05/how-python-does-unicode/<p>As we all (hopefully) know by now, Python 3 made a significant change to how strings work in the language. I’m on the record as being strongly in favor of this change, and I’ve written at length about why I think it was the right thing to do. But for those who’ve been living under a rock the past ten years or so, here’s a brief summary, because it’s relevant to what I want to …</p>
<p><a href="https://www.b-list.org/weblog/2017/sep/05/how-python-does-unicode/">Read full entry</a></p>
https://www.b-list.org/about/copyright/On Python 3, again2016-06-10T04:21:48-05:002020-04-23T05:14:25.603356-05:00James Bennetthttps://www.b-list.org/tag:www.b-list.org,2016-06-10:/weblog/2016/jun/10/python-3-again/<p>A while back, Brett Cannon went into some detail on <a href="http://www.snarky.ca/why-python-3-exists">why Python 3 happened</a> (that is, why it was backwards-incompatible with Python 2 and why it was backwards-incompatible in the particular ways it was). Python 3 has been pretty controversial, with people I respect chiming in on both sides of the good idea/bad idea debate. And the transition (which Brett has <a href="http://www.snarky.ca/the-stages-of-the-python-3-transition">also taken a recent look at</a>) has indeed been slow, but that at …</p>
<p><a href="https://www.b-list.org/weblog/2016/jun/10/python-3-again/">Read full entry</a></p>
https://www.b-list.org/about/copyright/