Python Forum
try catch question ,get data from main code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
try catch question ,get data from main code
#4
(Nov-03-2020, 08:15 AM)korenron Wrote: Why I didn't have the same problem using "i"?
because you don't change i inside the function (i.e. no assignment/binding)

(Nov-03-2020, 08:15 AM)korenron Wrote: does it something to do with the "try - catch "?
no, this is pure scope issue - using name inside/outside the function
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: try catch question ,get data from main code - by buran - Nov-03-2020, 08:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Filter data into new dataframe as main dataframe is being populated cubangt 8 1,101 Oct-23-2023, 12:43 AM
Last Post: cubangt
  Python 3.11 data import question love0715 2 851 Mar-05-2023, 06:50 PM
Last Post: snippsat
  try catch not working? korenron 2 905 Jan-15-2023, 01:54 PM
Last Post: korenron
  Multiprocessing queue catch get timeout Pythocodras 1 2,416 Apr-22-2022, 06:01 PM
Last Post: Pythocodras
  twisted: catch return from sql wardancer84 0 1,561 Sep-08-2021, 12:38 PM
Last Post: wardancer84
  how to catch schema error? maiya 0 1,897 Jul-16-2021, 08:37 AM
Last Post: maiya
  is this a good way to catch exceptions? korenron 14 4,809 Jul-05-2021, 06:20 PM
Last Post: hussaind
  pool mysql error - not catch by try\except? korenron 1 2,191 Jul-05-2021, 11:26 AM
Last Post: ibreeden
  Integrate/import a gui code to my main.py penahuse 6 3,219 Feb-03-2021, 08:49 PM
Last Post: deanhystad
  Early data import question VorpalPirate 2 2,294 Dec-09-2019, 10:52 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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