sufficient to check isatty(0) and the shebang line if one exists, call
libpython3's Py_Main if that seems reasonable, print a warning and attempt
to exec python2 otherwise, and print an error message about how to install
python2 if the exec fails.
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
one
more stable release.
The only question is whether it should break by giving you an error
message (either ENOENT or something printed on stderr), or break by trying
to run the code as Python 3.
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
ust
want my best migration path from #!/usr/bin/python to not involve
rewriting my scripts in Go.
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
le
to test against SQL Server for Linux, because apparently we live in a
world where Microsoft hosts an apt server and builds Debian packages with
systemd unit files.) Thanks for all your past work on the package!
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
ackages/pymssql.git
but here's the changelog entry:
pymssql (2.1.3+dfsg-1) unstable; urgency=medium
* Team upload.
[ Ondřej Nový ]
* Fixed VCS URL (https)
[ Geoffrey Thomas ]
* New upstream release (Closes: #648230), with DFSG repack to avoid
embedded freetds binaries.
zip --rsyncable, and pristine-tar not knowing how
to handle that. Probably it's the same thing; you can try by manually
un-gzipping and redoing with regular gzip.
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
what it does / how to test it:
>>> import premailer
>>> print premailer.transform("b {color: red;} hello
>>> world")
hello world
--
Geoffrey Thomas
geo...@hudson-trading.com
about that,
too, but I don't think that's worse than people switching to
`#!/usr/bin/python3` without exhaustive testing, which is certainly going
to happen occasionally (since not everyone has tests with 100% code
coverage).
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpre
n other places.
I wonder if dh_python3 could at some point parse the magic line to assist in
dependency generation.
That would be useful! I do think there's value in having the metadata of
Python minor version compatibility, even in a world where major version
isn't a pro
Python interpreter of any major
version, but all other use always launches the latest Python 2
interpreter, or prints an error message.
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscri
shed the details once the idea itself is a draft PEP.)
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive:
https://lists.deb
ts input is "# py23" (or /^# *py23$/, or
something). If so, it execs Python 3; if not, and if it can't find Python
2, it prints a useful error to stderr and exits. (For interactive use, it
could print a warning and run Python 3, or silently exec Python 3, or
something.)
--
Geo
nging the relevant open-stack managed packages into the team
* Possible /usr/bin/python launcher
I'll be there, all of those sound fun to work on.
--
Geoffrey Thomas
https://ldpreload.com
geo...@ldpreload.com
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a
ignore errors from "rm -rf build". "-f" takes care of ENOENT and
you failures certainly should not go unnoticed.
Oh, good to know. I'd always seen people ignoring errors from rm in
Makefile clean targets, but your reasoning makes sense.
--
Geoffrey Thomas
http://
python-ipaddr packaging), I'd definitely appreciate them:
https://ldpreload.com/p/pygithub_1.14.2-1.dsc
Thanks,
--
Geoffrey Thomas
http://ldpreload.com
geo...@ldpreload.com
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble
15 matches
Mail list logo