Re: Python Documentation (should be better?)

2005-05-11 Thread James Stroud
Ivan and Company: Keep this in your favorites bar: http://rgruet.free.fr/PQR24/PQR2.4.html Under "Contents", click on "Basic types and their operations:...string" But I think this could have an expanded "idioms" section. I.E. for index,element in enumarate(alist): or for atup in z

Re: Problems with csv module

2005-05-11 Thread John Machin
On Wed, 11 May 2005 14:08:08 -0500, Skip Montanaro <[EMAIL PROTECTED]> wrote: > >>> 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 wh

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- Steven Bethard wrote: > > 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)" > > Regardless, assuming

Re: Python Documentation (should be better?)

2005-05-11 Thread Robert Kern
Ivan Van Laningham wrote: > http://www.python.org/doc/ > > Type string methods into the box; push submit. Result: > > "Results 1 - 20 of about 9,800 from www.python.org for string methods. > (0.14 seconds)" > > I did not go to docs.python.org, I went to www.python.org and clicked on > the doc

Re: Python Documentation (should be better?)

2005-05-11 Thread John Bokma
Ivan Van Laningham wrote: > Python docs are not as good as PHP docs. Oh my. I hope you are just making that up. PHP documentation is guesstimated on how PHP works on average. Add the online comments clutter and you probably are better off reading the source. -- John

Re: win32com and ADO

2005-05-11 Thread Chris Curvey
it was working fine before running makepy, once I ran makepy, I had to add the array index to make it work. -- http://mail.python.org/mailman/listinfo/python-list

win32com Dispatch() and SetPriorityClass()

2005-05-11 Thread Chris Curvey
if I'm using Dispatch() to manage a COM object (IE), is there a way to get ahold of the process handle so that I can bump it's priority? -- http://mail.python.org/mailman/listinfo/python-list

Ron Grossi The Troll Is Back

2005-05-11 Thread Chuck
Abuse reports to [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with csv module

2005-05-11 Thread John Machin
On Wed, 11 May 2005 20:02:25 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >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

Re: Python Documentation (should be better?)

2005-05-11 Thread Skip Montanaro
Christopher> Exactly!! See thats what I'm saying. I _think_ its widely Christopher> accepted that PHP has awesome documentation. And like rbt Christopher> said, that makes it extremely useful. Why can't Python Christopher> have documentation like that? It's just a simple matte

Re: Python Documentation (should be better?)

2005-05-11 Thread Skip Montanaro
Ivan> I can never remember ...where to find string methods dir('') Bruno> ['__add__', '__class__', ... Also: >>> help(str) Help on class str in module __builtin__: class str(basestring) | str(object) -> string | | Return a nice string representati

Re: Python Documentation (should be better?)

2005-05-11 Thread Skip Montanaro
Steve> [AMK's] wiki side-by-side with the Python docs: Steve> http://pydoc.amk.ca/frame.html There's also wikalong, though that's firefox-specific. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Documentation (vs PHP stuff)

2005-05-11 Thread Terry Reedy
"Christopher J. Bottaro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > rbt 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

Re: HELP Printing with wxPython

2005-05-11 Thread Mario
"Larry Bates" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Mario, > > Here is a function stripped from a working program that uses printpreview > from wxWindows to print out cells from a grid that the user is working > on. Hopefully this can point you in the proper direct

Re: HELP Printing with wxPython

2005-05-11 Thread Mario
"James Carroll" <[EMAIL PROTECTED]> wrote: >I especially like the HtmlEasyPrinting write-up here: > http://wiki.wxpython.org/index.cgi/Printing Thank you for your suggestion but I'm just not able to make it work, as i said on the original post, I do exactly what is wrote there, but it gives err

Re: Solipsis: Python-powered Metaverse

2005-05-11 Thread Terry Reedy
"Paul McNett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sure, that's how it is here in the US too. You have a modem/router > supplied by the cable or DSL company that provides DHCP and NAT for > outbound traffic. Comcast supplied me with a DHCP cable modem that comverts whate

Re: pyvm -- faster python

2005-05-11 Thread Paul Rubin
Stelios Xanthakis <[EMAIL PROTECTED]> writes: > I didn't know much about PyPy. It seems that pyvm is *exactly* what > pypy needs to boost its performance. Does pypy has the vm in python > as well? Does pypy have a compiler that produces 2.4 bytecodes? Pypy makes native machine code, not bytecod

Re: Python Documentation (should be better?)

2005-05-11 Thread Paul Rubin
"Sébastien Boisgérault" <[EMAIL PROTECTED]> writes: > "Manual" == scope of the *Lib Reference* + informal style of the > *Tutorial*, I don't care whether the style is formal or informal, the manual should document the complete interface of the language and library and right now it doesn't do anyth

Re: Python Documentation (should be better?)

2005-05-11 Thread Paul Rubin
[EMAIL PROTECTED] writes: > 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". Some parts of the lib doc are better than others. The only way to understand SocketServer, for example, is to read the long comment at the b

Re: Interactive shell for demonstration purposes

2005-05-11 Thread Steve Holden
Tim Golden wrote: > [Brian Quinlan] > | > | Can anyone recommend a Python interactive shell for use in > | presentations? > | > | Ideal characteristics (priority order): > | o configurable font size > | o full screen mode > | o readline support > | o syntax coloring > | > | I've tried ipython b

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- Robert Kern wrote: > > Ivan Van Laningham wrote: > > > http://www.python.org/doc/ > > > Searching on docs.python.org goes through just the stuff that's on > docs.python.org, which is pretty much just documentation. Google's magic > points to the current documentation. > > Searching on

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- John Bokma wrote: > > Ivan Van Laningham wrote: > > > Python docs are not as good as PHP docs. > > Oh my. I hope you are just making that up. PHP documentation is > guesstimated on how PHP works on average. Add the online comments clutter > and you probably are better off reading the

Re: pyvm -- faster python

2005-05-11 Thread Mike Meyer
Stelios Xanthakis <[EMAIL PROTECTED]> writes: > - hacking SWIG. Shouldn't be too hard and will instantly give > us access to wx, qt, etc. You can't assume that because some package is a C/C++ library wrapped for Python that it uses SWIG. pyqt, for example, doesn't use SWIG at all. It

Re: Python Documentation (should be better?)

2005-05-11 Thread Robert Kern
Ivan Van Laningham wrote: > Hi All-- > > Robert Kern wrote: > >>Ivan Van Laningham wrote: >> >> >>>http://www.python.org/doc/ >>> >> >>Searching on docs.python.org goes through just the stuff that's on >>docs.python.org, which is pretty much just documentation. Google's magic >>points to the curr

Re: Python Documentation (vs PHP stuff)

2005-05-11 Thread Ivan Van Laningham
Hi All-- Terry Reedy wrote: > > Conclusion 3: some people would apparently be happier with the Python docs > if they were combined into one Python Manual. This could be done as a > virtual anthology by writing a combined Table of Contents (with links) and > an Introduction discussing the various

Re: pyvm -- faster python

2005-05-11 Thread Greg Ewing
Paul Rubin wrote: > PyPy looks like the best vehicle for that so far. See > >http://catb.org/~esr/jargon/html/M/MFTL.html > > for the canonical remark about languages that can't be used to > implement their own compilers. Which makes it clear that the remark is only intended to apply to *co

Re: pyvm -- faster python

2005-05-11 Thread Paul Rubin
Greg Ewing <[EMAIL PROTECTED]> writes: > > PyPy looks like the best vehicle for that so far. See > >http://catb.org/~esr/jargon/html/M/MFTL.html > > for the canonical remark about languages that can't be used to > > implement their own compilers. > > Which makes it clear that the remark is on

Re: Python Args By Reference

2005-05-11 Thread Steve Holden
Fredrik Lundh wrote: > Grant Edwards wrote: > > >>Yes. All arguments are passed by reference. This must be in >>the FAQ somewhere... > > > hopefully not, because that saying that "all arguments are passed > by reference" is extremely confusing for people who've learned about > "call by refere

Re: Defunct Processes With subprocess.Popen

2005-05-11 Thread Mike Meyer
John Abel <[EMAIL PROTECTED]> writes: > Hi! > > I'm currently writing a script which launches external programs, but > it keeps leaving zombie/defunct processes behind, until I kill the > launching script, which is a bit of a pain, as it's supposed to be a > daemon. The code I'm using is: > > new

Re: optparse

2005-05-11 Thread Steven Bethard
Andrew Dalke wrote: > 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

Re: Importing modules

2005-05-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: > 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? > > >

Re: Python Documentation (should be better?)

2005-05-11 Thread Aahz
In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]> wrote: > >I believe that docs.python.org was added mostly to aid Google searches. >I *do* think that the Documentation link should go to docs.python.org. I >believe there is a mailing list somewhere that discusses improvements to >

Re: Python Documentation (should be better?)

2005-05-11 Thread Steven Bethard
Ivan Van Laningham wrote: > I get that. My question, cleverly concealed in a rant, was, "Why does > clicking on the Documentation link at python.org NOT take me to > docs.python.org?" I believe the issue here is that docs.python.org is only the *current* documentation. www.python.org/doc lists

Re: reg mail sending without smtp module

2005-05-11 Thread praba kar
--- Tim Williams <[EMAIL PROTECTED]> wrote: > - Original Message - > From: "John Abel" <[EMAIL PROTECTED]> > > > > praba kar wrote: > > > > >Dear All, > > > > > > Is it possible to send a message as a > mail > > >with out smtplib module? If you find out any > module > > >for mai

Re: Python Documentation (should be better?)

2005-05-11 Thread Terry Hancock
On Wednesday 11 May 2005 02:54 pm, Christopher J. Bottaro wrote: > 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 that serves as the > manual. I think it should evolve into a manual that is more comprehensive > an

Re: Problems with csv module

2005-05-11 Thread Mike Meyer
John Machin <[EMAIL PROTECTED]> writes: > The CSV format is not defined at all, AFAIK. Just for the record, http://www.ietf.org/internet-drafts/draft-shafranovich-mime-csv-05.txt >. You'll also see application that deal with the application/csv MIME type. http://www.mire

Re: Python Documentation (should be better?)

2005-05-11 Thread Terry Hancock
On Wednesday 11 May 2005 03:42 pm, flamesrock wrote: > I don't know what you guys are talking about!! > In idle: > help(module) > > I love the way python handles documentation. Its not invansive Yeah, and if you write your docstrings with reasonable care it works for your own modules, too! I lov

Re: HELP Printing with wxPython

2005-05-11 Thread Mike Meyer
James Carroll <[EMAIL PROTECTED]> writes: > If you are doing this just for yourself, and you know you have a > printer that will really print just the plain text when you send it > plain text (like a dot matrix printer from the early 90s) then you can > probably open the printer device and send it

Re: Python Documentation (should be better?)

2005-05-11 Thread Robert Kern
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Robert Kern <[EMAIL PROTECTED]> wrote: > >>I believe that docs.python.org was added mostly to aid Google searches. >>I *do* think that the Documentation link should go to docs.python.org. I >>believe there is a mailing list somewhere that discusse

Re: Importing modules

2005-05-11 Thread Mike Meyer
[EMAIL PROTECTED] writes: > A part the fact that I have not understood the "real" difference > between import and from ... import (or also from... import *), is it > possible to re-build the application in only one chunck? > This is only to better understand the application's structure, in order >

Re: Proxy Design Advice Needed

2005-05-11 Thread vincent wehren
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > 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

Re: Finding startup files

2005-05-11 Thread Mike Meyer
jeff elkins <[EMAIL PROTECTED]> writes: > 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

regarding php equivalent Mail::Factory Module

2005-05-11 Thread praba kar
Dear All, In Php we can send mail by Mail::Factory's send method. Here php using send method instead of using any smtp module like that I want to know that kind of python module Yahoo! India Matrimony: Find your lif

Re: pyvm -- faster python

2005-05-11 Thread Kay Schluehr
Paul Rubin wrote: > "Kay Schluehr" <[EMAIL PROTECTED]> writes: > > Delete the "standard" and You still obtain huge librarys for .Net, Java > > and Python. I also regret that Prothon starved in infancy but it might > > be exeggerated to demand that each language designer or one of his > > apostels

urllib download insanity

2005-05-11 Thread Timothy Smith
ok what i am seeing is impossible. i DELETED the file from my webserver, uploaded the new one. when my app logs in it checks the file, if it's changed it downloads it. the impossible part, is that on my pc is downloading the OLD file i've deleted! if i download it via IE, i get the new file. SO,

Re: Python Documentation (should be better?)

2005-05-11 Thread John Bokma
Ivan Van Laningham wrote: > Hi All-- > > John Bokma wrote: >> >> Ivan Van Laningham wrote: >> >> > Python docs are not as good as PHP docs. >> >> Oh my. I hope you are just making that up. PHP documentation is >> guesstimated on how PHP works on average. Add the online comments >> clutter and

Re: pyvm -- faster python

2005-05-11 Thread Bengt Richter
On 11 May 2005 19:48:42 -0700, Paul Rubin wrote: >Stelios Xanthakis <[EMAIL PROTECTED]> writes: >> I didn't know much about PyPy. It seems that pyvm is *exactly* what >> pypy needs to boost its performance. Does pypy has the vm in python >> as well? Does pypy have a c

<    1   2   3