Re: urllib2 Basic authentication, what am I doing wrong?

2008-04-13 Thread Max Erickson
On Apr 13, 2:11 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: > Using this nice class (adapted to urllib2) as a basehandler I see that no > Authentication-header is being send > out:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440574 > > What am I doing wrong here? I spend almost my e

Re: Python equivalent to PHP's SPL __autoload() ??

2008-04-27 Thread Max Erickson
Ixiaus <[EMAIL PROTECTED]> wrote: > I was curious (and have spent an enormous amount of time on Google > trying to answer it for myself) if Python has anything remotely > similar to PHP's SPL __autoload() for loading classes on the fly?? > > After digging through docs I feel doubtful there is suc

Re: ISBN Barecode reader in Python?

2008-05-05 Thread Max Erickson
Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Joseph <[EMAIL PROTECTED]> wrote: >> All: I have written a program to query Amazon with ISBN and get >> the book details. I would like to extend so that I can read >> ISBN from the barcode (I will take a photo of the same using >> webcam or mobile).

Re: What is the purpose of ptyhon in Windows

2008-05-07 Thread Max Erickson
WolfgangZ <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: >> hi All, >> http://mail.python.org/mailman/listinfo/python-list >> > At least I'm living in a free country and nobody forces me to > learn python. So I don't fully understand why you HAVE TO learn > it. When your problems can be

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread Max Erickson
kBob wrote: > On Jun 25, 1:26 am, Mark Lawrence > wrote: >> On 24/06/2010 21:48, Christian Heimes wrote: >> >> >>   I am attempting to install the GDAL bindings (GDAL-1.7.1) >> >> on a Windows XP Desktop with Python 2.6 and GDAL. During >> >> install, the If it suits your needs, you can wire

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-16 Thread Max Erickson
akhil1988 wrote: > > akhil1988 wrote: >> >> I have switched to python 3.1 , but now I am getting some syntax >> errors in the code: >> >> File "./customWikiExtractor.py", line 81 >> __char_entities = {' ' :u'\u00A0', '¡' >> :u'\u00A1', >> '¢':u'\u00A2', >>

Re: Python graphics / imaging library

2009-07-18 Thread Max Erickson
Peter Chant wrote: > No, it does not. However, if PIL was updated last in 2006. > Python in 2009 has gone to version 3.1. If PIL is compatible > with 3.1 then I'm fine. But I don't want to have to stick with > Python 2.5 as the rest of the world moves on. > > Pete > > Various messages to

Re: base64 Incorrect Padding

2009-07-31 Thread Max Erickson
MRAB wrote: > Brandon Fredericks wrote: >> I did a search within this group, but couldn't find any >> information on this. >> >> I am sending base64 encoded data as the content over http using >> urllib2 urlopen. When I receive the data and attempt to decode >> it, I get an "Incorrect Padding" e

Re: httplib incredibly slow :-(

2009-08-12 Thread Max Erickson
Chris Withers wrote: > > I'm still reeling from what seems to be such a huge problem with > httplib that seem to be largely ignored :-( > > Chris > There is an httplib2 (but I don't know anything further about it...): http://code.google.com/p/httplib2/ Calling wget or curl using a subprocess

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread Max Erickson
"bartc" wrote: > > "Scott David Daniels" wrote in message > news:kn2dnszr5b0bwazxnz2dnuvz_s-dn...@pdx.net... >> James Harris wrote:... >>> Another option: > > It can be assumed however that .9. isn't in binary? > > That's a neat idea. But an even simpler scheme might be: > > .octal.100 > .d

<    1   2