Re: Question about XML Parser in Python.

2005-05-11 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Well, I'm fairly new to Python and have encountered a strange error while > reading an XML document in Python. I used the SAX parser, and my input XML is > fairly large with 30 records. I extract about 25 fields from each record > and spit out a csv file. The str

Re: Finding startup files

2005-05-11 Thread jeff elkins
On Wednesday 11 May 2005 04:32 pm, [EMAIL PROTECTED] wrote: > The following script demonstrates a method that should work for you. I > believe it is entirely cross-platform. > > #! /usr/bin/python > > import sys > import os > > print os.path.abspath(os.path.dirname(sys.argv[0])) Works perfectly, t

Re: Finding startup files

2005-05-11 Thread Grant Edwards
On 2005-05-11, jeff elkins <[EMAIL PROTECTED]> wrote: > I'm creating an app that relies on a configuration file at > launch. The file will always exist in the app's installation > directory, That's the first decision you need to examine. If you want work on Unix platforms, that's not where confi

Re: Finding startup files

2005-05-11 Thread Grant Edwards
On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The following script demonstrates a method that should work for you. I > believe it is entirely cross-platform. > > #! /usr/bin/python > > import sys > import os > > print os.path.abspath(os.path.dirname(sys.argv[0])) That will probably

Re: Problems with csv module

2005-05-11 Thread Fredrik Lundh
Richie Hindle wrote: > [Florian] > > You mean that csv.reader can't work with unicode as the delimiter parameter? > > Exactly. http://www.python.org/doc/2.3.5/lib/module-csv.html says: > > "Note: This version of the csv module doesn't support Unicode input. Also, > there are currently some issues

Re: Importing modules

2005-05-11 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > To understand a program, however, you need also a flow chart... so understand a carefully designed modular component structure, you have to remove the structure so you can create a flow chart? did you perhaps stumble upon a strange man with a keg of liquor back in the

Re: Problem combining python code and html

2005-05-11 Thread Fredrik Lundh
Hansan wrote: > I used the same code they use for making the two display functions and the > same template for the html form. I even tried using the form template they > use too, but it still dosnt work. I will now show how the functions and > templates look like. > > The two display functions are

Re: Problems with csv module

2005-05-11 Thread Skip Montanaro
Fredrik> does the CSV format even support Unicode-encoded data streams? Based on the requests I've seen here and on the [EMAIL PROTECTED] mailing list, it appears people are certainly generating CSV files which contain Unicode-encoded data. Skip -- http://mail.python.org/mailman/listinfo/py

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever separated from the love of God in a place called Hell. The Holy Bible descibes Hell as a place of eternal torment, suffering, pain and agony for all those who have rejected Jesus Christ. The good news is that you can avoid Hell by allowing Jesus Christ to save you today. Only then will you have true peace in your life knowing that no matter what happens you are on your way to Heaven. by BluWater0523@yahoo.com

2005-05-11 Thread don freeman
The truth is, Jesus should never have torn down the fig tree. He got so pissed off at the fig tree for not having figs, even though it wasn't fig season. This was not the action of someone who has even a little truth and light. Imagine if Jesus came back now. I'd hate to see his road rage. --

Re: Solipsis: Python-powered Metaverse

2005-05-11 Thread Paul McNett
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Paul McNett <[EMAIL PROTECTED]> wrote: > >>[1] Although, some ISP's are taking it upon themselves to drop or reject >>port 25 traffic. A wrong but understandable stopgap solution to the >>problem of peoples toy machines getting infected by malware

"/usr/bin/ld: cannot find -lmysqlclient" when building MySQL-Python

2005-05-11 Thread francescomoi
Hi. I'm trying to build MySQL-python-1.2.0 on my Linux FC2 (with MySQL 3.23.58). But when building, I get this error message: --- []# python setup.py build running build running build_py running build_ext building '_mysql' extension creating buil

Re: Python 2.4 & BLT ?

2005-05-11 Thread StepH
Ron Adam a écrit : > StepH wrote: > >> Hi, >> >> I'm not able to install BLT on my Python 2.4 (upgraded to 2.4.1) >> distibution... >> >> I'v try to download btlz-for-8.3.exe, but when i try to install it, >> i've a msgbox saying to the file is corrupt... >> >> Any idea ? >> >> Thanks. >> >> Ste

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-11 Thread MC05
"don freeman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The truth is, Jesus should never have torn down the fig tree. He got so > pissed off at the fig tree for not having figs, even though it wasn't > fig season. This was not the action of someone who has even a little > truth

Re: pyvm -- faster python

2005-05-11 Thread Roger Binns
"Stelios Xanthakis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> - hacking SWIG. Shouldn't be too hard and will instantly give >> us access to wx, qt, etc. Have you ever written a non-trivial extension using Swig? It isn't as simple as you would think. There are a lot of lit

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-11 Thread Matt Hayden
MC05 wrote: > "don freeman" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > The truth is, Jesus should never have torn down the fig tree. He got so > > pissed off at the fig tree for not having figs, even though it wasn't > > fig season. This was not the action of someone who has

Re: Importing modules

2005-05-11 Thread Sébastien Boisgérault
[EMAIL PROTECTED] wrote: [...] > In some cases there is a further complication: module importing through > an indirect mechanism, like: exec "from " + xxx + " import *". Don't do that. Please ;). If you need too import some modules based on the module name, stored in a string, consider the using

Re: Importing modules

2005-05-11 Thread George Sakkis
"Fredrik Lundh" wrote : > [EMAIL PROTECTED] wrote: > > > To understand a program, however, you need also a flow chart... > > so understand a carefully designed modular component structure, you > have to remove the structure so you can create a flow chart? > > did you perhaps stumble upon a strange

win32com and ADO

2005-05-11 Thread Chris Curvey
I'm having one of those weeks. I have this pattern all over my code. result = conn.execute("select * from foo") while not result.EOF: doSomething() result.MoveNext() So recently I got around to running makepy on all of the Microsoft ActiveX Data Objects, and now every call to that patte

Re: Need a little parse help

2005-05-11 Thread James Stroud
My understanding is that Python code should keep as many possible implementations in mind. For example, I have been told that it would be unwise to do something like this in Jython because the Java GC will not reclaim the file resources: for afile in more_than_just_a_few_files: for aline in o

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-11 Thread MC05
"Matt Hayden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > MC05 wrote: > > "don freeman" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > The truth is, Jesus should never have torn down the fig tree. He > got so > > > pissed off at the fig tree for not havin

Re: Problems with csv module

2005-05-11 Thread Fredrik Lundh
Skip Montanaro wrote: > Fredrik> does the CSV format even support Unicode-encoded data streams? > > Based on the requests I've seen here and on the [EMAIL PROTECTED] mailing > list, > it appears people are certainly generating CSV files which contain Unicode- > encoded data. in what encoding

Re: Python Graphing Utilities.

2005-05-11 Thread Fernando Perez
Torsten Bronger wrote: > HallÃchen! > > Fernando Perez <[EMAIL PROTECTED]> writes: > >> [...] >> >> And I'd also second the matplotlib suggestion, to which I've by >> now fully switched after years of faithful gnuplot usage. >> Matplotlib is very good, has an active development community, and >>

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever separated from the love of God in a place called Hell. The Holy Bible descibes Hell as a place of eternal torment, suffering, pain and agony for all those who have rejected Jesus Christ. The good news is that you can avoid Hell by allowing Jesus Christ to save you today. Only then will you have true peace in your life knowing that no matter what happens you are on your way to Heaven. by BluWater0523@yahoo.com

2005-05-11 Thread [EMAIL PROTECTED]
jerkoff -- http://mail.python.org/mailman/listinfo/python-list

Re: Need a little parse help

2005-05-11 Thread Fredrik Lundh
Peter Hansen wrote: > > Remember, finalisers are not called when Python exits. So if you don't > > explicitly close the file you are *writing* to, it may not be flushed > > before being closed (by the OS because the process no longer exists). > > Ouch... I'd forgotten/never heard that I guess. If

Re: Importing modules

2005-05-11 Thread qwweeeit
Fredrik Lundh ha scritto: > [EMAIL PROTECTED] wrote: > > > To understand a program, however, you need also a flow chart... > > so understand a carefully designed modular component structure, you > have to remove the structure so you can create a flow chart? Not everyone is a "guru" like you... I

Re: Merging overlapping spans/ranges

2005-05-11 Thread Bengt Richter
On Tue, 10 May 2005 23:53:43 GMT, Jim Sizelove <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: [...] >> Maybe (not tested beyond what you see ;-) I had that feeling ... somehow the word "max" was trying to get my attention, but I posted without figuring out why ;-/ > >It is with some trepidation t

Doctor Boudreaux at Tulane

2005-05-11 Thread Espiritu Santo
"hans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hey Doctor Boudreaux, Laissez les Bon Temps Rouler! Shall we send all these to Tulane education, Little Buddy? doc -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG -- http://mail.python.org/mailman/listinfo/pyth

Re: win32com and ADO

2005-05-11 Thread Peter Hansen
Chris Curvey wrote: > I'm having one of those weeks. > > I have this pattern all over my code. > > result = conn.execute("select * from foo") > > while not result.EOF: > doSomething() > result.MoveNext() > > So recently I got around to running makepy on all of the Microsoft > ActiveX Da

Python Documentation (should be better?)

2005-05-11 Thread Christopher J. Bottaro
This post is just the culmination of my thoughts and discussions with my coworkers on Python. If you are not interested, please skip over it. At my work, we are developing a product from scratch. It is completely modular and the modules communicate via SOAP. Because of that, we can implement in

Re: win32com and ADO

2005-05-11 Thread Achim Domma (Procoders)
Chris Curvey wrote: > result = conn.execute("select * from foo") > > while not result.EOF: > doSomething() > result.MoveNext() > > 'tuple' object has no attribute EOF The recordset you are looking for is a element of the tuple. Out of my head I would say it's element 1, so you have to

Re: win32com and ADO

2005-05-11 Thread Chris Curvey
Thanks Peter. I found the files that makepy generated (in $PYTHON_HOME/Lib/site-packages/win32com/gen_py). I've tried deleting the individual files, and the entire directory, and I'm still getting the error. (Maybe something was changed in the registry?) [Fun side note -- after deleting the fil

Re: Python Documentation (should be better?)

2005-05-11 Thread Christopher J. Bottaro
Christopher J. Bottaro wrote: > ...blah blah blah... Heh, silly me...there is already a huge thread about this...kinda. The intricacies of the computing term "greedy" aside, yes I think the Python documentation should generally be better. What that means, I have no idea. All I know is that I l

Re: Python Graphing Utilities.

2005-05-11 Thread Torsten Bronger
HallÃchen! Fernando Perez <[EMAIL PROTECTED]> writes: > [...] > > Well, it's true that the latex-type (called mathtext) support in > matplotlib is not really up to par with true latex (kerning is off > in places, mixed text/math doesn't work well, etc). I've been > willing to live with it so far

Re: Problems with csv module

2005-05-11 Thread Skip Montanaro
>> Based on the requests I've seen here and on the [EMAIL PROTECTED] mailing >> list, it appears people are certainly generating CSV files which >> contain Unicode- encoded data. Fredrik> in what encodings? I've seen hints about iso-8859-1/iso-8859-15 and mention that Excel 2000

Re: win32com and ADO

2005-05-11 Thread Chris Curvey
Achim, Bingo. The recordset is in item 0. And that appears to work even on systems where makepy has not been run. Thanks so much. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Documentation (should be better?)

2005-05-11 Thread hugonz
I think Python's doc really rock. It's odd, why do you refer to the tutorial when the lib API is what I'd consider "the docs". If you're using Windows, then the doc browser included is pretty good too... -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem combining python code and html

2005-05-11 Thread Hansan
Thanks for you reply and Help Fredrik Lundh The change did remove the error message, and I can see what was wrong. However there is now a new problem, the only thing that is displayed is one single character and that is: < Do you or anyone else have a suggestion to what the cause to this new pr

BluWater: God is not a man

2005-05-11 Thread Obaid R.
For a detailed response to the claims of the poster please refer to the following. [1] "Ron Grossi: God is not a man" an essay: http://groups-beta.google.com/group/microsoft.public.windowsxp.networ... [2] "Ron Grossi: God is not a man" an entire thread: http://groups-beta.google.com/group/microso

Re: Python Documentation (should be better?)

2005-05-11 Thread Skip Montanaro
Christopher> The intricacies of the computing term "greedy" aside, yes I Christopher> think the Python documentation should generally be better. Christopher> What that means, I have no idea. All I know is that I like Christopher> PHP's documentation and it should be like that. It

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-11 Thread don freeman
> > I suppose he could point at what he saw and wither it. > Jesus would then give a sermon from the mount: Let the Puritans wear fig leaves over their eyes! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Documentation (should be better?)

2005-05-11 Thread Sébastien Boisgérault
Christopher J. Bottaro wrote: > [...] > Funny, the con of Python (documentation) is PHP's strong point. > The PHP manual is extremely easy to navigate and its search feature > works great. Contrast that with Python, where you have to use "the > tutorial" as the manual. Also, the tutorial is just t

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Christopher J. Bottaro wrote: > After we were done, we talked about the pros and cons of the languages. > Funny, the con of Python (documentation) is PHP's strong point. The PHP > manual is extremely easy to navigate and its search feature works great. > Contrast that with Python, where you have

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever separated from the love of God in a place called Hell. The Holy Bible descibes Hell as a place of eternal torment, suffering, pain and agony for all those who have rejected Jesus Christ. The good news is that you can avoid Hell by allowing Jesus Christ to save you today. Only then will you have true peace in your life knowing that no matter what happens you are on your way to Heaven. by BluWater0523@yahoo.com

2005-05-11 Thread rbt
don freeman wrote: > The truth is, Jesus should never have torn down the fig tree. He got so > pissed off at the fig tree for not having figs, even though it wasn't > fig season. This was not the action of someone who has even a little > truth and light. > > Imagine if Jesus came back now. I'd

Re: Python Documentation (should be better?)

2005-05-11 Thread Christopher J. Bottaro
[EMAIL PROTECTED] wrote: > I think Python's doc really rock. It's odd, why do you refer to the > tutorial when the lib API is what I'd consider "the docs". I guess I mean Python needs a manual, which is basically what the tutorial serves as, but its not comprehensive and organized like how (I thi

Re: Problem combining python code and html

2005-05-11 Thread Bruno Desthuilliers
Hansan a écrit : > Hi all, I hope you have time to help me out a little. My problem is that I > want to combine some python code I have made with some html templates, I > found a tutorial at dev shed: (snip a whole lot of code) > But I get the error message: > error: multiple repeat > arg

RE: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means t hat if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sep

2005-05-11 Thread Michael . Coll-Barth
def testSpiritual(): ''' look within ''' if knowChrist: cryWithTheSaints() else: laughWithTheSinners() -Original Message- [mailto:[EMAIL PROTECTED] g]On Behalf Of rbt Who is this Jesus you are talking about? Does he know Python or something? What do fig t

RE: Need a little parse help

2005-05-11 Thread Andrew Dalke
Delaney, Timothy C (Timothy) wrote: > Remember, finalisers are not called when Python exits. So if you don't > explicitly close the file you are *writing* to, it may not be flushed > before being closed (by the OS because the process no longer exists). Wrong. % python Python 2.3 (#1, Sep 13 2003,

Re: Python Documentation (should be better?)

2005-05-11 Thread Christopher J. Bottaro
Steven Bethard wrote: > Christopher J. Bottaro wrote: >> After we were done, we talked about the pros and cons of the languages. >> Funny, the con of Python (documentation) is PHP's strong point. The PHP >> manual is extremely easy to navigate and its search feature works great. >> Contrast that

optparse

2005-05-11 Thread Sébastien Boisgérault
Any idea why the 'options' object in # optparse stuff (options, args) = parser.parse_args() is not/couldn't be a real dict ? Or why at least it does not support dict's usual methods ? The next move after a parse_args is often to call a method 'do_stuff' with the args and options and I'd like to

Re: Python Documentation (should be better?)

2005-05-11 Thread rbt
Christopher J. Bottaro wrote: > Christopher J. Bottaro wrote: > > >>...blah blah blah... > > > Heh, silly me...there is already a huge thread about this...kinda. > > The intricacies of the computing term "greedy" aside, yes I think the Python > documentation should generally be better. What t

RE: Python Documentation (should be better?)

2005-05-11 Thread Shi, Jue
I agree. The PHP manual is really good, especially the examples and user contributed notes. I think that's why we need the reference manual most time. It help you to get started on that particular function as well as hint you the trick and trap. I really wish Python manual gets better on these tw

Re: Python Documentation (should be better?)

2005-05-11 Thread Sébastien Boisgérault
"Manual" == scope of the *Lib Reference* + informal style of the *Tutorial*, Right ? Consider non-official manuals such as: + http://diveintopython.org/toc/index.html (free) + python in a nutshell + python cookbook + etc. Cheers, SB -- http://mail.python.org/mailman/listinfo

Re: BluWater: God is not a man

2005-05-11 Thread America's Best Christian
Jesus has a deplorable blind spot when it came to the nuances of marketing a new religion. Fortunately, since the apostle Paul was completely oblivious to any of Jesus' teachings, he was unfettered by this myopic shortcoming on the part of our Lord. So Close to Jesus, He's Seen Me Without Make-up

RE: Python Documentation (should be better?)

2005-05-11 Thread Skip Montanaro
Jue> Maybe a mailing list or forum people can contribute example and Jue> notes? Contributions can be made at the SourceForge patch tracker: http://sourceforge.net/tracker/?group_id=5470&atid=305470 Plain text is fine. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: windows directories for curr user

2005-05-11 Thread flamesrock
Thanks for the code Tom. Unforunately, I get the following error message when trying to import win32com in idle: >>> from win32com.shell import shell, shellcon Traceback (most recent call last): File "", line 1, in -toplevel- from win32com.shell import shell, shellcon ImportError: No modul

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Christopher J. Bottaro wrote: > I think it should evolve into a manual that is more comprehensive > and organized more like other programming manuals (chapter on control > structures, http://docs.python.org/tut/node6.html or http://docs.python.org/ref/compound.html > functions, http://docs.pyt

Re: optparse

2005-05-11 Thread Steven Bethard
Sébastien Boisgérault wrote: > Any idea why the 'options' object in > > # optparse stuff > (options, args) = parser.parse_args() > > is not/couldn't be a real dict ? Or why at least it > does not support dict's usual methods ? Well, it's not a real dict because the original API intends it to be

Re: Python Documentation (should be better?)

2005-05-11 Thread F. Petitjean
Le Wed, 11 May 2005 15:58:04 -0400, rbt a écrit : > Christopher J. Bottaro wrote: > Because PHP is such a 'thrown together' and 'bolted-on' language. If it > didn't have *outstanding* documentation (which it does BTW), no one > could even begin to understand how they got from a little HTML langua

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- The Python docs are not ideal. I can never remember, for instance, where to find string methods (not methods in the string module, but methods with ''), but I can remember a tortured path to get me there (yes, I know, fix my brain; easier said than done). The module index is good, if wha

Re: Python Documentation (should be better?)

2005-05-11 Thread Sébastien Boisgérault
Christopher J. Bottaro wrote: > [...] > Cuz I think the Language Reference is really more of a grammer reference and > far too technical to look up simple things like "how to declare a > function". > > I guess what I'm trying to say is that there is no manual (for the language > itself, not the

Re: optparse

2005-05-11 Thread Sébastien Boisgérault
Steven Bethard wrote: > Sébastien Boisgérault wrote: > > Any idea why the 'options' object in > > > > # optparse stuff > > (options, args) = parser.parse_args() > > > > is not/couldn't be a real dict ? Or why at least it > > does not support dict's usual methods ? > > Well, it's not a real dict be

Re: Python Documentation (should be better?)

2005-05-11 Thread Christopher J. Bottaro
SÃbastien BoisgÃrault wrote: > > "Manual" == scope of the *Lib Reference* + informal style of the > *Tutorial*, > > Right ? Yes! That sounds good. "Informal style" yes, but "tutorial style" no. I shouldn't be there to teach like the tutorial, but for reference. And of course, the manual sho

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be

2005-05-11 Thread Pokerface
rbt Wrote: > don freeman wrote: > > The truth is, Jesus should never have torn down the fig tree. He got > so > > pissed off at the fig tree for not having figs, even though it wasn't > > fig season. This was not the action of someone who has even a little > > truth and light. > > > > Imagine if

Re: Python Documentation (should be better?)

2005-05-11 Thread Sébastien Boisgérault
> I can usually end up where I want to be by picking up my copy of _Python > in a Nutshell_. 95% of the time I can find what I want in there or from > there. This book is really great. Could anybody convince Alex Martelli to basically make it freely available to the world ? <0.9 wink>. I would

Re: Python Documentation (should be better?)

2005-05-11 Thread flamesrock
I don't know what you guys are talking about!! In idle: help(module) I love the way python handles documentation. Its not invansive -- http://mail.python.org/mailman/listinfo/python-list

Re: pyvm -- faster python

2005-05-11 Thread Robert Kern
Stelios Xanthakis wrote: > There are two kinds of C modules: those that do have a knowledge > of the C API (like sre, tkinter, etc) and those that are just C/C++ > libraries which are simply wrapped as modules. For the latter there > are two solutions besides adding a wrapper which makes pyvm app

Re: Python Documentation (should be better?)

2005-05-11 Thread George Sakkis
> Cuz I think the Language Reference is really more of a grammer reference and > far too technical to look up simple things like "how to declare a > function". > > I guess what I'm trying to say is that there is no manual (for the language > itself, not the modules). There is just the tutorial tha

Re: optparse

2005-05-11 Thread Steven Bethard
Sébastien Boisgérault wrote: > Steven Bethard wrote: > >>Sébastien Boisgérault wrote: >> >>>Any idea why the 'options' object in >>> >>># optparse stuff >>>(options, args) = parser.parse_args() >>> >>>is not/couldn't be a real dict ? Or why at least it >>>does not support dict's usual methods ? >>

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-11 Thread mark
I,too,gave semen from the mount. mark "don freeman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> >> I suppose he could point at what he saw and wither it. >> > > Jesus would then give a sermon from the mount: > > Let the Puritans wear fig leaves over their eyes! > -- http://m

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Ivan Van Laningham wrote: > The Python docs are not ideal. I can never remember, for instance, > where to find string methods (not methods in the string module, but > methods with '') Hmmm... Well going to http://docs.python.org/ and typing "string methods" into the search box gives, as the firs

Re: Python Graphing Utilities.

2005-05-11 Thread Robert Kern
Torsten Bronger wrote: > HallÃchen! > > Fernando Perez <[EMAIL PROTECTED]> writes: >>I've yet to experiment with it, but it might (with some additional >>handywork) give final results identical to those of the pslatex >>backend in gnuplot. > > What do you mean with this? Do you want to mimic Te

Re: Python Documentation (should be better?)

2005-05-11 Thread Christopher J. Bottaro
rbt wrote: > Christopher J. Bottaro wrote: >> Christopher J. Bottaro wrote: >> >> >>>...blah blah blah... >> >> >> Heh, silly me...there is already a huge thread about this...kinda. >> >> The intricacies of the computing term "greedy" aside, yes I think the >> Python >> documentation should g

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Christopher J. Bottaro wrote: > Contrast that with Python. First off there is no "search" mechanism built > into the documentation page (yes I know you can google it, but that just > doesn't feel right). Um, are you looking at the current documentation page? http://docs.python.org/ In the upper

RE: Need a little parse help

2005-05-11 Thread Delaney, Timothy C (Timothy)
Fredrik Lundh wrote: > that's probably because finalizers *are* called when Python exits. D'oh! Old semantics? I'm sure I remember this used to not work at some point, and not just in Jython. My apologies to anyone who I led astray. Still ... better to be too careful ;) I've been trying to find

Re: Python Documentation (should be better?)

2005-05-11 Thread Bruno Desthuilliers
Ivan Van Laningham a écrit : > Hi All-- > The Python docs are not ideal. I can never remember, for instance, > where to find string methods (not methods in the string module, but > methods with ''), >>> dir('') ['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__ge__

urllib open error

2005-05-11 Thread Thomas
Hi All,   Just an update on my urllib open error..  It’s the proxy setup on my machine which was causing the problem.   Note: soappy doesn’t use the proxy by default while the urllib do..     Cheers Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP Printing with wxPython

2005-05-11 Thread Mario
"Tim G" <[EMAIL PROTECTED]> wrote: > Essentially, if you're on Windows (and have no need > to run on anything else) then consider some of the > solutions here: > > http://tgolden.sc.sabren.com/python/win32_how_do_i/print.html That was exactly what I needed! Thanks SO MUCH! :) I tested all the dif

Re: Python Graphing Utilities.

2005-05-11 Thread Fernando Perez
Torsten Bronger wrote: > HallÃchen! > > Fernando Perez <[EMAIL PROTECTED]> writes: > >> [...] >> >> Well, it's true that the latex-type (called mathtext) support in >> matplotlib is not really up to par with true latex (kerning is off >> in places, mixed text/math doesn't work well, etc). I've

Proxy Design Advice Needed

2005-05-11 Thread nitrogenycs
Hello, I need a way to get a notification whenever a variable of an object changes. The approach should be non-intrusive so that I can use existing objects without modifying them. I want to be notified no matter who or what did change the wrapped object - even whenever an object internal methods c

Re: Finding startup files

2005-05-11 Thread jeff elkins
On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote: > On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The following script demonstrates a method that should work for you. I > > believe it is entirely cross-platform. > > > > #! /usr/bin/python > > > > import sys > > import os > >

New Web technology

2005-05-11 Thread 1comunicato
Information XHTML1.1: http://www.1info.com/1computer/1work_e.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever separated from the love of God in a place called Hell. The Holy Bible descibes Hell as a place of eternal torment, suffering, pain and agony for all those who have rejected Jesus Christ. The good news is that you can avoid Hell by allowing Jesus Christ to save you today. Only then will you have true peace in your life knowing that no matter what happens you are on your way to Heaven. by BluWater0523@yahoo.com

2005-05-11 Thread don freeman
>> > > Who is this Jesus you are talking about? Does he know Python or > something? What do fig trees have to do with Python and/or Jesus? Bertand Russell said it best: Then there is the curious story of the fig tree, which always rather puzzled me. You remember what happened about the fig

Re: Finding startup files

2005-05-11 Thread Robert Kern
jeff elkins wrote: > On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote: > >>On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >>>The following script demonstrates a method that should work for you. I >>>believe it is entirely cross-platform. >>> >>>#! /usr/bin/python >>> >>>impor

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-11 Thread David Kilpatrick
MC05 wrote: > "Matt Hayden" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>MC05 wrote: >> >>>"don freeman" <[EMAIL PROTECTED]> wrote in message >>>news:[EMAIL PROTECTED] >>> The truth is, Jesus should never have torn down the fig tree. He >> >>got so >> pissed off at

Re: BluWater: God is not a man

2005-05-11 Thread Fletch
Obaid R. wrote: > For a detailed response to the claims of the poster please refer to the > following. > > [1] "Ron Grossi: God is not a man" an essay: > http://groups-beta.google.com/group/microsoft.public.windowsxp.networ... > > [2] "Ron Grossi: God is not a man" an entire thread: > http://gro

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Bruno Desthuilliers wrote: > Ivan Van Laningham a écrit : > >> Hi All-- >> The Python docs are not ideal. I can never remember, for instance, >> where to find string methods (not methods in the string module, but >> methods with ''), > > > >>> dir('') > ['__add__', '__class__', '__contains__',

Re: Python 2.4 & BLT ?

2005-05-11 Thread Ron Adam
StepH wrote: > Ron Adam a écrit : > >>StepH wrote: >> >> >>>Hi, >>> >>>I'm not able to install BLT on my Python 2.4 (upgraded to 2.4.1) >>>distibution... >>> >>>I'v try to download btlz-for-8.3.exe, but when i try to install it, >>>i've a msgbox saying to the file is corrupt... >>> >>>Any idea ?

Read tab delimited ascii file

2005-05-11 Thread Irvine, Wayne D
Title: Read tab delimited ascii file I have a tab delimited ascii/excel file formated like LineNum  Data1    Data2…  Data423 Line001    Val1_1  Val2_1… Val423_1 Line002    Val1_2  Val2_2… Val423_2 … Linennn... I want to read the headers/column names in the first line of the file and l

Re: Finding startup files

2005-05-11 Thread jeff elkins
On Wednesday 11 May 2005 10:18 pm, Robert Kern wrote: > jeff elkins wrote: > > On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote: > >>On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>>The following script demonstrates a method that should work for you. I > >>>believe it is entir

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Shi, Jue wrote: > I agree. The PHP manual is really good, especially the examples and user > contributed notes. Dunno if anyone's spent much time editing this, but a while a go AMK posted: http://www.amk.ca/diary/archives/cat_python.html#003336 which puts a wiki side-by-side with the Python docs

Re: unstatisfied symbols building Python 2.4.1 on HP-UX 10.20

2005-05-11 Thread [EMAIL PROTECTED]
Scott Leerssen wrote: > I'm trying to build Python 2.4.1 on HP-UX 10.20 and get the following > during linking: > > /usr/ccs/bin/ld: Unsatisfied symbols: > PyThread_acquire_lock (code) > PyThread_exit_thread (code) > PyThread_allocate_lock (code) > PyThread_free_lock (code) >

Re: windows directories for curr user

2005-05-11 Thread Peter Hansen
flamesrock wrote: > Thanks for the code Tom. > > Unforunately, I get the following error message when trying to import > win32com in idle: Have you installed the pywin32 package? If not, see Google... -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com and ADO

2005-05-11 Thread Peter Hansen
Chris Curvey wrote: > Achim, > > Bingo. The recordset is in item 0. And that appears to work even on > systems where makepy has not been run. > > Thanks so much. So was this not really something that was working *before* you ran makepy, or is there still an unsolved mystery there? -- http://

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- Yes. There are multiple ways I can correct myself, some, I'm sure, involving chains and whips. But you're all missing the point: Christopher is right! Python docs are not as good as PHP docs. Why not? Why do I have to be told "Hey, there are fifty ways to get what you want!" when I s

Re: Python Documentation (should be better?)

2005-05-11 Thread Peter Hansen
Christopher J. Bottaro wrote: > Why can't Python have documentation like that? The language is > awesome, it just needs documentation of the same quality. The canonical answer is, roughly, 'it can'. A standard addendum is to say that contributions are always welcome. A common clarification of

Re: Python Args By Reference

2005-05-11 Thread Terry Reedy
"ncf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Example C Code: > #define P(a,b,c,d,e,f,g,h,x,K) \ > { \ > temp1 = h + S3(e) + F1(e,f,g) + K + x; \ > temp2 = S2(a) + F0(a,b,c); \ > d += temp1; h = temp1 + temp2; \ > } > Python Code: > def P(a,b,c,d,e,f,g,h,x,K): >temp1 =

Re: BluWater: God is not a man

2005-05-11 Thread flamesrock
I'm curious, why is everyone talking about jesus on comp.lang.python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Ivan Van Laningham wrote: > I should be able to type "string methods" into the text box, > push submit, and IT SHOULD HAND ME THE PAGE. Not "Results 1 - 20 of > about 9,800 from www.python.org for string methods. (0.78 seconds)" Hmm... I typed in "string methods" at http://docs.python.org/ and g

Re: optparse

2005-05-11 Thread Andrew Dalke
Steven Bethard wrote: > Well one reason might be that it's easy to convert from an object's > attributes to a dict, while it's hard to go the other direction: ... > py> options['x'], options['y'] > ('spam', 42) > py> o = ??? # convert to object??? > ... > py> o.x, o.y > ('spam', 42) "hard" == "

Re: Python Documentation (should be better?)

2005-05-11 Thread Terry Reedy
"Sébastien Boisgérault" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Manual" == scope of the *Lib Reference* + informal style of the > *Tutorial*, You, as well as the OP, left out the Language Reference, which is the manual (by me definition) for the language itself. Chapte

<    1   2   3   >