Python Forum
Problems with "re.fullmatch"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with "re.fullmatch"
#9
I'm sorry, I'll start again.
I'm doing a program that has the function of a library, which saves, displays and deletes data about books and comics that the user writes.

The program is divided into two: the first (BIBLIOTECA.py) are the Library, Book and Comic classes (it is the first code that posted), the second (USE_BIBLIOTECA.py) imports to BIBLIOTECA.py and there is the menu with the different options (the second code that posted).
The important code is the first.

When I run the program from my Terminal (Mac OS) I get the error: "" TypeError: expected string or bytes-like object. "

You told me: In the original code you provided, you passed a Comic object instead of a string to re.fullmatch so that error made perefect sense.
But I don't know how to solve that error.

Sorry for all the above, I thought that I was explaining myself well.
Thanks for your patience.
Reply


Messages In This Thread
Problems with "re.fullmatch" - by AlanT - May-16-2019, 07:18 PM
RE: Problems with "re.fullmatch" - by micseydel - May-16-2019, 07:30 PM
RE: Problems with "re.fullmatch" - by AlanT - May-16-2019, 08:49 PM
RE: Problems with "re.fullmatch" - by micseydel - May-16-2019, 10:34 PM
RE: Problems with "re.fullmatch" - by AlanT - May-17-2019, 12:42 PM
RE: Problems with "re.fullmatch" - by micseydel - May-17-2019, 09:11 PM
RE: Problems with "re.fullmatch" - by AlanT - May-17-2019, 10:59 PM
RE: Problems with "re.fullmatch" - by micseydel - May-17-2019, 11:02 PM
RE: Problems with "re.fullmatch" - by AlanT - May-18-2019, 04:45 PM

Forum Jump:

User Panel Messages

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