py2exe has a new maintainer

2005-10-04 Thread Jimmy Retzlaff
I am taking over the maintenance and support of py2exe from Thomas Heller. As he announced a few weeks ago he is looking to focus on other things. py2exe has been very useful to me over the years and I look forward to keeping it every bit as useful in the future. I plan to make the transition as s

Re: python plotting with greek symbols within labels recommendations?

2005-10-04 Thread Robert Kern
[EMAIL PROTECTED] wrote: > hello all, > > this message is geared toward those of you in the scientific community. > i'm looking for a python plotting library that can support rendering > greek symbols and other various characters on plot axes labels, etc. I > would prefer something that adheres to

isatty() for file-like objects: Implement or not?

2005-10-04 Thread HOWARD GOLDEN
The standard documentation for isatty() says: "Return True if the file is connected to a tty(-like) device, else False. Note: If a file-like object is not associated with a real file, this method should not be implemented." In his book, "Text Processing in Python," David Mertz says: "..

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Neil Hodgson
C++ and C# are converging with implicitly typed languages to the extent that many declarations will be able to omit types. In the next C++ standard and in C# 3.0 it may be possible to write, where Fn is a function returning any particular type: auto spam = Fn(); // C++0x var spam = Fn

Re: python plotting with greek symbols within labels recommendations?

2005-10-04 Thread Robert Kern
[EMAIL PROTECTED] wrote: > hello all, > > this message is geared toward those of you in the scientific community. > i'm looking for a python plotting library that can support rendering > greek symbols and other various characters on plot axes labels, etc. I > would prefer something that adheres to

Re: [Distutils] py2exe has a new maintainer

2005-10-04 Thread Bob Ippolito
On Oct 4, 2005, at 5:01 PM, Jimmy Retzlaff wrote: > After I feel comfortable with things, I hope to work with other > projects > in the Python packaging community (e.g., cx_Freeze, > PyInstaller/McMillan, py2app, setuptools, etc.) to see if we can't > find > synergies that will make all of th

Re: dictionary interface

2005-10-04 Thread Tom Anderson
On Tue, 4 Oct 2005, Robert Kern wrote: > Antoon Pardon wrote: > >> class Tree: >> >> def __lt__(self, term): >> return set(self.iteritems()) < set(term.iteritems()) >> >> def __eq__(self, term): >> return set(self.iteritems()) == set(term.iteritems()) >> >> Would this be a co

Re: wxPython equiv. to tag_configure

2005-10-04 Thread ncf
Errm, can you slap me please? :X Either way, thank you soo much :) -Wes -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh or other python editor

2005-10-04 Thread jussij
> I'm working/making my python scripts in a windows OS > with putty now. If you need an FTP editor take a look at Zeus: http://www.zeusedit.com/features.html Zeus will do SSH, SSL/TLS and plain old FTP editing, with support for Unix, Windows, VM and MVS FTP servers. Just remember to setup y

Re: Idle

2005-10-04 Thread [EMAIL PROTECTED]
If you are compiling python and you want to build idle/tkinter, you need to have the development packages for tcl and tk. The python build scripts will only build tkinter should they find the libraries (libtk8.4.so and libtcl8.4.so) and the header files (tk.h and tcl.h). If you don't have the devel

Re: dictionary interface

2005-10-04 Thread Robert Kern
Tom Anderson wrote: > On Tue, 4 Oct 2005, Robert Kern wrote: > >>Antoon Pardon wrote: >> >>> class Tree: >>> >>>def __lt__(self, term): >>> return set(self.iteritems()) < set(term.iteritems()) >>> >>>def __eq__(self, term): >>> return set(self.iteritems()) == set(term.iteritems(

check html file size

2005-10-04 Thread Xah Lee
would anyone like to translate the following perl script to Python or Scheme (scsh)? the file takes a inpath, and report all html files in it above certain size. (counting inline images) also print a sorted report of html files and their size. (a copy of the script is here: http://xahlee.org/_scr

Re: Will python never intend to support private, protected and public?

2005-10-04 Thread Paul Rubin
"El Pitonero" <[EMAIL PROTECTED]> writes: > If so, you would probably be the type of person that also likes static > typing, type safety and variable declaration, right? I certainly want type safety, which Python claims to have. I'd like to have variable declaration, at least like "var x". Perl

Re: check html file size

2005-10-04 Thread Matt Garrish
"Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > would anyone like to translate the following perl script to Python or > Scheme (scsh)? Even if you weren't an incredibly offensive and petulant poster, what makes you think anyone would write a script from you? Matt --

Re: check html file size

2005-10-04 Thread Grant Edwards
On 2005-10-05, Xah Lee <[EMAIL PROTECTED]> wrote: > would anyone like to translate the following perl script to > Python or Scheme (scsh)? Sure. It'll cost you $110/hour with a 2-hour minimum. Where do I send the invoice? -- Grant Edwards grante Yow! I'll take RO

Turn $6 into $6.000

2005-10-04 Thread Ville
HOW TO TURN 6 BUCKS INTO 6 THOUSAND! (WORLD WIDE) WARNING: READING THIS WILL CHANGE YOUR LIFE! I found this on a Bulletin board and decided to try it. A little while back, I was browsing through newsgroups, just like you are now, and came across an article similar to this that said you could make

Re: python plotting with greek symbols within labels recommendations?

2005-10-04 Thread skip
mike> thus far, i've found that matplotlib mike> (http://matplotlib.sourceforge.net/) can do this, albeit the mike> implementation is so poor that you cannot mix standard text with mike> symbols on the same plot element. That seems a bit harsh. Have you asked on the matplotlib ma

Re: check html file size

2005-10-04 Thread Erik Max Francis
Matt Garrish wrote: > Even if you weren't an incredibly offensive and petulant poster, what makes > you think anyone would write a script from you? Because in addition to being offensive and petulant, he's also an idiot. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ S

Help with chaos math extensions.

2005-10-04 Thread Brandon Keown
Hi, I have programmed a fractal generator (Julia Set/Mandelbrot Set) in python in the past, and have had good success, but it would run so slowly because of the overhead involved with the calculation. I recently purchased VS .NET 2003 (Win XP, precomp binary of python 2.4.2rc1) to make my

Newbie Text Processing Question

2005-10-04 Thread gshepherd281
Hi, I'm a total newbie to Python so any and all advice is greatly appreciated. I'm trying to use regular expressions to process text in an SGML file but only in one section. So the input would look like this: RESEARCH GUIDE content content content content FORMS content content content cont

Re: Newbie Text Processing Question

2005-10-04 Thread Gregory Piñero
That's how Python works.  You read in the whole file, edit it, and write it back out.  As far as I know there's no way to edit a file "in place" which I'm assuming is what you're asking? And now, cue the responses telling you to use a fancy parser (XML?) for your project ;-) -Greg On 4 Oct 2005 2

Re: Newbie Text Processing Question

2005-10-04 Thread James Stroud
You can edit a file in place, but it is not applicable to what you are doing. As soon as you insert the first "", you've shifted everything downstream by those 8 bytes. Since they map to a physically located blocks on a physical drive, you will have to rewrite those blocks. If it is a big file

Re: check html file size

2005-10-04 Thread Tad McClellan
Xah Lee <[EMAIL PROTECTED]> wrote: > would anyone like to translate the following perl script to Python or > Scheme (scsh)? Yes, I would. -- Tad McClellan SGML consulting [EMAIL PROTECTED] Perl programming Fort Worth, Texas -- http://mai

Re: isatty() for file-like objects: Implement or not?

2005-10-04 Thread Neal Norwitz
HOWARD GOLDEN wrote: > The standard documentation for isatty() says: > > "Return True if the file is connected to a tty(-like) device, else > False. Note: If a file-like object is not associated with a real file, > this method should not be implemented." > > In his book, "Text Processing in

Re: Newbie Text Processing Question

2005-10-04 Thread Mike Meyer
[EMAIL PROTECTED] writes: > I'm a total newbie to Python so any and all advice is greatly > appreciated. Well, I've got some for you. > I'm trying to use regular expressions to process text in an SGML file > but only in one section. This is generally a bad idea. SGML family languages aren't easy

Help needed in OOP-Python

2005-10-04 Thread Toufeeq Hussain
Hello gurus, Python n00b here trying to learn some OOP-Python.Here's my problem. I have 3 modules which have class declarations in them and which implement multiple inheritance. Module1 class OptionClass:     def __init__ (self,name,ORSpecNumber,AltToItselfStart,AltToItselfEnd) :       

Re: Newbie Text Processing Question

2005-10-04 Thread Fredrik Lundh
Gregory Piñero wrote: >That's how Python works. You read in the whole file, edit it, and write it > back out. that's how file systems work. if file systems generally supported insert operations, Python would of course support that feature. -- http://mail.python.org/mailman/listinfo/python-

Re: Help needed in OOP-Python

2005-10-04 Thread Fredrik Lundh
Toufeeq Hussain wrote: > I have 3 modules which have class declarations in them and which implement > multiple inheritance. > Traceback (most recent call last): > File "E:\PyPBM\PyPBM\test_case.py", line 7, in ? >TH = constraint.Option1_Rule1() there's no line that says "TH = constraint.Option1_

Re: Mantain IDE colors and paste them in an HTML page

2005-10-04 Thread Sybren Stuvel
Micah Elliott enlightened us with: > If you're just trying to get copy/paste-able-from-browser html that > has pretty colors, you might start up vim and use the default > colors. You might have to say ":syntax enable". Then just type > ":TOhtml" and you'll have a colorized version of your "IDE" d

Re: Build spoofed IP packets

2005-10-04 Thread Sybren Stuvel
billie enlightened us with: > For low level packet building I already used Impacket module but if > I specify a spoofed src address during IP packet creation, module > returns an error. Suggestions? Yes, give us the error. And know that you can't build raw IP packets unless you're root. Sybren -

Re: Help needed in OOP-Python

2005-10-04 Thread Toufeeq Hussain
Hi Fredrik,On 10/5/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Toufeeq Hussain wrote:> I have 3 modules which have class declarations in them and which implement> multiple inheritance.> Traceback (most recent call last):> File "E:\PyPBM\PyPBM\test_case.py", line 7, in ? >TH = constraint.Option1_Ru

While and If messing up my program?

2005-10-04 Thread CJ
Hey, I'm new to the Python world, but I do have experience in several other languages. I've been running through a tutorial, and I decided that I'd make a program that runs through a list, finds if there are any duplicates. The program, doesn't work, but since its a first build I wasn't to

<    1   2   3