Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 5:18 AM Barry Scott wrote: > In the case of the 401 you can read what it means here: > https://httpstatuses.com/401 > Or for a less technical (and far cuter) explanation: https://http.cat/401 ChrisA -- https://mail.python.org/mailman/listinfo/python-list

news.bbs.nz is spewing duplicates to comp.lang.python

2020-04-21 Thread Eli the Bearded
This just arrived at my newserver: Path: reader2.panix.com!panix!goblin2!goblin.stu.neva.ru!news.unit0.net!2.eu.feeder.erje.net!4.us.feeder.erje.net!feeder.erje.net!xmission!csiph.com!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail From: Eli the Bearded <*@eli.users.panix.com> (Eli the Bea

Re: python and numpy

2020-04-21 Thread joseph pareti
FWIW, I installed Anaconda on Windows 10. Then besides Python you also get SPIDER, Jupyter and more, all out of the box. Am Mittwoch, 22. April 2020 schrieb Souvik Dutta : > First head over to the official python download page. Then choose the > version and type of installer you want. After you d

Re: Escaping confusion with Python 3 + MySQL

2020-04-21 Thread moorthy . rs
On Sunday, March 26, 2017 at 7:55:09 PM UTC+5:30, Νίκος Βέργος wrote: > Τη Κυριακή, 26 Μαρτίου 2017 - 5:19:27 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > > > You need to change the placeholders back. The poster who told you to > > replace them was misinformed. > > okey altered them back to > > cur.execu

Re: Something annoying about method __set_name__ in descriptors

2020-04-21 Thread ast
Le 21/04/2020 à 18:32, Dieter Maurer a écrit : ast wrote at 2020-4-21 14:27 +0200: I recently read the Python (3.9a5) documentation - and there I found clearly expressed this behaviour (I no longer can tell you exactly where I read this). The reason comes from the implementation: when the de

Re: python and numpy

2020-04-21 Thread Souvik Dutta
First head over to the official python download page. Then choose the version and type of installer you want. After you download it click on the installer to install it. Don't forget to click on the check boxes that says add python to path and download pip. Then search for idle in the search menu.

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 6:51 AM wrote: > > I'm pretty much there ; just have to account for other types of > Authentication. E.g., for NTLM, I have this: > > response.raise_for_status Be aware that this line of code won't actually do anything. That's a method. ChrisA -- https://ma

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 4:38:52 PM UTC-4, Chris Angelico wrote: > On Wed, Apr 22, 2020 at 6:30 AM Barry Scott barr wrote: > > > > > > > > > On 21 Apr 2020, at 20:47, dc wrote: > > > > > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > > >>> On 21 Apr 2020, at 18:11, dc w

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 4:25:54 PM UTC-4, Barry Scott wrote: > > On 21 Apr 2020, at 20:47, dc wrote: > > > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > >>> On 21 Apr 2020, at 18:11, dc wrote: > >>> > >>> On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maure

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 6:30 AM Barry Scott wrote: > > > > > On 21 Apr 2020, at 20:47, dcwhat...@gmail.com wrote: > > > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > >>> On 21 Apr 2020, at 18:11, dc wrote: > >>> > >>> On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Barry Scott
> On 21 Apr 2020, at 20:47, dcwhat...@gmail.com wrote: > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: >>> On 21 Apr 2020, at 18:11, dc wrote: >>> >>> On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: dc wrote at 2020-4-20 14:48 -0700: > ...

Re: Why is a generator expression called a expression?

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 6:12 AM Barry Scott wrote: > > > > > On 20 Apr 2020, at 10:29, Veek M wrote: > > > > On Mon, 20 Apr 2020 19:19:31 +1000, Chris Angelico wrote: > > > >> In the case of a genexp, the expression has a value which is a generator > >> object. When you pass that to all(), it tak

Re: Why is a generator expression called a expression?

2020-04-21 Thread Barry Scott
> On 20 Apr 2020, at 10:29, Veek M wrote: > > On Mon, 20 Apr 2020 19:19:31 +1000, Chris Angelico wrote: > >> In the case of a genexp, the expression has a value which is a generator >> object. When you pass that to all(), it takes it and then iterates over > > but an object is NOT THE SAME a

Re: Getting the dependencies of a function from a library

2020-04-21 Thread Barry Scott
> On 20 Apr 2020, at 22:40, elisha hollander wrote: > > I have a python library with a function. > This function call some other functions, classes and variable from the > library (and those functions and classes call other ones, etc)... > Can I automatically create a file with all of the depe

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > > On 21 Apr 2020, at 18:11, dc wrote: > > > > On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: > >> dc wrote at 2020-4-20 14:48 -0700: > >>> ... > >>> I tried telneting the landing page, i.e. without the spec

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Barry Scott
> On 21 Apr 2020, at 18:11, dcwhat...@gmail.com wrote: > > On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: >> dc wrote at 2020-4-20 14:48 -0700: >>> ... >>> I tried telneting the landing page, i.e. without the specific node that >>> requires the login. So e.g. >>> >>> T

Re: Python dependences

2020-04-21 Thread Grant Edwards
On 2020-04-21, jorge.confo...@inpe.br wrote: > I've already used the python list to clear up some doubts. It's > been about a year since I started using Python in my projects and I > still have some doubts. For those who have always used IDL, this > change is a little difficult. I already have P

Re: Python dependences

2020-04-21 Thread Juergen Brendel
Hello! I always use 'pip', but I heard many people like 'conda'. So far I'm doing ok with 'pip' and many/most instructions or documentation just refers to that as well. Still seems to be the most standard way of installing Python dependencies. The trick is to always create a nice virtual enviro

python and numpy

2020-04-21 Thread Derek Vladescu via Python-list
I’ve just begun a serious study of using Python as an aspiring programmer/data scientist. Can someone please walk me through how to download Python, SO THAT I will be able to import numpy? Thanks, Derek Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: > dc wrote at 2020-4-20 14:48 -0700: > > ... > >I tried telneting the landing page, i.e. without the specific node that > >requires the login. So e.g. > > > >Telnet thissite.oh.gov 80 > > > >, but it returns a 400 Bad Request.

Announcement: pip 20.1b1 beta release

2020-04-21 Thread Sumana Harihareswara
On behalf of the PyPA, I am pleased to announce that a beta release of pip, pip 20.1b1, has been released. The highlights for this release are: * Significant speedups when building local directories, by changing behavior to perform in-place builds, instead of copying to temporary directories.

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Dieter Maurer
dcwhat...@gmail.com wrote at 2020-4-20 14:48 -0700: > ... >I tried telneting the landing page, i.e. without the specific node that >requires the login. So e.g. > >Telnet thissite.oh.gov 80 > >, but it returns a 400 Bad Request. Before that, the Telnet screen is >completely blank ; I have to pre

Re: Getting the dependencies of a function from a library

2020-04-21 Thread Dieter Maurer
elisha hollander wrote at 2020-4-21 00:40 +0300: >I have a python library with a function. >This function call some other functions, classes and variable from the >library (and those functions and classes call other ones, etc)... >Can I automatically create a file with all of the dependencies (and

Re: Something annoying about method __set_name__ in descriptors

2020-04-21 Thread Dieter Maurer
ast wrote at 2020-4-21 14:27 +0200: > From python version 3.6, there is a useful new method >__set_name__ which could be implemented in descriptors. > >This method is called after a descriptor is instantiated >in a class. Parameter "name" is filled with the name >of the attribute refering to the de

Python dependences

2020-04-21 Thread jorge . conforte
Hi, I've already used the python list to clear up some doubts. It's been about a year since I started using Python in my projects and I still have some doubts. For those who have always used IDL, this change is a little difficult. I already have Ptyhon 3.8 installed, on Linux. To clear up any

Re: Floating point problem

2020-04-21 Thread Richard Damon
On 4/21/20 9:43 AM, Chris Angelico wrote: > Right. Now try diagnosing weird bugs in floating-point calculations, > and you aren't sure if it's because sometimes you have 53 bits of > mantissa and sometimes only 52. > And sometimes only 1. The smallest positive floating point number has only 1 signi

Re: Why is a generator expression called a expression?

2020-04-21 Thread Pieter van Oostrum
Veek M writes: > The docs state that a expression is some combination of value, operator, > variable and function. Also you cannot add or combine a generator > expression with a value as you would do with 2 + 3 + 4. For example, > someone on IRC suggested this > all(a == 'a' for a in 'apple')

Re: Floating point problem

2020-04-21 Thread Chris Angelico
On Tue, Apr 21, 2020 at 11:31 PM Pieter van Oostrum wrote: > > Chris Angelico writes: > > > On Tue, Apr 21, 2020 at 6:07 AM Schachner, Joseph > > wrote: > >> > >> 16 base 10 digits / log base10( 2) = 53.1508495182 bits. Obviously, > >> fractional bits don't exist, so 53 bits. If you note that th

Re: "pip" error message

2020-04-21 Thread Mats Wichmann
On 4/21/20 5:38 AM, Frank Millman wrote: > On 2020-04-21 12:02 PM, Simone Bravin wrote: >> >> I found that I had downloaded Python from what I would call "automatic >> check version link" and that downloaded the 32-bit version, but my >> notebook have 64-bit, so I changed the version to the 64-bit

Re: Floating point problem

2020-04-21 Thread Pieter van Oostrum
Chris Angelico writes: > On Tue, Apr 21, 2020 at 6:07 AM Schachner, Joseph > wrote: >> >> 16 base 10 digits / log base10( 2) = 53.1508495182 bits. Obviously, >> fractional bits don't exist, so 53 bits. If you note that the first >> non-zero digit as 4, and the first digit after the 15 zeroes was

Something annoying about method __set_name__ in descriptors

2020-04-21 Thread ast
Hello From python version 3.6, there is a useful new method __set_name__ which could be implemented in descriptors. This method is called after a descriptor is instantiated in a class. Parameter "name" is filled with the name of the attribute refering to the descriptor in the class Here is an e

Re: "pip" error message

2020-04-21 Thread Frank Millman
On 2020-04-21 12:02 PM, Simone Bravin wrote: I found that I had downloaded Python from what I would call "automatic check version link" and that downloaded the 32-bit version, but my notebook have 64-bit, so I changed the version to the 64-bit one. I have had the same problem in the past.

Re: "pip" error message

2020-04-21 Thread Simone Bravin
Hi all, First of all thanks to all that answered my question. I had already changed the PATH and tried to upgrade pip version but it was not possible to reach pip in any way, the error that I was getting looked like regarding some program file of pip. Anyway after some trying I was able to fi

EuroPython 2020: Ticket sales started

2020-04-21 Thread M.-A. Lemburg
We have started the EuroPython 2020 online conference & sprint ticket sales today. * EuroPython 2020 Ticket Sales * https://ep2020.europython.eu/registration/buy-tickets/ Simplified ticket structure --- In order to keep things simple for the E