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

2021-06-01 Thread pjfarley3
> -Original Message- > From: Alan Gauld > Sent: Sunday, May 30, 2021 4:38 PM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 30/05/2021 18:26, pjfarl...@earthlink.net wrote: > > I tried winpdb-reborn some time last year on

[RELEASE] Python 3.10.0b2 is available

2021-06-01 Thread Pablo Galindo Salgado
After fighting with some release blockers, implementing a bunch of GC traversal functions, and fixing some pending reference leaks, we finally have Python 3.10.0 beta 2 ready for you! Thanks to everyone that helped to unblock the release! https://www.python.org/downloads/release/python-3100b2/ #

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

2021-06-01 Thread Grant Edwards
On 2021-05-30, Alan Gauld via Python-list wrote: > On 30/05/2021 18:26, pjfarl...@earthlink.net 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. > >

Re: Definition of "property"

2021-06-01 Thread Jon Ribbens via Python-list
On 2021-05-31, Greg Ewing wrote: > On 31/05/21 9:13 am, Jon Ribbens wrote: >> No, I said it pretends to be a *data* attribute. > > I don't think it's pretending to be anything. From the outside, > it's just an attribute. >From the outside, it's just a *data* attribute. Which, from the inside, it

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

2021-06-01 Thread Grant Edwards
On 2021-05-31, Dennis Lee Bieber wrote: > On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson > declaimed the following: > > >>Open another terminal, note its terminal device with the "tty" command. >>Start your programme like this: >> >>python .. 2>/dev/tty-of-the-other-termina > >

Re: Definition of "property"

2021-06-01 Thread Alan Gauld via Python-list
On 31/05/2021 01:24, Greg Ewing wrote: > On 31/05/21 8:20 am, Alan Gauld wrote: >> >> That's a very Pythonic description. > > If it's a book about Python, it needs to be. The word "property" > has a very specialised meaning in Python. > > In some other languages it's used the way we use "attribut

Re: python 3.9.5

2021-06-01 Thread Terry Reedy
On 5/31/2021 3:15 AM, said ganoune wrote: Just installed python 3.9.5 in my HP laptop, cant open it. Laptop hp I3 running with windows 10. You have to say a lot more. How did you install, with what options? How do you try to 'open' (start) it? What happens instead? -- Terry Jan Reedy --

Python app setup

2021-06-01 Thread Murali Pa
Hi, I've installed latest version of Python 3.9.5 and downloaded for Windows. Once I click on the Python app, I'm getting command screen and not sure on the next action. could you please help me to fix this issue. Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928

Re: Definition of "property"

2021-06-01 Thread Greg Ewing
On 1/06/21 2:34 am, Jon Ribbens wrote: From the outside, it's just a *data* attribute. Which, from the inside, it isn't. Hence "pretending". But what is it about the external appearance that would make you think it's a data attribute, rather than some other kind of attribute? (I'm assuming th

Re: Definition of "property"

2021-06-01 Thread Jon Ribbens via Python-list
On 2021-06-01, Greg Ewing wrote: > On 1/06/21 2:34 am, Jon Ribbens wrote: >> From the outside, it's just a *data* attribute. Which, from the inside, >> it isn't. Hence "pretending". > > But what is it about the external appearance that would make > you think it's a data attribute, rather than som

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

2021-06-01 Thread jak
Il 31/05/2021 02:36, Dennis Lee Bieber ha scritto: On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson declaimed the following: Open another terminal, note its terminal device with the "tty" command. Start your programme like this: python .. 2>/dev/tty-of-the-other-termina

Re: Python app setup

2021-06-01 Thread Igor Korot
Hi, On Tue, Jun 1, 2021 at 12:25 PM Murali Pa wrote: > >Hi, >I've installed latest version of Python 3.9.5 and downloaded for Windows. >Once I click on the Python app, I'm getting command screen and not sure on >the next action. could you please help me to fix this issue. >Pyt

Re: Definition of "property"

2021-06-01 Thread Eryk Sun
On 6/1/21, Jon Ribbens via Python-list wrote: > > I already answered that in the post you are responding to, but you > snipped it: You can tell something's definitely not a data attribute > if you have to put brackets after its name to call it as a method to > invoke its function or retrieve the v

Re: Python app setup

2021-06-01 Thread Dan Stromberg
What you've got there is a REPL, or Read-Evaluate-Print-Loop. It's good for quick little exploratory tests. For actually writing code, most people would prefer to use PyCharm or VSCode or IDLE. You may find that IDLE has come with your CPython install. Personally, I prefer vim+syntastic+jedi, but

Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
On Sun, 30 May 2021, Cameron Simpson wrote: I've only just started with pdb. As of Python 3.7 there's a builtin function named breakpoint() which drops you into the debugger. I've never been a big debugger person, historicly using print() and equivalent. However, this makes it very easy to inser

Re: python 3.9.5

2021-06-01 Thread Dan Stromberg
On Tue, Jun 1, 2021 at 10:12 AM Dennis Lee Bieber wrote: > On Mon, 31 May 2021 02:15:28 -0500, said ganoune > declaimed the following: > > is this the third one in the last week... > > Does the Python FAQ address contemporary FAQ's? It seems like https://docs.python.org/3/faq/windows.h

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Ethan Furman
On 6/1/21 1:18 PM, Rich Shepard wrote: > I'd appreciate recommendations on the process to find where the bug lives > since I can't seem to find it with print() or line-by-line in pdb. Sounds like a console issue. Try using `logging` with a file... you could even use `print` with a file if you

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

2021-06-01 Thread Alan Gauld via Python-list
On 31/05/2021 16:16, Grant Edwards wrote: > On 2021-05-30, Alan Gauld via Python-list wrote: >> You are not alone. debugging curses is one of the biggest obstacles to >> its use. > > Can't you just run the debugger in a different window and attach to > the process you want to debug? That's how o

Re: Python app setup

2021-06-01 Thread Terry Reedy
On 5/31/2021 2:20 PM, Murali Pa wrote: Hi, I've installed latest version of Python 3.9.5 and downloaded for Windows. Once I click on the Python app, I'm getting command screen You are getting the Python interactive interpreter. This is different from the system command line console/

Re: Definition of "property"

2021-06-01 Thread Alan Gauld via Python-list
On 31/05/2021 15:59, Dennis Lee Bieber wrote: > On Sun, 30 May 2021 21:20:24 +0100, Alan Gauld via Python-list > declaimed the following: > >> On 30/05/2021 17:57, Irv Kalb wrote: >>> I am doing some writing (for an upcoming book on OOP), and I'm a little >>> stuck. >> >> Oh dear, that's one o

Pandsa to Excel conversion issue

2021-06-01 Thread EK Esawi via Python-list
Hi All-- I am using Pandas to read an excel file which is very "dirty" and needs cleaning. I read the file via pandas and did not setup dtypes or converters hoping i can do so later.. When i run my code, most columns did come out as strings but i cannot convert them to float or integer using a

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
On Tue, 1 Jun 2021, Rich Shepard wrote: The QSize() statement is never reached. Correction: the window is 800 x 600, but it's still empty. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
On Tue, 1 Jun 2021, Ethan Furman wrote: Sounds like a console issue. Try using `logging` with a file... you could even use `print` with a file if you wanted to. Ethan, Not before using logging I found a reference/example page

Async requests library with NTLM auth support?

2021-06-01 Thread Albert-Jan Roskam
Hi, I need to make thousands of requests that require ntlm authentication so I was hoping to do them asynchronously. With synchronous requests I use requests/requests_ntlm. Asyncio and httpx [1] look promising but don't seem to support ntlm. Any tips? Cheers! Albert-Jan [1]

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Ethan Furman
On 6/1/21 1:42 PM, Rich Shepard wrote: > When I run it this is the output: > $ python activitytypes.py 2021-06-01 13:39:10,219 -DEBUG - Start of Program > 2021-06-01 13:39:15,229 -DEBUG - End of Program Well, you only had two logging statements in that code -- logging is like print: if you want

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
On Tue, 1 Jun 2021, Ethan Furman wrote: Well, you only had two logging statements in that code -- logging is like print: if you want to see it, you have to call it: Ethan, Got it, thanks. I believe my problem is with the datasource module. I'm focused on making it work (using logging to conf

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
On Tue, 1 Jun 2021, Dennis Lee Bieber wrote: I suspect you really should be stepping INTO the calls, not just invoking the functions completely and going to the next LOCAL statement. $ /development/business_tracker/activitytypes.py(1)() -> import sys (Pdb) s $ /development/business_

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

2021-06-01 Thread Cameron Simpson
On 01Jun2021 19:48, Alan Gauld wrote: >On 31/05/2021 16:16, Grant Edwards wrote: >> On 2021-05-30, Alan Gauld via Python-list wrote: >>> You are not alone. debugging curses is one of the biggest obstacles >>> to >>> its use. >> >> Can't you just run the debugger in a different window and attach

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Alan Gauld via Python-list
On 01/06/2021 21:18, Rich Shepard wrote: > On Sun, 30 May 2021, Cameron Simpson wrote: > >> I've only just started with pdb. As of Python 3.7 there's a builtin >> function named breakpoint() which drops you into the debugger. > I'm stuck with neither approach (pdb, print()) working. > The act

Re: Definition of "property"

2021-06-01 Thread Greg Ewing
On 1/06/21 7:01 am, Alan Gauld wrote: That was the point, the OP said it was a book about OOP. Not a book about "OOP in Python". In that case it would be best to avoid the word, or give a definition of the way he's using it, making it clear that it's not a universal definition. Python's definit

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

2021-06-01 Thread Jach Feng
pjfa...@earthlink.net 在 2021年5月31日 星期一上午1:42:43 [UTC+8] 的信中寫道: > 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

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

2021-06-01 Thread boB Stepp
On Tue, Jun 1, 2021 at 12:20 PM Dennis Lee Bieber wrote: > > On Tue, 1 Jun 2021 08:04:54 +1000, Cameron Simpson > declaimed the following: > > >On 30May2021 20:36, Dennis Lee Bieber wrote: > >>On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson > >>declaimed the following: > >>>Open another ter