Yo Fred! On Wed, 30 Jan 2019 13:41:27 -0800 (PST) Fred Wright via devel <devel@ntpsec.org> wrote:
> On Tue, 29 Jan 2019, Gary E. Miller via devel wrote: > > On Tue, 29 Jan 2019 19:01:40 -0800 (PST) > > Fred Wright via devel <devel@ntpsec.org> wrote: > > > >>> Well, the way we use sys.stdout is warned about in the Python doc. > >>> That is enough for me to want it aligned with the python doc. > >> > >> The real question is why the build procedure thinks it needs to > >> output 'bytes' to the terminal, > > > > Easy, to fix make the code work with Python2 and Python 3. > > > > See here: > > > > https://gitlab.com/esr/practical-python-porting/blob/master/polystr-inclusion.py > > http://www.catb.org/esr/faqs/practical-python-porting/ > > > > Weird, but no one has done better. > > Yes, I'm familiar with that, having done some of the Python3 work on > GPSD. :-) I figured as much. > But the only reason to use make_std_wrapper() is when I don't care about reasons. The code is there in NTPsec. It is used in NTPsec. It breaks in the way Python doc says it would. I don't care whether it gets removed or fixed. > > Something for Eric to add to the INSTALL procedure and to his > > 'Practical Python Porting". > > Probably not, since it's specific to the misuse of the polyglot hacks > with waf (or perhaps other things that override the standard Python > stdio). Well, fix it, or document it. Someone needs to do one or the other. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can’t measure it, you can’t improve it." - Lord Kelvin
pgpnA_yXcZRis.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel