Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Gurpreet Sachdeva
On Thu, 6 Jan 2005 12:55:22 +0530, Binu K S <[EMAIL PROTECTED]> wrote: >>>The file's current position moves as you write into it. I concure and have figured out the solution BUT while reading from the file from the position where the file handler is, should return "Null/Blank/Anything in this world

python-dev Summary for 2004-11-16 through 2004-11-30

2005-01-05 Thread Brett C
python-dev Summary for 2004-11-16 through 2004-11-30 This is a summary of traffic on the `python-dev mailing list`_ from November 16, 2004 through November 30, 2004. It is intended to inform the wider Python community of on-going developments

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Binu K S
There's nothing crazy going on here. The file's current position moves as you write into it. Both read and write operation use the same offset. The tell() method gives you the current position at any time. When you append to a file the position moves to the end of the file so that the next write ha

Re: Python evolution: Unease

2005-01-05 Thread Paul Rubin
[EMAIL PROTECTED] (Bengt Richter) writes: > What do you think of automated secure importing/installing from a > remote server? You know, you try to import something and it imports > a stub that was included as a battery-place-holder and that has > basic help info and will give you reasonable optio

Re: What could 'f(this:that=other):' mean?

2005-01-05 Thread Jonathan Fine
Jeff Shannon wrote: Jonathan Fine wrote: Giudo has suggested adding optional static typing to Python. (I hope suggested is the correct word.) http://www.artima.com/weblogs/viewpost.jsp?thread=85551 An example of the syntax he proposes is: > def f(this:that=other): > print this I'm going to

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Gurpreet Sachdeva
logfile=file(r'test.txt','a+') logfile.write('datetime') logfile.flush() test=logfile.readlines() print test I added logfile.flush(), the 'datetime' was written in the file correctly but I couldn't get any result... Crazy! Garry -- http://mail.python.org/mailman/listinfo/python-list

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Gurpreet Sachdeva
I tried logfile=file(r'test.txt','w+') logfile.write('datetime') test=logfile.readlines() print test I got : Open an encoded file using the given mode and return a wrapped version providing transparent encoding/decoding. Note: The wrapped version will only accept the object forma

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Aldo Cortesi
Thus spake [EMAIL PROTECTED] ([EMAIL PROTECTED]): > Hey guys, > > I can't figure this one out, why is this simple script giving me > problems? > > logfile=file(r'test.txt','w') ^^^ You've opened the file in write mode. To read from the file, you'll have to reopen it i

Re: Another PythonWin Excel question

2005-01-05 Thread Marten Bauer
It's me wrote: I followed the example in http://stompstompstomp.com/weblog/technical/2004-05-20 and learned that to add a new worksheet to an Excel workbook, you would use the workbook.Worksheets.Add() method. That works. However, the new worksheet got added *in front* of the last worksheet I w

RE: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Vishnu
logfile = file(r'test.txt','w') logfile.write('datetime') logfile.close() # <- close the file logfile = file(r'test.txt','r') # <- Open the file in read mode test=logfile.readlines() ~Vishnu. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread wordsender
Hey guys, I can't figure this one out, why is this simple script giving me problems? logfile=file(r'test.txt','w') logfile.write('datetime') test=logfile.readlines() When I run it I get the error message: Traceback (most recent call last): File "C:\Documents and Settings\Gregory\My Documents\Get

Re: BASIC vs Python

2005-01-05 Thread Dan Bishop
Christos TZOTZIOY Georgiou wrote: > On 17 Dec 2004 15:53:51 -0800, rumours say that "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> might have written: > > >> The BASICs of my youth also supported graphics and sounds. > >> > >> PLAY "CGFED>CC > > >Now wait a minute, shouldn't that be... > > > >PLAY "CG

Re: Python evolution: Unease

2005-01-05 Thread Robert Kern
Mike Thompson wrote: Alex Martelli wrote: Carlos Ribeiro <[EMAIL PROTECTED]> wrote: ... - IDE: Better than what? Than IDLE? Than Eclipse? Than SPE? Than Pythonwin? I would like to seee Eric3, with some polish & opensourced on Win (which means solving the Qt licensing problem). Perhaps someone

Re: is python more popular than coldfusion?

2005-01-05 Thread worzel
re: YOU'LL SEE IT'S ADDICTIVE Yes, I know! I am hooked already! Its such a breeze after doing so much Java programming. I just download Jython - the possibilities with this seem incredible. Unlike you, I learned Coldfusion after learning Java first (about 1996). For the sake of a couple of job

Re: Python evolution: Unease

2005-01-05 Thread Mike Thompson
Alex Martelli wrote: Carlos Ribeiro <[EMAIL PROTECTED]> wrote: ... - IDE: Better than what? Than IDLE? Than Eclipse? Than SPE? Than Pythonwin? I would like to seee Eric3, with some polish & opensourced on Win (which means solving the Qt licensing problem). Perhaps someone could convince Trolltec

Re: Concepts RE: Python evolution: Unease

2005-01-05 Thread Jeremy Bowers
On Wed, 05 Jan 2005 12:15:29 +0300, Roman Suzi wrote: > As for concepts, they are from Generic Programming (by Musser and > Stepanov) and I feel that Python is in position to implement them to the > fullest extent. And IMHO it will be nicer than just Java-like interfaces > or Eiffel's contract app

Re: is python more popular than coldfusion?

2005-01-05 Thread Luis M. Gonzalez
> by the way, does anybody want to buy any coldfusion books :) I have Sam's Teach Yourself Coldfusion by Charles Mohnike, which I bought in 2001. By this time I used to think that I was learning rocket science the easy way, and thinking about learning php or asp was really scary... these codes loo

Re: Python evolution: Unease

2005-01-05 Thread michele . simionato
Did you used Tkinter and Tix? Most of my problems were there. Of course, I also got in trouble when upgrading to Python 2.2 from 1.5.2 Finally they switched to Python 2.2, but at that moment Python 2.3 came out and I got tired. I switched to Mandrake 1.5 and I am happy with it. Never had any seri

Re: Python evolution: Unease

2005-01-05 Thread michele . simionato
John Roth: > The bottom line is that I'm not going to be writing any > extensive pieces of Python documentation. My time > is better spent elsewhere. Well, a couple of years ago I realized that some documentation on the MRO was missing. I wrote a document in reST, posted here, and Guido put it on

Re: Python evolution: Unease

2005-01-05 Thread Bengt Richter
On 05 Jan 2005 07:18:25 -0800, Paul Rubin wrote: >Ville Vainio <[EMAIL PROTECTED]> writes: >> Paul> I can't parse that. It says two contradictory things. >> Paul> Sentence 2 says that if something essential is not in the >> Paul> (Python) distro then the (Py

Re: is python more popular than coldfusion?

2005-01-05 Thread worzel
Thanks for all the feedback guys.   It seems CF is not really a big money earner or even recognised as a serious language to many folk.   by the way, does anybody want to buy any coldfusion books :)   (I just bought O'Reileys 'Learning Python' - its extremely readable and very thorough)  

Re: Example of using pty to control a process?

2005-01-05 Thread morphex
Oh right. I knew about the -b option, but not the -n 1 option (which isn't required on FreeBSD). Thanks, I'll obviously use that instead! :) Regards, Morten -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-05 Thread Rob Emmons
> I'd go further. It's not possible to force anyone to share, but the > GPL aims to remove software from a system that instead aims to force > people NOT to share. Well said. I do think the point is -- no one liscence fits all. The GPL is a great tool for those that write software for the pu

Re: The Industry choice

2005-01-05 Thread Bulba!
On 04 Jan 2005 19:25:12 -0800, Paul Rubin wrote: >"Rob Emmons" <[EMAIL PROTECTED]> writes: >> Me personally, I believe in free software, but always talk about open >> source. My answer regarding forcing people to share -- I like the GPL >> -- and I am perfectly happy t

Re: Concepts RE: Python evolution: Unease

2005-01-05 Thread corey
Roman Suzi wrote: > On Wed, 5 Jan 2005, EP wrote: > > > I can try to write a PEP "Generic Programming Concepts". > That would be great. It's so hard to get your head around an abstract concept (a thought, not a programming concept) without a concrete example in some form of syntax. I think tha

No typical loops, and other crazy ideas

2005-01-05 Thread Bulba!
OK. I have reworked this program (below) to use just the data manipulation capabilities of Python (training was largely the motivation). I've tried to manipulate the data just in Python and not in typical loops. One thing that may not be entirely crazy in this, IMHO, is the attempt to use built-i

Re: Example of using pty to control a process?

2005-01-05 Thread Grant Edwards
On 2005-01-06, morphex <[EMAIL PROTECTED]> wrote: > I'm trying to get the output from the command top on Linux, using > python. I'd like to start top, get a page of output, and then send top > the letter 'q' to end the process. Man, you like to do things the hard way. Me OTOH, I'm lazy. I'd use

Re: The Industry choice

2005-01-05 Thread Bulba!
On Wed, 5 Jan 2005 11:19:56 +0100, [EMAIL PROTECTED] (Alex Martelli) wrote: >Say that the city has ten hat shops of the same quality. One is in >Piazza dell'Unita`, all the way to the Northern border of the city. One >is in Piazza Saragozza, all the way to the Southern border. The other >eight

Example of using pty to control a process?

2005-01-05 Thread morphex
Hi, I'm trying to get the output from the command top on Linux, using python. I'd like to start top, get a page of output, and then send top the letter 'q' to end the process. Looking around I've figured that the module pty can be used for this, however, I can't find any good examples of how to

Re: Import binary extensions from zipfiles, windows only

2005-01-05 Thread PJDM
Thomas Heller wrote: > zipextimporter, as published, doesn't handle extensions in packages. > The patch I attached at the end, may fix this - I tested it with PIL. Thanks, that works fine. However, ZopeX3 itself still won't run. As part of the startup, it attempts to load some files relative to

Re: Python evolution: Unease

2005-01-05 Thread Robert Kern
Bulba! wrote: On Wed, 5 Jan 2005 07:37:25 -0600, Skip Montanaro <[EMAIL PROTECTED]> wrote: I've never needed numeric stuff either. I just need to do things like: .>>> table.sort(column_name) # that obviously would sort rows of table by the values of column column_name [snip for brevity] Now suppos

Publish your program for free and enjoy worry free earning. 100% !!!!! FREE (AND WE MEAN IT - FREE)

2005-01-05 Thread DohnoSoft
Dear software developer!!! Just letting you know that now you can publish your program or link for free on www.dohnosoft.com and enjoy worry free earnings. Thank you, Problems? Questions? [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Other notes

2005-01-05 Thread bearophileHUGS
Thank you to all the gentle people that has given me some comments, and sorry for bothering you... Doug Holton: >This will also likely never appear in Python. I know, that's why I've defined it "wild". >Also, you might request the NetLogo and StarLogo developers to support Jython (in addition

Re: Another PythonWin Excel question

2005-01-05 Thread It's me
Ah, this work: self.xlbook.Worksheets.Add(None,sht) got it from: http://mail.python.org/pipermail/python-list/2003-September/183367.html Thanks again. -- Me "It's me" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Kartic" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL P

Re: Python evolution: Unease

2005-01-05 Thread Terry Reedy
"Daniel Bowett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Thanks, typically how long does it take for any documentation to be >considered and implemented? Right now, rough guess, based on my haphazard collection of knowledge and experience, I would anticipate 1 to 60 days fo

Re: Another PythonWin Excel question

2005-01-05 Thread Kartic
Sorry, I was thinking of the move() method. Move() takes the after= argument. See this link for usage. (The left nav bar has all other method of the worksheets collection, so bookmark this page :-) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrtskhowtoaddnewwor

Re: Python evolution: Unease

2005-01-05 Thread Terry Reedy
"John Roth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would like to contribute some documentation to Python. > I've got the time, I write quite a bit, etc. I've got fairly > strong opinions about some things that need to be documented, > (such as all the new style class desc

Re: Another PythonWin Excel question

2005-01-05 Thread It's me
"Kartic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am not sure about this but I believe you can give a parameter > after="sheet1". to Add(), like so, Add(after="sheet1"). > I get a "got an expected keyword argument 'after'" from Add(). > Unfortunately I do not have Excel in

Re: PIL and ReportsLab error

2005-01-05 Thread Larry Bates
PIL doesn't support compressed TIF files. You must uncompress them prior to trying to place them. I use tiffcp utility via os.system call to uncompress TIF files, then place them into my .PDF file. Larry Bates Syscon, Inc. Jason Koch wrote: Hello, I am trying to produce pdf files from tiffs and I

Re: Building unique comma-delimited list?

2005-01-05 Thread Scott David Daniels
How about (for 2.4 or 2.3 using "from collections import Set as set": def combine(source, special='foo'): parts = set(source) if special in parts: return ', '.join([special] + list(parts - set([special]))) return ', '.join(parts) --Scott David Daniels [EMAIL PROTECTED] -- http:/

Mail Delivery (failure letty.leung@maplesandcalder.com)

2005-01-05 Thread Antigen_UKEXC01
Our AntiVirus scanner detected virus Exploit.IFrame.B in your message. The message has NOT been delivered and the recipient has NOT been notified. Please use an anti-virus scanner to remove the virus before resending. If you continue to have difficulty please contact our IT Help Desk for assista

Re: Decorators and static typing.

2005-01-05 Thread Stephen Thorne
On Wed, 05 Jan 2005 15:30:27 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Well, the decorator war is over (Python lost IMO!) and now we've got the > static typing war to fight! > > Both of these seem like syntax sugar to avoid writing good code! One has > already introduced ugly coding an

Re: date/time

2005-01-05 Thread David M. Cooke
Thomas Guettler <[EMAIL PROTECTED]> writes: > Am Wed, 05 Jan 2005 15:08:37 +0100 schrieb Nader Emami: > >> L.S., >> >> Could somebody help me how I can get the next format of date >> from the time module? > > I don't understand your question. Do you want to have the next day? > > 20041231 --> 200

Re: Another PythonWin Excel question

2005-01-05 Thread Kartic
I am not sure about this but I believe you can give a parameter after="sheet1". to Add(), like so, Add(after="sheet1"). Unfortunately I do not have Excel installed on this machine to confirm this. A tip: if you have VBA (which you should if you have Excel) installed, lookup the Add method for the

Decorators and static typing.

2005-01-05 Thread whisper
Well, the decorator war is over (Python lost IMO!) and now we've got the static typing war to fight! Both of these seem like syntax sugar to avoid writing good code! One has already introduced ugly coding and the 2nd is likely to do the same! Ok, so how do you do keywords and default values? de

Re: OT: spacing of code in Google Groups

2005-01-05 Thread JanC
Peter Hansen schreef: >> You mean to say that your editor does not have rectangle operations ? >> :-) > > I wouldn't know.** I try quite hard to limit the features > that I have to learn and remember to a very, very small > list. Why the heck would I ever have to do "rectangle > operations" on

Re: Python evolution: Unease

2005-01-05 Thread alex23
John Roth wrote: > I've been reading this thread and quietly congratulating myself > on staying out of it, but this statement takes the cake. Honestly, I feel the same way about statements of your's like this: > The bottom line is that I'm not going to be writing any > extensive pieces of Python

PIL and ReportsLab error

2005-01-05 Thread Jason Koch
Hello, I am trying to produce pdf files from tiffs and I keep getting this error. Does anyone have any tips on this one. I am using the ReportLab package with the PIL. File "C:\Python23\Lib\site-packages\PIL\Image.py", line 309, in _getdecoder raise IOError("decoder %s not available" % dec

Re: get the IP address of a host

2005-01-05 Thread Lee Harr
On 2005-01-05, none <""> wrote: > I want to determine the outside (non local, a.k.a. 127.0.0.x) ip > addresses of my host. It seems that the socket module provides me with > some nifty tools for that but I cannot get it to work correctly it seems. > > Can someone enlightened show a light on this:

Another PythonWin Excel question

2005-01-05 Thread It's me
I followed the example in http://stompstompstomp.com/weblog/technical/2004-05-20 and learned that to add a new worksheet to an Excel workbook, you would use the workbook.Worksheets.Add() method. That works. However, the new worksheet got added *in front* of the last worksheet I was at. How ca

Re: Building unique comma-delimited list?

2005-01-05 Thread Mark McEahern
Roy Smith wrote: You've got a list of words (actually, they're found by searching a data structure on the fly, but for now let's assume you've got them as a list). You need to create a comma-delimited list of these words. There might be duplicates in the original list, which you want to eliminate

Re: Building unique comma-delimited list?

2005-01-05 Thread Berthold Höllmann
[EMAIL PROTECTED] (Roy Smith) writes: > I've got a silly little problem that I'm solving in C++, but I got to > thinking about how much easier it would be in Python. Here's the > problem: > > You've got a list of words (actually, they're found by searching a > data structure on the fly, but for n

Re: date/time

2005-01-05 Thread Lee Harr
On 2005-01-05, Nader Emami <[EMAIL PROTECTED]> wrote: > L.S., > > Could somebody help me how I can get the next format of date > from the time module? > > example: I have to have this time 20050105. It is the next > attributes of format %Y%m%d. > I would use the

Re: Python 2.4 on Windows XP

2005-01-05 Thread It's me
Thanks, Jeff. That works. "Jeff Shannon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > > In my case, there is *no* error message of any kind. When I run pythonw.exe > > from the python23 directory, the screen blinked slightly and goes back to > > the command p

Re: modpython, apache and windows

2005-01-05 Thread grahamd
Bob Van Zant wrote: > Fortunately most of the Python-for-the-web implementations do not follow > closely to the PHP paradigm of web-based programming. There are some, > like PSP, that more closely model what PHP does. > > It is not uncommon to have something like index.py which does hardly > anythi

Re: Cookbook 2nd ed Credits (was Re: The Industry choice)

2005-01-05 Thread Steve Holden
Alex Martelli wrote: [...] If you wished to count only _authored_ recipes (but that's a bit misleading, since in several recipes-as-published there is a merge of two or three separately submitted and accepted recipes, and here I'm counting only the first-listed-author per published-recipe...): 1:

re: Please help -- Pmw PanedWidget inside ScrolledFrame

2005-01-05 Thread Jared Cohen
Almost forgot, here's the code sample: #!/usr/bin/env python import sys, os, Tkinter, types, tkFont, Pmw def makeResizable(widget): for i in range(0, widget.grid_size()[0]): widget.columnconfigure(i, weight=1) for i in range(0, widget.grid_size()[1]): widget.rowconfigure(i, weig

Please help -- Pmw PanedWidget inside ScrolledFrame

2005-01-05 Thread Jared Cohen
I'm trying to use a Pmw.ScrolledFrame which contains a PanedWidget. But I can't get the PanedWidget to expand to fill the interior frame. It expands fine if I just grid it into the toplevel window; and when I tried gridding DIFFERENT widgets into the ScrolledFrame, they expanded just fine. So b

Building unique comma-delimited list?

2005-01-05 Thread Roy Smith
I've got a silly little problem that I'm solving in C++, but I got to thinking about how much easier it would be in Python. Here's the problem: You've got a list of words (actually, they're found by searching a data structure on the fly, but for now let's assume you've got them as a list). You n

Re: Python 2.4 on Windows XP

2005-01-05 Thread DavidHolt
Thanks--you were all a big help. I'm running now. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Readline configuration

2005-01-05 Thread Fernando Perez
Mark Roach wrote: > I have readline set up pretty much the same way as in the example in the > python docs (http://docs.python.org/lib/readline-example.html) and > something I find myself doing fairly often is > > type some code > more code > more code > ... > > and then wanting to s

Re: What could 'f(this:that=other):' mean?

2005-01-05 Thread Jeff Shannon
Jonathan Fine wrote: Giudo has suggested adding optional static typing to Python. (I hope suggested is the correct word.) http://www.artima.com/weblogs/viewpost.jsp?thread=85551 An example of the syntax he proposes is: > def f(this:that=other): > print this This means that f() has a 'this'

Re: smtp question

2005-01-05 Thread Max M
Philippe C. Martin wrote: Hi, I am testing the smtp module and have the following question: in the code below (taken from net sample) prior to adding the "Subject:" field, the email client found the "From" and the "To". Without the "Subject:" field on I get this: Email client = Evolution: the "From

Re: Reaching the real world

2005-01-05 Thread Avi Berkovich
Hey, If you want to do something simple, you can use your parallel port to control other circuitry. I've made an extension module before for DLPortIO which is a free lib for doing port IO in win2k/xp. I have to dig it out of my hdds/discs if you want it, but it's really easy to make with pyrex

Re: Python 2.4 on Windows XP

2005-01-05 Thread Jeff Shannon
It's me wrote: In my case, there is *no* error message of any kind. When I run pythonw.exe from the python23 directory, the screen blinked slightly and goes back to the command prompt. Right -- pythonw.exe is a console-less interpreter. Having no console, it doesn't have an interactive mode, and

Re: Python evolution: Unease

2005-01-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Daniel Bowett <[EMAIL PROTECTED]> wrote: > >Thanks, typically how long does it take for any documentation to be >considered and implemented? It varies. (I could write a much longer response, but it would boil down to the same thing. ;-) -- Aahz ([EMAIL PROTECTED

PIL: Quick Question

2005-01-05 Thread flamesrock
Hi, Is there a method (or trick) in the PIL to set to set the alpha channel of a png to zero? I can't find it in the handbook. -thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 on Windows XP

2005-01-05 Thread Scott David Daniels
Jeff Shannon wrote: DavidHolt wrote: I have a problem that I see on two different machines, one running XP SP1 and one XP SP 2 On both I installed Python 2.4. I can't seem to start IDLE. When I try to start it, I get an hourglass cursor for a short time then nothing more happens. This happens w

What could 'f(this:that=other):' mean?

2005-01-05 Thread Jonathan Fine
Giudo has suggested adding optional static typing to Python. (I hope suggested is the correct word.) http://www.artima.com/weblogs/viewpost.jsp?thread=85551 An example of the syntax he proposes is: > def f(this:that=other): > print this This means that f() has a 'this' parameter, of type 'tha

Re: smtp question - using email module

2005-01-05 Thread Philippe C. Martin
Thank you all for your help - an yes! the email module is _very_ nice. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding a restricted python interpreter

2005-01-05 Thread Andy Gross
Check out http://mail.python.org/pipermail/python-dev/2003-January/031851.html for a historical thread on rexec.py's vulnerabilities. Right now, the answer for people who want restricted execution is usually "wait for pypy", due to the number of tricks that can subvert the rexec model. There

Re: Python 2.4 on Windows XP

2005-01-05 Thread It's me
In my case, there is *no* error message of any kind. When I run pythonw.exe from the python23 directory, the screen blinked slightly and goes back to the command prompt. "Jeff Shannon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DavidHolt wrote: > > > I have a problem that I see

Re: win32com.client problem

2005-01-05 Thread It's me
Thanks for the reply. I will chew on this a bit. "Kartic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > 1. Put your COM invokations in a try/except loop. From my experience, > that helped me prevent, in most cases, Excel from "hanging" and having > to restart the PC too. I

RE: Python evolution: Unease

2005-01-05 Thread Batista, Facundo
Title: RE: Python evolution: Unease [Daniel Bowett] #- Thanks, typically how long does it take for any documentation to be #- considered and implemented? That depends. If you know that some module is supported by someone in particular, you can asign the bug to him, so it should be attende

Re: Python 2.4 on Windows XP

2005-01-05 Thread Jeff Shannon
DavidHolt wrote: I have a problem that I see on two different machines, one running XP SP1 and one XP SP 2. On both I installed Python 2.4. I can't seem to start IDLE. When I try to start it, I get an hourglass cursor for a short time then nothing more happens. This happens whether I click the IDLE

Re: Working with flat files [LDIF].

2005-01-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Scott A. McIntyre wrote: I looked around but didn't see any LDIF tools for perl or python... Any assistance or advice is appreciated!! Scott Hello Scott, Did you ever get this issue resolved? I have a similar need to merge two LDIF files. I did find a program called m

Re: Python evolution: Unease

2005-01-05 Thread Daniel Bowett
Batista, Facundo wrote: [Daniel Bowett] #- Contribute to where on Sourceforge??? Which domentation are #- we talking #- about in general? Suppose you're reading Python documentation. Don't know, for example, os.remove(). There you find that a particular parragraph is difficult to understand. You

Re: OT: spacing of code in Google Groups

2005-01-05 Thread Peter Hansen
Jacek Generowicz wrote: Peter Hansen <[EMAIL PROTECTED]> writes: Grant Edwards wrote: I always rather liked line numbers (a-la 'can -n'). That also makes discussion of the code easier: That, unfortunately, is somewhat harder to remove without using a regular expression... You mean to say that your

Re: modpython, apache and windows

2005-01-05 Thread Steve Holden
Sam wrote: Hi All, I am interested in learning python since I am hearing more and more about python for use in web development I am starting out on python, with knowledge of PHP some perl my current hurdle is setting up either apache 1 or 2 with python 2.3.3 I have installed modpython fine whic

Re: Python 2.4 on Windows XP

2005-01-05 Thread Peter Hansen
DavidHolt wrote: I have a problem that I see on two different machines, one running XP SP1 and one XP SP 2. Works fine here. (First time I've run it though... don't use it.) On both I installed Python 2.4. I can't seem to start IDLE. When I try to start it, I get an hourglass cursor for a short ti

Re: Deferred expressions (was Re: Lambda as declarative idiom)

2005-01-05 Thread Bengt Richter
On Tue, 04 Jan 2005 19:31:37 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: >Steven Bethard wrote: >> Nick Coghlan: def-from syntax [4] >> (def f(a) + o(b) - o(c) from (a, b, c)) >> (def x * x from (x)) >> (def x from ()) >> (def x.bar(*a, **k) from (*a, **k)) >> ((def x(*a, **k) from ()) for x, a

Re: win32com.client problem

2005-01-05 Thread Kartic
Hi, 1. Put your COM invokations in a try/except loop. From my experience, that helped me prevent, in most cases, Excel from "hanging" and having to restart the PC too. In the except part, release the Excel (or other COM resource) (e.g.calling workbook.Close() or excelobj.Quit(), depending on the s

Re: modpython, apache and windows

2005-01-05 Thread Steve Holden
Sam wrote: Hi All, I am interested in learning python since I am hearing more and more about python for use in web development I am starting out on python, with knowledge of PHP some perl my current hurdle is setting up either apache 1 or 2 with python 2.3.3 I have installed modpython fine whic

Re: smtp question

2005-01-05 Thread Mike Meyer
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > Hi, > > I am testing the smtp module and have the following question: > > in the code below (taken from net sample) prior to adding the "Subject:" > field, the email client found the "From" and the "To". Without the > "Subject:" field on I get thi

Re: is python more popular than coldfusion?

2005-01-05 Thread Premshree Pillai
On Wed, 05 Jan 2005 13:54:53 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > >>is python more popular than coldfusion? > > For your specific purpose of learning a language to get a job, I > > suggest visiting the site http://mshiltonj.com/sm/categories/languages/ > > ,

Re: is python more popular than coldfusion?

2005-01-05 Thread Mike Meyer
[EMAIL PROTECTED] writes: >>is python more popular than coldfusion? > For your specific purpose of learning a language to get a job, I > suggest visiting the site http://mshiltonj.com/sm/categories/languages/ > , where it appears that Python is mentioned about as often as Fortran > or Ada in job l

RE: Python evolution: Unease

2005-01-05 Thread Batista, Facundo
Title: RE: Python evolution: Unease [Daniel Bowett] #- Contribute to where on Sourceforge??? Which domentation are #- we talking #- about in general? Suppose you're reading Python documentation. Don't know, for example, os.remove(). There you find that a particular parragraph is difficul

Re: Restore a unified diff

2005-01-05 Thread Tim Peters
[Nick Allen] >>> Unfortunately, restore does not do the same for unified_diff. I do >>> not see any similar function that is intended for unified_diff. >>> Does anyone know how to "restore" from a unified diff generated >>> delta? [Tim Peters] >> That's in general impossible, since unified diffs

Re: Python evolution: Unease

2005-01-05 Thread Daniel Bowett
Batista, Facundo wrote: [John Roth] #- I would like to contribute some documentation to Python. #- I've got the time, I write quite a bit, etc. I've got fairly #- strong opinions about some things that need to be documented, #- (such as all the new style class descriptor stuff from 2.2) #- and I ha

RE: Python evolution: Unease

2005-01-05 Thread Batista, Facundo
Title: RE: Python evolution: Unease [John Roth] #- I would like to contribute some documentation to Python. #- I've got the time, I write quite a bit, etc. I've got fairly #- strong opinions about some things that need to be documented, #- (such as all the new style class descriptor stuff fr

Re: Python evolution: Unease

2005-01-05 Thread Carlos Ribeiro
On Wed, 5 Jan 2005 19:25:37 +0100, Alex Martelli <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro <[EMAIL PROTECTED]> wrote: >... > > > - IDE: Better than what? Than IDLE? Than Eclipse? Than SPE? Than > > > Pythonwin? > > > > I would like to seee Eric3, with some polish & opensourced on Win > > (wh

type declarations, interfaces, etc as program information composition

2005-01-05 Thread Bengt Richter
I just read Guido's http://www.artima.com/weblogs/viewpost.jsp?thread=86641 "Adding Optional Static Typing to Python -- Part II" and I it struck me that if you step back to a more distant perspective, you can see specific source syntax proposals as a special case of composing program information,

Re: smtp question

2005-01-05 Thread Kartic
Philippe, Looks like the problem lies where you have added the Subject header. You have terminated it with a \n\n and then your From and To headers. You may want to rewrite it as: server.sendmail(fromaddr, toaddrs, 'Subject:from python\r\n'+msg) Why dont you consider using the email module - ht

Re: Restore a unified diff

2005-01-05 Thread Mike Meyer
Tim Peters <[EMAIL PROTECTED]> writes: > [Nick Allen] >> Unfortunately, restore does not do the same for unified_diff. I do >> not see any similar function that is intended for unified_diff. Does >> anyone know how to "restore" from a unified diff generated delta? > > That's in general impossibl

Is there any way/where to subscribe for automated PEP status emails?

2005-01-05 Thread Bengt Richter
I find that threads sometimes mention PEPs that I wasn't aware of, or that an interesting one has been updated without my noticing. I should perhaps check the PEP site more regularly, but ISTM it shouldn't be that hard to implement an automated notification of PEP status changes by email. A cron j

Re: Python evolution: Unease

2005-01-05 Thread Bulba!
On Wed, 5 Jan 2005 07:37:25 -0600, Skip Montanaro <[EMAIL PROTECTED]> wrote: > >Terry> Numarray has a record array type. If there is not one publicly >Terry> available, perhaps you could write a CSV file to record-array >Terry> slurper and contribute it to the Recipes site or maybe ev

Re: Cookbook 2nd ed Credits

2005-01-05 Thread Premshree Pillai
On Wed, 5 Jan 2005 13:52:06 -0500, Dan Perl <[EMAIL PROTECTED]> wrote: > > "Alex Martelli" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Dan Perl <[EMAIL PROTECTED]> wrote: > > > >> "Alex Martelli" <[EMAIL PROTECTED]> wrote in message > >> news:[EMAIL PROTECTED] > >> > Premshre

Re: Cookbook 2nd ed Credits

2005-01-05 Thread Dan Perl
"Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dan Perl <[EMAIL PROTECTED]> wrote: > >> "Alex Martelli" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Premshree Pillai <[EMAIL PROTECTED]> wrote: >> >> Btw, is there a comprehensive list of ALL co

Re: Securing a future for anonymous functions in Python

2005-01-05 Thread Paul Rubin
Nick Coghlan <[EMAIL PROTECTED]> writes: > Do you consider generator expressions or list comprehensions deficient > because they don't allow several statements in the body of the for > loop? I don't see what it would mean to do otherwise. -- http://mail.python.org/mailman/listinfo/python-list

Write some docs already! (was Re: Python evolution: Unease)

2005-01-05 Thread Aahz
In article <[EMAIL PROTECTED]>, John Roth <[EMAIL PROTECTED]> wrote: > >I would like to contribute some documentation to Python. I've got >the time, I write quite a bit, etc. I've got fairly strong opinions >about some things that need to be documented, (such as all the new >style class descriptor

  1   2   >