News for hackers. Stuff that matters.
Re:The rinds of the Cheese Shop menu by ntoll on Tuesday August 03, 2021 @04:08AM (#28046783)
Some fun archaeology and digging around into the dark and weird corners of PyPI. I, for one, didn't realise that "Kenneth Reitz" is a perfectly valid version number! :-)
Re:The rinds of the Cheese Shop menu by carlosperate on Wednesday August 04, 2021 @03:06PM (#28064906)
> There are 16 versions on PyPI which end in a newline character. Of these 16, 12 have registered the stripped equivalent too ... Visually, on PyPI, these look identical

I often navigate through package versions in the PyPI website, and seeing something like this would have driven me nuts!

Re:The rinds of the Cheese Shop menu by brundolf on Wednesday August 04, 2021 @10:38PM (#28069159)
> A PyPI package version doesn’t have to be strictly numeric – they’re usually in the form 1.2.3 or similar, sometimes with characters appended to indicate alpha, beta, dev or release candidate, but they can be any string.

Wait... they don't have to be valid semver? How in the world does resolution work?

Re:The rinds of the Cheese Shop menu by meepmorp on Thursday August 05, 2021 @01:23AM (#28070176)
My favorite non-numeric version example in the article:

Sysv_ipc gives Python programs access to System V semaphores, shared memory and message queues. Most (all?) Unixes (including OS X) support System V IPC. Windows+Cygwin 1.7 might also work.

Sample code is included.

This extension is released under the GPL.

You might also be interested in the similar POSIX IPC module at: http://semanchuk.com/philip/posix_ipc/

Re:The rinds of the Cheese Shop menu by carlosperate on Thursday August 05, 2021 @05:33AM (#28071535)
A lot of packages actually use PEP 440 versioning: https://www.python.org/dev/peps/pep-0440/

But this is very close to semver and resolution works very similarly.

Re:The rinds of the Cheese Shop menu by benn_88 on Wednesday August 04, 2021 @02:13PM (#28064307)
Re:The rinds of the Cheese Shop menu by floatingatoll on Wednesday August 04, 2021 @05:21PM (#28066488)
This is absolutely beautiful. Thank you for submitting it, OP.