Re: __new__

2005-11-05 Thread EP
James Stroud The quote implies that when I call carol, b.__init__ should be called. > However, this does not seem to be the case (see code below). What am I > not > understanding? Shouldn't the interpreter call b.__init__ when b is > returned > from carol.__new__? > > James > > py> class bo

Virus in your Mail to empire.support

2005-11-05 Thread root
The VirusCheck at the IMST generated the following Message: V I R U S A L E R T Our VirusCheck found a Virus (W32/Netsky-Q) in your eMail to "empire.support". This eMail has been deleted ! Now it is on you to check your System for Viruses This Syst

Re: newbie questions

2005-11-05 Thread James Stroud
On Saturday 05 November 2005 22:02, john boy wrote: > have a few questions...i'm a newbieso i'd appreciate any help > > 1- what is the difference between Python GUI and Python command line? GUI means "graphical user interface", a command line is something you type commands into. > > 2-in Pyt

__new__

2005-11-05 Thread James Stroud
Hello All, I'm running 2.3.4 I was reading the documentation for classes & types http://www.python.org/2.2.3/descrintro.html And stumbled on this paragraph: """ __new__ must return an object. There's nothing that requires that it return a new object that is an instance of its class argum

Re: Can python 'read disk sectors' like/via linux:dd ?

2005-11-05 Thread Pascal Bourguignon
[EMAIL PROTECTED] writes: > Hi, > in order to justify learning another language I'd first need to be convinced > that python could easily do the following:- > > ReadSectors2Bufr(hdx, StartSectr, SectrCnt, Bufr); <-- like linux: dd > PrintDecOf4Bytes(Offset, Bufr); <-- and also 1 and 2 byte v

newbie questions

2005-11-05 Thread john boy
have a few questions...i'm a newbieso i'd appreciate any help   1- what is the difference between Python GUI and Python command line?   2-in Python command line when I hit enter after typing a command I cannot go back and "delete" "backspace" or otherwise edit a previous command...why?   3-I ha

Distributed Cache Server?

2005-11-05 Thread [EMAIL PROTECTED]
Does anyone know if a "distributed caching system" has been developed for use with Python? I've seen mention of memcached, but was really after something natively python. Yes, "distributed caching system" is a bit of a general term, but am really just talking about something as simple as key + val

Re: Multiples of a number

2005-11-05 Thread Robert Kern
Steven D'Aprano wrote: > Another way is, if you aren't doing anything *except* counting for the > other 99 values of x, just skip them completely: > > fox x in range(20): > do_something(x*100) > > Ivan, what are you trying to do? Presumably he's doing something substantive on every 1-increm

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > It's only -because- of those licenses that there's any reason not to >> > bundle. >> Actually, there are other reasons, just as there are reasons besides >> licensing for not simply including third party lib

Re: Multiples of a number

2005-11-05 Thread Steven D'Aprano
On Sun, 06 Nov 2005 02:39:40 +0100, Carl Friedrich Bolz wrote: > Hi! > > Ivan Shevanski wrote: >> I've searched on google for a bit but I can't seem to find a way to get >> multiples of a number. . .For instance what would I do if I wanted >> something to happen every time x reached a multiple

Re: Class Variable Access and Assignment

2005-11-05 Thread Steven D'Aprano
On Sat, 05 Nov 2005 18:14:03 -0800, Paul Rubin wrote: >> instance.attribute sometimes reading from the class attribute is a feature >> of inheritance; instance.attribute always writing to the instance is a >> feature of OOP; instance.attribute sometimes writing to the instance and >> sometimes wri

Re: GMPY: divm() memory leak revisited

2005-11-05 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > Unfortunately, I don't have any means of testing this theory. Yep -- I reproduced the memory leak you mentioned, and easily fixed it (exactly as you suggest) in the current CVS version of gmpy (meant to be "1.01 release candidate"). I need to

Re: mod_python

2005-11-05 Thread Little
I have created the following database but the following errors occur when trying to execute the code. html source: Click here to display information from Chocolate menu: Press to view the display Please provide data for chocolate to be added: Name:

Re: Modify HTML data

2005-11-05 Thread [EMAIL PROTECTED]
Swarna wrote: > Hi all, > > Can anyone help me with this ? > > I am using scp in python to copy a html file on remote server, to my > local machine. Now, i need to update this html file in my local machine > ( by adding a new Hyperlink to the existing table od hyperlinks ) and > copy it back (over

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > > It's only -because- of those licenses that there's any reason not to > > bundle. > > Actually, there are other reasons, just as there are reasons besides > licensing for not simply including third party libraries into the > standard library. I'm not talk

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Paul Rubin writes: >> To my knowledge the PSF isn't doing anything about including the >> documentation with their distribution, so they shouldn't care about >> the licenses. Wanting to bundle a good tutorial for everything in >> the library might be on the list, but the

Re: Using Which Version of Linux

2005-11-05 Thread Steve Holden
Dan M wrote: > On Sat, 05 Nov 2005 04:26:38 -0600, blahman wrote: > > >>ok, i m going to use Linux for my Python Programs, mainly because i >>need to see what will these fork() and exec() do. So, can anyone tell >>me which flavour of linux i should use, some say that Debian is more >>programme

Re: Class Variable Access and Assignment

2005-11-05 Thread Steve Holden
Steven D'Aprano wrote: [...] > > But I can't understand the position of folks who want inheritance but > don't want the behaviour that Python currently exhibits. > instance.attribute sometimes reading from the class attribute is a feature > of inheritance; instance.attribute always writing to the

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > To my knowledge the PSF isn't doing anything about including the > documentation with their distribution, so they shouldn't care about > the licenses. Wanting to bundle a good tutorial for everything in > the library might be on the list, but the licenses on

Re: Class Variable Access and Assignment

2005-11-05 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > > It never occurred to me that immutable objects could implement __iadd__. > > If they can, I'm puzzled as to why. > I'm surprised that it never occurred to you that people might > want to do something like x = 1; x += 1 in Python, But I wouldn't ex

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> The thing is, the library documentation that Xah Lee is complaining >> about is a *reference document*. It says so right in the title: >> "Python Library Reference". As such, it makes lousy tutorial >> documen

Re: Multiples of a number

2005-11-05 Thread Carl Friedrich Bolz
Hi! Ivan Shevanski wrote: > I've searched on google for a bit but I can't seem to find a way to get > multiples of a number. . .For instance what would I do if I wanted > something to happen every time x reached a multiple of 100 in this > sample code: > > x = 0 > while x < 2000: > x += 1

python problems

2005-11-05 Thread Mostapha Amenchar
http://maven.smith.edu/~thiebaut/classes/111/111.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Variable Access and Assignment

2005-11-05 Thread Steven D'Aprano
On Sat, 05 Nov 2005 16:27:00 -0800, Paul Rubin wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >> But do you want x += y to work for immutable objects as well? Then >> __iadd__ cannot be a statement, because x can't be modified in place. > > It never occurred to me that immutable objects cou

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > The thing is, the library documentation that Xah Lee is complaining > about is a *reference document*. It says so right in the title: > "Python Library Reference". As such, it makes lousy tutorial > documentation. I'm not sure which particular library Xah L

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
"Andrea Gavana" <[EMAIL PROTECTED]> writes: > I tend to agree with you, Rick. I usually don't like Xah's "posting > behavior", but this time he has done, in my opinion, a "constructive" > criticism (and he didn't even say *fuck* once in the whole post!!!). I am > quite a newbie in Python, I usuall

Re: Using Which Version of Linux

2005-11-05 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-11-05, Mike Meyer <[EMAIL PROTECTED]> wrote: >> "Programmer-friendly" is pretty vague. Gentoo is the only Linux distro >> I've run into (which excludes a *lot* of Unix distros) that I'd >> consider programmer friendly, because it doesn't split pac

Re: Class Variable Access and Assignment

2005-11-05 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > But do you want x += y to work for immutable objects as well? Then > __iadd__ cannot be a statement, because x can't be modified in place. It never occurred to me that immutable objects could implement __iadd__. If they can, I'm puzzled as to why. >

Re: Class Variable Access and Assignment

2005-11-05 Thread Steven D'Aprano
On Fri, 04 Nov 2005 22:19:39 -0800, Paul Rubin wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >> > Next you get some performance gain by using gmpy to handle the long int >> > arithmetic, >> >> Then whatever happens next will be my own stupid fault for prematurely >> optimising code. > >

Multiples of a number

2005-11-05 Thread Ivan Shevanski
I've searched on google for a bit but I can't seem to find a way to get multiples of a number. . .For instance what would I do if I wanted something to happen every time x reached a multiple of 100 in this sample code: x = 0 while x < 2000: x += 1 Thanks in advance, -Ivan -- http://mail.pyt

Re: Modify HTML data

2005-11-05 Thread Peter Hansen
Swarna wrote: > I am using scp in python to copy a html file on remote server, to my > local machine. Now, i need to update this html file in my local machine > ( by adding a new Hyperlink to the existing table od hyperlinks ) and > copy it back (overwriting the old copy ) to the remote server. If

Re: Class Variable Access and Assignment

2005-11-05 Thread Steven D'Aprano
On Sat, 05 Nov 2005 21:26:22 +, Bengt Richter wrote: > BTW, semantically does/should not __iadd__ really implement a _statement_ and > therefore > have no business returning any expression value to bind anywhere? We get to practicality versus purity here. Consider x += y for some object typ

Re: re sub help

2005-11-05 Thread Bengt Richter
On 4 Nov 2005 22:49:03 -0800, [EMAIL PROTECTED] wrote: >hi > >i have a string : >a = >"this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n" > >inside the string, there are "\n". I don't want to substitute the '\n' >in between >the [startdelim] and [enddelim] to ''. I only want t

Modify HTML data

2005-11-05 Thread Swarna
Hi all, Can anyone help me with this ? I am using scp in python to copy a html file on remote server, to my local machine. Now, i need to update this html file in my local machine ( by adding a new Hyperlink to the existing table od hyperlinks ) and copy it back (overwriting the old copy ) to the

Re: Using Which Version of Linux

2005-11-05 Thread Steven D'Aprano
On Sat, 05 Nov 2005 12:50:44 +, Jeffrey Schwab wrote: > [EMAIL PROTECTED] wrote: >> ok, i m going to use Linux for my Python Programs, mainly because i >> need to see what will these fork() and exec() do. So, can anyone tell >> me which flavour of linux i should use, some say that Debian is

Re: Using Which Version of Linux

2005-11-05 Thread Grant Edwards
On 2005-11-05, Dan M <[EMAIL PROTECTED]> wrote: > Personally I would recommend staying away from Fedora unless you have a > friend who is well-versed in it and willing to help. I like the > distributin ok (I run it on the laptop I'm writing this from) but it uses > RPMs for package distribution, a

Re: Using Which Version of Linux

2005-11-05 Thread Grant Edwards
On 2005-11-05, Mike Meyer <[EMAIL PROTECTED]> wrote: > "Programmer-friendly" is pretty vague. Gentoo is the only Linux distro > I've run into (which excludes a *lot* of Unix distros) that I'd > consider programmer friendly, because it doesn't split packages up > into "user stuff" and "developer st

Re: Using Which Version of Linux

2005-11-05 Thread Steven D'Aprano
On Sat, 05 Nov 2005 04:26:38 -0600, blahman wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold

Re: Using Which Version of Linux

2005-11-05 Thread Rod Haper
Dan M wrote: > > Personally I would recommend staying away from Fedora unless you have a > friend who is well-versed in it and willing to help. I like the > distributin ok (I run it on the laptop I'm writing this from) but it uses > RPMs for package distribution, and the rpm tools don't know how t

Re: Class Variable Access and Assignment

2005-11-05 Thread Bengt Richter
On Sat, 05 Nov 2005 14:37:19 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Sat, 05 Nov 2005 00:25:34 +, Bengt Richter wrote: > >> On Fri, 04 Nov 2005 02:59:35 +1100, Steven D'Aprano <[EMAIL PROTECTED]> >> wrote: >> >>>On Thu, 03 Nov 2005 14:13:13 +, Antoon Pardon wrote: >>>

pickle - recursion - stack size limit - MS windows

2005-11-05 Thread Andy Leszczynski
I need to pickle quite complex objects and first limitation was default 200 for the recursion. sys.setrecursionlimit helped, but still bigger objects fail to be pickled because of XP stack size limitation. Any idea how to get around the problem ... A. -- http://mail.python.org/mailman/listinfo/p

Re: starting an X11 session from Python

2005-11-05 Thread Richard Townsend
On Sat, 05 Nov 2005 19:51:40 +, Philippe C. Martin wrote: > Hi, > > Have there been any attempt to do so, and is there any source out there that > could help me get started ? > > Regards, > > Philippe Have you tried: http://python-xlib.sourceforge.net/ http://sourceforge.net/projects/pytho

mod_python

2005-11-05 Thread Little
I can't figure out how to build this type of program using the publisher handler. I have the following connected to the program SetHandler python-program PythonHandler mod_python.publisher PythonDebug On But what I would like to do would be have a german word as the parameter in the HTTP request a

Re: Using Which Version of Linux

2005-11-05 Thread Norman Silverstone
On Sat, 05 Nov 2005 04:26:38 -0600, blahman wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold

Re: Using Which Version of Linux

2005-11-05 Thread malv
[EMAIL PROTECTED] wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, or Solaris. Bec

Re: Python gui

2005-11-05 Thread Andrea Gavana
Hello Philippe, > Is wxWidget now part of python ? or will it be ? No, I don't think it will ever be part of Python. But, wxWidgets is written in C++, so it has nothing *pythonic* in it. There is, however, a "Python Binding" of wxWidgets, called (obviously ;-) ) wxPython. If you can install a sit

Re: Class Variable Access and Assignment

2005-11-05 Thread Bengt Richter
On Fri, 04 Nov 2005 21:14:17 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Bengt Richter) writes: >> On Thu, 03 Nov 2005 13:37:08 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: >> [...] I think it even less sane, if the same occurce of b.a refers to two different objects

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Andrea Gavana
Hello NG, > I've managed to avoid reading Xah Lee's diatribes for the most > part. Since you included the *WHOLE THING* in your post, I had an > "opportunity" to see what he had to say, and for once I agree with > some of it. > I would love to see examples for essentially every function and > m

Re: starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
PS: my goal is to write an equivalent of gdm/kdm/xdm ... in python Regards, Philippe Philippe C. Martin wrote: > Nothing, but that was not my question. > > Regards, > > Philippe > > > Sybren Stuvel wrote: > >> Philippe C. Martin enlightened us with: >>> Have there been any attempt to do s

Re: starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
Nothing, but that was not my question. Regards, Philippe Sybren Stuvel wrote: > Philippe C. Martin enlightened us with: >> Have there been any attempt to do so, and is there any source out >> there that could help me get started ? > > What's stopping you from using system(), exec() or the lik

Re: starting an X11 session from Python

2005-11-05 Thread Sybren Stuvel
Philippe C. Martin enlightened us with: > Have there been any attempt to do so, and is there any source out > there that could help me get started ? What's stopping you from using system(), exec() or the likes to start "startx", "xinit" or simply "X"? Sybren -- The problem with the world is stup

Re: Print to printer

2005-11-05 Thread avnit
Do you know if there's a way to print a file? I'm trying to print an HTML file, so your solution is good, but doesn't really work for me. Just reading the HTML file and the printing the content obviously wouldn't work. I also tried: >>> printer.write(file('path/to/file.ext')) but apparently this

Re: Print to printer

2005-11-05 Thread avnit
Wow. That worked perfectly. Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Which Version of Linux

2005-11-05 Thread qwweeeit
Hi Michael, I too use SUSE (9.3). The Novell operation has convinced me to go back to SUSE, after some trials with Mandrake and Ubuntu. Especially on the Python side all is ready up. But I will not go into the complications of "fork" and "thread" programming... Bye. -- http://mail.python.org/mail

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Charlton Wilbur
> "RW" == Rick Wotnaz <[EMAIL PROTECTED]> writes: RW> Someone is sure to jump in now and point to sample code, which RW> nearly all reasonably major packages include. That's good RW> stuff. With (for example) wxPython, it's the only useful RW> documentation, or rather, it's th

starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
Hi, Have there been any attempt to do so, and is there any source out there that could help me get started ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python gui

2005-11-05 Thread Lawrence Oluyede
Il 2005-11-05, Philippe C. Martin <[EMAIL PROTECTED]> ha scritto: > Hi, > > Is wxWidget now part of python ? or will it be ? No it's not part of the official distribution of CPython, ad AFAIK it will not be anytime soon. -- Lawrence http://www.oluyede.org/blog -- http://mail.python.org/mailman/

Re: Using Which Version of Linux

2005-11-05 Thread Michael Schneider
I have been away from unix/linux for a couple of years. I went with SUSE. Just do an install all, and 10 gig later you are done. Very simple install, very easy admin with YAST. If you are a power admin, there may be better release. But if you want simple, but powerful, SUSE has worked well fo

Re: Python gui

2005-11-05 Thread Philippe C. Martin
Thanks, Tkinter it is. Regards, Philippe Diez B. Roggisch wrote: > Philippe C. Martin wrote: >> Hi, >> >> Is wxWidget now part of python ? or will it be ? > > 1) No. 2) I guess no. Because it has pretty heavy dependencies (wx, > GTK/other toolkit) > > > Tkinter is what comes ou of the box

Re: Using Which Version of Linux

2005-11-05 Thread D.Hering
And for complete control and customization of your os and hardware... There's nothing like Gentoo! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python gui

2005-11-05 Thread Diez B. Roggisch
Philippe C. Martin wrote: > Hi, > > Is wxWidget now part of python ? or will it be ? 1) No. 2) I guess no. Because it has pretty heavy dependencies (wx, GTK/other toolkit) Tkinter is what comes ou of the box - and thats it. Regards, Diez -- http://mail.python.org/mailman/listinfo/python-lis

Re: Using Which Version of Linux

2005-11-05 Thread Dan M
On Sat, 05 Nov 2005 04:26:38 -0600, blahman wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold

Re: /usr/lib/python2.4/posixfile.py error

2005-11-05 Thread Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Chris wrote: > > Wonder if anyone can help me? > > I very much doubt that, with as little information you gave us. > > > I am trying to run a perl script but I keep getting this error: > > > > /usr/lib/python2.4/posixfile.py:59: Deprec

Re: how to call basic browser functions?

2005-11-05 Thread BLElliott
Great! I've never looked in to the urllibs before, but it sounds like they're just what I need. And no, I'm not thinking of anything so sophisticated as executing applets or anything -- just those "Save * as ..." functions, where * might be "page", "image", "link target" etc. I also hadn't kn

Python gui

2005-11-05 Thread Philippe C. Martin
Hi, Is wxWidget now part of python ? or will it be ? regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

SCLOGON 0.1 Smart Card event daemon for GNU/Linux

2005-11-05 Thread Philippe C. Martin
Dear all, This is to announce the release of the event deamon I intend to use in SCLOGIN; a GPL project that attempts to: 1) give the current logon managers (gdm, kdm, ...) the necessary plugins to support vendor-independant smart card logon 2) be a complete logon manager itself SCLOGIN will be

Re: Pythonwin - Word automation - Removing watermark not working

2005-11-05 Thread Gregory Piñero
Thanks Simon, I'll try that.  And if that doesn't work, why I'll try a Microsoft word group! -Greg On 11/5/05, Simon Brunning <[EMAIL PROTECTED]> wrote: On 04/11/05, Gregory Piñero <[EMAIL PROTECTED]> wrote:> Is there a different group/mailing list I should try?  Does anyone know if> there is a py

Re: how to compile c-extensions under WinXP?

2005-11-05 Thread Steve Holden
Steve Holden wrote: > [EMAIL PROTECTED] wrote: > >>What should I do to be able to compile C-extensions (with python 2.4, >>winXP)? I get an error message, approximately "The .NET Framework SDK >>needs to be installed"; I tried to get something from the Microsoft web >>site, but maybe not the ri

Re: modifying source at runtime - jython case

2005-11-05 Thread Kent Johnson
Jan Gregor wrote: > Hello folks > > I want to apply changes in my source code without stopping jython > and JVM. Preferable are modifications directly to instances of > classes. My application is a desktop app using swing library. Can you be more specific? Python and Jython allow classes to be

Re: modifying source at runtime - jython case

2005-11-05 Thread Jan Gregor
In article <[EMAIL PROTECTED]>, Alan Kennedy wrote: > [Jan Gregor] >> I want to apply changes in my source code without stopping jython >> and JVM. Preferable are modifications directly to instances of >> classes. My application is a desktop app using swing library. >> >> Python solutions als

Re: lists <-> tuple

2005-11-05 Thread Peter Notebaert
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Peter Notebaert wrote: >> I am new to Python and have to create an import library in C that uses >> matrices. >> >> These matrices can be one-dimensional (vectors) or two-dimensional. If I >> look in the ActivePython 2.4

Re: lists <-> tuple

2005-11-05 Thread Peter Notebaert
"Jim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Tuples or lists for matrix-like functionality? > > Use lists. Tuples are meant for small immutable sets of things that go > together. Lists are more like arrays, and you can assign to one > existing element if you want. > > On

Re: how to compile c-extensions under WinXP?

2005-11-05 Thread Peter Notebaert
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What should I do to be able to compile C-extensions (with python 2.4, > winXP)? I get an error message, approximately "The .NET Framework SDK > needs to be installed"; I tried to get something from the Microsoft web > site, but maybe n

Re: Using Which Version of Linux

2005-11-05 Thread Terrance N. Phillip
Jeffrey Schwab wrote: > > I might get lambasted for suggesting this, but try Slackware. It will > let you do a very minimal installation, which means there's less stuff > that can go wrong. It also has nice, beginner-friendly FAQs to help you > get started. Like the other distros already su

Re: Pythonwin - Word automation - Removing watermark not working

2005-11-05 Thread Simon Brunning
On 04/11/05, Gregory Piñero <[EMAIL PROTECTED]> wrote: > Is there a different group/mailing list I should try? Does anyone know if > there is a pythonwin group/list for example? There is: . -- Cheers, Simon B, [EMAIL PROTECTED], http://www.br

Re: re sub help

2005-11-05 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > hi > > i have a string : > a = > "this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n" > > inside the string, there are "\n". I don't want to substitute the '\n' > in between > the [startdelim] and [enddelim] to ''. I only want to get rid of the > '\n

Re: Calling Class' Child Methods

2005-11-05 Thread Kent Johnson
Steve Holden wrote: > Andrea Gavana wrote: >> The class "Custom" has a lot of methods (functions), but the user >> won't call >> directly this class, he/she will call the MainClass class to construct >> the >> GUI app. However, all the methods that the user can call refer to the >> "Custom" class

Re: How can I do this in Python?

2005-11-05 Thread Kent Johnson
Lad wrote: > Can you please explain in more details (1) choice? If you are using CGI you might be interested in the VoidSpace logintools which seems to handle much of this process. See http://www.voidspace.org.uk/python/logintools.html#no-login-no-access Kent -- http://mail.python.org/mailman/l

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Peter Hansen
Jeffrey Schwab wrote: > Xah Lee wrote: > >> i've read the official Python tutorial 8 months ago, have spent 30 >> minutes with Python 3 times a week since, have 14 years of computing >> experience, 8 years in mathematical computing and 4 years in unix admin >> and perl > > I can wiggle my ears.

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Rick Wotnaz
"Gerard Flanagan" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Xah Lee wrote: >> Python Doc Problem Example: gzip >> [...] >> A quality documentation should be clear, succinct, precise. >> And, the least it assumes reader's expertise to obtain these >> qualities, the better it is. >> >>

ANN: Leo 4.4a2 withdrawn

2005-11-05 Thread Edward K. Ream
Leo 4.4a2 has been withdrawn due to problems that can cause Leo to lose what you have recently typed. Leo 4.4a3 will be released in about a week. Edward Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.ne

Re: python gc performance in large apps

2005-11-05 Thread Jay Parlar
You may also want to look at the following Summer of Code project: http://pysizer.8325.org/ Their SVN repo is at http://codespeak.net/svn/user/nick8325/sizer/ I haven't had a chance to try it yet, but it might be exactly what you need. The project is described as "PySizer is a library for mea

Re: Using Which Version of Linux

2005-11-05 Thread Jeffrey Schwab
[EMAIL PROTECTED] wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, or Solaris.

Re: control webbrowser remotely?

2005-11-05 Thread Diez B. Roggisch
Martin Bless wrote: > Web browsers like Firefox have really cool abilities nowadays. Objects > in the current document can be addressed and manipulated by > Javascript. Not very comfortable and not easy to debug. > > Q: Is there a way to reach objects in the document from Python? > That would be c

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Jeffrey Schwab
Xah Lee wrote: > i've read the official Python tutorial 8 months ago, have spent 30 > minutes with Python 3 times a week since, have 14 years of computing > experience, 8 years in mathematical computing and 4 years in unix admin > and perl I can wiggle my ears. -- http://mail.python.org/mailman/

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Gerard Flanagan
Xah Lee wrote: > Python Doc Problem Example: gzip > > Xah Lee, 20050831 > > Today i need to use Python to compress/decompress gzip files. Since > i've read the official Python tutorial 8 months ago, have spent 30 > minutes with Python 3 times a week since, have 14 years of computing > experience, 8

Re: I Need Motivation Part 2

2005-11-05 Thread Sybren Stuvel
Dennis Lee Bieber enlightened us with: > I show 185 .py files in the top level Python library. That's a close > match for the base VC include directory -- and I be willing to bet > that site-packages and other add-ins don't add up to another 700 .py > files Sorry, bet lost. I have 1891 .py files i

Re: Using graphviz to visualize trace.py output, anybody?

2005-11-05 Thread Pieter Swart
[EMAIL PROTECTED] wrote: > I was originally thinking of piping the output of trace.py into a text > file and then have python massage that text file into a dot file for > graphviz to visualize. > > Some formatting is possible with graphviz, but I would expect the graph > to be very dependent on ho

Re: Converting a List into a String

2005-11-05 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: > list = ['f', 'e', 'd', 'c', 'b', 'a'] > > How can i convert it into a string so the output is > > fedcba print ''.join(list) -- http://mail.python.org/mailman/listinfo/python-list

Re: modifying source at runtime - jython case

2005-11-05 Thread Alan Kennedy
[Jan Gregor] > I want to apply changes in my source code without stopping jython > and JVM. Preferable are modifications directly to instances of > classes. My application is a desktop app using swing library. > > Python solutions also interest me. > > Solution similiar to "lisp way" is ide

Re: python gc performance in large apps

2005-11-05 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Robby Dermody <[EMAIL PROTECTED]> writes >An update (along with a request for paid help at the end): Over the >past week and a half I've improved the memory usage situation by quite >a bit. Going to python 2.4, linux kernel 2.6, twisted 2.0 and altering >some cod

Re: Using Which Version of Linux

2005-11-05 Thread Mike Meyer
blahman ([EMAIL PROTECTED]) writes: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, o

Re: Using Which Version of Linux

2005-11-05 Thread Maciej Dziardziel
blahman ([EMAIL PROTECTED]) wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, or S

Re: Converting a List into a String

2005-11-05 Thread Will McGugan
[EMAIL PROTECTED] wrote: > I have a List > > list = ['f', 'e', 'd', 'c', 'b', 'a'] > > How can i convert it into a string so the output is > > fedcba > > i used > > for a in list: > print a, > > the output is > > f e d c b a > > How can i remove the spaces b/w each letter? print "".

Re: Converting a List into a String

2005-11-05 Thread [EMAIL PROTECTED]
''.join['h','i'] [EMAIL PROTECTED] wrote: > I have a List > > list = ['f', 'e', 'd', 'c', 'b', 'a'] > > How can i convert it into a string so the output is > > fedcba > > i used > > for a in list: > print a, > > the output is > > f e d c b a > > How can i remove the spaces b/w each letter? >

Converting a List into a String

2005-11-05 Thread [EMAIL PROTECTED]
I have a List list = ['f', 'e', 'd', 'c', 'b', 'a'] How can i convert it into a string so the output is fedcba i used for a in list: print a, the output is f e d c b a How can i remove the spaces b/w each letter? -- * Posted with NewsLeecher v3.0 Beta 7 * http://www.newsleecher.co

Re: Using Which Version of Linux

2005-11-05 Thread [EMAIL PROTECTED]
They are all the same as you don't have specific requirements mentioned. Based on the way you ask, I would say some debian derivative like ubuntu. debian is not programmer friendly but admin friendly I would say. In general programmer friendly distro to me would mean install everything one can poss

Using Which Version of Linux

2005-11-05 Thread [EMAIL PROTECTED]
ok, i m going to use Linux for my Python Programs, mainly because i need to see what will these fork() and exec() do. So, can anyone tell me which flavour of linux i should use, some say that Debian is more programmer friendly, or shold i use fedora, or Solaris. Because these three are the only

Python doc problem example: gzip module (reprise)

2005-11-05 Thread Xah Lee
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathematical comput

Re: Getting Python Accepted in my Organisation

2005-11-05 Thread Steven D'Aprano
On Sat, 05 Nov 2005 04:12:38 -0500, Chris F.A. Johnson wrote: > On 2005-11-05, Steven D'Aprano wrote: >> On Fri, 04 Nov 2005 20:55:48 -0500, Chris F.A. Johnson wrote: >> >> >> >> So that people reading your reply know what you are commenting about. >> >> (Now, imagine that you're reading from a ne

  1   2   >