|
|
#1 |
|
Member
![]() Posts: 22
Karma: 10
Join Date: Jan 2011
Device: Kindle DX
|
<method> takes exactly 1 argument (2 given) python question
I've gotten this same error, seemingly for no reason, and Googling around doesn't seem to help. Maybe someone else here has come across it. I'm calling it with 1 argument, and it has 1 argument. I know I've had this problem other places to. Any thoughts?
Type:Error: parse_bits_blog() takes exactly 1 argument (2 given) if self.include_bits_blog: self.parse_bits_blog(self) def parse_bits_blog(self): bits_soup = self.index_to_soup('http://bits.blogs.nytimes.com/2011/01/13/') self.log(str(bits_soup)) |
|
|
|
|
|
#2 | |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,536
Karma: 318090012
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
Code:
if self.include_bits_blog:
self.parse_bits_blog()
def parse_bits_blog(self):
bits_soup = self.index_to_soup('http://bits.blogs.nytimes.com/2011/01/13/')
self.log(str(bits_soup))[/QUOTE]
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IOError: [Errno 22] Invalid argument | jkcoder | Calibre | 5 | 09-25-2010 10:28 AM |
| for the sake of argument... | Opus | Amazon Kindle | 9 | 06-21-2010 11:55 PM |
| Python/Calibre question | horsegoalie | Calibre | 0 | 12-15-2009 09:25 PM |
| 8 Ways To Handle An Argument | moon light | Lounge | 11 | 08-26-2009 10:16 PM |
| An argument we are having at work... | ficbot | News | 125 | 08-05-2009 09:09 AM |