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 si

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

ANN : dxPython 0.3.0

2005-08-05 Thread Gang Seong Lee
Just opened simple webpage. dxPython ~~ dxPython is a set of interface modules to use DirectX C++ libraries from standard Python programming language. http://dxpython.pythonworld.net/ Comments, suggestions are welcome. Gang Seong LEE [EMAIL PROTECTED

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

Re: Can .py be complied?

2005-04-29 Thread John J. Lee
jfj <[EMAIL PROTECTED]> writes: [...] > /* small program in C in self extracting archive > */ > if (have_application ("Python")) { >have_python: >system ("python.exe my_application.py") > } else { >printf ("This software requires python. Wait until all the > necessary components are b

Re: how to get the list form dictionary's values

2016-02-21 Thread Ho Yeung Lee
can not combine to run task 1 , which is the correct way to combine to run task 1? or is this graph situation an example impossible to do in computer science? Regards, Martin Lee Chris Angelico於 2016年2月21日星期日 UTC+8下午10時04分22秒寫道: > On Mon, Feb 22, 2016 at 12:34 AM, wrote: > > F

Re: how to get the list form dictionary's values

2016-02-21 Thread Ho Yeung Lee
key002 = {'003': f003 } > functionkey002 = {'004': f004 } > > > for functionlistelement in functionlist0 > > To answer what seems to be your actual question: a colon is missing at the > end of this line. hi Peter, i am running this task flow in th

how to notify among the def and can network communication such as zeromq for python do this?

2016-02-23 Thread Ho Yeung Lee
in the following code, node 3 and node 4 running parallel if there are 100 nodes running parallel, how can they notify each other i find this post stackoverflow, http://stackoverflow.com/questions/29324346/how-do-i-connect-asyncio-coroutines-that-continually-produce-and-consume-data if zeromq

Re: How does Scons compare to distutils?

2005-12-12 Thread John J. Lee
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > How does Scons compare to distutils? Should I ignore > it or move to it? [...] Yes. Seriously, what are you doing? distutils seems pretty ubiquitous when building Python extensions, since it has special knowledge of the Python with which it is

Re: Another newbie question

2005-12-12 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] > The "Law" of Demeter isn't about *how* you access objects, it's about > what interfaces to objects you can "legally" manipulate without undue > instability across refactoring. In other words, it's about semantics, > not syntax. And it's led a lot

Merging Subway and TurboGears (was: Re: Which Python web framework is most ...)

2005-12-18 Thread John J. Lee
[EMAIL PROTECTED] writes: > I'm the founder and lead developer of Subway. > > I am all for it. TG would have to change a couple of things IMHO, but I > think it would be a great idea. +100 > If we were to merge projects, we would have to get a serious > TurbowaySubgears blogging hype train goi

Re: Faster copying of composite new-class objects

2005-12-22 Thread John J. Lee
"Alex" <[EMAIL PROTECTED]> writes: > My program requires copying thousands of composite new-class objects. I > found that the following: objCopy=cPickle.loads(cPickle.dumps(obj, > protocol=2)) works about 4 times faster than > copyObj=copy.deepcopy(obj). Is there any way to do it even faster? > >

Re: Socket programming design problem

2005-12-22 Thread John J. Lee
David <[EMAIL PROTECTED]> writes: [...] > a) Big problem, I can't see how to receive from more than one socket at > once. I need to do this so that data from the TCP connection can be sent > out on the UDP one and vice versa. Do I need a thread for each, or is > there some other way I can listen

Re: PyHtmlGUI Project is looking for developers

2005-12-28 Thread John J. Lee
[EMAIL PROTECTED] writes: > the PyHtmlGUI Project (http://www.sourceforge.net/projects/pyhtmlgui) > is looking for developers that want to join. > > The aim of the project is to create a web application framework. The > API of PyHtmlGUI wants to be close to Trolltechs famous Qt API but > incooper

Re: Beautiful Python

2005-12-28 Thread John J. Lee
[EMAIL PROTECTED] writes: [...] > > Sometimes putting import statements at the beginning is not feasible > > (i.e. only when some condition has been met), as importing has some > > impact on program execution (importing executes code in imported > > module). This does not resemble Java imports (I d

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread John J. Lee
"Harald Armin Massa" <[EMAIL PROTECTED]> writes: [...] > Allow me to quote Greg Stein: > "Ha! Guido would quit in a heartbeat if you tried to make him manage > people. That just isn't where he's at. He's absolutely brilliant and > loves to write excellent code. Great. We're gonna let him do just t

Re: any Adobe Reader like apps written in python, for examination?

2005-12-28 Thread John J. Lee
Alex Gittens <[EMAIL PROTECTED]> writes: > Yeah, pygame is not what I'm looking for. I'm looking for a good > example of cross platform non-trivial page-layout and font handling. > The project I'm working on-- a typographically correct interface to a > CAS-- requires pixel-perfect font handling. >

Re: getting the status codes from the ftplib module

2005-12-29 Thread John J. Lee
"Alvin A. Delagon" <[EMAIL PROTECTED]> writes: > I'm writing a simple python code that will upload files onto a ftp > server. Everything's fine and working great except that the script I > wrote don't know is an upload is successful or not. Is there a way to > obtain the ftp status codes with t

Re: Guido at Google

2005-12-30 Thread John J. Lee
Robert Kern <[EMAIL PROTECTED]> writes: [...] > No, it's not a silly idea. Dean Baker, the Co-Director the Center for Economic > and Policy Research, has proposed for the U.S. government to establish a > Software Developer's Corps. For $2 billion per year, it could fund about > 20,000 > developers

Re: PyHtmlGUI Project is looking for developers

2006-01-02 Thread John J. Lee
Sybren Stuvel <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] enlightened us with: > > At the moment we don't work with javascript. But it should not be to > > hard to create a JavaScript Renderer similar to the css one we already > > have. > > Isn't CSS for rendering, and JavaScript for client-s

Re: use browser setting for internet

2006-01-08 Thread John J. Lee
"Wish" <[EMAIL PROTECTED]> writes: > Hi > I have a problem with my script in python which uses xmlrpc. The script > loses internet connection when it is used behind a firewall. I realize > that the firewall is specified by using the http_proxy environment > variable. However, the proxy server is a

Re: PyHtmlGUI Project is looking for developers

2006-01-08 Thread John J. Lee
"Paul Boddie" <[EMAIL PROTECTED]> writes: [...] > many would advocate using "AJAX" techniques and dropping support for > conventional Web interactions, but I think that such advocacy and the > resulting applications threaten the usability of the Web for fairly > large groups of people. That may we

<    9   10   11   12   13   14   15   16   17   18   >