ctypes on Windows question: How to access an array of uint32_t exported from a DLL?

2021-06-06 Thread pjfarley3
On a Windows 10 platform (python 3.8.9 and 3.9.5), how do I use ctypes to access an array of uint32_t's exported from a DLL? The array (after various #define's are resolved) is defined as: __declspec(dllexport) extern uint32_t array_name[128]; I have read and re-read the ctypes document

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-06 Thread inhahe
On Sun, May 30, 2021 at 1:43 PM wrote: > I tried winpdb-reborn some time last year on my Win10 system (python 3.8.3 > at that time), but could not figure out how to use it to debug a python > script that uses the curses module. > > Does anyone here know if winpdb-reborn or any other debugger can

Re: Posting code on stackoverflow

2021-06-06 Thread Rich Shepard
On Sat, 5 Jun 2021, Terry Reedy wrote: Last time I tried *before*, it did not work. paste, reselect (a nuisance) and click does. Terry, I had tried that and it didn't work any better. Bounding the code with two sets of three backticks does work. Regards, Rich -- https://mail.python.org/mail

Re: Neither pdb or print() displays the bug

2021-06-06 Thread Rich Shepard
On Sun, 6 Jun 2021, Fabio Zadrozny wrote: Hint: you should be able to use https://pypi.org/project/pytest-qt/ to unit-test a PyQt application... Fabio, Thank you for confirming this. I hadn't remembered the name so your URL is really helpful. Regards, Rich -- https://mail.python.org/mailman

Re: Posting code on stackoverflow

2021-06-06 Thread Rich Shepard
On Sun, 6 Jun 2021, joseph pareti wrote: you need to put the code between 2 lines defined as follows: ``` then it will be formatted for you Thanks, Joseph. I figured that out on the web page. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-06 Thread Fabio Zadrozny
You could try other debuggers (possibly doing a remote debug session or attach to pid). Eclipse-PyDev: https://www.pydev.org/manual_adv_remote_debugger.html VsCode-python: https://code.visualstudio.com/docs/python/debugging PyCharm: https://www.jetbrains.com/help/pycharm/remote-debugging-with-prod

Re: Neither pdb or print() displays the bug

2021-06-06 Thread Fabio Zadrozny
Em qua., 2 de jun. de 2021 às 09:34, Rich Shepard escreveu: > On Wed, 2 Jun 2021, Peter Otten wrote: > > > Do you have unit tests? Those are an excellent tool to ensure that the > > components of an application work as expected and that those components > > have well-defined interfaces. Debugging

Re: Posting code on stackoverflow

2021-06-06 Thread joseph pareti
you need to put the code between 2 lines defined as follows: ``` then it will be formatted for you Am Sa., 5. Juni 2021 um 23:40 Uhr schrieb Rich Shepard < rshep...@appl-ecosys.com>: > I tried to post a question on stackoverflow.com which included a bunch of > code (entered after clicking the box

Re: Posting code on stackoverflow

2021-06-06 Thread dn via Python-list
On 06/06/2021 13.56, Terry Reedy wrote: > On 6/5/2021 5:36 PM, Rich Shepard wrote: >> I tried to post a question on stackoverflow.com which included a bunch of >> code (entered after clicking the box 'code'). I noticed that lines were >> wrapped but could not find how to expand the input box so the