You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing pubmed_parser in python3 raises the following warnings:
Python 3.8.1 (default, Jan 8 2020, 23:09:20)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pubmed_parser as p
/home/tleonardi/nobackup/pubmed_parse_tleonardi/pubmed_parser/pubmed_web_parser.py:147: SyntaxWarning: "is not" with a literal. Did you mean "!="?
pmc_text = [c for c in citation.split('/') if c is not ''][-1]
/home/tleonardi/nobackup/pubmed_parse_tleonardi/pubmed_parser/pubmed_web_parser.py:246: SyntaxWarning: "is" with a literal. Did you mean "=="?
if id_type is 'PMC':
/home/tleonardi/nobackup/pubmed_parse_tleonardi/pubmed_parser/pubmed_web_parser.py:249: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif id_type is 'PMID':
>>>
The compiler now produces a SyntaxWarning when identity checks (is and is not)
are used with certain types of literals (e.g. strings, numbers). These can often work
by accident in CPython, but are not guaranteed by the language spec. The warning
advises users to use equality tests (== and !=) instead. (Contributed by Serhiy
Storchaka in bpo-34850.)
The text was updated successfully, but these errors were encountered:
Importing pubmed_parser in python3 raises the following warnings:
This is due to a documented change in Python3.8.
The text was updated successfully, but these errors were encountered: