May-18-2019, 04:45 PM
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.
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.