Re: Why are so many built-in types inheritable?

2006-03-30 Thread Georg Brandl
Antoon Pardon wrote: > Op 2006-03-30, Michele Simionato schreef <[EMAIL PROTECTED]>: >> I cannot find the reference now, but I remember Tim Peters saying some >> time ago that the only >> reason why FunctionType is not subclassable is that nobody bothered to >> write a patch for it. > > The questi

Re: tkinter question

2006-03-30 Thread Eric Brunel
On 30 Mar 2006 15:11:19 -0800, <[EMAIL PROTECTED]> wrote: >> If you just create >> a Toplevel and populate it with widgets, it will just display once the >> control is returned to the Tkinter mainloop and no user input will be >> needed. > > Thanks for explaining that. I borrowed the "after" method

Re: how to comment lot of lines in python

2006-03-30 Thread Laurent Rahuel
[EMAIL PROTECTED] wrote: > Like in C we comment like > /* > Bunch of lines of code > */ > > Should we use docstring """ """ > > Or there is something else too ?? > > Every help is appreciated. > > Thanks Hi, Maybe this sounds simplier than regexp and so, just use the """ marker like this : "

Re: Best IDE for Python?

2006-03-30 Thread Fredrik Lundh
Dennis Lee Bieber wrote: > > I want to know which is the best IDE for python.Please if > > possible mention the features of the IDE. > > The best IDE is the one that YOU can be most productive in. What /I/ > find useful may not be of interest to /you/. nonsense. vim is the best tool for e

Re: Best IDE for Python?

2006-03-30 Thread Robert Kern
Fredrik Lundh wrote: > Dennis Lee Bieber wrote: > >>> I want to know which is the best IDE for python.Please if >>>possible mention the features of the IDE. >> >>The best IDE is the one that YOU can be most productive in. What /I/ >>find useful may not be of interest to /you/. > > nonsense.

Re: Find similar images using python

2006-03-30 Thread Roel Schroeven
John J. Lee schreef: > Richie Hindle <[EMAIL PROTECTED]> writes: > >> [Thomas] >>> How can I use python to find images that looks quite similar? >> Have you looked at http://www.imgseek.net/ ? It's an Open Source Python >> photo >> collection manager that does exactly what you're asking for. >

Re: Low Pass Hamming filter design

2006-03-30 Thread Robert Kern
LabWINC wrote: > Is there someone that can help me? On this list, maybe not. But the scipy list is [EMAIL PROTECTED] . http://www.scipy.net/mailman/listinfo/scipy-user -- Robert Kern [EMAIL PROTECTED] "I have come to believe that the whole world is an enigma, a harmless enigma that is made te

Re: Best IDE for Python?

2006-03-30 Thread Fredrik Lundh
Dennis Lee Bieber wrote: > > I want to know which is the best IDE for python.Please if > > possible mention the features of the IDE. > > The best IDE is the one that YOU can be most productive in. What /I/ > find useful may not be of interest to /you/. nonsense. emacs is the best tool for

Re: C++ and Python

2006-03-30 Thread marc . wyburn
sorry accidentally hit post. has nyone tried this before? Thanks, Marc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Low Pass Hamming filter design

2006-03-30 Thread LabWINC
Is there someone that can help me? please Vincenzo -- http://mail.python.org/mailman/listinfo/python-list

Re: Why are so many built-in types inheritable?

2006-03-30 Thread Antoon Pardon
Op 2006-03-30, Michele Simionato schreef <[EMAIL PROTECTED]>: > I cannot find the reference now, but I remember Tim Peters saying some > time ago that the only > reason why FunctionType is not subclassable is that nobody bothered to > write a patch for it. The question then is, why is there a need

[ANN] Firedrop 0.2.1

2006-03-30 Thread Fuzzyman
Firedrop 0.2.1 has just been released. http://www.voidspace.org.uk/python/firedrop2/ A bugfix release. * Removed mistaken dependency on `pythonutils `_ * Fixed bug where cancelling the new site dialog would still report that the site was

C++ and Python

2006-03-30 Thread marc . wyburn
I've been learning to write VST plugins in C++ and would like to switch back to Python. The first step of writing the plugin is to import the C++ header files from the Steinberg SDK. How can I do this in Python. I've tried looking at SWIG but didn't really understand what it was trying to do.

Re: proposed proposal: set.values()

2006-03-30 Thread Fredrik Lundh
Paul Rubin wrote: > > 1. It is pure duplication that *adds* keystrokes. > > Nobody says you shouldn't use list(s) if you know you're dealing with > a set. The idea of s.values() is so you can duck-type between dicts > and sets. if y is a dict, "x in y" looks for a matching key, not for a matchin

Re: logging producing redundant entries

2006-03-30 Thread Peter Otten
Jed Parsons wrote: > I'm using the logging module for the first time. I'm using it from > within Zope Extensions. > > My problem is that, for every event logged, the logger is producing > multiple identical entries with the timestamp the same down to the > millisecond. > > Is this something I'm

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-03-30 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > In the time you've spent posting about this, you or someone > else with svn access to the docs, could have simply gone > and made the change. Admittedly most changes would > require more process but there are many like this just require > someone to DO IT. Give me svn

Re: any() and all() on empty list?

2006-03-30 Thread Fredrik Lundh
Alex Martelli wrote: > > >>>all(flying elephants which are not pink) => true > > >>> > > >>>So, these flying elephants -- are they pink or not? > > >> > > >> No, you ask two different sets whether they are true. > > > > > > No, there is only one empty set. > > > > who said anything about empty set

Re: any() and all() on empty list?

2006-03-30 Thread Ron Adam
Carl Banks wrote: > In Python, yes and no are the only possible answers. Probably the only > analogous thing you could do in Python would be for all() to raise > ValueError when passed an empty sequence. There is also 'None' which serves a similar purpose of indicating an invalid value when pas

Re: PIL ImageDraw line not long enough

2006-03-30 Thread Fredrik Lundh
Bob Greschke wrote: > I have to extend the vertical line to y+8, instead of y+7 to get the line > segment to be drawn long enough. This is on Linux, Solaris, 2.x versions of > Python, 1.1.5 version of PIL, and on Windows with the latest of everything. > Am I missing a setting somewhere? I recent

Majordomo results: My photo

2006-03-30 Thread majordomo-owner
Ignoring part of type application/octet-stream. -- http://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread Caleb Hattingh
John, Thank you. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple py script to calc folder sizes

2006-03-30 Thread Caleb Hattingh
Ben, Thank you. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: How to debug python code?

2006-03-30 Thread ravi . annaswamy
Here is an outstandingly well written article, with examples, from Stephen Ferg: http://www.ferg.org/papers/debugging_in_python.html Ravi -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python?

2006-03-30 Thread Ravi Teja
This topic has come up a few dozen times at the least. Please use google to search for the threads. People have their preferences. The best way to choose is to try several by yourself. Most of them are free. http://wiki.python.org/moin/IntegratedDevelopmentEnvironments -- http://mail.python.org

<%><%><%><%>HOW TO BE FUNNY!<%><%><%><%>

2006-03-30 Thread Expert Humor
You too can learn to be funny in just 7 days flat: http://www.ExpertHumor.com/HowToBeFunny.htm *** Free account sponsored by SecureIX.com *** *** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: any() and all() on empty list?

2006-03-30 Thread Alex Martelli
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Marcin Ciura wrote: > > >>>all(flying elephants which are not pink) => true > >>> > >>>So, these flying elephants -- are they pink or not? > >> > >> No, you ask two different sets whether they are true. > > > > No, there is only one empty set. > > who s

Best IDE for Python?

2006-03-30 Thread sushant . sirsikar
hi, I want to know which is the best IDE for python.Please if possible mention the features of the IDE. Thank You. Sushant -- http://mail.python.org/mailman/listinfo/python-list

Re: Connecting to gnuplot with Popen?

2006-03-30 Thread Markus Weihs
> I want to control gnuplot with a python program. Hi Anton, here is a little snippet using os.popen: import os gp = os.popen('gnuplot -persist', 'w') print >> gp, "set yrange [-300:300]" for n in range(300): print >> gp, "plot %i*cos(x)+%i*log(x+10)" % (n,150-n) Rega

>@>@>@>@>GET MORE CHICKS............LEARN GUITAR.............

2006-03-30 Thread Expert Humor
Chicks dig guitar players. So get more chicks! Learn how to play guitar! http://www.ExpertHumor.com/LearnGuitar.htm *** Free account sponsored by SecureIX.com *** *** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com *** -- http://mail.python.org/mailma

How to debug python code?

2006-03-30 Thread sushant . sirsikar
hi, I am new to Python programming.I am not getting exactly pdb.Can anyone tell me effective way to debug python code? Please give me any example. Looking for responce. Thank You. Sushant -- http://mail.python.org/mailman/listinfo/python-list

Re: How to determine COM objects/functions

2006-03-30 Thread Gregor Horvath
Servus, Scott Brown schrieb: > Say I'm operating with win32com.client and I am polling a certain > application...Internet Explorer perhaps. Is there a way to find out all > available objects and associated functions? Using dir() on the COM In PythonWin under Tools Menu there is a COM Browser.

Amnesty for illegal immigrants will not happen this time.....................

2006-03-30 Thread Expert Humor
Our politicians lead the league in all talk, no action. Is blowing us some sunshine good enough? Read what The Expert thinks: http://www.ExpertHumor.com/ *** Free account sponsored by SecureIX.com *** *** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***

Re: logging producing redundant entries

2006-03-30 Thread alex23
Jed Parsons wrote: > My problem is that, for every event logged, the logger is producing > multiple identical entries with the timestamp the same down to the > millisecond. > import logging > # basicConfig for python 2.3 > logging.basicConfig() [...] > _logger.addHandler(_handl

Will illegal immigrants get deported?.........Of course not.....................

2006-03-30 Thread Expert Humor
Our politicians just wanted to blow us some sunshine. Get the details from The Expert: http://www.ExpertHumor.com/ *** Free account sponsored by SecureIX.com *** *** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com *** -- http://mail.python.org/mailman/list

Re: Another proposed proposal: operator.bool_and / bool_or

2006-03-30 Thread Klaas
>def any(seq): return reduce(bool_or, seq, False) > def all(seq): return reduce(bool_and, seq, True) Any other use cases? These will be built-in in 2.5 -Mike -- http://mail.python.org/mailman/listinfo/python-list

Another proposed proposal: operator.bool_and / bool_or

2006-03-30 Thread Paul Rubin
The suggestion is to add boolean and/or functions to the operator module, useful with "reduce". For some reason I thought these were already present, but they're not (were they removed?). There are already and_ and or_, but these are bitwise functions, not boolean operations. bool_and and bool_o

Illegal Immigration, the Non-Issue of the Week??????????????

2006-03-30 Thread Expert Humor
The way our politicians rushed to talk about illegal immigration this week, maybe they thought it came with a free lunch. They won't do anything about it, but it will get them some money. The Expert provides the details at: http://www.ExpertHumor.com/ *** Free account sponsored by SecureIX

How to determine COM objects/functions

2006-03-30 Thread Scott Brown
Hi, I'm new to this list. I have looked around the archives for this question but haven't seen an answer for it yet (though there are a lot of messages to sift through). Say I'm operating with win32com.client and I am polling a certain application...Internet Explorer perhaps. Is there a way

Re: does python could support sequence of short or int?

2006-03-30 Thread momobear
thanks for help. formerly I only know to use the struct like bellow: >>> unpack('hhl', '\x00\x01\x00\x02\x00\x00\x00\x03') Great, python can work like this: >>> l = list(struct.unpack('h'*(len(s)/2), s)) I will try to use the numarray also >>>there are some good exensions for Python, >>>numarray an

Re: proposed proposal: set.values()

2006-03-30 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > 1. It is pure duplication that *adds* keystrokes. Nobody says you shouldn't use list(s) if you know you're dealing with a set. The idea of s.values() is so you can duck-type between dicts and sets. > 2. It copies the wrong aspect of dict. A set is lik

Pylint-like source code reformatter

2006-03-30 Thread Brian L. Troutwine
I've recently developed a need for a python source code re-formatter, ideally conforming to the sort of style that pylint enforces. I don't know of any, and my googling wasn't very productive. Does anyone know of anything? Stand-alone or vim based both work for me, though stand-alone would be prefe

Re: urllib2 through basic auth'ed proxy

2006-03-30 Thread Alejandro Dubrovsky
John J. Lee wrote: > FWIW, at a glance, Python 2.3.4 has neither of the bugs I mentioned, > but the code I posted seems to work with 2.3.4. I'm not particularly > interested in what's wrong with 2.3.4's version or your usage of it > (probably both), since bugfix releases for 2.3 are no longer > h

Credit card API Sol with python interface

2006-03-30 Thread Sakcee
Hi does anybody know of any credit card merchant slution with python API. we used to use cybercash long time ago, but are willing to switch to something good and not pricy. we want to accept credit cards and process them. something with python wrapper will be great , as I would not have to build

Re: Tablelist 4.3

2006-03-30 Thread ezd
Arne Meissner wrote: > Hello everybody! > > I have downloaded the Tablelist 4.3 from http://www.nemethi.de/. > > Now I want to install it on my system Win XP. > > From the distribution I have got the following information: > " > On Windows, use WinZip or some other program capable of unpacking the

Re: Newbie: splitting dictionary definition across two .py files

2006-03-30 Thread Ben Finney
[EMAIL PROTECTED] writes: > I'm fairly new to python. I like to define a big dictionary in two > files and use it my main file, build.py > > I want the definition to go into build_cfg.py and build_cfg_static.py. That sounds like a very confusing architecture, and smells very much like some kind o

Re: Newbie: splitting dictionary definition across two .py files

2006-03-30 Thread Ben Cartwright
[EMAIL PROTECTED] wrote: > I like to define a big dictionary in two > files and use it my main file, build.py > > I want the definition to go into build_cfg.py and build_cfg_static.py. > > build_cfg_static.py: > target_db = {} > target_db['foo'] = 'bar' > > build_cfg.py > target_db['xyz'] = 'abc' >

Re: any() and all() on empty list?

2006-03-30 Thread Carl Banks
Steven D'Aprano wrote: > On Thu, 30 Mar 2006 11:28:54 -0800, Paul Rubin wrote: > > > Steven D'Aprano <[EMAIL PROTECTED]> writes: > >> > No, all(seq) is true if you can't point to a specific element in seq > >> > that's false. > >> > >> No, all(seq) is true if every element in seq is true. Surely th

Re: Identifying filled circles in a scanned image

2006-03-30 Thread Claudio Grondi
Douglas Douglas wrote: > First of all. Thanks Claudio and nikie for your fast answers. > > What I want to do is process the forms automatically. Each circle match a > letter (like in a quiz). So if the user select option A in a row, he fills the > first circle. If he select option C in the next ro

Newbie: splitting dictionary definition across two .py files

2006-03-30 Thread kar1107
Hi, I'm fairly new to python. I like to define a big dictionary in two files and use it my main file, build.py I want the definition to go into build_cfg.py and build_cfg_static.py. build_cfg_static.py: target_db = {} target_db['foo'] = 'bar' build_cfg.py target_db['xyz'] = 'abc' In build.py, I

logging producing redundant entries

2006-03-30 Thread Jed Parsons
Hi, I'm using the logging module for the first time. I'm using it from within Zope Extensions. My problem is that, for every event logged, the logger is producing multiple identical entries with the timestamp the same down to the millisecond. Is this something I'm doing wrong? Log snippet:

Re: Find similar images using python

2006-03-30 Thread John J. Lee
Richie Hindle <[EMAIL PROTECTED]> writes: > [Thomas] > > How can I use python to find images that looks quite similar? > > Have you looked at http://www.imgseek.net/ ? It's an Open Source Python photo > collection manager that does exactly what you're asking for. Maybe... I don't recall if it h

Re: embed notepad into a frame widget

2006-03-30 Thread Matt
Diez B. Roggisch wrote: > You are pretty wrong being sure :) Under windows, it is indeed possible to > embed certain applications into others - the related technical term is > conveniently called OLE (Object lining and embedding). Thanks, at least I didnt spend two much time on it :) -Matt --

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-03-30 Thread rurpy
"Fredrik Lundh" wrote: > [EMAIL PROTECTED] wrote > > Fredrik Lundh wrote: > > > [EMAIL PROTECTED] wrote: > > > > > > > > The OP points out an ambiguity in the docs, and as usual, > > > > gets told he can't read, etc. How typical. > > > > > > where did anyone tell the OP that he can't read? > > >

Re: Content Management System

2006-03-30 Thread John J. Lee
Jeff <[EMAIL PROTECTED]> writes: > Water Cooler v2 wrote: > > I know what it is, and yet the knowledge of what a CMS is, is so vague > > that I find myself asking this question every now and then. I've > > googled and read the resources too. However, the knowledge is still not > > clear. It is so

Re: Identifying filled circles in a scanned image

2006-03-30 Thread Paul McGuire
Douglas Douglas wrote: > The problem is that when the scanner takes the pages it > doesn't put it in the same exact position in its bed. There's not a lot of > difference, but there's a little. Your forms should have some reference registration marks or targets in opposite corners. Find these fi

Re: Simple py script to calc folder sizes

2006-03-30 Thread Ben Cartwright
Caleb Hattingh wrote: > Your code works on some folders but not others. For example, it works > on my /usr/lib/python2.4 (the example you gave), but on other folders > it terminates early with StopIteration exception on the > os.walk().next() step. > > I haven't really looked at this closely enou

Re: proposed proposal: set.values()

2006-03-30 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] > I'm thinking of proposing that a values method be added to set > objects, analogously with dicts. If x is a set, x.values() would be > the same as list(x). This feels logical, and it would allow unified > tr

Re: Identifying filled circles in a scanned image

2006-03-30 Thread Douglas Douglas
First of all. Thanks Claudio and nikie for your fast answers. What I want to do is process the forms automatically. Each circle match a letter (like in a quiz). So if the user select option A in a row, he fills the first circle. If he select option C in the next row, he fills the third circle of t

Re: how to comment lot of lines in python

2006-03-30 Thread Tim Chase
>>Or there is something else too ?? > > You should use a decent editor that could automatically > comment/uncomment code upon your request. In Vim, you can map a key to do the following: :s/^/# to comment the highlighted lines, and :s/^# to uncomment them. To map them, you c

Re: urllib2 through basic auth'ed proxy

2006-03-30 Thread John J. Lee
Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: [...] > The proxy is squid. Python version is 2.3.4 (I read that this version has a > problem in that it introduces an extra return after the authorisation, but > it isn't even getting to that bit). And yes, going through firefox, > everything works

Re: RELEASED Python 2.4.3, final.

2006-03-30 Thread Terry Reedy
"John Salerno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why would 2.4.4 come out after the final release of 2.5? Code patches are generally applied first to the development branch. Those that merely fix bugs usually get backported to the maintenance branch.* Releasing 2.4

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-03-30 Thread rurpy
"Terry Reedy" wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Fredrik Lundh wrote: > > But the perception I get here, from responses like yours, > > is that such suggestions are unwelcome, and unlikely > > to be acted upon. > > FL is not the main doc maintainer. Even if

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-03-30 Thread rurpy
"Terry Reedy" wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Fredrik Lundh wrote: > > But the perception I get here, from responses like yours, > > is that such suggestions are unwelcome, and unlikely > > to be acted upon. > > FL is not the main doc maintainer. Even if

Re: Identifying filled circles in a scanned image

2006-03-30 Thread nikie
Douglas Douglas schrieb: > Hi everybody. > > I have a paper form that I scan into an image. My user fills some circles in > this paper form using black ink. Every form has ten rows with five circles > each > and the user fills only one circle for each row. > > I was wondering if I could use the P

Re: urllib2 through basic auth'ed proxy

2006-03-30 Thread John J. Lee
Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: [...] > How does one connect through a proxy which requires basic authorisation? > The following code, stolen from somewhere, fails with a 407: > [...code involving urllib2.ProxyBasicAuthHandler()...] > Can anyone explain me why this fails, or more i

Re: Identifying filled circles in a scanned image

2006-03-30 Thread Claudio Grondi
Douglas Douglas wrote: > Hi everybody. > > I have a paper form that I scan into an image. My user fills some circles in > this paper form using black ink. Every form has ten rows with five circles > each > and the user fills only one circle for each row. > > I was wondering if I could use the Py

proposed proposal: set.values()

2006-03-30 Thread Paul Rubin
I'm thinking of proposing that a values method be added to set objects, analogously with dicts. If x is a set, x.values() would be the same as list(x). This feels logical, and it would allow unified treatment of dicts and sets in some contexts. Any objections? -- http://mail.python.org/mailman/

Re: how to comment lot of lines in python

2006-03-30 Thread Felipe Almeida Lessa
Em Qui, 2006-03-30 às 15:21 -0800, [EMAIL PROTECTED] escreveu: > Like in C we comment like > /* > Bunch of lines of code > */ > > Should we use docstring """ """ > > Or there is something else too ?? You should use a decent editor that could automatically comment/uncomment code upon your request

how to comment lot of lines in python

2006-03-30 Thread diffuser78
Like in C we comment like /* Bunch of lines of code */ Should we use docstring """ """ Or there is something else too ?? Every help is appreciated. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: any() and all() on empty list?

2006-03-30 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > >> No, all(seq) is true if every element in seq is true. Surely that's a > >> more intuitive definition than your definition by what you can't do. > > They are different? > Of course they are different -- they differ in the case of an empty > sequence

Re: PIL ImageDraw line not long enough

2006-03-30 Thread nikie
Bob Greschke wrote > I've resorted to actually drawing all of the characters of the alphabet on a > graph to avoid having to drag around font files. It's mostly just uppercase > characters, so it's not too bad. > > But I noticed that some of the line segments have to be extended one pixel > longe

Identifying filled circles in a scanned image

2006-03-30 Thread Douglas Douglas
Hi everybody. I have a paper form that I scan into an image. My user fills some circles in this paper form using black ink. Every form has ten rows with five circles each and the user fills only one circle for each row. I was wondering if I could use the Python Imaging Library to process these fo

Re: tkinter question

2006-03-30 Thread linuxnooby
>If you just create >a Toplevel and populate it with widgets, it will just display once the >control is returned to the Tkinter mainloop and no user input will be >needed. Thanks for explaining that. I borrowed the "after" method that you used in your first reply. It seems to do what I want (excep

Re: any() and all() on empty list?

2006-03-30 Thread Steven D'Aprano
On Thu, 30 Mar 2006 11:28:54 -0800, Paul Rubin wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >> > No, all(seq) is true if you can't point to a specific element in seq >> > that's false. >> >> No, all(seq) is true if every element in seq is true. Surely that's a >> more intuitive definition

Re: ANN: htmlbuilder.py - another HTML generator

2006-03-30 Thread Gerard Flanagan
Gerard Flanagan wrote: > In the hope that it may be useful, a simple Html Generator: > > http://gflanagan.net/site/python/htmlbuilder/htmlbuilder.py > > It requires 'elementtree' : > http://www.effbot.org/zone/element-index.htm > > Example: > > html = HtmlBuilder( doctype='strict') > p

Re: Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread John Hunter
> "Caleb" == Caleb Hattingh <[EMAIL PROTECTED]> writes: Caleb> It seems that the locater() classes are where I should Caleb> look, and there seem to be some defaults in ticker.py: Caleb> class AutoLocator(MaxNLocator): def __init__(self): Caleb> MaxNLocator.__init__(self, nbin

[ANN] ftputil 2.1 released

2006-03-30 Thread Stefan Schwarzer
ftputil 2.1 is now available from http://ftputil.sschwarzer.net/download . Changes since version 2.0 - - Added new methods to the FTPHost class, namely makedirs, walk, rmtree. - The FTP server directory format ("Unix" vs. "Windows") is now set automatically (thanks to

Tablelist 4.3

2006-03-30 Thread Arne Meissner
Hello everybody! I have downloaded the Tablelist 4.3 from http://www.nemethi.de/. Now I want to install it on my system Win XP. >From the distribution I have got the following information: " On Windows, use WinZip or some other program capable of unpacking the distribution file tablelist4_3.zi

Re: Terminating a subprocess question

2006-03-30 Thread Ernesto
Ernesto wrote: > I'm opening a telnet session with the subprocess call below. I then > wait ten seconds and attempt to terminate the telnet window I created. > Unfortuantely, the telnet window remains after the 'TerminateProcess" > call below. This software works great for opening an executable

Popen

2006-03-30 Thread david brochu jr
I am trying to write a script that starts a window process and then continues on to do other testing, but have encountered a little problem. When I start the exe (process to run) I cannot move on past that point in my script. Once started, the process is supposed to run in the background continuous

Re: a hobbyist's dilemma

2006-03-30 Thread Terry Hancock
You may find the attached files of interest. I wrote this PyGame script in order to teach my sons (ages 8 & 10) about some programming concepts. I intentionally avoided any function or class definitions, and tried to use minimal Python concepts. I think it's quite impressive that you can do a

Re: Convert Word .doc to Acrobat .pdf files

2006-03-30 Thread Caleb Hattingh
If you can find some API documentation for PDFMWord.dll, you can call its methods with the ctypes python module. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python website, new documentation ?

2006-03-30 Thread John J. Lee
Tim Parkin <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > > >Hi, > > > >I was wondering : as there has been a change in python.org website with > >a new design, is it planned for the documentation section to be > >revamped as well ? If yes, would it be just a appearance renewal or > >wo

Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread Caleb Hattingh
Hi I tried several Google searches to no avail. I read through pretty much most of the online docs at the matplotlib sourceforge site, but didn't find what I was looking for. I went through the axis.py and ticker.py code today, trying to find out how to set the number of points (ticks) on an axi

Re: ldap usage

2006-03-30 Thread Jed Parsons
> Which LDAP server are you using? You can switch off this behaviour > with OpenLDAP. See man 5 slapd.conf, allow . I don't have anything other than user access. Good to know about this feature, though. You've been very helpful - I really appreciate it. Can you recommend any favorite books

Re: Non-GUI source code browser with file system tree view

2006-03-30 Thread John J. Lee
bruno at modulix <[EMAIL PROTECTED]> writes: [...] > emacs + emacs code browser. + Tramp. (distributed with emacs, but it's good to know what documentation you need to be looking at) effbot's suggestion of rsync seems good though -- always assuming you can run rsync on the remote machine, of cour

tkinter: not freeing memory like I'd expect

2006-03-30 Thread Benjamin Rutt
I have a bunch (e.g. 40) of tkinter Text objects in a gui on a linux machine, tracking monitoring info per host. They accumulate up to 500MB of text data (according to /bin/top) over time reading from sockets. I want to release this memory first by clearing all the text contents, but keeping the

Re: ipv6 validation

2006-03-30 Thread jiri . juranek
thanks a lot for this solution. Next thing: how may i find out that that address is multicast one? is there some easy possibility or i have to use regex now? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python challenge question (string manipulation)

2006-03-30 Thread Caleb Hattingh
Felipe I get the same results as you. You make a good point about not iterating when it's not needed. I played around with your test code and found some interesting things: 1. enumerate vs. range(len()) has very little overhead (something I have wondered about) In my code, making the change c

Re: any() and all() on empty list?

2006-03-30 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > > No, all(seq) is true if you can't point to a specific element in seq > > that's false. > > No, all(seq) is true if every element in seq is true. Surely that's a > more intuitive definition than your definition by what you can't do. They are differen

ANN: htmlbuilder.py - another HTML generator

2006-03-30 Thread Gerard Flanagan
In the hope that it may be useful, a simple Html Generator: http://gflanagan.net/site/python/htmlbuilder/htmlbuilder.py It requires 'elementtree' : http://www.effbot.org/zone/element-index.htm Example: html = HtmlBuilder( doctype='strict') page = html.page('Test Page') page.comm

Re: Set Windows Environment Variable

2006-03-30 Thread Fuzzyman
Fredrik Lundh wrote: > Fuzzyman wrote: > > > I *believe* that ``SetEnvironmentVariable`` exists in the underlying > > windows API, but that it isn't wrapped by the win32api extension. > > SetEnvironmentVariable does the same thing as assignment to os.environ. > > The only way to set the environmen

Re: GUI in python

2006-03-30 Thread Dave Mandelin
A friend of mine recently used PythonCard and he found it pretty good. I use wxPython, which is what PythonCard is based on, and I think it's very good, but it's more work to get started with than PythonCard. -- Want to play tabletop RPGs over the internet? Check out Koboldsoft RPZen:http:

Re: Updated: python ctype question about "access violation reading location 0x5a5a5a5a"

2006-03-30 Thread Dave Mandelin
First guess is that you are passing a Python function to something that expects a C function. Try looking at gencb.py in DynWin. -- Want to play tabletop RPGs over the internet? Check out Koboldsoft RPZen:http://www.koboldsoft.com -- http://mail.python.org/mailman/listinfo/python-list

Re: SimpleXMLRPCServer

2006-03-30 Thread infidel
> I'm doing some experiments with the SimpleXMLRPCServer in Python, > and I've found it to be an excellent way to do high-level network > operations. > > However, is there a way to enable "two-way" communication using XML-RPC? > By that I mean, can the server contact all the clients? To do that yo

Re: Quick Question regarding Frames

2006-03-30 Thread Dave Mandelin
I'm glad to have helped. Good luck with your project. -- Want to play tabletop RPGs over the internet? Check out Koboldsoft RPZen:http://www.koboldsoft.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Very stupid question.

2006-03-30 Thread Peter Hansen
On 3/30/06, *Sullivan Zheng* <[EMAIL PROTECTED] > wrote: > > Wow, seems I am not that supid. Why python does not include this > function in the file object. It is almost a tradition in other > languages... > > import os > > os.stat(path).st

Re: a hobbyist's dilemma

2006-03-30 Thread John Salerno
Alex Martelli wrote: > John Salerno <[EMAIL PROTECTED]> wrote: >... >>> Instead of hacking away on your own, I suggest you look around >>> sourceforge and other such repositories of open-source programs: find >... >> Great idea. It would be fun to actually contribute something to the >> co

SimpleXMLRPCServer

2006-03-30 Thread Andreas R.
Hello everyone, I'm doing some experiments with the SimpleXMLRPCServer in Python, and I've found it to be an excellent way to do high-level network operations. However, is there a way to enable "two-way" communication using XML-RPC? By that I mean, can the server contact all the clients? Thank

Re: Very stupid question.

2006-03-30 Thread Benji York
On 3/30/06, *Sullivan Zheng* <[EMAIL PROTECTED]> wrote: > Wow, seems I am not that supid. Why python does not include this > function in the file object. It is almost a tradition in other > languages... > really not elegant or OO. A file isn't an object. You can get a "file

  1   2   3   >