-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to Python3 #34
base: master
Are you sure you want to change the base?
Port to Python3 #34
Conversation
Reviewed the draft, thanks |
@Saumya-Mishra9129 try replacing all |
A As it's coming from |
There has been a new PEP regarding this after the release of Python 3.7+ afaik, it works differently from that version onwards. Python3.6 and before would not face the problem. As mentioned here #29 (comment), how about depending on distro specific bs4 package? |
Yeah we should use distro specific package. It is most common these days and a good practice.
I agree with you . Since Python 3.7, all StopIteration exceptions raised inside a generator are transformed into RuntimeError (see PEP-0479 and from StackOverflow). |
What's the status here? It looks like work in progress, but not yet fixed a StopIteration exception yet, and the exception is a normal part of |
Thanks for review. I am working with distro specific packages of BeautifulSoup , I haven't pushed the work here yet. I don't have any idea about how to solve StopIteration , as it is in BeautifulSoup. , so I chose to work on #33 first. |
Thanks. BeautifulSoup is somewhat outdated, and Python 3 now has parsers onboard. Why would you continue to use BeautifulSoup? |
Yes, I agree with @quozl , python3's |
I even agree with both of you. I didn't think about using built in parsers and eventually land up on solving #29 . Thanks for the suggestion. I will now move forward with built-in parsers. |
Done with first one but the last one is still not fixed.
@quozl @pro-panda Review.