[Tutor] Debugging skills

dn PythonList at DancesWithMice.info
Mon Jan 15 04:27:19 EST 2024


On 15/01/24 17:16, dn via Tutor wrote:
> On 6/01/24 02:56, Mats Wichmann wrote:
>> while we're nattering on a whole range of sort-of-debugging topics, 
>> here's something I've occasionally wondered about, when a beginner has 
>> written something that makes sense only to them, not to the Python 
>> interpreter.  Regexes are confusing, so there are several websites 
>> (see for example regex101.com) where you can enter your "code" (regex) 
>> and as it's interpreted, will show you an explanation in words in a 
>> separate pane.  Does anyone know if there's a similar thing for Python 
>> code? "This is what you wrote actually means to the interpreter".  
>> Ones I know about (like at Programiz, w3schools, online-python) don't 
>> attempt the explanation part.  It's not something that's likely to be 
>> useful for very many cases, but I could see where in the beginning 
>> there might be some benefit...

Re-reading recent post - when copy came [back] from the reflector, I 
wondered about LLMs.

If you come across someone who lands in just such a problem, where 
his/her mental model is considerably at-odds with the interpreter; it 
would be very interesting to see if/how an LLM helps them through.

Alternately, if you can recall such circumstance, I'll be keen to try to 
reproduce and to experiment...

-- 
Regards,
=dn


More information about the Tutor mailing list