Re: Mechanoid Web Browser - Recording Capability

2006-09-19 Thread John J. Lee
"Seymour" <[EMAIL PROTECTED]> writes: [...] > one program, MaxQ, that records web surfing. It seems to work great. [...] There are lots of such programs about (ISTR twill used to use MaxQ for its recording feature, but I think Titus got rid of it in favour of his own code, for some reason). How

Re: a different question: can you earn a living with *just* python?

2006-09-27 Thread John J. Lee
"Michele Simionato" <[EMAIL PROTECTED]> writes: > John Salerno wrote: > > But what if you are an expert Python program and have zero clue about > > other languages? > > Python is not a trivial language (think of generators, decorators, > metaclasses, etc) > If you can master it, you can master ev

Re: does anybody earn a living programming in python?

2006-09-27 Thread John J. Lee
Yes. John -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I submit fixes for urllib2 & urlparse?

2006-09-27 Thread John J. Lee
Neville CD <[EMAIL PROTECTED]> writes: > Basically I encountered some smallish problems with a couple of modules > and figure I can fix the problems. > > I did find http://sourceforge.net/projects/python, should I report my > problem report there and then assign them to myself to fix (and creat

Re: How do I submit fixes for urllib2 & urlparse?

2006-09-27 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] > Keep it up and you may get commit privileges eventually! No good deed goes unpunished :-) John -- http://mail.python.org/mailman/listinfo/python-list

Re: Talking to marketing people about Python

2006-09-27 Thread John J. Lee
Roy Smith <[EMAIL PROTECTED]> writes: > I'm working on a product which for a long time has had a Perl binding for > our remote access API. A while ago, I wrote a Python binding on my own, > chatted it up a bit internally, and recently had a (large) customer enquire > about getting access to it

Re: Talking to marketing people about Python

2006-09-27 Thread John J. Lee
"Carl Banks" <[EMAIL PROTECTED]> writes: [...] > Still don't know whether labeling something as written in Python is > intended to be a "badge of honor" or "advance warning". :-) I'm always surprised when people name *applications* with 'Py' in the name, unless they're squarely aimed at the geek

Re: How to read() twice from file-like objects (and get some data)?

2006-09-27 Thread John J. Lee
Georg Brandl <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > > Hello all, please correct me, if I do... > > from ClientForm import ParseResponse > > from urllib2 import urlopen > > ... > > response=urlopen(url) > > forms=ParseResponse(response) > > I won't be able to > > print response.re

Re: httplib and large file uploads

2006-10-03 Thread John J. Lee
"Jesse Noller" <[EMAIL PROTECTED]> writes: > Hey All, > > I'm working on an script that will generate a file of N size (where N is > 1k-1gig) in small chunks, in memory (and hash the data on the fly) and pass > it to an httplib object for upload. I don't want to store the file on the > disk, or c

Re: Pythonic API design: detailed errors when you usually don't care

2006-10-03 Thread John J. Lee
"Simon Willison" <[EMAIL PROTECTED]> writes: > Hi all, > > I have an API design question. I'm writing a function that can either > succeed or fail. Most of the time the code calling the function won't > care about the reason for the failure, but very occasionally it will. > > I can see a number

Re: urllib2 spinning CPU on read

2006-11-27 Thread John J. Lee
"kdotsky" <[EMAIL PROTECTED]> writes: > Hello All, > I've ran into this problem on several sites where urllib2 will hang > (using all the CPU) trying to read a page. I was able to reproduce it > for one particular site. I'm using python 2.4 > > import urllib2 > url = 'http://www.wautomas.info'

Re: urllib2 spinning CPU on read

2006-11-30 Thread John J. Lee
"kdotsky" <[EMAIL PROTECTED]> writes: > > I didn't try looking at your example, but I think it's likely a bug > > both in that site's HTTP server and in httplib. If it's the same one > > I saw, it's already reported, but nobody fixed it yet. > > > > http://python.org/sf/1411097 > > > > > > John >

Re: Printing Barcodes from webapp?

2006-12-04 Thread John J. Lee
"Andy Dingley" <[EMAIL PROTECTED]> writes: > Burhan wrote: > > > Is there an easy way to generate barcodes using Python > > Easy way for any application or language to generate barcodes is to > install a barcode font on the client machine, then just generate a > suitable text string for it. Th

Re: Printing Barcodes from webapp?

2006-12-05 Thread John J. Lee
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On 04 Dec 2006 12:41:59 +, [EMAIL PROTECTED] (John J. Lee) declaimed the > following in comp.lang.python: > > > digits, through complicated encodings (my colleague Robin tells me US > > postal bar codes were a pa

Re: python-hosting.com projects: dead?

2006-12-21 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: [...] > As of this morning my project is back online, so my thanks to python > hosting/webfaction for that. I'm very grateful to them for the great > free service they have provided. I'm sorry that they are getting killed > with spam, but I'm also sor

Re: urllib.urlopen unwanted password prompts - documentation problem

2006-12-27 Thread John J. Lee
John Nagle <[EMAIL PROTECTED]> writes: >If you try to open a password protected page with "urllib.urlopen()", you > get > > "Enter username for EnterPassword at example.com:" > > on standard output, followed by a read for input! This seems to be an > undocumented feature, if not a bu

Re: Simplest way to do Python/Ajax with server and client on same machine?

2006-12-29 Thread John J. Lee
Adonis Vargas <[EMAIL PROTECTED]> writes: > Kenneth McDonald wrote: > > I'm doing some work with a Python program that works hand-in-hand > > with the DOM on a local client (processing DOM events, issuing DOM > > modification commands, etc.) I'm currently using cherrypy as the > > Python server fo

Re: Wow, Python much faster than MatLab

2006-12-30 Thread John J. Lee
Stef Mientki <[EMAIL PROTECTED]> writes: > Mathias Panzenboeck wrote: > > A other great thing: With rpy you have R bindings for python. > > forgive my ignorance, what's R, rpy ? > Or is only relevant for Linux users ? [...] R is a language / environment for statistical programming. RPy is a Pyt

Re: Wow, Python much faster than MatLab

2006-12-30 Thread John J. Lee
Stef Mientki <[EMAIL PROTECTED]> writes: > Doran, Harold wrote: > > R is the open-source implementation of the S language developed at Bell > > laboratories. It is a statistical programming language that is becoming > > the de facto standard among statisticians. > Thanks for the information > I al

Re: No way to set a timeout in "urllib".

2006-12-30 Thread John J. Lee
John Nagle <[EMAIL PROTECTED]> writes: > There's no way to set a timeout if you use "urllib" to open a URL. > "HTTP", which "urllib" uses, supports this, but the functionality > is lost at the "urllib" level. > > It's not available via "class URLopener" or "FancyURLopener", either. > >

Re: When argparse will be in the python standard installation

2007-01-04 Thread John J. Lee
Steven Bethard <[EMAIL PROTECTED]> writes: > Martin v. Löwis wrote: > > Steven Bethard schrieb: > >> If someone has an idea how to include argparse features into optparse, > >> I'm certainly all for it. But I tried and failed to do this myself, so I > >> don't know how to go about it. > > It's not

Re: Python vs C for a mail server

2006-02-04 Thread John J. Lee
"Randall Parker" <[EMAIL PROTECTED]> writes: [...] > Also, a lot of C++'s flaws flow from the fact that it is old and grew > in lots of increments. That was a deliberate decision on the part of C++'s designers!-) I guess the same is true of Python in some respects: it's still incrementally changi

Re: Python vs C for a mail server

2006-02-04 Thread John J. Lee
"Randall Parker" <[EMAIL PROTECTED]> writes: [...] > The code I'm writing in Python is a test executive to test embedded C > code. Then tests get written in Python that the test executive > processes. No, I'm not going to write yet another layer of tests in > order to compensate for shortcomings in

Re: creat a DOM from an html document

2006-02-09 Thread John J. Lee
Mark Harrison <[EMAIL PROTECTED]> writes: > Mark Harrison <[EMAIL PROTECTED]> wrote: > > Now I can't seem to find this... does anybody have a recommendation > > as to a good package to look at? > > Ahh, it's BeautifulSoup... Strictly that's not THE DOM, just A document object model. The DOM pro

Re: Is Python good for web crawlers?

2006-02-09 Thread John J. Lee
[EMAIL PROTECTED] (Alex Martelli) writes: > Magnus Lycka <[EMAIL PROTECTED]> wrote: >... > > I dunno, but there are these two guys, Sergey Brin and Lawrence Page, > > who wrote a web crawler in Python. As far as I understood, they were > > fairly successful with it. I think they called their s

Re: Tracking down memory leaks?

2006-02-12 Thread John J. Lee
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sun, 12 Feb 2006 05:11:02 -0800, MKoool wrote: [...] > I may be mistaken, and if so I will welcome the correction, but Python > does not return memory to the operating system until it terminates. > > Objects return memory to Python when they are gar

Re: Yet another GUI toolkit question...

2006-02-12 Thread John J. Lee
Kevin Walzer <[EMAIL PROTECTED]> writes: [...] > Commercial Qt is a little out of my price range. Commercial *PyQt* (including a license for Qt for use only with PyQt) is $400 (USD) per developer (plus an extra $300/year if you want upgrades). That's compared to Qt license for use *with C++* vary

Re: Yet another GUI toolkit question...

2006-02-13 Thread John J. Lee
Phil Thompson <[EMAIL PROTECTED]> writes: > On Monday 13 February 2006 12:33 am, John J. Lee wrote: > > Kevin Walzer <[EMAIL PROTECTED]> writes: > > [...] > > > > > Commercial Qt is a little out of my price range. > > > > Commercial *Py

Re: Can .py be complied?

2005-05-01 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > John J. Lee wrote: [...] > > I'm hesitant to label everybody who disagrees with you (and me) on > > that a zealot. Though I tend to take the same side you do, I'm not [...] > Well, we appear to agree. Please note I

Re: Which IDE is recommended?

2005-05-01 Thread John J. Lee
Ville Vainio <[EMAIL PROTECTED]> writes: > >>>>> "John" == John J Lee <[EMAIL PROTECTED]> writes: > > John> Dave Cook <[EMAIL PROTECTED]> writes: > > John> What are those compelling features of Pydev, for an emacs &

Re: Q: The `print' statement over Unicode

2005-05-08 Thread John J. Lee
Jeremy Bowers <[EMAIL PROTECTED]> writes: > On Sat, 07 May 2005 12:10:46 -0400, François Pinard wrote: > > > [Martin von Löwis] > > > >> François Pinard wrote: > >> > >> > Am I looking in the wrong places, or else, should not the standard > >> > documentation more handily explain such things? >

Re: SGMLlib module

2005-05-08 Thread John J. Lee
Peter Hansen <[EMAIL PROTECTED]> writes: > Harlin Seritt wrote: > > I am trying to use SGMLlib module to extract all links from some data I > > pulled from the web (via urllib). I have looked at the documentation > > online and can not make sense of it. As a quick example, how would I > > get the

Re: Parsing HTML with JavaScript

2005-05-13 Thread John J. Lee
[EMAIL PROTECTED] writes: > I am trying to extract some information from a few web pages, and I was > using the HTMLParser module. It worked fine until it got to the > javascript, at which it gave a parse error. Is there a good way to work > around this or should I just preparse the file to remove

Re: Python Documentation (should be better?)

2005-05-13 Thread John J. Lee
Ivan Van Laningham <[EMAIL PROTECTED]> writes: > Hi All-- > The Python docs are not ideal. I can never remember, for instance, > where to find string methods (not methods in the string module, but > methods with ''), but I can remember a tortured path to get me there [...] The answer to 80% of "

Re: Python Documentation (should be better?)

2005-05-13 Thread John J. Lee
Greg Ewing <[EMAIL PROTECTED]> writes: > Ivan Van Laningham wrote: > > Hi All-- > > The Python docs are not ideal. I can never remember, for instance, > > where to find string methods (not methods in the string module, but > > methods with '') > > Curiously I had the same problem just the other

Re: Python Documentation (should be better?)

2005-05-13 Thread John J. Lee
"Christopher J. Bottaro" <[EMAIL PROTECTED]> writes: [...] > At my work, we are developing a product from scratch. It is completely > modular and the modules communicate via SOAP. Because of that, we can > implement individual modules in any language of our choosing (so long as > they have good S

Re: Python Documentation (should be better?)

2005-05-13 Thread John J. Lee
"Christopher J. Bottaro" <[EMAIL PROTECTED]> writes: [...] By the way, did you try the .chm? John -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on a public library computer

2005-05-16 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Here's my situation: > > I'm typing this in a public library on a computer with OS windows 2000 > server. I can run Internet explorer, word, excel and powerpoint, that's > it. Maybe java, but it seems to be flaky. > > I want to run python scripts

Re: Python on a public library computer

2005-05-17 Thread John J. Lee
"Anton Vredegoor" <[EMAIL PROTECTED]> writes: > John J. Lee wrote: > > > Why not Jython? > > There's no command prompt! The file menu from IE is also gone. There is > a sun Java console but it looks like this: [...] ISTR (maybe incorrectly) there&

Re: Python on a public library computer

2005-05-17 Thread John J. Lee
"Anton Vredegoor" <[EMAIL PROTECTED]> writes: > Chris Lambacher topposted: > > > usb key and moveable python. > > http://www.voidspace.org.uk/python/movpy/ > > I have a usb card reader and I can use it. That saves me from having to > have remote storage at least. However I can only save files, n

Re: Python forum

2005-05-17 Thread John J. Lee
Jonas Melian <[EMAIL PROTECTED]> writes: > I'm going to say a suggestion, why don't you create a forum like the one > of Ruby (http://www.rubyforums.com/)? for the novices this is a great > help, better than a mail list [...] Web forums do reach a different audience. Maybe python.org should have

Re: Python forum

2005-05-17 Thread John J Lee
On Tue, 17 May 2005, Skip Montanaro wrote: > > John> Web forums do reach a different audience. Maybe python.org should > John> have a 'web forum' link to gmane.org's web interface for c.l.py? > > Any idea if the gmane folks could be convinced to move > gmane.comp.python.general to gmane

Re: Help with choice of suitable Architecture

2005-05-29 Thread John J. Lee
"Rob Cowie" <[EMAIL PROTECTED]> writes: > Thanks for the comments. > > I kind of get the impression that CGI is the way to go for this > application, and that I should forget about adding client-side > scripting based functionality for the sake of accessibility - which I > understand and kind of

Re: Software licenses and releasing Python programs for review

2005-05-29 Thread John J. Lee
"poisondart" <[EMAIL PROTECTED]> writes: [...] > Ultimately I desire two things from the license (but not limited to): > - being able to distribute it freely, anybody can modify it > - nobody is allowed to make profit from my code (other than myself) [...] If you believe it's feasible to get contr

Re: Software licenses and releasing Python programs for review

2005-05-30 Thread John J. Lee
"poisondart" <[EMAIL PROTECTED]> writes: [...] > I plan to release my programs for academic and pedagogical purposes. > The knowledge contained in these programs is the same knowledge that > people use to speak a language--did you buy a copy of the English > language when you decided to learn it? >

Re: scripting browsers from Python

2005-05-31 Thread John J. Lee
"Michele Simionato" <[EMAIL PROTECTED]> writes: > I would like to know what is available for scripting browsers from > Python. > For instance, webbrowser.open let me to perform GET requests, but I > would like > to do POST requests too. I don't want to use urllib to emulate a > browser, I am > int

Re: scripting browsers from Python

2005-06-01 Thread John J. Lee
Olivier Favre-Simon <[EMAIL PROTECTED]> writes: > On Tue, 31 May 2005 00:52:33 -0700, Michele Simionato wrote: > > > I would like to know what is available for scripting browsers from > > Python. [...] > ClientFormhttp://wwwsearch.sourceforge.net/ClientForm/ > > I use it for automation of PO

Re: BUG pythonw vs subprocess

2005-06-01 Thread John J. Lee
Paul Rubin writes: > I thought pythonw didn't provide a console and so it could be that > stdin and stdout aren't connected to anything. Popen therefore doesn't > make sense. You have to use sockets or something. Yeah... I don't know about module subprocess, but I rec

Re: Pressing A Webpage Button

2005-06-01 Thread John J. Lee
Elliot Temple <[EMAIL PROTECTED]> writes: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. [...] You might find the FAQ list and hints below useful after you get over the initial barriers (and

Re: scripting browsers from Python

2005-06-03 Thread John J. Lee
Olivier Favre-Simon <[EMAIL PROTECTED]> writes: [...] > > I'd like to have a reimplementation of ClientForm on top of something > > like BeautifulSoup... > > > > > > John > > When taken separately, either ClientForm, HTMLParser or SGMLParser work > well. > > But it would be cool that competent

Re: scripting browsers from Python

2005-06-03 Thread John J. Lee
[Michele Simionato] > > I would like to know what is available for scripting browsers from > > Python. [...] > > to do POST requests too. I don't want to use urllib to emulate a > > browser, I am > > interested in checking that browser X really works as intended with my > > application. Any suggest

Q: functional/equational language, smells a little of Python

2005-06-04 Thread John J. Lee
Saw this on LWN: http://q-lang.sourceforge.net/ Looks interesting, and reminiscent of symbolic algebra systems like Mathematica. Also, the website mentions dynamic typing and "Batteries Included", which made me think of Python. Damned silly name, though (perhaps pre-Google?). Anybody here use

Re: Controlling source IP address within urllib2

2005-06-04 Thread John J. Lee
"Dan" <[EMAIL PROTECTED]> writes: > Does anybody know how to control the source IP address (IPv4) when > using the urllib2 library? I have a Linux box with several IP > addresses in the same subnet, and I want to simulate several > individuals within that subnet accessing web pages independently.

method = Klass.othermethod considered PITA

2005-06-04 Thread John J. Lee
It seems nice to do this class Klass: def _makeLoudNoise(self, *blah): ... woof = _makeLoudNoise One probably wants the above to work as if you'd instead defined woof in the more verbose form as follows: def woof(self, *blah): return self._makeLoudNoise(self, *blah) It do

Re: Q: functional/equational language, smells a little of Python

2005-06-05 Thread John J. Lee
"Kay Schluehr" <[EMAIL PROTECTED]> writes: [...] > I'm curious why do you think that it "smells like Python"? Because of > "batteries included"? Partly that and the mention of dynamic typing, plus harder-to-pin down things. I didn't mean to say that it was close kin to Python, just that on first

Re: method = Klass.othermethod considered PITA

2005-06-05 Thread John J. Lee
Steven Bethard <[EMAIL PROTECTED]> writes: > John J. Lee wrote: > > It seems nice to do this > > class Klass: > > def _makeLoudNoise(self, *blah): > > ... > > woof = _makeLoudNoise > > Out of curiosity, why do you want to do this? I d

Re: method = Klass.othermethod considered PITA

2005-06-05 Thread John J. Lee
Jeff Epler <[EMAIL PROTECTED]> writes: > On Sat, Jun 04, 2005 at 10:43:39PM +0000, John J. Lee wrote: > > 1. In derived classes, inheritance doesn't work right: > > Did you expect it to print 'moo'? I'd have been surprised, and expected > the beh

Re: Controlling source IP address within urllib2

2005-06-07 Thread John J. Lee
"Dan" <[EMAIL PROTECTED]> writes: > John, > Thanks for your input. I can kind of see the light in this, but I'm > having difficulty knowing where the "do_open" method comes from. Also, AbstractHTTPHandler > I'll need to follow redirects, so I assume then I would add a > HTTPRedirectHandler in

Re: method = Klass.othermethod considered PITA

2005-06-07 Thread John J. Lee
Erik Max Francis <[EMAIL PROTECTED]> writes: [...] > requesting. In my particular case, there isn't much need to make sure > things are properly overridden in subclasses, since functionality > tends to get added, rather than modified. (The "Why would you want to [...] Well done, have this gold s

Re: method = Klass.othermethod considered PITA

2005-06-07 Thread John J. Lee
Steven Bethard <[EMAIL PROTECTED]> writes: > John J. Lee wrote: > > Steven Bethard <[EMAIL PROTECTED]> writes: > >>In Python 2.4: > >> > >>py> class A(object): > >>... def foo(self): > >>... print 'foo

Re: how to export data from ZODB to text files

2005-06-07 Thread John J. Lee
[EMAIL PROTECTED] (ls) writes: > Hi Peter, > > Thank you for your reply. I already can access file using code > > > >>> from ZODB import FileStorage, DB > >>> storage = > FileStorage.FileStorage('mydatabase.fs') > >>> db = DB(storage) > >>> connection = db.open() >

Re: Destructive Windows Script

2005-06-10 Thread John J. Lee
Grant Edwards <[EMAIL PROTECTED]> writes: > > I take this to mean the the drive is non-functional and might > > have well been melted, except that demagnetising is cheaper. > > Yup. In a frequently cited scary paper (on the web &c.), Peter Gutmann claims claims that's not true in practise, IIRC:

Re: Basic Auth for simple web server

2007-06-06 Thread John J. Lee
Marco Aloisio <[EMAIL PROTECTED]> writes: > Hi, I'm a Python newbie; > I have to write a simple webserver, and I need to > implement a basic authentication as specified in the RFC2617. > I wonder if there is a Python library for doing that. twisted.web2 is one. John -- http://mail.python.org

Re: How do you htmlentities in Python

2007-06-06 Thread John J. Lee
"Thomas Jollans" <[EMAIL PROTECTED]> writes: > "Adam Atlas" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > As far as I know, there isn't a standard idiom to do this, but it's > > still a one-liner. Untested, but I think this should work: > > > > import re > > from htmlentitydef

Re: get message form ie

2007-06-06 Thread John J. Lee
Ashok <[EMAIL PROTECTED]> writes: > Hi, > > Is there any way i can get a message form internet explorer into my > python script when internet explorer completes loading a page? > > _ > ashok One way is to use a Browser Helper Object (BHO). Here's an old script written for old version of ct

Longest issue tracker thread?

2007-06-12 Thread John J. Lee
Reading a recent message about a mozilla project bugzilla comment thread 7 years old, I am curious re how dismally long and drawn-out a tracker thread has so far been observed in the wild. Possibly there are older issues in the Python project's own tracker, for starters? Separate prizes will be a

Re: WebThumb

2007-06-17 Thread John J. Lee
Johny <[EMAIL PROTECTED]> writes: > How can I get a website thumbnail? > I would like to allow visitors to add their URLs to our pages with > the thumbnail of their website. > Can anyone suggest a solution for web thumbnails? > Thanks > L. There are a number of ways to do it, most of them involv

Re: Longest issue tracker thread?

2007-06-17 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: > Reading a recent message about a mozilla project bugzilla comment > thread 7 years old, I am curious re how dismally long and drawn-out a > tracker thread has so far been observed in the wild. [...] I'll get my coat... :-)

Re: Logger vs. Handler log levels

2007-06-21 Thread John J. Lee
[EMAIL PROTECTED] (Steve Greenland) writes: > Apparently I don't understand logging levels. The code: > > import logging, logging.handlers > > > logging.basicConfig(level=logging.WARNING) > > newlog = logging.handlers.TimedRotatingFileHandler( > filename='/home/steveg/logtest.l

Re: eggs considered harmful

2007-06-21 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: [...] > These are unacceptable behaviors. I am therefore dropping ZODB3, and > am considering dropping TurboGears and ZSI. If the egg paradigm > spreads, yet more packages will be dropped (or will never get a chance > to compete for addition). > > I've as

Re: Indenting in Emacs

2007-06-21 Thread John J. Lee
Eugene Morozov <[EMAIL PROTECTED]> writes: > Steven W. Orr пишет: > > Ok. I'm not stupid but I do not see a 4.78 anywhere even though I > see refs >> from google. I have 4.75 The SVN tree doesn't seem to even have >> that. >> >> I checked the latest copy out from sourceforge and that was 4.75 to

Re: Indenting in Emacs

2007-06-25 Thread John J. Lee
Michael Hoffman <[EMAIL PROTECTED]> writes: > John J. Lee wrote: >> Eugene Morozov <[EMAIL PROTECTED]> writes: >> >>> Steven W. Orr пишет: >>> > Ok. I'm not stupid but I do not see a 4.78 anywhere even though I >>> see refs >&g

Re: eggs considered harmful

2007-06-25 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (John J. Lee) writes: [...] >> 2. You can run your own private egg repository. IIRC, it's as simple >> as a directory of eggs and a plain old web server with directory >> listings turned on.

Re: Setuptools, build and install dependencies

2007-06-25 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: > Robert Kern <[EMAIL PROTECTED]> writes: > >> Harry George wrote: >> >>> We need to know the dependencies, install them in dependency order, >>> and expect the next package to find them. "configure" does this for >>> hundreds of packages. cmake, scons, a

Re: eggs considered harmful

2007-06-25 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: > Robert Kern <[EMAIL PROTECTED]> writes: [...] > This is a possibility. The tarballs can be seen in a directory > listing. They are in different subdirs (for different "bundles" of > functionality), so I'll need -f to look several places. One possibilit

Re: urllib interpretation of URL with ".."

2007-06-25 Thread John J. Lee
John Nagle <[EMAIL PROTECTED]> writes: > Duncan Booth wrote: >> "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> >> Is "urllib" wrong? > >> Section 5.2 is also relevant here. In particular: >> >> >>> g) If the resulting buffer string still begins with one or more >>> complete path

Re: What was that web interaction library called again?

2007-06-25 Thread John J. Lee
Harald Korneliussen <[EMAIL PROTECTED]> writes: > Hi, > > I remember I came across a python library that made it radically > simple to interact with web sites, connecting to gmail and logging in > with four or five lines, for example. I thought, "that's interesting, > I must look into it sometime"

Re: something similar to shutil.copytree that can overwrite?

2007-06-26 Thread John J. Lee
Ben Sizer <[EMAIL PROTECTED]> writes: > On 20 Jun, 11:40, Justin Ezequiel <[EMAIL PROTECTED]> > wrote: >> On Jun 20, 5:30 pm, Ben Sizer <[EMAIL PROTECTED]> wrote: >> >> > I need to copy directories from one place to another, but it needs to >> > overwrite individual files and directories rather th

Re: using urllib, urllib2 , mechanize to access password protected site

2007-07-01 Thread John J. Lee
comeshopcheap <[EMAIL PROTECTED]> writes: > Hi > > I am using this script to access doba.com (I need to download some > files) but I keep on being sent back to the login page not the user > home page. Any help. I think I may need to use a post method and > opener is using a get method > > Thanks >

Re: deliberate versus os socket timeout

2007-07-05 Thread John J. Lee
Robin Becker <[EMAIL PROTECTED]> writes: > While messing about with some deliberate socket timeout code I got an > unexpected timeout after 20 seconds when my code was doing > socket.setdefaulttimeout(120). > > Closer inspection revealed that this error in fact seemed to come from > the os (in thi

Re: urllib to cache 301 redirections?

2007-07-06 Thread John J. Lee
"O.R.Senthil Kumaran" <[EMAIL PROTECTED]> writes: > Hi, > There is an Open Tracker item against urllib2 library python.org/sf/735515 > which states that. > urllib / urllib2 should cache the results of 301 (permanent) redirections. > This shouldn't break anything, since it's just an internal optimi

Re: IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

2007-07-06 Thread John J. Lee
"Méta-MCI" <[EMAIL PROTECTED]> writes: [...] > And, all COM-servers builds with Python are dynamic-COM-server. Not true. Look for "comtypes" on this page: http://python.net/crew/theller/ctypes/ [...] > about Iron Python: is there a good IDE for it that has a typing assist? MS calls this "typin

Re: Pretty Printing Like Tidy for HTML

2007-07-08 Thread John J. Lee
David <[EMAIL PROTECTED]> writes: > Is there a pretty printing utility for Python, something like Tidy for > HTML? > > That will change: > > xp=self.uleft[0]+percentx*(self.xwidth) > > To: > > xp = self.uleft[0] + percentx * (self.xwidth) > > And other formatting issues. Googled a

Re: Purpose of delayload in cookielib.FileCookieJar?

2007-07-10 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > What is the reason for delayload=False in the FileCookieJar.__init__ > function? It doesn't seem to be used in any of the code that ships > with python2.4, That is true, as is in fact explicitly documented: http://docs.python.org/lib/cookie-jar-

Re: Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-10 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > urllib2.build_opener happily accepts and ignores a FileCookieJar.I > had a bug in my code which looked like > > urllib2.build_opener(func_returning_cookie_jar()) > > which should have been > > urllib2.build_opener(HTTPCookieProcessor(func_retur

Re: Tool for finding external dependencies

2007-07-10 Thread John J. Lee
Rob Cakebread <[EMAIL PROTECTED]> writes: > Hi, > > I need to find external dependencies for modules (not Python standard > library imports). > > Currently I use pylint and manually scan the output, which is very > nice, or use pylint's --ext-import-graph option to create a .dot file > and extract

Re: What is the most efficient way to test for False in a list?

2007-07-10 Thread John J. Lee
Duncan Booth <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: > >> "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >>> >> status = all(list) >>> > >>> > Am I mistaken, or is this no identity test for False at all? >>> >>> You are mistaken. all take an iterable and return

Re: socket.makefile() buggy?

2007-07-10 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > ahlongxp wrote: >> On Jul 8, 9:54 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >>> That's a pretty pejorative subject line for someone who's been >>> programming Python [guessing by the date of your first post] for about a >>> month. >>> > [...] >> And las

Re: Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-11 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: [...] > Are the docs themselves in subversion? I suppose I should also update > the doc at http://docs.python.org/lib/module-urllib2.html Yep: http://svn.python.org/projects/python/trunk/Doc/lib/liburllib2.tex John -- http://mail.python.org/mail

Re: help reading cookie values

2007-07-14 Thread John J. Lee
[EMAIL PROTECTED] writes: > On Jul 13, 3:08 pm, Sean <[EMAIL PROTECTED]> wrote: >> I am trying to read a cookie I set but I am not sure if I really set >> it correctly or I am not reading it correctly. I was given the >> following instructions to set the cookie. It appears to be working >> becau

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread John J. Lee
[Chris Carlen] > From what I've read of OOP, I don't get it. I have also found some > articles profoundly critical of OOP. I tend to relate to these > articles. If you want to know the truth, and opt to neither trust a friend or colleague, nor spend the time to try it yourself, here's a third w

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread John J. Lee
[EMAIL PROTECTED] (Aahz) writes: [...] > Note very very carefully that Python does not require an OOP style of > programming, agree > but it will almost certainly be the case that you just > naturally start using OOP techniques as you learn Python. There's some truth to this. But stagnation is

Re: Client-side cookies on Python in Mac OSX

2007-07-14 Thread John J. Lee
Adrian Petrescu <[EMAIL PROTECTED]> writes: > Oh, you're right! Silly me, I had always thought it was standard. > Thanks for pointing this out! I went and downloaded ClientCookie and > it works great on OS X. And since it is BSD-licensed, I can use it in > my app without any fear. Perfect. > > Tha

Re: urllib to cache 301 redirections?

2007-07-16 Thread John J Lee
On Tue, 17 Jul 2007, O.R.Senthil Kumaran wrote: [...] > I spent a little time thinking about a solution and figured out that the > following changes to HTTPRedirectHandler, might be helpful in implementing > this. [...] Did you post it on the Python SF patch tracker? If not, please do, and point

Re: code packaging

2007-07-21 Thread John J. Lee
Paul Rubin writes: [...] > I'm now wondering where this type of thing is best addressed in more > general terms. What I usually see happening, in projects I've worked > on and in others, is that developers get the code working on their own > computers, using source contr

Re: how to find available classes in a file ?

2007-07-22 Thread John J. Lee
Alex Popescu <[EMAIL PROTECTED]> writes: [...] > I may be wrong but I think I've found a difference between my > dir(module) approach > and the inspect.getmembers(module, inspect.isclass): the first one > returns the > classes defined in the module, while the later also lists the imported > availab

Re: http pipelining

2007-04-29 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > > Which python module is capable of pipelining http requests? > > (I know httplib can send mulitple requests per tcp connection, but in > > a strictly serial way. ) > > > Oops, sorry, you meant sending requests in parallel, rig

Re: ClientForm .click() oddity

2007-05-24 Thread John J. Lee
Gordon Airporte <[EMAIL PROTECTED]> writes: [...] > Simply .click()ing on the form does not properly fill in > submit_button=Forward&action=apply, however. The arguments are there > but with no values. > Is this because ClientForm doesn't run javascript, Yes. > or is there a way > to determine a

Re: email modul with writing to mboxes (and locking) for python 2.4.*?

2007-05-25 Thread John J. Lee
Matej Cepl <[EMAIL PROTECTED]> writes: > Is there somewhere support for the extension of email module, > which would support writing to (and creating new) mbox folders > (with all bells and whistles, like locking)? It seems to me that > current (Python 2.4.*, I even tried email package > 4.0.2

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-28 Thread John J. Lee
Paul McGuire <[EMAIL PROTECTED]> writes: [...] > http://mail.python.org/pipermail/python-dev/2005-December/058750.html > > At first, Guido seemed ambivalent, and commented on the > contentiousness of the issue, but it seems that the "non-English > speakers can more easily find word breaks marked w

<    1   2   3   4   5   >