Re: Tkinter.Button(... command) lambda and argument problem

2006-09-16 Thread Paul Rubin
James Stroud <[EMAIL PROTECTED]> writes: > Actually, lambda is not necessary for event binding, but a closure (if > I have the vocab correct), is: ... > > def make_it(x): >def highliter(x=x): > print "highlight", x >return highliter For that version you shouldn't need the x=x: def

Re: Finding dynamic libraries

2006-09-16 Thread Robert Kern
MonkeeSage wrote: > Bill Spotz wrote: >> Is there a way to tell an executing python script where to look for >> dynamically-loaded libraries? > > If I understand, you want to tell an already running python process to > import some extensions from arbitrary locations? No, his extensions link again

Re: latex openoffice converter

2006-09-16 Thread Fabian Braennstroem
Hi to both, thanks! I'll try them ... * Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to use python to convert 'simple' latex > documents into openoffice format. Maybe, anybody has done > something similar before and can give me a starting point!? > Would be nice to hear s

Re: REQ: Java/J2EE Developer 10 Months

2006-09-16 Thread Hendrik van Rooyen
"Tim Chase" <[EMAIL PROTECTED]> wrote: 8< > Or, perhaps they just have their terminology off. "Corba" is a > lot like "cobra" which is also a snake, like a Python. ("We've > got Corba, right here in River City. That starts with 'C' and > that rhymes wi

Re: Looking for a python IDE

2006-09-16 Thread Andrei
> I am looking for a good IDE for Python. Commercial or Open Software. > If possible with visual GUI designer. > For the moment I am considering Komodo. There is no Python IDE that has a fully-integraded approach like Delphi or VS with all bells and whistles. Tools tend to be somewhat separate

Re: Looking for a python IDE

2006-09-16 Thread Lawrence Oluyede
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Any suggestions? Maybe BlackAdder http://www.thekompany.com/products/blackadder/ -- Lawrence - http://www.oluyede.org/blog "Nothing is more dangerous than an idea if it's the only one you have" - E. A. Chartier -- http://mail.python.org/mailman/lis

Re: Looking for a python IDE

2006-09-16 Thread Paddy
[EMAIL PROTECTED] wrote: > Hello > > I am looking for a good IDE for Python. Commercial or Open Software. > > If possible with visual GUI designer. > > For the moment I am considering Komodo. > > Any suggestions? > > Thanks in advance Hi, you have asked a very common question. Please search out pr

Re: xmlrpc, extract data from http headers

2006-09-16 Thread Milos Prudek
> Overload the _parse_response method of Transport in your > BasicAuthTransport and extract headers from raw response. See the > source of xmlrpclib.py in the standard library for details. Thank you. I am a bit of a false beginner in Python. I have written only short scripts. I want to read "D

Re: xmlrpc with Basic Auth

2006-09-16 Thread Milos Prudek
> i'm currently using xmlrpclib with basic auth and i use it like this: > from xmlrpclib import Server > s=Server("http://user:[EMAIL PROTECTED]/rpc.php") Perfect! Thank you. -- Milos Prudek -- http://mail.python.org/mailman/listinfo/python-list

Re: something for itertools

2006-09-16 Thread Daniel Nogradi
> > In a recent thread, > > http://mail.python.org/pipermail/python-list/2006-September/361512.html, > > a couple of very useful and enlightening itertools examples were given > > and was wondering if my problem also can be solved in an elegant way > > by itertools. > > > > I have a bunch of tuples

strange result with json-server & zope

2006-09-16 Thread astarocean
i'm using maildrophost to sendmail and wrote a script for it when the script is called directly from web request , a letter geneated with right things but when the script is called from json-rpc, the letter generated include a mess. see the file with this letter [the script] body_html = containe

Re: UDP packets to PC behind NAT

2006-09-16 Thread Janto Dreijer
Steve Holden wrote: > Note that TCP and UDP port spaces are disjoint, so there's no way for > TCP and UDP to use "the same port" - they can, however, use the same > port number. Basically the TCP and UDP spaces have nothing to do with > each other. > > Most dynamic NAT gateways will respond to an o

Re: strange result with json-server & zope

2006-09-16 Thread Gabriel Genellina
At Saturday 16/9/2006 07:28, astarocean wrote: [the script] body_html = container.mime_mail(body_html=body_html) container.MailHost.send(messageText=body_html, mto=to_email, mfrom=from_email, subject=subject, encode=None) [mime_mail is a dtml-method] "utf8" is not the right spelling, shoul

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-16 Thread Jim
Frank Millman wrote: > I therefore use the following - > cur.execute("select currval('%s_%s_Seq')" % (tableid, columnid) I use this also (although isn't it right that sometimes the name of the sequence is not so straightforward? for instance, isn't there a limit on the number of chars?). Can a

Re: strange result with json-server & zop

2006-09-16 Thread Gabriel Genellina
At Saturday 16/9/2006 08:40, asterocean wrote: But this is not UTF-8; looks like UTF-16 with 0x00 converted to 0x20 (space). I'd look at where the body comes from, or ask on the Zope list for the right way to use dtml-mime. i've try with UTF-8 , error remains . when the script is called direct

Re: xmlrpc, extract data from http headers

2006-09-16 Thread Filip Wasilewski
Milos Prudek wrote: > > Overload the _parse_response method of Transport in your > > BasicAuthTransport and extract headers from raw response. See the > > source of xmlrpclib.py in the standard library for details. > > Thank you. > > I am a bit of a false beginner in Python. I have written only sho

Catching toplevel move and resize

2006-09-16 Thread Tuomas
From a PyGTK component I would like to react moving and resizing the toplevel window. I try to connect the toplevel 'frame-event' to my callback, but the toplevel do not fire on moving or resizing. Any suggestions? Tuomas (Linux, Python 2.3, GTK 2.6.7) -- http://mail.python.org/mailman/listin

Re: Tkinter.Button(... command) lambda and argument problem

2006-09-16 Thread Dustan
James Stroud wrote: > Dustan wrote: > > Jay wrote: > > > >>Thanks for the tip, but that breaks things later for what I'm doing. > >> > >>[EMAIL PROTECTED] wrote: > >> > >>>In that case you don't need a lambda: > >>> > >>>import Tkinter as tk > >>> > >>>class Test: > >>>def __init__(self, paren

Re: UDP packets to PC behind NAT

2006-09-16 Thread Grant Edwards
On 2006-09-16, Janto Dreijer <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: >> Note that TCP and UDP port spaces are disjoint, so there's no way for >> TCP and UDP to use "the same port" - they can, however, use the same >> port number. Basically the TCP and UDP spaces have nothing to do with >>

ANN: pyfuzzylib 0.1.3 Released

2006-09-16 Thread nelson -
PyFuzzyLib is a library for fuzzy inference engine building. Using pyfuzzylib you can add fuzzy logic to your programs. The program is in it early stage of development, but it is still usable. Every sort of feedback is appreciated! the project homepage is http://sourceforge.net/projects/pyfuzzyli

RegexBuddy (anyone use this?)

2006-09-16 Thread [EMAIL PROTECTED]
Has anyone tried this thing.. http://www.regular-expressions.info/regexbuddy.html If I had $30 would this be worth getting or should I just try to learn the manual. (I was hopeing the essential refrence would clear things up but I am downloading a gilgillion pages on the re module to try to learn

Re: Catching toplevel move and resize

2006-09-16 Thread Pontus Ekberg
Tuomas wrote: > From a PyGTK component I would like to react moving and resizing the > toplevel window. I try to connect the toplevel 'frame-event' to my > callback, but the toplevel do not fire on moving or resizing. Any > suggestions? > > Tuomas > (Linux, Python 2.3, GTK 2.6.7) You are pro

Re: Catching toplevel move and resize

2006-09-16 Thread Tuomas
Pontus Ekberg wrote: > You are probably looking for "configure_event". That's it! Works fine, thanks. Tuomas -- http://mail.python.org/mailman/listinfo/python-list

How to draw a rectangle with gradient?

2006-09-16 Thread Daniel Mark
Hello all: I am using PIL to draw a rectangle filled with color blue. Is there anyway I could set the fill pattern so that the drawn rectangle could be filled with gradient blue? Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding Nested Loops

2006-09-16 Thread Rich Shepard
On Sat, 16 Sep 2006, Peter Otten wrote: > As George hinted, I went a bit over the top with my itertools example. > Here is a translation into static lists (mostly): Peter, Thank you. This is clearer to me. While your original code certainly works it reminded me of The C Users Journal's annual

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread Thorsten Kampe
* [EMAIL PROTECTED] (2006-09-16 15:27 +0100) > Has anyone tried this thing.. > http://www.regular-expressions.info/regexbuddy.html > > If I had $30 would this be worth getting or should I just try to learn > the manual. Well, actually both is worth trying. > (I was hopeing the essential refrence

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > Has anyone tried this thing.. > http://www.regular-expressions.info/regexbuddy.html > > If I had $30 would this be worth getting or should I just try to learn > the manual. (I was hopeing the essential refrence would clear things > up but I am downloading a gilgillion p

Re: Looking for a python IDE

2006-09-16 Thread Rich Shepard
On Fri, 15 Sep 2006, [EMAIL PROTECTED] wrote: > I am looking for a good IDE for Python. Commercial or Open Software. > If possible with visual GUI designer. You can also evaluate boa constructor. I tried that for a week or so but went back to emacs with the python language bindings. There

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread Rich Shepard
On Sat, 16 Sep 2006, Thorsten Kampe wrote: > PS Actually the author wrote the finest and best Windows Editor and I also > use EditPad Pro under Linux (together with Wine) because of the lack of > usables editors under Linux. Wow! That's really opned you up for flaming! Most of us choose emacs

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread vbgunz
> > Has anyone tried this thing.. > > http://www.regular-expressions.info/regexbuddy.html I use kodos http://kodos.sourceforge.net/. I firmly agree using a tool like this to learn regular expressions will not only save you a ridiculous amount of time spent on trial and error *but* it's really easy

Re: XPN 0.6.5 released

2006-09-16 Thread Franz Steinh�usler
On 15 Sep 2006 06:11:12 -0700, "Nemesis" <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: >> A few other notes (or should I post into the feature requests on >> sourceforge?) > >To be honest I do not check sourceforge forums very often. If you want >you can also send me an email (the email i

Re: Coding Nested Loops

2006-09-16 Thread Dan Sommers
On Sat, 16 Sep 2006 08:29:26 -0700 (PDT), Rich Shepard <[EMAIL PROTECTED]> wrote: > Two questions germane to random: 1) Why wasn't choice available when > I used 'import random,' ... When you import random, all you're doing is importing the module; you have to specify any given attribute thereo

Re: Looking for a python IDE

2006-09-16 Thread Fabio Zadrozny
On 15 Sep 2006 23:31:27 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: HelloI am looking for a good IDE for Python. Commercial or Open Software.   Check http://wiki.python.org/moin/IntegratedDevelopmentEnvironmentsI reccomend Pydev (open source) + Pydev extensions (commercial). Cheers,Fabio --

Re: XPN 0.6.5 released

2006-09-16 Thread Franz Steinh�usler
On Sat, 16 Sep 2006 18:16:13 +0200, Franz Steinhäusler <[EMAIL PROTECTED]> wrote: Sat Sep 16 18:23:04 2006 For the find, I personally would prefer to jump default to "body", but this is of course a matter of taste. Could that be an option. I dos prompt, all the time the prompt doesn'

Re: high level, fast XML package for Python?

2006-09-16 Thread Stefan Behnel
Tim N. van der Leeuw wrote: > Another option is Amara; also quite high-level and also allows for > incremental parsing. I would say Amara is somewhat higher level than > ElementTree since it allows you to access your XML nodes as Python > objects (with some extra attributes and some minor warts), a

911 FORGERY bigger than the Protocols of the Learned Elders of Zion

2006-09-16 Thread pope_ratzinger_benedict
Do not bury your head in the sand ... Do not practice denial ... It will only bring you to terrible shame and grief ... Do not be afraid of saying the truth ... Do not be afraid of death ... God will take care of you and your kins as he took care of the flock of Abraham, Moses and Jesus. Here you

Re: Coding Nested Loops

2006-09-16 Thread Rich Shepard
On Sat, 16 Sep 2006, Dan Sommers wrote: > When you import random, all you're doing is importing the module; you have > to specify any given attribute thereof: Dan, I thought that was implied. For example, I use 'import wx' and can then instantiate wx.frame, wx.dialogbox, etc. without explicit

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread [EMAIL PROTECTED]
vbgunz wrote: > > > Has anyone tried this thing.. > > > http://www.regular-expressions.info/regexbuddy.html > > I use kodos http://kodos.sourceforge.net/. I firmly agree using a tool > like this to learn regular expressions will not only save you a > ridiculous amount of time spent on trial and er

Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread nicolasfr
Hi, I am a bit disapointed with the current Python online documentation. I have read many messages of people complaining about the documentation, it's lack of examples and the use of complicated sentences that you need to read 10 times before understanding what it means. That's why I have started

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > I have read many messages of people complaining about the documentation, > it's lack of examples and the use of complicated sentences that you > need to read 10 times before understanding what it means. > Where have you read that? wildemar -- http://mail.python.org/mai

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi, > > I am a bit disapointed with the current Python online documentation. I > have read many messages of people complaining about the documentation, > it's lack of examples and the use of complicated sentences that you > need to read 10 times before understanding what

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread nicolasfr
Wildemar Wildenburger wrote: > [EMAIL PROTECTED] wrote: > > I have read many messages of people complaining about the documentation, > > it's lack of examples and the use of complicated sentences that you > > need to read 10 times before understanding what it means. > > > Where have you read that

Re: XPN 0.6.5 released

2006-09-16 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Franz Steinhäusler" scriveva: > Ah, great. I changed, this was not working immediatly. > So I remembered, most often you have to restart the App, and so its is > working. Here is working fine. > Small Notice: There was the warning then: Another Instance

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Christoph Haas
On Saturday 16 September 2006 19:16, [EMAIL PROTECTED] wrote: > I am a bit disapointed with the current Python online documentation. I > have read many messages of people complaining about the documentation, > it's lack of examples and the use of complicated sentences that you > need to read 10 tim

Re: Coding Nested Loops

2006-09-16 Thread Dan Sommers
On Sat, 16 Sep 2006 10:06:25 -0700 (PDT), Rich Shepard <[EMAIL PROTECTED]> wrote: > On Sat, 16 Sep 2006, Dan Sommers wrote: >> When you import random, all you're doing is importing the module; you >> have to specify any given attribute thereof: > I thought that was implied. For example, I use

Re: XPN 0.6.5 released

2006-09-16 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Franz Steinhäusler" scriveva: > For the find, I personally would prefer to jump default to "body", > but this is of course a matter of taste. Do you mean you would like the focus to be set on the "body" search field? > I dos prompt, all the time the pro

Re: Coding Nested Loops

2006-09-16 Thread Rich Shepard
On Sat, 16 Sep 2006, Dan Sommers wrote: > No, they all work the same way (thank goodness!). The "." between "wx" > and "frame" is the same dot as is between "random" and "choice" (i.e., > random.choice is the same construct as wx.frame). Ah, yes. I totally forgot this. Thanks for the reminde

Re: 911 FORGERY bigger than the Protocols of the Learned Elders of Zion

2006-09-16 Thread SteveF
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do not bury your head in the sand ... Do not practice denial ... It > will only bring you to terrible shame and grief ... Do not be afraid of > saying the truth ... Do not be afraid of death ... God will take care > of you and your kin

Re: Unicode / cx_Oracle problem

2006-09-16 Thread Richard Schulman
On 10 Sep 2006 15:27:17 -0700, "John Machin" <[EMAIL PROTECTED]> wrote: >... >Encode each Unicode text field in UTF-8. Write the file as a CSV file >using Python's csv module. Read the CSV file using the same module. >Decode the text fields from UTF-8. > >You need to parse the incoming line into c

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-16 Thread [EMAIL PROTECTED]
Frank Millman wrote: > Dale Strickland-Clark wrote: > > Now that OIDs have been deprecated in PostgreSQL, how do you find the key of > > a newly inserted record? > > > > I used to use 'select lastval()', but I hit a problem. If I insert a > row into table A, I want the id of the row inserted. If i

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread gene tani
[EMAIL PROTECTED] wrote: > vbgunz wrote: > > > > Has anyone tried this thing.. > > > > http://www.regular-expressions.info/regexbuddy.html > > > > I use kodos http://kodos.sourceforge.net/. I firmly agree using a tool > > like this to learn regular expressions will not only save you a > > ridiculo

Re: XPN 0.6.5 released

2006-09-16 Thread Franz Steinh�usler
On Sat, 16 Sep 2006 17:54:27 GMT, Nemesis <[EMAIL PROTECTED]> wrote: >Mentre io pensavo ad una intro simpatica "Franz Steinhäusler" scriveva: > > >> For the find, I personally would prefer to jump default to "body", >> but this is of course a matter of taste. > >Do you mean you would like the foc

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-16 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Frank Millman wrote: > >>Dale Strickland-Clark wrote: >> >>>Now that OIDs have been deprecated in PostgreSQL, how do you find the key of >>>a newly inserted record? >>> > > >>I used to use 'select lastval()', but I hit a problem. If I insert a >>row into table A, I wan

Re: XPN 0.6.5 released

2006-09-16 Thread Franz Steinh�usler
On Sat, 16 Sep 2006 17:43:28 GMT, Nemesis <[EMAIL PROTECTED]> wrote: >Mentre io pensavo ad una intro simpatica "Franz Steinhäusler" scriveva: > >> Ah, great. I changed, this was not working immediatly. >> So I remembered, most often you have to restart the App, and so its is >> working. > >Here i

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread vbgunz
> kodos does look good but I do not have the pyqt (maybe I am slightly > off) interface to use it on my system.. with another graphic interface > it would be a must try software. on Ubuntu 6.06, the repos have this 'gtk2-engines-gtk-qt' and it makes QT apps look really awesome on Gnome. Not sure

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Robert Hicks
[EMAIL PROTECTED] wrote: > Wildemar Wildenburger wrote: > > [EMAIL PROTECTED] wrote: > > > I have read many messages of people complaining about the documentation, > > > it's lack of examples and the use of complicated sentences that you > > > need to read 10 times before understanding what it mea

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Rakotomandimby (R12y)
On Sat, 16 Sep 2006 10:40:43 -0700, nicolasfr wrote: >>> I have read many messages of people complaining about the documentation, >>> it's lack of examples and the use of complicated sentences that you >>> need to read 10 times before understanding what it means. >> Where have you read that? > http

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Robert Hicks
Christoph Haas wrote: > On Saturday 16 September 2006 19:16, [EMAIL PROTECTED] wrote: > > I second that the Python documentation is lacking. There is no software > that is adequately documented anyway. Show me a man page of a Perl module > and it takes me minutes to use it. I would say that Perl

Re: urllib en https

2006-09-16 Thread John J. Lee
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On Wed, 13 Sep 2006 23:03:08 +0200, Cecil Westerhof <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > I found the problem. The first Python was compiled with ssl support enabled > > and the second without ssl support enab

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: > I am a bit disapointed with the current Python online documentation. I > have read many messages of people complaining about the documentation, > it's lack of examples and the use of complicated sentences that you > need to read 10 times before understanding what it means

Re: 911 FORGERY bigger than the Protocols of the Learned Elders of Zion

2006-09-16 Thread malibu
SteveF wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Do not bury your head in the sand ... Do not practice denial ... It > > will only bring you to terrible shame and grief ... Do not be afraid of > > saying the truth ... Do not be afraid of death ... God will take car

Re: wxTimer problem

2006-09-16 Thread Morpheus
On Fri, 15 Sep 2006 12:47:30 -0700, abcd wrote: > I have a python script which creates a wx.App, which creates a wx.Frame > (which has a wx.Timer). > > looks sorta like this: > > class MyProgram: > def __init__(self): > self.app = MyApp(0) > self.app.MainLoop() > > class MyA

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread nicolasfr
Rakotomandimby (R12y) wrote: > What you should have done first is to suggest to contribute to the > official Python doc. I wrote an email a few months ago to the Python docs support email address to offer my help but never got any answer. > Then, if you encounter too much dumbs (and only in that

Re: UDP packets to PC behind NAT

2006-09-16 Thread Paul Rubin
"Janto Dreijer" <[EMAIL PROTECTED]> writes: > > Most dynamic NAT gateways will respond to an outgoing UDP datagram by > > mapping the internal client's UDP port to a UDP port on the NAT > > gateway's external interface, and setting a converse mapping that will > > allow the server to respond, even

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Daniel Nogradi
> Everytime I am lookink at how to do this or that in Python I write it > down somewhere on my computer. (For ex. Threading. After reading the > official documentation I was a bit perplex. Hopefully I found an > article an managed to implement threads with only like 20 lines of code > in my script.

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > Rakotomandimby (R12y) wrote: >> What you should have done first is to suggest to contribute to the >> official Python doc. > > I wrote an email a few months ago to the Python docs support email > address to offer my help but never got any answer. > What did that email s

Re: How to draw a rectangle with gradient?

2006-09-16 Thread Pontus Ekberg
Daniel Mark wrote: > Hello all: > > I am using PIL to draw a rectangle filled with color blue. > > Is there anyway I could set the fill pattern so that the drawn > rectangle could be filled with > gradient blue? > > > Thank you > -Daniel I don't think there is a built-in gradient function, bu

Re: Unicode / cx_Oracle problem

2006-09-16 Thread John Machin
Richard Schulman wrote: > On 10 Sep 2006 15:27:17 -0700, "John Machin" <[EMAIL PROTECTED]> > wrote: > > >... > >Encode each Unicode text field in UTF-8. Write the file as a CSV file > >using Python's csv module. Read the CSV file using the same module. > >Decode the text fields from UTF-8. > > > >Y

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread [EMAIL PROTECTED]
I would like to see more than one source.. Not that the documentation is good or bad it is just that different people may come up with different ways to explain the same thing and that is good in my view. I would like to see the re module and the string module with as many examples as humanly poss

Re: 911 FORGERY bigger than the Protocols of the Learned Elders of Zion

2006-09-16 Thread JR North
LOOK OUT! He has a bomb strapped to him! JR Dweller in the cellar [EMAIL PROTECTED] wrote: > Do not bury your head in the sand ... Do not practice denial ... It > will only bring you to terrible shame and grief ... Do not be afraid of > saying the truth ... Do not be afraid of death ... God w

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > Hi, > > I am a bit disapointed with the current Python online documentation. I > have read many messages of people complaining about the documentation, > it's lack of examples and the use of complicated sentences that you > need to read 10 times before understanding what

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Rakotomandimby (R12y)
On Sat, 16 Sep 2006 22:43:41 +0200, Daniel Nogradi wrote: > Then how about running your site on python and not php? PHP has "better" documentation... ;-) More seriously, I can provide a CPS hosting to nicolasfr if he wants. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Rakotomandimby (R12y)
On Sat, 16 Sep 2006 12:30:56 -0700, Robert Hicks wrote: > That said...the Python docs are open source. Just start going through > them and adding examples. ASPN (activestate) is a good place for examples... -- http://mail.python.org/mailman/listinfo/python-list

Mechanoid Web Browser - Recording Capability

2006-09-16 Thread Seymour
I am trying to find a way to sign onto my Wall Street Journal account (http://online.wsj.com/public/us) and automatically download various financial pages on stocks and mutual funds that I am interested in tracking. I have a subscription to this site and am trying to figure out how to use python,

Re: How to get the "longest possible" match with Python's RE module?

2006-09-16 Thread Tim Peters
[Tim Peters] >> [...] The most valuable general technique [Friedl] (eventually ;-) >> explained he called "unrolling", and consists of writing a regexp in >> the form: >> >>normal* (?: special normal* )* >> >> where the sets of characters with which `normal` and `special` can >> start are disj

Re: wxTimer problem

2006-09-16 Thread Bjoern Schliessmann
abcd wrote: > thanks for NO help. Know what? I knew you were going to answer like that. Regards, Björn -- BOFH excuse #415: Maintenance window broken -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib en https

2006-09-16 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: [...] > Does ActiveState do a unix distribution of Python now? > > (The OP seemed to have a Unix-like system -- so probably he didn't > install have the right rpm or whatever installed -- a very common > problem with people trying to use SSL on linux distrib

Re: Mechanoid Web Browser - Recording Capability

2006-09-16 Thread John J. Lee
"Seymour" <[EMAIL PROTECTED]> writes: > I am trying to find a way to sign onto my Wall Street Journal account > (http://online.wsj.com/public/us) and automatically download various > financial pages on stocks and mutual funds that I am interested in > tracking. I have a subscription to this site

Re: Mechanoid Web Browser - Recording Capability

2006-09-16 Thread John J. Lee
"Seymour" <[EMAIL PROTECTED]> writes: [...] > struggling otherwise and have been trying to learn how to program the > Mechanoid module (http://cheeseshop.python.org/pypi/mechanoid) to get > past the password protected site hurdle. > > My questions are: > 1. Is there an easier way to grab these pag

Re: Mechanoid Web Browser - Recording Capability

2006-09-16 Thread John J. Lee
"Seymour" <[EMAIL PROTECTED]> writes: > I am trying to find a way to sign onto my Wall Street Journal account > (http://online.wsj.com/public/us) and automatically download various > financial pages on stocks and mutual funds that I am interested in > tracking. I have a subscription to this site

Re: high level, fast XML package for Python?

2006-09-16 Thread John J. Lee
Steven Bethard <[EMAIL PROTECTED]> writes: [...] > In Python 2.5, cElementTree and ElementTree will be available in the > standard library as xml.etree.cElementTree and > xml.etree.ElementTree. So learning them now is a great idea. Only some of the original ElementTree software is going into 2.5,

Re: UDP packets to PC behind NAT

2006-09-16 Thread John J. Lee
"Janto Dreijer" <[EMAIL PROTECTED]> writes: > Steve Holden wrote: > > Note that TCP and UDP port spaces are disjoint, so there's no way for > > TCP and UDP to use "the same port" - they can, however, use the same > > port number. Basically the TCP and UDP spaces have nothing to do with > > each ot

Re: Is there a way to find IP address?

2006-09-16 Thread Tim Roberts
"Lad" <[EMAIL PROTECTED]> wrote: >Fredrik Lundh wrote: >> Lad wrote: >> >> > Normaly I can log user's IP address using os.environ["REMOTE_ADDR"] . >> > If a user is behind a proxy, I will log proxy's IP address only. >> > Is there a way how to find a real IP user's address? >> >> os.environ["HTTP

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Thorsten Kampe
* [EMAIL PROTECTED] (2006-09-16 18:40 +0100) > Wildemar Wildenburger wrote: >> [EMAIL PROTECTED] wrote: >>> I have read many messages of people complaining about the documentation, >>> it's lack of examples and the use of complicated sentences that you >>> need to read 10 times before understanding

Re: eval(repr(object)) hardly ever works

2006-09-16 Thread Tal Einat
Matthew Wilson wrote: > I understand that idea of an object's __repr__ method is to return a > string representation that can then be eval()'d back to life, but it > seems to me that it doesn't always work. > [snip] > > Any thoughts? > This is actually an interesting issue when you're working wit

tcl list to python list?

2006-09-16 Thread jerry . levan
Hi, I have a file that contains a "tcl" list stored as a string. The list members are sql commands ex: { begin { select * from foo where baz='whatever'} {select * from gooble } end { insert into bar values('Tom', 25) } } I would like to parse the tcl list into a python list.

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Brad Allen
Here is an idea for improving Python official documentation: Provide a tab-based interface for each entry, with the overview/summary at the top-level, with a row of tabs underneath: 1. Official documentation, with commentary posted at the bottom (ala Django documentation) 2. Exampl

Re: Python blogging software

2006-09-16 Thread Eric S. Johansson
Fuzzyman wrote: > > Because it is client side (rather than running on the server), it has > no built in comments facility. I use Haloscan for comments, but I'm > always on the look out for a neat comments system to integrate with > Firedrop. > > I personally prefer the 'client side' approach, as

Computer Vitals

2006-09-16 Thread my . chat . friends
http://computervitals.com Hey guyz, I welcome you yo Computer Vitals, Your Online Computer Helpline. A new venture to help people with all sides of software and hardware. Pay a visit and experience yourself. Lets get together and help eachother. http://computervitals.com Help sections include

Re: Python blogging software

2006-09-16 Thread Paul Rubin
"Eric S. Johansson" <[EMAIL PROTECTED]> writes: > a wise person you are. I've often thought that most of the pages > generated by web frameworks (except for active pages) should be cached > once rendered. Fancy frameworks do use caching, but I think of that as a kludgy workaround for lousy perfor

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread alex23
[EMAIL PROTECTED] wrote: > Has anyone tried this thing.. > http://www.regular-expressions.info/regexbuddy.html For another free option, there's Kiki: http://project5.freezope.org/kiki/ It has the advantage of being based on the actual python re module. It also comes with SPE. -alex23 -- http:

Re: tcl list to python list?

2006-09-16 Thread Paddy
[EMAIL PROTECTED] wrote: > Hi, > > I have a file that contains a "tcl" list stored as a string. The list > members are > sql commands ex: > { begin { select * from foo > where baz='whatever'} > {select * from gooble } end > { insert into bar values('Tom', 25) } } > > I would

Re: tcl list to python list?

2006-09-16 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a file that contains a "tcl" list stored as a string. The list > members are > sql commands ex: > { begin { select * from foo >where baz='whatever'} > {select * from gooble } end > { insert into bar val

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Paddy
[EMAIL PROTECTED] wrote: > Hi, > > I am a bit disapointed with the current Python online documentation. I > have read many messages of people complaining about the documentation, > it's lack of examples and the use of complicated sentences that you > need to read 10 times before understanding what

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-16 Thread Frank Millman
[EMAIL PROTECTED] wrote: > Frank Millman wrote: > > Dale Strickland-Clark wrote: > > > Now that OIDs have been deprecated in PostgreSQL, how do you find the key > > > of > > > a newly inserted record? > > > > > > > > I used to use 'select lastval()', but I hit a problem. If I insert a > > row int

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-16 Thread [EMAIL PROTECTED]
Frank Millman wrote: > Did you read my extract from the PostgreSQL docs - > > "Notice that because this is returning a session-local value, it gives > a predictable answer whether or not other sessions have executed > nextval since the current session did." > I totally missed it, my bad. Thanks!