why is requests 2.24 behaving differently on different Win10Pro PCs?

2020-07-29 Thread nhpython
python 3.6+ requests 2.24 2- windows 10 Pro version 2004, build 19041.388 1- kubuntu 18.04 1-suse leap 15.2 Questions 1. how do I begin to diagnose the source of the problem? 2. Has anyone experienced this behavior? I have 4 PCs running the same code. On 3 they work, but 1 fails. I have 2 win1

Re: Winreg

2020-07-29 Thread Barry
> On 29 Jul 2020, at 19:50, R Pasco wrote: > > I'm running python 3.8 on Windows 8.1 x64. Running the following code > produces no errors but does not add a key, name or value. I had no problems > doing this using _wirreg under python 2.7. Any insight will be helpful. How do you check that th

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread Chris Green
Christian Heimes wrote: > On 29/07/2020 15.34, Chris Green wrote: > > I have some Python Gtk 2 code I'm trying to convert to Python > > pygobject GTK 3. > > > > However I'm stuck on an import statement that fails:- > > > > import pyscand > > > > > > The error message is:- > > > > File

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread Christian Heimes
On 29/07/2020 15.34, Chris Green wrote: > I have some Python Gtk 2 code I'm trying to convert to Python > pygobject GTK 3. > > However I'm stuck on an import statement that fails:- > > import pyscand > > > The error message is:- > > File "/usr/libexec/okimfputl.new/guicom.py", line 66,

Re: Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-29 Thread Eko palypse
Hello Eryk, thank you for your interest in my problem and you've nailed it, the problem was solved by putting all Windows API definitions in a separate module and making sure that I only use WinDLL. I would never have thought of that, because I only used WinDLL in this module. But a PostMessage in

Winreg

2020-07-29 Thread R Pasco
I'm running python 3.8 on Windows 8.1 x64. Running the following code produces no errors but does not add a key, name or value. I had no problems doing this using _wirreg under python 2.7. Any insight will be helpful. Code: === import winreg hive = winreg.HKEY_LOCAL_MACHINE keypat

Re: How to diagnose import error when importing from .so file?

2020-07-29 Thread David Lowry-Duda
> pyscand is a .so file so I fear I may be a bit stuffed unless I can > find the source code for it. > ... > In fact looking for this error it seems that is is a Python version > mismatch error and I need to recompile pyscand.so against Python 3. Is > there no way to sort of convert it to Python 3

RE: Local access to a file, How To ?

2020-07-29 Thread Steve
I guess that some things are just too simple to document. I searched man-a-site to find this but failed. open( "file.in" ) Works exactly as I want. Thanks. === Footnote: "What rhymes with orange?" "No it doesn't.." -Original Message- From: Python-l

Re: Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-29 Thread Eryk Sun
On 7/28/20, Eko palypse wrote: > > Now when I get this error the message I receive in this situation is always > like this. > > hWnd=197364, msg=20, wParam=*18446744072652653190*, lParam=0 > > Traceback (most recent call last): > File "_ctypes/callbacks.c", line 237, in 'calling callback functio

How to diagnose import error when importing from .so file?

2020-07-29 Thread Chris Green
I have some Python Gtk 2 code I'm trying to convert to Python pygobject GTK 3. However I'm stuck on an import statement that fails:- import pyscand The error message is:- File "/usr/libexec/okimfputl.new/guicom.py", line 66, in import pyscand ImportError: /usr/libexec/okim

Re: Non IDE development strategy - what do others do that's fairly simple?

2020-07-29 Thread 2QdxY4RzWzUUiLuE
On 2020-07-29 at 11:20:42 +0100, Chris Green wrote: > I have a few python programs that I have written which I need to do > some fairly extensive changes to (to get from gtk to gobject and to > move to Python 3). This is on a Linux (xubuntu 20.04) system. I use > the command line to do just abo

Confused by python gtk, gobject, gi, etc. (Ubuntu repositories)

2020-07-29 Thread Chris Green
I am trying to move some code from Python 2, gtk 2 (I think!) to Python 3. I am very confused as to what Ubuntu repository packages I need to install to provide the Python 3 modules I need. Searching in the repositories (and descriptions) for pygobject what I find is:- python-gi-dev/focal 3.

Re: The speed of glob()

2020-07-29 Thread Chris Angelico
On Wed, Jul 29, 2020 at 8:25 PM Gisle Vanem wrote: > > Chris Angelico wrote: > > > BTW, I just noticed something. The path you're using for testing > > purposes is "e:/net". Is that network-attached or local? If it's a > > remote mount of some sort, then that will make a HUGE difference > > No. Di

Non IDE development strategy - what do others do that's fairly simple?

2020-07-29 Thread Chris Green
I have a few python programs that I have written which I need to do some fairly extensive changes to (to get from gtk to gobject and to move to Python 3). This is on a Linux (xubuntu 20.04) system. I use the command line to do just about everything (even though the program is GUI!) and so I tend

Re: The speed of glob()

2020-07-29 Thread Gisle Vanem
Chris Angelico wrote: BTW, I just noticed something. The path you're using for testing purposes is "e:/net". Is that network-attached or local? If it's a remote mount of some sort, then that will make a HUGE difference No. Did the word 'net' make you think that :-) It's a local FAT32 partition

Re: The speed of glob()

2020-07-29 Thread Christian Heimes
On 29/07/2020 11.43, Gisle Vanem wrote: > Chris Angelico wrote: > >>> Has anybody noticed the speed of 'glob()' has >>> decreased somewhere between v3.6 and v3.10. >>> >>> I got these results: >>>     Python 3.6.5: >>>   1st run: 0.14694 >>>   2nd run: 0.09506   <- *always* the fastest >>>

Re: The speed of glob()

2020-07-29 Thread Chris Angelico
On Wed, Jul 29, 2020 at 7:44 PM Gisle Vanem wrote: > > Chris Angelico wrote: > > >> Has anybody noticed the speed of 'glob()' has > >> decreased somewhere between v3.6 and v3.10. > >> > >> I got these results: > >> Python 3.6.5: > >> 1st run: 0.14694 > >> 2nd run: 0.09506 <- *alw

Re: The speed of glob()

2020-07-29 Thread Gisle Vanem
Chris Angelico wrote: Has anybody noticed the speed of 'glob()' has decreased somewhere between v3.6 and v3.10. I got these results: Python 3.6.5: 1st run: 0.14694 2nd run: 0.09506 <- *always* the fastest Python 3.7.7:<- from Nuget 1st run: 0.12440 2nd

Re: The speed of glob()

2020-07-29 Thread Chris Angelico
On Wed, Jul 29, 2020 at 6:27 PM Gisle Vanem wrote: > > Has anybody noticed the speed of 'glob()' has > decreased somewhere between v3.6 and v3.10. > > I got these results: >Python 3.6.5: > 1st run: 0.14694 > 2nd run: 0.09506 <- *always* the fastest >Python 3.7.7:<- from

The speed of glob()

2020-07-29 Thread Gisle Vanem
Has anybody noticed the speed of 'glob()' has decreased somewhere between v3.6 and v3.10. With this little test: import os, sys, timeit, glob # change to suite globPath = u'e:/net/*/*/*/*' def _glob(): glob.glob (globPath) # I used this 'https://docs.microsoft.com/en-gb/sysinter

How to pass options to "make test"?

2020-07-29 Thread Marco Sulla
After building CPython from source, I run the regression test suite, using make test (I'm on Linux). Now I would run only some tests, and pass a custom option (-R :) I tried TESTOPTS="test_pickle" make test without success. I had to do: ./python -u -bb -E -Wd -m test -r --fail-env-changed -w -j 0