|
|
Subscribe / Log in / New account

Python support for regular expressions

Python support for regular expressions

Posted Feb 23, 2022 8:28 UTC (Wed) by interalia (subscriber, #26615)
In reply to: Python support for regular expressions by NYKevin
Parent article: Python support for regular expressions

It does seem crazy that Python didn't at some stage namespace libraries better, both stdlib and external ones...

But anyway, do you think what you said about every language doing packaging/dependencies poorly is partly due to every approach having advantages/disadvantages, that being the nature of software development?


to post comments

Python support for regular expressions

Posted Feb 24, 2022 18:45 UTC (Thu) by NYKevin (subscriber, #129325) [Link]

Maybe a little, but I think the bigger issue here is that packaging and dependencies are a pathologically hard problem to solve. Nevertheless, I would expect Python to do a better job than it actually does, because Python's import system is almost entirely made up of first-class objects that exist at runtime. If you *wanted* to have some sort of fancy dependency resolution system requiring elaborate runtime support, Python has already built all of the complicated infrastructure which you need in order to make that possible (see e.g. the importlib documentation: https://docs.python.org/3/library/importlib.html). And yet Python's out-of-the-box packaging and dependency system is just as bad as everyone else's.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds