Relative import cannot find .so submodule?

2020-01-11 Thread Patrick Stinson
I have a module named rtmidi, and its C submodule named rtmidi/_rtmidi. The distills script builds successfully and successfully creates a build/lib dir with a rtmidi dir in it and the submodule file rtmidi/_rtmidi.cpython-36dm-darwin.so. I have set PYTHONPATH to this lib dir, but rtmidi/__init

Re: Saying bye bye to Python 2

2020-01-11 Thread Chris Angelico
On Sun, Jan 12, 2020 at 4:50 AM Gunnar Þór Magnússon wrote: > > > I thought that upgrading is not that simple. > > It depends. > > If you have Python 2 code that deals with a lot of text in byte form, and > it's kind of vague where you convert from bytes to strings, you may have a > bad time. >

Re: Saying bye bye to Python 2

2020-01-11 Thread Gunnar Þór Magnússon
> I thought that upgrading is not that simple. It depends. If you have Python 2 code that deals with a lot of text in byte form, and it's kind of vague where you convert from bytes to strings, you may have a bad time. Otherwise, it may not be that bad. I ported around 500k lines of Python 2 to

How to get dynamic data in html (javascript?)

2020-01-11 Thread Friedrich Rentsch
Hi all, I'm pretty good at hacking html text. But I have no clue how to get dynamic data like this : "At close: {date} {time}". I would appreciate a starting push to narrow my focus, currently awfully unfocused. Thanks. Frederic -- https://mail.python.org/mailman/listinfo/python-list

Re: Saying bye bye to Python 2

2020-01-11 Thread Thomas Jollans
On 11/01/2020 00:16, tommy yama wrote: As many know, python 2 was retired. 🐍 This means imminent migration to 3 will be a must ? Upgrading to Python 3 has been a "bloody well should" for many, many years now. Though in a shock announcement a few weeks ago the end of Python 2 was delayed AG

Re: Why isn't "-std=c99" (and others) not part of python3-config's output?

2020-01-11 Thread Random832
On Mon, Nov 25, 2019, at 15:13, Musbur wrote: > 2) How does one activate the necessary CFLAGs for extension building? the standard level required for building some extension is a property of the extension's source code, isn't it? I don't know if including the python headers requires -std=c99 or

Re: Saying bye bye to Python 2

2020-01-11 Thread Marko Rauhamaa
tommy yama : > As many know, python 2 was retired. 🐍 > This means imminent migration to 3 will be a must ? Python 2 will have a lively retirement. It won't be dead before RHEL 7 is dead. According to https://access.redhat.com/support/policy/updates/errata the support dates for RHEL 7 are: