Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: numpy.dot() result different with classic computation for large-size arrays
Post: RE: numpy.dot() result different with classic comp...

Thanks to Gribouillis, casevh, paul18fr. Do we have a good way to raise overflow exception in python? As the code just silently use the overflown values, sometime we are not even aware of what is...
geekgeek General Coding Help 5 1,900 Jan-25-2022, 09:23 PM
    Thread: numpy.dot() result different with classic computation for large-size arrays
Post: numpy.dot() result different with classic computat...

Basically I am testing the 1st sample code in URL https://www.geeksforgeeks.org/vectorization-in-python/ When I run the code as it is it is (array size is 100000), the result looks good - same as th...
geekgeek General Coding Help 5 1,900 Jan-25-2022, 05:35 AM
    Thread: http.client.HTTPSConnection and user authentication?
Post: RE: http.client.HTTPSConnection and user authentic...

I sorted it out myself. If someone is looking for the answer, here is the code: import http.client import ssl import ubase64 user="USERNAME" passwd="PASSWORD" headers = {"Authorization":"Basic {}"...
geekgeek Networking 2 6,074 Apr-06-2020, 01:27 AM
    Thread: http.client.HTTPSConnection and user authentication?
Post: http.client.HTTPSConnection and user authenticatio...

We have a self-signed site I can use curl to retrieve the data using the REST API: curl https://user:[email protected]/rest/api/something But I don't know how to do the same using http.client.HT...
geekgeek Networking 2 6,074 Apr-03-2020, 03:38 AM
    Thread: how to import a module which is installed to personal folder using pip install --pre?
Post: RE: how to import a module which is installed to p...

Thanks for the info. I will use the venv then. Just for my knowledge - what is the right way to import a module which was installed by 'pip3 install prefix /my/own/path1' ?
geekgeek General Coding Help 2 2,427 Mar-09-2020, 02:38 PM
    Thread: how to import a module which is installed to personal folder using pip install --pre?
Post: how to import a module which is installed to perso...

I know there are multiple ways to install a python module. My question is related to the following installation: pip3 install exchangelib --prefix /my/own/path1 the installation is good. But not sur...
geekgeek General Coding Help 2 2,427 Mar-06-2020, 10:28 PM
    Thread: How to do the same as python -m requests.certs inside script?
Post: How to do the same as python -m requests.certs ins...

This might be a dumb question - in the command line, python -m requests.cert gives result: /etc/pki/tls/certs/ca-bundle.crt How is the right way to get the result inside python script? #!/usr/bi...
geekgeek General Coding Help 2 2,281 Feb-27-2020, 03:48 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020