May-17-2019, 12:42 PM
Hi @micseydel! Sorry if I didn't explain well and sorry for my ignorance.
I don't know how I can change the file name and I don't know if I should do that because the error is still, when running it in the terminal.
The second code that I wrote is the menu and the use of the functions/methods of the first code. In that code I don't have any mistakes. The important mistake is:
File "USO_BIBLIOTECA.py", line 4, in <module>
from BIBLIOTECA import *
File BIBLIOTECA.py line 134, in <module>
comic = Comic()
File BIBLIOTECA.py line 128, in __init__
libro.setAutor(self)
File BIBLIOTECA.py line 67, in setAutor
if re.fullmatch(regex, new_autor):
File BIBLIOTECA.py line 168, in fullmatch
return _compile(pattern, flags).fullmatch(string)
TypeError: expected string or bytes-like object.
BIBLIOTECA.py is the first code and USO_BIBLIOTECA.py is the second.
In relation to all the code that I have published, I will consider your advice for future publications.I am learning to simplify code
I'm trying to explain it to you as best I can. Thanks for your understanding
I don't know how I can change the file name and I don't know if I should do that because the error is still, when running it in the terminal.
The second code that I wrote is the menu and the use of the functions/methods of the first code. In that code I don't have any mistakes. The important mistake is:
File "USO_BIBLIOTECA.py", line 4, in <module>
from BIBLIOTECA import *
File BIBLIOTECA.py line 134, in <module>
comic = Comic()
File BIBLIOTECA.py line 128, in __init__
libro.setAutor(self)
File BIBLIOTECA.py line 67, in setAutor
if re.fullmatch(regex, new_autor):
File BIBLIOTECA.py line 168, in fullmatch
return _compile(pattern, flags).fullmatch(string)
TypeError: expected string or bytes-like object.
BIBLIOTECA.py is the first code and USO_BIBLIOTECA.py is the second.
In relation to all the code that I have published, I will consider your advice for future publications.I am learning to simplify code
I'm trying to explain it to you as best I can. Thanks for your understanding