Python Forum
Avoiding traceback not through input filtering
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Avoiding traceback not through input filtering
#3
I just note that with Gribouillis code different ValueError will be raised during evaluation if string of character(s) is entered:

>>>  ast.literal_eval('a')
/.../
ValueError: malformed node or string: /.../
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: Avoiding traceback not through input filtering - by perfringo - Oct-16-2019, 06:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Avoiding Re-login Goodsayan 0 1,436 Sep-09-2021, 01:53 PM
Last Post: Goodsayan
  Avoiding too many if's Ted_Toad 6 2,732 Sep-17-2020, 07:18 PM
Last Post: Ted_Toad
  What is the better way of avoiding duplicate records after aggregation in pandas ? jagasrik 0 1,781 Aug-30-2020, 05:26 PM
Last Post: jagasrik
  Avoiding empty line in writing process csv file go127a 4 9,909 May-10-2019, 01:33 PM
Last Post: go127a

Forum Jump:

User Panel Messages

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