Hmm, popping this up when I hit publish in Blogger is kinda cheating, Google...
8 plus ones
Shared publicly•View activity
View 4 previous comments
- The language is sane (syntax). Binding with C for low level bit twiddling is shifting but working (cf bitarray on pypi). Some communities are sane (flask, scipy). Stdlib is quite sane (except urllib/2). However, the packaging filed is sprouting software solutions that at my opinion do not address any actual problems. Packaging is the only black spot of python I am aware of, however it is a huge one.Oct 1, 2012
- I've written a few networking systems for telcos which admittedly don't have a horrendously high throughput requirement but on the other hand I much preferred writing the bit twiddling code to pack/unpack SMS PDUs in Python than I would've in C. Maybe it's just been too long since I've done hardcore C but I didn't find the Python code that onerous. Also, being able to use a Python long int to pack 7-bit SMS message septets was really nice, elegant option that C doesn't offer...
Also, great post Nick! :-)Oct 1, 2012
- Julien, software packaging and redistribution being awful isn't a problem unique to Python - it's pretty much awful everywhere, even if you opt into one of the platform specific distribution solutions.
We at least have a reasonably usable solution in distribute and pip (with the older setuptools and easy_install also being usable if you don't mind the lack on an uninstall option), and work is ongoing to better separate the build and install steps so that it is easier to build things once and then redistribute them directly or via PyPI.Oct 1, 2012
- Richard, yeah, I've done a lot of bitbashing directly in Python, too (testing a serial communications link for bit errors and tracing the origins of any that do occur - difflib is awesome). So I guess my view is really that "Python is generally fine for bit twiddling, but if it ever gets annoying, I'm happy to just drop down to the C layer to solve whatever problem I am having".Oct 1, 2012
- yes, packaging is awfully complicated at language and OS levels, I know. (I made debian packages in my youth).
I am just a little bit concerned that we throw piles of code to try to solve the problem, whereas we have no clear goals.
I do advocate that we should first think of what we desire to achieve in terms of functions and maybe give up to the OS some parts of the packaging (especially when it involves C/fortran/C++ extensions).
as a python developerwould first like to have something that can compare to CPAN: one link to the source, Missing In Action procedures, getting rid of unmaintained packages, documentation, ticketing, matrix testing to know where the package *actually works* ...
I think not having test made before installation is below actual packaging standard in all languages (even PHP), if tests were made I would like an automated trace (opt in way) coming back for troubleshooting.
But I am helpless. These require more than code; it requires strong will, server, decisions at the platform level, time and way more than 1 coder alone piling more approximate solution.Oct 2, 2012
- Julien, catalog-sig is the place to ask those kinds of questions, although PyPI has an open API precisely so that anyone is free to implement their own PyPI competitor that has stricter quality control or other features (see, for example, crate.io).
We're currently in the process of trying to split the build step more cleanly from the install step. Once that's done, then it becomes more feasible to introduce a test hook that can be invoked without installation.Oct 2, 2012