Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Terry Reedy
On 10/23/2020 12:52 PM, John Pote wrote: On 23/10/2020 05:47, Grant Edwards wrote: I think that commercial desktop applications with a python compatible GUI would likely use QT or a Python binding thereof. Agreed. If you want to improve you "hirability" for GUI application development, I wou

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-23, John Pote wrote: > On 23/10/2020 05:47, Grant Edwards wrote: >> >>> I think that commercial desktop applications with a python >>> compatible GUI would likely use QT or a Python binding thereof. >> Agreed. If you want to improve you "hirability" for GUI application >> development, I

Re: Debugging a memory leak

2020-10-23 Thread Dieter Maurer
Pasha Stetsenko wrote at 2020-10-23 11:32 -0700: > ... > static int my_init(PyObject*, PyObject*, PyObject*) { return 0; } > static void my_dealloc(PyObject*) {} I think, the `dealloc` function is responsible to actually free the memory area. I see for example: static void Spec_dealloc(Spec* se

Re: Debugging a memory leak

2020-10-23 Thread Pasha Stetsenko
Thanks MRAB, this was it. I guess I was thinking about tp_dealloc as a C++ destructor, where the base class' destructor is called automatically. On Fri, Oct 23, 2020 at 11:59 AM MRAB wrote: > On 2020-10-23 19:32, Pasha Stetsenko wrote: > > Thanks for all the replies! > > Following Chris's advice

Re: Debugging a memory leak

2020-10-23 Thread MRAB
On 2020-10-23 19:32, Pasha Stetsenko wrote: Thanks for all the replies! Following Chris's advice, I tried to reduce the code to the smallest reproducible example (I guess I should have done it sooner), but here's what I came up with: ``` #include #include static int my_init(PyObject*,

RE: Question on ABC classes

2020-10-23 Thread Schachner, Joseph
I'm a C++ programmer and Python programmer as well. Python classes are not exactly like C++ classes. If you define a class where every method has an implementation, then it really isn't abstract. It can be instantiated. You can force it to be abstract by doing from abc import ABCMeta and dec

Re: Debugging a memory leak

2020-10-23 Thread Pasha Stetsenko
Thanks for all the replies! Following Chris's advice, I tried to reduce the code to the smallest reproducible example (I guess I should have done it sooner), but here's what I came up with: ``` #include #include static int my_init(PyObject*, PyObject*, PyObject*) { return 0; } static voi

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Christian Gollwitzer
Am 22.10.20 um 23:52 schrieb Paul Rubin: Michael Torrie writes: I doubt you'll find any jobs connected a particular Python GUI toolkit. It would be really nice if there was a way to straightforwardly run Tkinter applications on Android. You'd install a single .apk and that would let you run

Logic Bank

2020-10-23 Thread gMail
Hello, All I am pleased to announce the release of Logic Bank. Logic Bank introduces spreadsheet-like rules for multi-table derivation and constraint logic for SQLAchemy databases - 40X more concise than legacy code, extensible and manageable using Python. Described in this article

Re: Debugging a memory leak

2020-10-23 Thread Dieter Maurer
Pasha Stetsenko wrote at 2020-10-22 17:51 -0700: > ... >I'm a maintainer of a python library "datatable" (can be installed from >PyPi), and i've been recently trying to debug a memory leak that occurs in >my library. >The program that exposes the leak is quite simple: >``` >import datatable as dt >

Re: Issue with Python

2020-10-23 Thread Mats Wichmann
On 10/23/20 3:52 AM, Ifeanyi Obinelo wrote: > Hello! I am a Python programmer and I love the language. However, I > installed Python 3.9 and suddenly, pip does not install Python libraries > anymore. It says that I need Visual Studio C++ 2014 and exits with: > > "ERROR: Command errored out with ex

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread John Pote
On 23/10/2020 05:47, Grant Edwards wrote: I think that commercial desktop applications with a python compatible GUI would likely use QT or a Python binding thereof. Agreed. If you want to improve you "hirability" for GUI application development, I would probably put Qt first. Then gobject o

Issue with Python

2020-10-23 Thread Ifeanyi Obinelo
Hello! I am a Python programmer and I love the language. However, I installed Python 3.9 and suddenly, pip does not install Python libraries anymore. It says that I need Visual Studio C++ 2014 and exits with: "ERROR: Command errored out with exit status 1:..error: Microsoft Visual C++ 14.0 is requ

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-22, Terry Reedy wrote: > On 10/22/2020 2:58 PM, Lammie Jonson wrote: > >> I looked at tkinter which seems to have quite a few examples out >> there, but when I searched indeed.com for tkinter and wxpython it >> appeared that there was hardly any job listings mentioning >> those. Why is

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-22, Michael Torrie wrote: > I doubt you'll find any jobs connected a particular Python GUI toolkit. > Except maybe at Red Hat. A couple years ago my employer was looking for (and hired) a Python wx application developer. > Most likely you'll find Python used in web app development, b

Re: Basic Python help

2020-10-23 Thread mikael petterson
fredag 23 oktober 2020 kl. 13:22:55 UTC+2 skrev Frank Millman: > On 2020-10-23 12:41 PM, mikael petterson wrote: > > Hi, > > > > I need to use the following code but in java. > > > > END_DELIM = '\n##\n' > > def start_delim(data_len): return '\n#%s\n' % (data_len) > > data = "%s%s%s" % (start

Re: Basic Python help

2020-10-23 Thread Frank Millman
On 2020-10-23 12:41 PM, mikael petterson wrote: Hi, I need to use the following code but in java. END_DELIM = '\n##\n' def start_delim(data_len): return '\n#%s\n' % (data_len) data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) Can anyone help me to understand what it means: I

Basic Python help

2020-10-23 Thread mikael petterson
Hi, I need to use the following code but in java. END_DELIM = '\n##\n' def start_delim(data_len): return '\n#%s\n' % (data_len) data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) Can anyone help me to understand what it means: I am guessing now: a function defined "start_delim" ta