someString in allTags[i] fails.

0 views
Skip to first unread message

frea

unread,
Jun 16, 2009, 7:16:08 PM6/16/09
to beautifulsoup
Hi,
I've encountered something I believe is a bug. Executing

allTags = soup.findAll('a')
print allTags[1]['href'], 'href' in allTags[1]

gives

someString False

Example page :
http://pl.wikipedia.org/wiki/Miasta_w_Polsce

Greetins,
Michal.
Reply all
Reply to author
Forward
0 new messages