Re: markov query

2006-03-14 Thread Erik Max Francis
kpp9c wrote: > I have noticed a couple markov implementations in python, but none > quite seem to do what i would like. Most seem to do an analysis of some > text and create a new text based on that... I think, (sorry i just > don't know terminology well) a markov table (or is it called a > transi

Re: Memory visualization

2006-03-14 Thread Raymond Hettinger
[bearophile] > During the execution of a Icon script there are ways to visualize the > memory: > http://www.cs.arizona.edu/icon/progvis/memmon/memmon.htm . . . > I'd like to know if for Python there is a similar program to > dynamically see the memory in a similar way. > If such tool doesn't exist

Re: PEP 8 example of 'Function and method arguments'

2006-03-14 Thread Duncan Booth
Terry Hancock wrote: > So far, the only time I've ever encountered this is with the > __new__ method, which, being a classmethod, needs "cls" > (which gets loaded with the *class* not the *instance*). > The __new__ method isn't actually a classmethod. In http://www.python.org/2.2.3/descrintro.h

Re: sizeof(struct timeval)

2006-03-14 Thread Nick Kew
Tony Houghton wrote: > I'm writing a python program which reads input device events so it needs > to know sizeof(struct timeval). By using the struct module I should be > able to work out sizeof(long) from python, but I can't think of a way to > measure non-fundamental types without including a lit

wxPython Q? floating window

2006-03-14 Thread mitsura
Hi, I have a question about wxPython. On Windows systems, you can point your mouse over most items on your desktop and a after a second or so, a small window will pop-up with extra info about the thing your pointing at (try e.g. move your mouse over the time in the right corner and a window will p

Re: trying to find repeated substrings with regular expression

2006-03-14 Thread Raymond Hettinger
[Robert Dodier] > I'm trying to find substrings that look like 'FOO blah blah blah' > in a string. For example give 'blah FOO blah1a blah1b FOO blah2 > FOO blah3a blah3b blah3b' I want to get three substrings, > 'FOO blah1a blah1b', 'FOO blah2', and 'FOO blah3a blah3b blah3b'. No need for regular

Re: list/classmethod problems

2006-03-14 Thread bruno at modulix
ahart wrote: > Diez, Scott, and Bruno, > > I thank you all for your help and suggestions. I wasn't aware that > default values were considered class (static) values. These are *not* 'default values'. Defining a name in the body of a class statement bind that name to the *class*. To bind a name to

Integer keys in shelve

2006-03-14 Thread josegomez
Hi! I want to use shelve to store lists which are indexed by an integer key. The keys are not concurrent or anything, they are just defined as integer values. However, shelve complains that I cannot have integer keys. Here's the error: >>> d[1] Traceback (most recent call last): File "", line 1,

Re: Integer keys in shelve

2006-03-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I want to use shelve to store lists which are indexed by an integer > key. The keys are not concurrent or anything, they are just defined as > integer values. However, shelve complains that I cannot have integer > keys. Here's the error: > >>> d[1] > Traceback (most rece

Re: Accessing overridden __builtin__s?

2006-03-14 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > I'm having a scoping problem. I have a module called SpecialFile, The convention is to use all_lowercase names for modules, and CamelCase for classes. > which defines: > > def open(fname, mode): > return SpecialFile(fname, mode) This shadows the builtin open() func

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Frank Millman
Sybren Stuvel wrote: > Frank Millman enlightened us with: > > If I understand correctly, a 'man-in-the-middle' attack would > > involve someone setting up a 'pseudo server', which gives the > > correct responses to the client's attempt to log in > > That's right. Usually it's done by proxying the

[ANN] NumPy 0.9.6 released

2006-03-14 Thread Travis Oliphant
This post is to announce the release of NumPy 0.9.6 which fixes some important bugs and has several speed improvments. NumPy is a multi-dimensional array-package for Python that allows rapid high-level array computing with Python. It is successor to both Numeric and Numarray. More informatio

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Paul Rubin
"Frank Millman" <[EMAIL PROTECTED]> writes: > I don't know how to check the certificates. None of the documentation I > have read spells out in detail how to do this. Lemme see if I can find you something--I'll put up another post if I do. > What about this idea? I am not looking for a state-of-t

Re: Very, Very Green Python User

2006-03-14 Thread jalanb
Scott David Daniels wrote: > [EMAIL PROTECTED] wrote: > > The one you get with Perl stinks on ice. More than > > anything else, I would like to have a powerful OO environment where I > > do not have to worry about the debugger sucking > Do watch your language on this newsgroup. Lots of peop

Re: Localized month names?

2006-03-14 Thread Sibylle Koczian
Benji York schrieb: > Jarek Zgoda wrote: > >> How do I get a list of localized month names for current locale? The >> first thing that came to my mind was an ugly hack: > > import locale locale.nl_langinfo(locale.MON_1) > 'January' > What did you leave out? I get Traceback (most rec

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Sybren Stuvel
Paul Rubin enlightened us with: > If you're paranoid, you can scrounge some $20 obsolete laptop from > ebay and dedicate it to use as a CA, never letting it touch the > internet (transfer files to and from it on floppy disc). caCert use a special box for this too. It has no network connection, and

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Sybren Stuvel
Frank Millman enlightened us with: > I don't know how to check the certificates. None of the > documentation I have read spells out in detail how to do this. Read the readme that comes with TLS Lite. You can require certificate checks, call certchain.validate(CAlist), and with my extension you can

Re: Is this possible in Python?

2006-03-14 Thread jalanb
You might like the version here: http://www.jorendorff.com/toys/out.html Especially the "need to know" presentation, which is cute -- Alan http://aivipi.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Why python doesn't use syntax like function(, , x) for default parameters?

2006-03-14 Thread Antoon Pardon
Op 2006-03-10, Terry Reedy schreef <[EMAIL PROTECTED]>: > > "Antoon Pardon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> but nobody seems to have >> a problem with range(n) where n suddenly is the second parameter and >> we use the default for the first. > > Actually, I conside

Re: Why python doesn't use syntax like function(, , x) for default parameters?

2006-03-14 Thread Antoon Pardon
Op 2006-03-10, Terry Reedy schreef <[EMAIL PROTECTED]>: > > "Antoon Pardon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> but nobody seems to have >> a problem with range(n) where n suddenly is the second parameter and >> we use the default for the first. > > Actually, I conside

Re: Why python doesn't use syntax like function(, , x) for default parameters?

2006-03-14 Thread Antoon Pardon
Op 2006-03-10, Diez B. Roggisch schreef <[EMAIL PROTECTED]>: >> Those default values are not 0 and , you may have >> only experience with situations where they behave as such but that >> is not the same. > > Well, it might be - but the conceptual behavior is (usually) the same. > >> If you need to

Re: sizeof(struct timeval)

2006-03-14 Thread Giovanni Bajo
Tony Houghton wrote: > I'm writing a python program which reads input device events so it > needs to know sizeof(struct timeval). By using the struct module I > should be able to work out sizeof(long) from python, but I can't > think of a way to measure non-fundamental types without including a >

Re: Is this possible in Python?

2006-03-14 Thread Fredrik Lundh
"jalanb" wrote: > You might like the version here: > http://www.jorendorff.com/toys/out.html which only works if 1) you're using a Python implementation that supports those attributes, 2) the source code is available, 3) the expression is written on a single line, and 4) you don't use confusing c

Re: Accessing overridden __builtin__s?

2006-03-14 Thread Steven D'Aprano
On Mon, 13 Mar 2006 21:28:06 -0800, garyjefferson123 wrote: > I'm having a scoping problem. I have a module called SpecialFile, > which defines: > > def open(fname, mode): > return SpecialFile(fname, mode) This is called "shadowing a built-in", and generally speaking it causes Bad Things To H

Re: Please, I Have A Question before I get started

2006-03-14 Thread Skipper
Well, thank you so much for taking the time to reply. I guess that about wraps up all my questions. You fucking putz On Mon, 13 Mar 2006 13:37:36 +0100, Sybren Stuvel <[EMAIL PROTECTED]> wrote: >Skipper enlightened us with: >> I can not believe that there isn't a GUI programing tool that w

Re: Please, I Have A Question before I get started

2006-03-14 Thread Skipper
Thanks to all (except one - of course) for your replys. I think you have more than answered my question and I appreciate your time. I suppose this is going to be more difficult than I imagined... but working at this is better then watching "Trading Spaces" with my wife - -heh... Thanks again Mi

Re: Q's: pythonD and range(1,12)

2006-03-14 Thread Steven D'Aprano
On Mon, 13 Mar 2006 17:24:31 -0800, Raymond Hettinger wrote: > John Savage wrote: >> Could >> someone please explain the rationale behind python designers' thinking >> in deciding the function "range(1,12)" should return the sequence 1 to >> 11 rather than the more intuitively-useful 1 to 12?? >

Re: Localized month names?

2006-03-14 Thread Peter Otten
Sibylle Koczian wrote: > Benji York schrieb: >> Jarek Zgoda wrote: >> >>> How do I get a list of localized month names for current locale? The >>> first thing that came to my mind was an ugly hack: >> >> > import locale > locale.nl_langinfo(locale.MON_1) >> 'January' >> > > What did y

Re: Accessing overridden __builtin__s?

2006-03-14 Thread Fredrik Lundh
Steven D'Aprano wrote: >> So, if I do: >> >> f = SpecialFile.open(name, mode) >> >> I get infinite recursion. > > I see you are already using an open method. So let me see if I have this > right: you have a function open, plus an open method? Why? SpecialFile is a module. please read the posts y

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Frank Millman
Paul Rubin wrote: > "Frank Millman" <[EMAIL PROTECTED]> writes: > > I don't know how to check the certificates. None of the documentation I > > have read spells out in detail how to do this. > > Lemme see if I can find you something--I'll put up another post if I do. > Thanks > Didn't you say wi

andmap and ormap

2006-03-14 Thread wkehowski
Hello, Does python have andmap and ormap: andmap((lambda t: boolean(t)),L) gives True if boolean(t) is True for all t in L and False otherwise? And ormap((lambda t: boolean(t)),L) gives True if boolean(t) is True for some t in L and False otherwise? One can use a list comprehension like [x fo

Re: andmap and ormap

2006-03-14 Thread Felipe Almeida Lessa
Em Ter, 2006-03-14 às 04:23 -0800, [EMAIL PROTECTED] escreveu: > def andmap(b,L): > if False in map(b,L): return False > else: return True > > def ormap(b,L): > if True in map(b,L): return True > else: return False > > Is this good enough? The problem is that it will evaluate all possibi

Re: andmap and ormap

2006-03-14 Thread Dan Sommers
On 14 Mar 2006 04:23:55 -0800, [EMAIL PROTECTED] wrote: > Hello, > Does python have andmap and ormap: > andmap((lambda t: boolean(t)),L) > gives True if boolean(t) is True for all t in L and False otherwise? > And > ormap((lambda t: boolean(t)),L) > gives True if boolean(t) is True for some t

Re: andmap and ormap

2006-03-14 Thread Diez B. Roggisch
> Does python have andmap and ormap: > > andmap((lambda t: boolean(t)),L) > > gives True if boolean(t) is True for all t in L and False otherwise? > And > > ormap((lambda t: boolean(t)),L) > > gives True if boolean(t) is True for some t in L and False otherwise? > One can use a list comprehensi

Re: New python.org website

2006-03-14 Thread Roel Schroeven
robin schreef: > "Michael Tobis" <[EMAIL PROTECTED]> wrote: > >> While the new one is much better than the old website, the logo strikes >> me as awful. > As far as the layout goes, I still find it too busy. Specifically > there are too many fonts on the one page. But I have already made that > po

Re: andmap and ormap

2006-03-14 Thread Fredrik Lundh
Felipe Almeida Lessa wrote: > The problem is that it will evaluate all possibilities needlessly. Try > (not tested and 2.4-only): footnote: if you have a recent Python 2.5 build, you can make them even shorter: >>> help(any) any(...) any(iterable) -> bool Return True if bool(x) is True f

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread alainpoint
jalanb wrote: > You might like the version here: > http://www.jorendorff.com/toys/out.html > > Especially the "need to know" presentation, which is cute > > -- > Alan > http://aivipi.blogspot.com Thank you for the tip. Meanwhile, I found a shorter solution to my problem: def magic(arg): i

Re: anonymous memory mapping

2006-03-14 Thread Fabiano Sidler
2006/3/14, Peter Hansen <[EMAIL PROTECTED]>: > (As for me, I have no idea what the question is about, so this is the > most help I can give.) Ok, sorry! I wanted to do this: --- snip --- from mmap import mmap, MAP_ANONYMOUS mm = mmap(-1, 1024, MAP_ANONYMOUS) --- snap --- But I got an Environment

Re: andmap and ormap

2006-03-14 Thread Joel Hedlund
> footnote: if you have a recent Python 2.5 build, Who would have that? Is it a good idea to use a pre-alpha python version? Or any unrealeased python version for that matter? I was under the impression that the recommended way to go for meager developers in python like myself is to stick with

Re: andmap and ormap

2006-03-14 Thread Peter Otten
[EMAIL PROTECTED] wrote: > def ormap(b,L): > if True in map(b,L): return True > else: return False > > Is this good enough? No, because - (as Felipe observed) it doesn't shortcut, i. e. it always evaluates b(item) for all items in L. - it creates a temporary list - if truthvalue: return T

Re: andmap and ormap

2006-03-14 Thread Georg Brandl
Joel Hedlund wrote: >> footnote: if you have a recent Python 2.5 build, > > Who would have that? Is it a good idea to use a pre-alpha python version? > Or any unrealeased python version for that matter? I was under the impression > that > the recommended way to go for meager developers in python

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Alan Franzoni
Paul Boddie on comp.lang.python said: > Now, since the commercial licence is "per developer", some cunning > outfit could claim that only one developer wrote their product (rather > than one hundred developers, say), but this would be a fairly big > breach of trust (although nothing unusual in th

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Michael Ekstrand
Disclaimer: I am not an expert. Take this with a grain of salt... but I'll throw it out for what it's worth. On 14 Mar 2006 04:12:38 -0800 "Frank Millman" <[EMAIL PROTECTED]> wrote: > > > Using openssl, generate a key for the server, generate a > > > self-signed certificate, and extract the sha1 f

Re: wxPython Q? floating window

2006-03-14 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi, > > I have a question about wxPython. > On Windows systems, you can point your mouse over most items on your > desktop and a after a second or so, a small window will pop-up with > extra info about the thing your pointing at (try e.g. move your mouse > over the time

Re: andmap and ormap

2006-03-14 Thread Georg Brandl
Peter Otten wrote: > Python 2.5 will feature similar functions any() and all() which seem to have > a fixed predicate == bool, though. You cannot write all(predicate, list) but all(predicate(x) for x in list) Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: andmap and ormap

2006-03-14 Thread Peter Otten
Peter Otten wrote: > def ormap(predicate, items): > return True in (predicate(items) for item in items) should be def ormap(predicate, items): return True in (predicate(item) for item in items) Hmmpf. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Localized month names?

2006-03-14 Thread Kent Johnson
Peter Otten wrote: > Sibylle Koczian wrote: >>What did you leave out? > > > Nothing, most likely. > > >>I get >> >>Traceback (most recent call last): >> File "", line 1, in -toplevel- >>locale.nl_langinfo(locale.MON_1) >>AttributeError: 'module' object has no attribute 'nl_langinfo' >> >

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Antoon Pardon
Op 2006-03-13, Paul Boddie schreef <[EMAIL PROTECTED]>: > Paul Rubin wrote: >> "Paul Boddie" <[EMAIL PROTECTED]> writes: >> > What people don't usually understand (or rather complain about loudly) >> > is that Trolltech can refuse to license Qt to you under the commercial >> > licence, as is their

Re: Accessing overridden __builtin__s?

2006-03-14 Thread bruno at modulix
Steven D'Aprano wrote: > On Mon, 13 Mar 2006 21:28:06 -0800, garyjefferson123 wrote: > > >>I'm having a scoping problem. I have a module called SpecialFile, >>which defines: >> (snip code) >>The problem, if it isn't obvioius, is that the open() call in __init__ >>no longer refers to the builtin

Re: Accessing overridden __builtin__s?

2006-03-14 Thread Fredrik Lundh
"bruno at modulix" wrote: > There again, you may want to read more carefully: SpecialFile is *also* > the module's name - which, I agree, is not pythonic. this approach was recommended by the official style until very recently. http://www.python.org/doc/essays/styleguide.html Modules th

Trace dynamically compiled code?

2006-03-14 Thread Ed Leafe
Hi, Thanks to the help of many on this list, I've been able to take code that is created by the user in my app and add it to an object as an instance method. The technique used is roughly: nm = "myMethod" code = """def myMethod(self): print "Line 1" print "My Value is %s" % se

Re: andmap and ormap

2006-03-14 Thread wkehowski
The following works perfectly: import operator def andmap(b,L): return reduce(operator.and_, [b(x) for x in L]) def ormap(b,L): return reduce(operator.or_, [b(x) for x in L]) Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Very, Very Green Python User

2006-03-14 Thread bruno at modulix
Scott David Daniels wrote: > [EMAIL PROTECTED] wrote: > >> ... Is the Python debugger fairly stable? > > Yes, but it is not massively featured. The "Pythonic" way is to > rarely use a debugger (test first and straightforward code should > lead to "shallow" bugs). Often for most of us judiciousl

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Paul Boddie
Alan Franzoni wrote: > > Just one thing I don't understand: if you're developing all your software > inside your company, how would they know if you already coded it or you > still have to? I have no idea. But as I said elsewhere, I'm not in any sense a party to the process that would attempt to d

Re: Trace dynamically compiled code?

2006-03-14 Thread Thomas Heller
Ed Leafe wrote: > Hi, > > Thanks to the help of many on this list, I've been able to take code > that is created by the user in my app and add it to an object as an > instance method. The technique used is roughly: > > nm = "myMethod" > code = """def myMethod(self): > print "Line 1"

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Chris Mellon
On 14 Mar 2006 06:10:19 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: > Alan Franzoni wrote: > > > > Just one thing I don't understand: if you're developing all your software > > inside your company, how would they know if you already coded it or you > > still have to? > > I have no idea. But as I

Re: Customizing character set conversions with an error handler

2006-03-14 Thread Jukka Aho
Serge Orlov wrote: >> # So the question becomes: how can I make this work >> # in a graceful manner? > change the return statement with this code: > > return (substitution.encode(error.encoding,"practical").decode( >error.encoding), error.start+1) Thanks, that was a quite neat re

Writing 'C' structures out in cPickle format?

2006-03-14 Thread Chance Ginger
I have a problem that I am trying to solve. I have two different systems - one written in C and another in Python. I would like the two to exchange some information. On the Python side I decided to use cPickle. On the C side I would write a library that can read the cPickle and generate the corre

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread A.M. Kuchling
On Sun, 12 Mar 2006 10:25:19 +0100, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > and while you're at it, change "python-dev" to "developers" and > "psf" to "foundation" (or use a title on that link). I've changed the PSF link, but am not sure what to do about the python-dev link. As others

Re: Writing 'C' structures out in cPickle format?

2006-03-14 Thread Diez B. Roggisch
> On the Python side I decided to use cPickle. On the C side I would > write a library that can read the cPickle and generate the correct > C structure (the data is, more or less, self-describing) and visa > versa. > > I was wondering if anyone has done something like this before > and if so can t

Re: recycling internationalized garbage

2006-03-14 Thread aaronwmail-usenet
Regarding cleaning of mixed string encodings in the discography search engine http://www.xfeedme.com/discs/discography.html Following 's suggestion I came up with this: utf8enc = codecs.getencoder("utf8") utf8dec = codecs.getdecoder("utf8") iso88591dec = codecs.getdecoder("iso-8859-1") def chec

EVT_ICONIZE lost focus

2006-03-14 Thread lux
Hi, I have a wxFrame with some TextCtrl, if I minimize the Frame when normalize it lost the Focus and I must click to give the focus to textCtrl again How can resolve? Thank's, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Please, I Have A Question before I get started

2006-03-14 Thread Terry Hancock
On Mon, 13 Mar 2006 02:19:39 GMT Skipper <[EMAIL PROTECTED]> wrote: > Basically the program will blank the screen and call up > (for example) 6 pictures. A flashing border with travel > from picture to picture. When the computer senses a mouse > click it will clear the screen and present a second

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Robert Boyd
On 3/14/06, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > On Sun, 12 Mar 2006 10:25:19 +0100, > Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > and while you're at it, change "python-dev" to "developers" and > > "psf" to "foundation" (or use a title on that link). > > I've changed the PSF link, b

calling another python file within python

2006-03-14 Thread Kevin
i have a python file called pyq which outputs stock quotes, currently i also have a html file that takes stock ticker inputs, i would like to bridge the two by building another program that takes the html inputs and uses them to call the pyq stock ticker program and then output them into a text

Re: [Numpy-discussion] [ANN] NumPy 0.9.6 released

2006-03-14 Thread Colin J. Williams
Travis Oliphant wrote: > This post is to announce the release of NumPy 0.9.6 which fixes some > important bugs and has several speed improvments. > > NumPy is a multi-dimensional array-package for Python that allows > rapid high-level array computing with Python. It is successor to both > Nume

Tree and Graph structures in Python.

2006-03-14 Thread Ant
Hi all, Are there any tree or graph modules available for python? Cheers, -- Ant... -- http://mail.python.org/mailman/listinfo/python-list

Re: Tree and Graph structures in Python.

2006-03-14 Thread Lonnie Princehouse
Google for "boost graph python" -- http://mail.python.org/mailman/listinfo/python-list

Re: calling another python file within python

2006-03-14 Thread Rene Pijlman
Kevin: >#!/usr/bin/python > >import os >import urllib >os.system("python pyq.py ibm > text1.txt") Check the return value of os.system. >note: currently the text1.txt outputted is just blank, however if i run >the command normally as 'python pyq.py ibm' in the command line, it >works correctly a

Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Just tried Ruby over the past two days. I won't bore you with the reasons I didn't like it, however one thing really struck me about it that I think we (the Python community) can learn from. Ruby has ... an issue with docs. That is to say, there are almost none. Well, actually, there are some. For

Re: Please, I Have A Question before I get started

2006-03-14 Thread Steve Holden
Skipper wrote: > Well, thank you so much for taking the time to reply. I guess that > about wraps up all my questions. > > > You fucking putz > I'd appreciate it if you;d keep that sort of response to yourself. While I don't mind you *thinking* it, it isn't the kind of behaviour we want to e

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Diez B. Roggisch
> Please note, I certainly don't want to step on the doc-sig folks' > toes here -- but rather to generate more interest in what they're > doing, and to help make Python be even better in an area that I > see it struggling. > > What do you folks think? > > Yes, I'm trying to make time to look at t

How to create a Visual SourceSafe plugin in Python

2006-03-14 Thread looping
Hi, I try to create a COM object with win32com to track events in Visual SourceSafe. I tried to modify ExcelAddin.py demo but with no luck. I've now a Delphi DLL that make that job so I know it's possible. If someone have an exemple, please help me. Best regards. Kadeko -- http://mail.python.or

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Thanks Diez! Epydoc looks great. Can we use epytext to generate output suitable for a manpage? Do you prefer epytext or reST? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Diez B. Roggisch
> Thanks Diez! Epydoc looks great. > > Can we use epytext to generate output suitable for a manpage? Don't know, never tried that. > Do you prefer epytext or reST? So far epytext suited my needs. Diez -- http://mail.python.org/mailman/listinfo/python-list

Python Debugger / IDE ??

2006-03-14 Thread krypto . wizard
Is there any editor or IDE in Python (either Windows or Linux) which has very good debugging facilites like MS VisualStudio has or something like that. I like SPE but couldn't easily use winPDP. I need tips to debug my code easily. Every help is greatly appreciated. Thanks -- http://mail.pytho

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
> So far epytext suited my needs. I like it too. Ok, now I'm starting to get excited. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Debugger / IDE ??

2006-03-14 Thread olsongt
[EMAIL PROTECTED] wrote: > Is there any editor or IDE in Python (either Windows or Linux) which > has very good debugging facilites like MS VisualStudio has or something > like that. > > I like SPE but couldn't easily use winPDP. I need tips to debug my code > easily. > > Every help is greatly app

Re: recycling internationalized garbage

2006-03-14 Thread Ross Ridge
[EMAIL PROTECTED] wrote: > try: > (uni, dummy) = utf8dec(s) > except: > (uni, dummy) = iso88591dec(s, 'ignore') Is there really any point in even trying to decode with UTF-8? You might as well just assume ISO 8859-1. Ross Ridge -- http://mail.pyth

Re: Python Debugger / IDE ??

2006-03-14 Thread Rene Pijlman
[EMAIL PROTECTED]: >Is there any editor or IDE in Python (either Windows or Linux) which >has very good debugging facilites like MS VisualStudio has or something >like that. Here's a recent thread about IDEs: http://groups.google.nl/group/comp.lang.python/browse_frm/thread/fd9604e225252ad4 -- Re

Re: Python Debugger / IDE ??

2006-03-14 Thread [EMAIL PROTECTED]
>Is there any editor or IDE in Python (either Windows or Linux) which >has very good debugging facilites like MS VisualStudio has or something >like that. I've been using Eclipse with PyDev and am very happy with it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trace dynamically compiled code?

2006-03-14 Thread Ziga Seilnacht
Ed Leafe wrote: > Hi, > > Thanks to the help of many on this list, I've been able to take code > that is created by the user in my app and add it to an object as an > instance method. The technique used is roughly: Just some notes about your code: > nm = "myMethod" > code = """def myMethod(

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Colin J. Williams
Diez B. Roggisch wrote: >>Thanks Diez! Epydoc looks great. >> >>Can we use epytext to generate output suitable for a manpage? > > > Don't know, never tried that. > The answer appear to be No, but there is a man.py file which indicates that some work was done on it. Below is the epydoc command

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > jalanb wrote: > > You might like the version here: > > http://www.jorendorff.com/toys/out.html > > > > Especially the "need to know" presentation, which is cute > > > > -- > > Alan > > http://aivipi.blogspot.com > > Thank you for the tip. > Meanwhile, I found a shorter s

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Ok. I'm going to try and make something happen. Give me a day or so. :) ---John -- http://mail.python.org/mailman/listinfo/python-list

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > IMO, Perl has docs nailed. I learned Perl before coming > to Python, and I can tell you that their docs kick butt. > I believe the reason why is (besides Larry's excellent > and entertaining writing) because of perldoc. Here's how > it works: they

Re: Python Debugger / IDE ??

2006-03-14 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > Is there any editor or IDE in Python (either Windows or Linux) which > has very good debugging facilites like MS VisualStudio has or something > like that. > > I like SPE but couldn't easily use winPDP. I need tips to debug my code > easily. > > Every help is greatly ap

Re: convert hex to decimal

2006-03-14 Thread challman
Oh, that should have been whole number; not while. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tree and Graph structures in Python.

2006-03-14 Thread Istvan Albert
See this: https://networkx.lanl.gov/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Tree and Graph structures in Python.

2006-03-14 Thread bearophileHUGS
http://www.osl.iu.edu/~dgregor/bgl-python/ http://sourceforge.net/projects/pygraphlib/ http://sourceforge.net/projects/pynetwork/ https://networkx.lanl.gov/ http://starship.python.net/crew/aaron_watters/kjbuckets/ http://www.python.org/doc/essays/graphs.html http://yapgvb.sourceforge.net/ http://dk

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Terry Hancock
On 14 Mar 2006 09:25:07 -0800 [EMAIL PROTECTED] wrote: > Do you prefer epytext or reST? I personally prefer epytext primarily because it has support for greek letters and math symbols. That could be very useful in documenting certain kinds of software. OTOH, I haven't had much occasion to use that

Little Help with Exceptions and ConfigParser

2006-03-14 Thread mwt
Hi - I'm having a little trouble using exceptions properly. I currently have an initialization function on a little app that looks like this: def __init__(self, config_file): self.fahdata = fahdata.FAHData() self.INI = ConfigParser.ConfigParser() if os.path.exists(config_fi

Re: Please, I Have A Question before I get started

2006-03-14 Thread paron
Well, Nicholas Chase just posted an OpenLaszlo tutorial/app that shows how OpenLaszlo handles sounds. Try http://www-128.ibm.com/developerworks/edu/os-dw-os-php-openlaszlo1-i.html You have to register, but it's free, and they don't bug you. It's PHP driven, but that part's easily ported to Python.

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread aaronwmail-usenet
I agree that more progress is needed on the Python documentation front. For example if you look at the "codecs" module documentation there is no hint of what a codec is anywhere that I can see. Also the distinction between an "encoder" and a "decoder" is not explained. Even though I've used it man

Re: calling another python file within python

2006-03-14 Thread Ben C
On 2006-03-14, Kevin <[EMAIL PROTECTED]> wrote: > i have a python file called pyq which outputs stock quotes, currently i > also have a html file that takes stock ticker inputs, i would like to > bridge the two by building another program that takes the html inputs > and uses them to call the py

Re: andmap and ormap

2006-03-14 Thread Terry Reedy
"Joel Hedlund" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> footnote: if you have a recent Python 2.5 build, > > Who would have that? Is it a good idea to use a pre-alpha python version? The pre-public release version compiles as 'alpha0'. I have the impression the current al

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Well, we've already got a wiki, of course: http://wiki.python.org/moin/ Regarding the docs for the module you're asking about, the way it's supposed to work is (I think), you're supposed to checkout the Python source, add your docs to the docstrings of that module, then either commit your changes

Re: Python Debugger / IDE ??

2006-03-14 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > Is there any editor or IDE in Python (either Windows or Linux) which > has very good debugging facilites like MS VisualStudio has or something > like that. > > I like SPE but couldn't easily use winPDP. I need tips to debug my code > easily. pythonic "debugging" in thre

Re: Python Debugger / IDE ??

2006-03-14 Thread krypto . wizard
My code has got big and it is an iterative program. I use print statements but I thought I could get something handy it would be useful to me. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Steven Bethard
A.M. Kuchling wrote: > On Sun, 12 Mar 2006 10:25:19 +0100, > Fredrik Lundh <[EMAIL PROTECTED]> wrote: >> and while you're at it, change "python-dev" to "developers" and >> "psf" to "foundation" (or use a title on that link). > > I've changed the PSF link, but am not sure what to do about th

  1   2   >