Re: List of WindowsError error codes and meanings

2011-05-21 Thread John J Lee
Andrew Berg writes: > This is probably somewhat off-topic, but where would I find a list of > what each error code in WindowsError means? WindowsError is so broad > that it could be difficult to decide what to do in an except clause. > Fortunately, sys.exc_info()[1][0] holds the specific error co

Re: application level monitoring for python

2011-05-21 Thread John J Lee
Walter Chang writes: > Hi > > is there any open source library for python that can allow application > level monitoring ? For example,application can send per request level/ > aggregated monitoring events and some remote server dump it and show > in the monitoring graph in real time ? What's be

Re: Parsing a graph image

2011-05-21 Thread John J Lee
Bastian Ballmann writes: > Hi, > > the project sounds like the exact tool that i need but regarding the > user manual one has to mark the points on the graph manually. Therefore > it's more work to get the data out than doing it without a tool. Or may > I miss something here? > Greets Read the d

Re: checking if a list is empty

2011-05-21 Thread John J Lee
Gregory Ewing writes: > Hans Georg Schaathun wrote: >> 0 is a number as real and existent as any other, >> one would think that the empty list is also as real and existent as >> any other list. > > 0 does have some special properties, though, such as > being the additive identity and not having

Abandoning Python

2011-05-21 Thread John J Lee
I still like Python after using it for over a decade, but there are things I don't like. What are your favourite up-and-coming languages of the moment? Here's my wishlist (not really in any order): * A widely used standard for (optional) interface declaration -- or something better. I wan

Re: Abandoning Python

2011-05-22 Thread John J Lee
Daniel Kluev writes: > On Sun, May 22, 2011 at 2:49 AM, John J Lee wrote: >> Here's my wishlist (not really in any order): > > How come pony is not listed there? Language cannot be better than > python without pony! Pony, absolutely. I took that as read. >>

Re: Using distutils 2.4 for python 2.3

2005-09-24 Thread John J. Lee
Noam Raphael <[EMAIL PROTECTED]> writes: > Fredrik Lundh wrote: > > > > you can enable new metadata fields in older versions by assigning to > > the DistributionMetadata structure: > > > > try: > > from distutils.dist import DistributionMetadata > > DistributionMetadata.packa

Re: Help on regular expression match

2005-09-24 Thread John J. Lee
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: [...] > or, if you're going to parse HTML pages from many different sources, a > real parser: > > from HTMLParser import HTMLParser > > class MyHTMLParser(HTMLParser): > > def handle_starttag(self, tag, attrs): > if tag == "

Re: Help on regular expression match

2005-09-24 Thread John J. Lee
"Johnny Lee" <[EMAIL PROTECTED]> writes: > Fredrik Lundh wrote: [...] > To the HTMLParser, there is another problem (take my code for example): > > import urllib > import formatter > parser = htmllib.HTMLParser(formatter.NullFormatter()) > parser.feed(urllib.urlopen(baseUrl).read()) > parser.clos

Re: desktop module (was Re: Open PDF)

2005-09-24 Thread John J. Lee
"Paul Boddie" <[EMAIL PROTECTED]> writes: [...] > I've just uploaded a patch/suggestion/module (#1301512) to SourceForge > which seeks to provide the equivalent of os.startfile for KDE and GNOME > (as well as Windows) as part of a generic desktop module: > > http://sourceforge.net/tracker/index.ph

Re: Poor man's OCR: need performance improvement tips

2005-09-24 Thread John J. Lee
"qvx" <[EMAIL PROTECTED]> writes: [...] > 4. Process each line: compare pixels of each letter of alphabet with > corresponding pixels in line of input picture. This consists of loops > comparing pixel by pixel. This is my performance bottleneck. > > I'm using PIL for initial image processing. But

Re: Using '__mul__' within a class

2005-09-25 Thread John J. Lee
"Gerard Flanagan" <[EMAIL PROTECTED]> writes: [...] > class FibonacciMatrix: [...] > def Copy( self ): [...] __copy__ would be a more standard name. Then: import copy fm = FibonacciMatrix() fm2 = copy.copy(fm) I suppose you could also add: __deepcopy__ = __copy__ in the body of the clas

Re: How to decompile an exe file compiled by py2exe?

2005-09-25 Thread John J. Lee
Leo Jay <[EMAIL PROTECTED]> writes: [...] > I opened the `hjparser.exe' file in UltraEdit(a hex editor), and found > some partial statements and comments but not complete. > > so, my problem is i'm sure that the source code is in `hjparser.exe' > but i don't know how to decompile the executable fi

Re: Overloading __init__ & Function overloading

2005-09-30 Thread John J. Lee
Paul Rubin <"http://phr.cx"@NOSPAM.invalid> writes: > "Iyer, Prasad C" <[EMAIL PROTECTED]> writes: > > But I want to do something like this > > > > class BaseClass: > > def __init__(self): > > # Some code over here > > def __init__(self, a, b): > > # Some code over

Re: 'ascii' codec can't encode character u'\u2013'

2005-09-30 Thread John J. Lee
deelan <[EMAIL PROTECTED]> writes: [...] > query = "UPDATE blogs_news SET text = %s WHERE id=%s" > cursor.execute(query, (text_extrated, id)) > > so mysqldb will take care to quote text_extrated automatically. this > may not not your problem, but it's considered "good style" when dealing > with db

Re: Where to find python c-sources

2005-09-30 Thread John J. Lee
"Tor Erik Sønvisen" <[EMAIL PROTECTED]> writes: > "Erik Max Francis" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Tor Erik S�nvisen wrote: > > > >> I need to browse the socket-module source-code. I believe it's contained > >> in the file socketmodule.c, but I can't locate th

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > I'm responding off-list No you're not! Sorry if I missed some subtle joke here... John -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-30 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > Rocco Moretti wrote: [...] > > Right, but like doors that automatically lock when they close, items > > which are there to protect you can be a nusaince, especially when you've > > left your keys on the dining room table. > > That would make a good Onio

Re: PDF Viewer

2005-09-30 Thread John J. Lee
Pepe Pena <[EMAIL PROTECTED]> writes: > I am new to programming and need some guidance on the development of > the following application. The proposed application will display > two pdf documents simultaneously to be viewed and simple navigation > will be facilitated (i.e. turning pages). > > Fu

Re: PEP 308 accepted - new conditional expressions

2005-10-01 Thread John J. Lee
"Michele Simionato" <[EMAIL PROTECTED]> writes: [...] > Guido could have decided two years ago, sparing us the PEP 308 ordalia. > So, I am happy that at the end we will have a conditional operator, but > I am not happy of how the process worked out. It was just an enormous > waste of resources that

Re: Where to find python c-sources

2005-10-03 Thread John J. Lee
[Tor Erik S�nvisen] > socketmodule.c, but I can't locate this file... Where should I look? [John, finding 'socketmodule.c' responds well to "I'm Feeling Lucky"] > Does google vary in its results across the globe? [Michael] > The search terms might be obvious to you, but it simply means your googl

Re: Where to find python c-sources

2005-10-07 Thread John J. Lee
Terry Hancock <[EMAIL PROTECTED]> writes: > On Friday 30 September 2005 04:37 pm, John J. Lee wrote: > > "Tor Erik Sønvisen" <[EMAIL PROTECTED]> writes: > > > Thanks for the answers... And yes, I have searched google! > > > > How odd -- th

Re: how do you pronounce wxpython

2005-10-08 Thread John J. Lee
"Alex" <[EMAIL PROTECTED]> writes: > My native language is not English so I just wonder how you pronounce > wxPython. > > vi-ex python > double-you-ex python > wax-python > > or something else I'm sure you'll get five different answers. Personally, I say the 'wx' bit as 'wooks' (like 'books' i

Re: Well written open source Python apps

2005-10-13 Thread John J. Lee
"Ben" <[EMAIL PROTECTED]> writes: > Could anyone suggest an open source project that has particularly well > written Python? I am especially looking for code that people would > describe as "very Python-ic". (Not trying to start any kind of war - > just wanted some good examples of a well writte

Re: A problem while using urllib

2005-10-13 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] >File "/usr/lib/python2.4/urllib2.py", line 996, in do_open > raise URLError(err) > urllib2.URLError: > > Looking at that part of the course of urrllib2 we see: > > headers["Connection"] = "close" > try: > h.r

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread John J. Lee
Kenneth McDonald <[EMAIL PROTECTED]> writes: [...] > absolutely preventing me from making the switch. Number one is the > lack of a decent command line and command-line environment, and I'm > wondering (hoping) if perhaps someone has written a "Python shell"-- > something that will look like a

Re: UI toolkits for Python

2005-10-13 Thread John J. Lee
Kenneth McDonald <[EMAIL PROTECTED]> writes: [...] > both doing fairly well in general. I'm already aware of the licensing > issues surrounding qt (fwiw, I think their license fee for commercial > use is eminently reasonable), so aside from that, I was wondering if [...] Qt 4 is available as

Re: urllib2 problem

2005-10-28 Thread John J. Lee
"Jeremy Martin" <[EMAIL PROTECTED]> writes: [...] > website. I originally just used urllib.urlopen and everything worked > fine on my Windows PC at work. I tried the same script at home on my > Fedora COre 3 box using python 2.4, and whenever I try to connect to > the site I get the (110, Connec

Re: Scanning a file

2005-10-30 Thread John J. Lee
[EMAIL PROTECTED] (Alex Martelli) writes: [...] > If you're trying to test your code to ensure it explicitly closes all > files, you could (from within your tests) rebind built-ins 'file' and > 'open' to be a class wrapping the real thing, and adding a flag to > remember if the file is open; at __d

Re: Using Python to add thumbnails to Explorer

2005-10-30 Thread John J. Lee
"Roger Upole" <[EMAIL PROTECTED]> writes: > "c d saunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [...] > > Turns out I need to use a .dll shell extension as per > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ > > shellcc/platform/shell/programmersguide/she

Re: Scanning a file

2005-10-31 Thread John J. Lee
Paul Watson <[EMAIL PROTECTED]> writes: [...] > How "ill" will things be when large bodies of code cannot run > successfully on a future version of Python or a non-CPython > implementation which does not close files. Might as well put file > closing on exit into the specification. [...] There

Re: Python's website does a great disservice to the language

2005-11-01 Thread John J. Lee
Robert Boyd <[EMAIL PROTECTED]> writes: [...] > rounded corners. The Python site is clean and to-the-point. I guess I could > admin that the various Python logos look dated, but that's about it. Oh, and [...] I love the logos! python.org looks simple to me, not amateurish. But that just goes to

Re: urllib2 Opener and Proxy/Authentication issues

2005-11-08 Thread John J. Lee
"Ray Slakinski" <[EMAIL PROTECTED]> writes: [...] > ps: settings.GlobalProxySetting is defined as a string, for example: > > non-authenticated proxy: "http://192.168.1.1:3128"; > authenticated proxy: "http://user:[EMAIL PROTECTED]:3128" [...] IIRC urllib2 is slightly broken wrt proxy auth and the

Re: web interface

2005-11-08 Thread John J. Lee
Jorge Godoy <[EMAIL PROTECTED]> writes: > "Ajar" <[EMAIL PROTECTED]> writes: > > > I have a stand alone application which does some scientific > > computations. I want to provide a web interface for this app. The app > > is computationally intensive and may take long time for running. Can > > som

Re: Is mod_python 3.1 good for commercial blogging/CMS?

2005-11-08 Thread John J. Lee
"Ben Sizer" <[EMAIL PROTECTED]> writes: [...] > It as not easy to work with the CGI-style code in a WYSIWYG web editor > as it is to edit a template, which is probably the main reason for > their use. Also, coding everything with req.write() means that each [...] You seem to believe CGI is incompa

Re: IE Temporary Internet Files & Python

2005-11-13 Thread John J. Lee
"James Hu" <[EMAIL PROTECTED]> writes: > Maybe the reason is ..\Content.IE5\index.dat can't be deleted! [...] IIRC, it can/could be from linux (with Win NT 4 installed on a VFAT partition), so I guess it is/was a normal file to that extent. John -- http://mail.python.org/mailman/listinfo/pyt

Re: Confusion about __call__ and attribute lookup

2005-11-13 Thread John J. Lee
Kent Johnson <[EMAIL PROTECTED]> writes: > Leif K-Brooks wrote: > > New-style classes look up special methods on the class, not on the instance: > > For my future reference, is this documented somewhere in the standard docs? Maybe somewhere in here :-( http://www.python.org/doc/newstyle.html

Re: Web-based client code execution

2005-11-20 Thread John J. Lee
Paul Watson <[EMAIL PROTECTED]> writes: > What are the options? > > The user to hits a web page, downloads code (Python I hope), execute it, > and be able to return the results. It needs to be able to go through > standard HTTP so that it could be run from behind a corporate firewall > withou

Re: Ajax for the Developers

2005-11-20 Thread John J. Lee
"Sabin.A.K, Bangalore" <[EMAIL PROTECTED]> writes: [...] > 1. Changing state with links (GET requests) > 2.Asynchronously performing batch operations I don't understand those two. > 3.Breaking the back button [...] http://en.wikipedia.org/wiki/AJAX Also of interest: http://www.mozillazine.or

mmm-mode, python-mode and doctest-mode?

2005-11-30 Thread John J Lee
Is it possible to get doctest-mode to work with mmm-mode and python-mode nicely so that docstrings containing doctests are editable in doctest-mode? In my utter e-lisp ignorance, I tried this: (require 'mmm-auto) (setq mmm-global-mode 'maybe) (mmm-add-classes '( (doctest :submode doc

Re: mmm-mode, python-mode and doctest-mode?

2005-12-01 Thread John J. Lee
bruno at modulix <[EMAIL PROTECTED]> writes: > John J Lee wrote: > > Is it possible to get doctest-mode to work with mmm-mode and python-mode > > nicely so that docstrings containing doctests are editable in doctest-mode? > > I don't know. > >

Re: Eclipse best/good or bad IDE for Python?

2005-12-04 Thread John J. Lee
Aaron Bingham <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: [...ex-emacs user explains switch to Eclipse...] > The killer PyDev feature for me is pylint integration. Being informed > immediately when you mistype a variable name is a big timesaver. Also I now find it difficult to mis-t

Re: Eclipse best/good or bad IDE for Python?

2005-12-04 Thread John J. Lee
Fabio Zadrozny <[EMAIL PROTECTED]> writes: [...] > I must also warn you that I'm its current maintainer, and it is *my* > favorite IDE :-) [...] > But in the end, as I said, it is a subjective matter, so, you'll have to > decide it for yourself. Hey, Fabio, can this be true: https://bugs.eclips

Re: HTML parsing/scraping & python

2005-12-04 Thread John J. Lee
Sanjay Arora <[EMAIL PROTECTED]> writes: > We are looking to select the language & toolset more suitable for a > project that requires getting data from several web-sites in real- > timehtml parsing/scraping. It would require full emulation of the > browser, including handling cookies, automat

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread John J Lee
On Mon, 5 Dec 2005, Fabio Zadrozny wrote: [...] > Being java, does not worry me that much... there are already many vms aside > from suns (including gcj), and I think that if you do not want to program in > java, adding scripting layers for jython, jruby, etc should be fairly easy > (given that

Re: Bitching about the documentation...

2005-12-05 Thread John J. Lee
"BartlebyScrivener" <[EMAIL PROTECTED]> writes: > Thank you. I shall try that the next time I see something in the > documentation for beginners. Generally the Python docs are quite good, > in my opinion. I was merely taking issue with the poster who suggested > that Python novices and nonprogramm

Re: PyQT installation

2005-01-01 Thread John J. Lee
[EMAIL PROTECTED] (Alex Martelli) writes: [...] > Basically: if you want it on Windows for free, forget Qt Correct. > (I hear the > cygwin people are trying to make a GPL Qt available for Win+cyg+XFree, > but I suspect trolltech ain't happy about that -- anyway, I don't think > it would be "nati

Re: PyQT installation

2005-01-01 Thread John J Lee
On Sat, 1 Jan 2005, Ken Godee wrote: [...] > I believe the book "C++ GUI programming Qt3" comes > with a windows Qt gpl 3.x version. Just have to buy > the book. No PyQt version to match thou. "GPL only if you buy the book" makes no sense. Either it's GPL or it isn't. (It isn't, in fact.) [...

Re: using HTTP Digest auth with arbitrary HTTP methods?

2005-01-03 Thread John J. Lee
John Reese <[EMAIL PROTECTED]> writes: > In comp.lang.python, [I] wrote: [...] > I instead copied it (to urllib3.py) and made the following changes: > a. in AbstractDigestAuthHandler.get_authorization, call > req.get_method() instead of req.has_data() and 'POST' or 'GET' > (python has

Re: HTTP GET request with basic authorization?

2005-01-03 Thread John J. Lee
Jonas Galvez <[EMAIL PROTECTED]> writes: > Christopher J. wrote: > > I tried this, but it didn't work: > > conn.request("GET", "/somepage.html", None, > > {"AUTHORIZATION": "Basic username:password"}) [...] > import re, base64, urllib2 > > userpass = ('user', 'pass') > url = 'http://somewhere'

Re: What can I do with Python ??

2005-01-03 Thread John J. Lee
Lee Harr <[EMAIL PROTECTED]> writes: [...] > I think it looks pretty good. The only problem I see is section 5 > where it says: > > 5. Did we miss your concern? > > Please add a comment to this page. > > > but the page is immutable. Hopefully one of the site maintainers will read this and de

Re: rotor replacement

2005-01-22 Thread John J. Lee
Paul Rubin <"http://phr.cx"@NOSPAM.invalid> writes: [...] > Building larger ones seems to > have complexity exponential in the number of bits, which is not too [...] Why? > It's not even known in theory whether quantum computing is > possible on a significant scale. Discuss. (I don't mean I'm

Re: rotor replacement

2005-01-25 Thread John J. Lee
Paul Rubin <http://[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (John J. Lee) writes: > > > Building larger ones seems to > > > have complexity exponential in the number of bits, which is not too > > > > Why? > > The way I understand it, that

Re: delay and force in Python

2005-01-25 Thread John J. Lee
Nick Coghlan <[EMAIL PROTECTED]> writes: [...] > (xrange can't handle Python longs, unfortunately, so we *are* > constrained by sys.maxint. However, since my machine only has half a > gig of RAM, the above is still a damn sight quicker than the > equivalent list comprehension would be!) [...] Othe

Re: cookielib and urllib2: thread-safe?

2005-01-29 Thread John J. Lee
Alex Hunsley <[EMAIL PROTECTED]> writes: > I'm writing a test script in python for pulling web pages from a web > server using urllib2 and cookielib. Since the main thing I am testing > is what happens when concurrent requests are made to the web server, I > need to make several requests concurren

RFC 2965 cookies, cookielib, and mailman.

2005-01-30 Thread John J Lee
Just noticed your c.l.py post quoted below. Nobody but me knows or cares about this obscure stuff ;-) so I'm not surprised you got no answer... C. Titus Brown Dec 27 2004, 12:41 pm wrote: [...] > The issue turned out to be that mailman sends out RFC 2965 [1] cookies, > which are by defa

Re: string issue

2005-02-04 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] > You are modifying the list as you iterate over it. Instead, iterate > over a copy by using: > > for ip in ips[:]: >... Just to help popularise the alternative idiom, which IMO is significantly less cryptic (sane constructors of mutable objects

Re: "Collapsing" a list into a list of changes

2005-02-04 Thread John J. Lee
Steven Bethard <[EMAIL PROTECTED]> writes: > Mike C. Fletcher wrote: [...] > > >>> def changes( dataset ): > > ... last = None > > ... for value in dataset: > > ... if value != last: > > ... yield value > > ... last = value > > ...>>> print list(changes

Insane import behaviour and regrtest.py: heeelp

2005-02-05 Thread John J. Lee
I'm tearing my hair out at what seems like weird import behaviour I'm getting from Python's stdlib test script, regrtest.py (not for the first time: seem to have forgotten the resolution from last time, and the time before, and the time before that, when this damn test script of Python's had me scr

Re: How do I enter/receive webpage information?

2005-02-05 Thread John J. Lee
Jorgen Grahn <[EMAIL PROTECTED]> writes: [...] > I did it this way successfully once ... it's probably the wrong approach in > some ways, but It Works For Me. > > - used httplib.HTTPConnection for the HTTP parts, building my own requests > with headers and all, calling h.send() and h.getrespons

Re: How do I enter/receive webpage information?

2005-02-05 Thread John J. Lee
Jorgen Grahn <[EMAIL PROTECTED]> writes: [...] > - subclassed sgmllib.SGMLParser once for each kind of page I expected to > receive. This class knew how to pull the information from a HTML document, > provided it looked as I expected it to. Very tedious work. It can be easier > and safer to

Re: Pickling and inheritance are making me hurt

2005-02-05 Thread John J. Lee
Kirk Strauser <[EMAIL PROTECTED]> writes: > I have a module that defines a Search class and a SearchResult class. I use > these classes by writing other modules that subclass both of them as needed > to interface with particular search engines. > > My problem is that Search defines a method (cal

Re: Insane import behaviour and regrtest.py: heeelp

2005-02-06 Thread John J. Lee
Nick Coghlan <[EMAIL PROTECTED]> writes: > John J. Lee wrote: > > The only change I made to regrtest other than the print statements was > > to add Lib to sys.path, so I pick up modules from CVS instead of the > > installed 2.4 versions (yeah, I know I should build

Re: How do I convert arithemtic string (like "2+2") to a number?

2005-02-06 Thread John J. Lee
"Adomas" <[EMAIL PROTECTED]> writes: > Well, a bit more secure would be > > eval(expression, {'__builtins__': {}}, {}) > > or alike. Don't believe this without (or even with ;-) very careful thought, anyone. Google for rexec. John -- http://mail.python.org/mailman/listinfo/python-list

Trainee Developer / Consultant Vacancy at ReportLab, London

2005-07-08 Thread John J. Lee
Vacancy at ReportLab, London ReportLab develop enterprise reporting and document generation solutions using cutting-edge Python technology, and have a growing business with an excellent blue chip customer base. You may also know us from our open source PDF and graphics library... We have a job o

Re: Fighting Spam with Python

2005-08-26 Thread John J. Lee
David MacQuigg writes: [...] > I haven't used Spambayes, but my experience with Spamnix (an offshoot > of Spam Assassin) is that statistical filters always have a few false > rejects. In my case, that's about two per week. [...] That is precisely the problem that Bayesian filtering was designed

Re: Insane import behaviour and regrtest.py: heeelp

2005-02-06 Thread John J. Lee
Tim Peters <[EMAIL PROTECTED]> writes: > [John J. Lee] > > ... > > I tried it, and I get the same results as before (the test modules from my > > installed copy of Python are picked up instead of the local copies in > > my CVS checkout's Lib/test, ap

Re: newbie wants to compile python list of filenames in selected directories

2005-02-06 Thread John J. Lee
Greg Krohn <[EMAIL PROTECTED]> writes: > anthonyberet wrote: [...] > > I want to write a script to compare filenames in chosen directories, > > on windows machines. Ideally it would compose a list of strings of > > all the filenames in the directories, and those directories would be > > chosable by

Re: Insane import behaviour and regrtest.py: heeelp

2005-02-06 Thread John J. Lee
Tim Peters <[EMAIL PROTECTED]> writes: > [John J. Lee] > > I'm still puzzled, though. Reading the -vv output, I see that when [...] > > Lib[0]$ pwd > > /hda/usr/local/buf/python/python/dist/src/Lib > > That doesn't look to be the same thing as the >

Re: lambda and for that matter goto not forgetting sugar

2005-02-10 Thread John J. Lee
from goto.py ( http://entrian.com/goto/ ): .# Label: "label .x" XXX Computed labels. :-) John -- http://mail.python.org/mailman/listinfo/python-list

Re: Commerical graphing packages?

2005-02-12 Thread John J. Lee
[EMAIL PROTECTED] writes: > Check out GRACE. It's not specifically designed for Python, but I've > been using with Python for a couple of years or more. I'm very happy > with it, and it's free. It works both interactively and in batch mode. > Do a google on GRACE. If you're generating lots of gra

Re: Testing web applications

2005-02-12 Thread John J. Lee
Josef Meile <[EMAIL PROTECTED]> writes: > > I'm looking for frameworks to make testing web applications - > > i.e. parsing and filling out forms - easier. I found Puffin, which > > looks good but not very usable in the current state. I know that I > > once read about other nice frameworks, but coul

Re: Commerical graphing packages?

2005-02-13 Thread John J. Lee
[EMAIL PROTECTED] writes: > >If you're generating lots of graphs programatically, eg. on a web > >server, grace is not what you want. Yes, it has a command language, > >but IIRC it depends on X11, and windows even pop up as it runs in > >batch mode. Bleh. > > I don't understand what you're talk

Re: recommended way of generating HTML from Python

2005-02-21 Thread John J. Lee
Matt Goodall <[EMAIL PROTECTED]> writes: [...] > Agreed. Although I would go further and say that it's important to > choose a templating system that allows the Python developer to annotate > XHTML templates using **valid XML**, i.e. no "for x in y" loops, no "if > foo" conditionals, no "i = 0" var

Re: creating .NET clients with python

2005-03-04 Thread John J. Lee
Guy Robinson <[EMAIL PROTECTED]> writes: > Can anyone confirm if there is a python library that can allow me to > create .NET clients in python. > > My understanding is both IronPython and python for .NET can't create > python .net clients? IIUC, IronPython can, but it's not ready for production

Re: Ruby on Rails or Perl's Maypole..is there a Python equivalent

2005-03-04 Thread John J. Lee
Gary Nutbeam <[EMAIL PROTECTED]> writes: > D H wrote: [...] > > Check out Castle on Rails for .NET/Mono. It is still in early > > development, but you can use it with C#, VB, or boo, and I'm sure > > eventually with IronPython as well. > > Thanks for the feedback. I should have been more specific

Re: urllib2 meta-refresh

2005-03-04 Thread John J. Lee
JanC <[EMAIL PROTECTED]> writes: > Artificial Life schreef: > > > urllib2 does not seem to be able to handle META-REFRESH in an html > > document. I just get back the html to the page that is supposed to > > forward me to the intended page. Any way around this? > > Have a look at the HTTPRefres

Re: Python 2.4 removes None data type?

2005-03-05 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > Warren Postma wrote: [...] > > gloat. Are there any really evil glitches LEFT in Python? Now go > > look at Perl and come back and say > > "Thank-deity-of-my-choice-I'm-using-Python". > > > Remaining warts that won't disappear: > > print >> file, stuff

Re: yum install python2.4

2005-03-06 Thread John J. Lee
[EMAIL PROTECTED] writes: > My goal is to install python2.4 using yum (wouldn't you know it, it's a > dependency for something else). [...] You're probably better off asking on a yum or Fedora list or newsgroup. John -- http://mail.python.org/mailman/listinfo/python-list

Re: Modifying Call Tips and Intellisense Behavior

2005-03-06 Thread John J. Lee
[EMAIL PROTECTED] writes: > I like the way call tips displays argument variables for functions when > you type the "(" after the function name. However, if one of the > arguments to the function is something like "SomeMod.attribute", the > intellisense will display all the exposed methods and att

Re: a program to delete duplicate files

2005-03-14 Thread John J. Lee
Patrick Useldinger <[EMAIL PROTECTED]> writes: > David Eppstein wrote: > > > The hard part is verifying that the files that look like duplicates > > really are duplicates. To do so, for a group of m files that appear > > to be the same, requires 2(m-1) reads through the whole files if you > > us

Re: wxPython vs. pyQt

2005-03-20 Thread John J. Lee
Andrew E <[EMAIL PROTECTED]> writes: > Hans-Peter Jansen wrote: > > .. > > While in PyQt world, I found these advantages: > > + conceptually vastly superior > > + powerful api/widgets/features > > + fast as hell due to the efficient binding of a quite efficient lib > > + cool tools, that are u

Re: beeping portably

2005-03-20 Thread John J. Lee
"Jim" <[EMAIL PROTECTED]> writes: > I'd like to emit beeps. The twists are that (1) I hope to have control > over the frequency of the beeps and their duration and (2) I'd like the > solution to be portable across Linux, Windows, and OS X. [...] PyGame? If it's too big for you, you could always

Re: AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-04-01 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > Peter Otten wrote: > > adrian wrote: > > > >>urllib.socket.setdefaulttimeout(self.timeout) > >>AttributeError: 'module' object has no attribute 'setdefaulttimeout' > > socket.setdefaulttimeout() was added in Python 2.3. You need to > > upgrade. > > Peter

Re: Little Q: how to print a variable's name, not its value?

2005-04-01 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: [...] > Restating: I'm doing some debugging of some code. I want to print out > the value of two variables whose names are known. Let's call them > myTime and myPlace. [...] Why not simply get your editor to insert the variable name twice? I have

Re: string goes away

2005-04-03 Thread John J. Lee
Duncan Booth <[EMAIL PROTECTED]> writes: [...] >str.join(sep, list_of_str) [...] Doesn't work with unicode, IIRC. John -- http://mail.python.org/mailman/listinfo/python-list

Re: string goes away

2005-04-04 Thread John J. Lee
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: [...] > Of course that statement is also false. Performance prediction is very > difficult, and you cannot imply much from this benchmark. In other [...] s/imply/infer/ John -- http://mail.python.org/mailman/listinfo/python-list

Re: A ClientForm Question

2005-04-04 Thread John J. Lee
Francesco <[EMAIL PROTECTED]> writes: > Il Fri, 01 Apr 2005 02:36:24 -0800, narke ha scritto: > > > Does anyone here use ClientForm to handle a HTML form on client side? Yes. :-) [...] > > forms = ParseResponse(urlopen(url)) > > > > form = forms[0] > > urlopen(form.click("ZoomContr

Re: unittest vs py.test?

2005-04-04 Thread John J. Lee
"Raymond Hettinger" <[EMAIL PROTECTED]> writes: > [Peter Hansen] > > (I'm not dissing py.test, and intend to check it > > out. > > Not to be disrepectful, but objections raised by someone > who hasn't worked with both tools equate to hot air. [...] Why? Peter had a reasonable question which, AF

Re: A ClientForm Question

2005-04-06 Thread John J. Lee
"narke" <[EMAIL PROTECTED]> writes: > John J. Lee wrote, > > > See second bullet point under "Why does .click()ing on a button not > work for me?". > > Thanks for you advice. However, after read through the FAQs, I have not > managed to find

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread John J. Lee
Simon Brunning <[EMAIL PROTECTED]> writes: > On Apr 6, 2005 4:42 PM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > > I've always wondered about this turn of phrase. I seldom > > eat a cake at one sitting. > > Clearly you're just not trying. ;-) :-))) John -- http://mail.python.org/mailma

Re: Best editor?

2005-04-06 Thread John J. Lee
François Pinard <[EMAIL PROTECTED]> writes: [...] > Overall, Vim is also cleaner than Emacs, and this pleases me. [...] Is this still true when comparing XEmacs vs. vim? (rather than GNU Emacs vs. vim) I've always used GNU Emacs, but I have got the impression that XEmacs is (was?) cleaner in some

Re: Best editor?

2005-04-06 Thread John J. Lee
"ChinStrap" <[EMAIL PROTECTED]> writes: > When not using the interactive prompt, what are you using? I keep > hearing everyone say Emacs, but I can't understand it at all. I keep > trying to learn and understand why so many seem to like it because I > can't understand customization even without go

Re: Best editor?

2005-04-06 Thread John J. Lee
Ville Vainio <[EMAIL PROTECTED]> writes: > > "Miki" == Miki Tebeka <[EMAIL PROTECTED]> writes: > > Miki> Emacs (or VIm in my case) takes time to learn. However when > Miki> you start to understand it and know you way around it'll do > Miki> things no other editor will do for you.

Re: gui developing

2005-04-24 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: > Shane Hathaway <[EMAIL PROTECTED]> writes: [...] > > However, I haven't heard whether PyQt for Qt 4 will also be available > > under the GPL. > > Yes, PyQt will be available under the same license as Qt. Oops, s/l

Re: Python licence again

2005-04-24 Thread John J. Lee
Will McGugan <[EMAIL PROTECTED]> writes: > Peter Hansen wrote: > > John J. Lee wrote: > > > >> I will never pronounce thorough 'thurrow', though. One must draw a > >> line. > > How *do* you pronounce it? "Thurrow" seems to match &

Re: figuring out # of bytes

2005-04-24 Thread John J. Lee
Jaime Wyant <[EMAIL PROTECTED]> writes: > On 22 Apr 2005 13:28:57 -0700, codecraig <[EMAIL PROTECTED]> wrote: > > i want to the number of bytes in a string... > > > > is, len(x) accurate? > > > > so, x = "hi" > > len(x) == 2 so that means two bytes? > > > > thanks > > No, that means that t

Re: Data smoothing algorithms?

2005-04-29 Thread John J. Lee
"Anthra Norell" <[EMAIL PROTECTED]> writes: > Hi, > > The following are differences of solar declinations from one day to > the next, (never mind the unit). Considering the inertia of a > planet, any progress of (apparent) celestial motion over regular > time intervals has to be highly regular to

Re: Which IDE is recommended?

2005-04-29 Thread John J. Lee
Dave Cook <[EMAIL PROTECTED]> writes: > On 2005-04-27, monkey <[EMAIL PROTECTED]> wrote: [...] > Pydev has some compelling features, but I wish I didn't have to run eclipse [...] What are those compelling features of Pydev, for an emacs user? John -- http://mail.python.org/mailman/listinfo/py

Re: Can .py be complied?

2005-04-29 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] > There's nothing wrong with open source projects catering to a market, > and there's nothing wrong with running open source software on a > proprietary operating system. To behave otherwise might reduce the > growth opportunities for Python and its co

  1   2   3   4   5   >