Re: python certification

2005-07-20 Thread egbert
On Wed, Jul 20, 2005 at 08:06:51AM -0700, Kay Schluehr wrote: > Andreas Kostyrka schrieb: > > > (These are the people look for Pearl and Pyhton programmers ;) ) > > Or Phyton :) In 2000 we had already the Phyththon Misspelling Contest. I presented then a regexp that could check if we were talkin

Re: What does "::" mean?

2005-07-20 Thread Robert Kern
Rob Williscroft wrote: > import sys > > live = 'live' > > print live[ sys.maxint : : -1 ] > print live[ len(live)-1 : : -1 ] > > print live[ len(live)-1 : -len(live)-1 : -1 ] > print live[ len(live)-1 : -sys.maxint : -1 ] > print live[ sys.maxint : -sys.maxint : -1

Re: mod_python Apache/2.0.52 (Win32) Python 2.4

2005-07-20 Thread Steve Holden
Dieter Raber wrote: > Hi there, > > I am wondering if there is a mod_python for the above configuration. I > downloaded mod_python-3.1.3.win32-py2.3.exe, which of course as the > name implies keeps on asking me for a python 2.3 installation. I > imagine one could cheat a little bit with a fake reg

Re: Lots of pdf files

2005-07-20 Thread Paul Rubin
Greg Lindstrom <[EMAIL PROTECTED]> writes: > There does not appear to be a simple way to merge many pdf's into one. There's probably some way to do it with pstops or some related program or set of programs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows command line problem

2005-07-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I think the lesson there is 'dont depend on getopt, write your own > command line parser'. I always write my own, as it's so easy to do. > I suppose you built your own car so you could get out a bit, too? After all, there's nothing tricky about a simple internal combust

Re: is this pythonic?

2005-07-20 Thread Terry Reedy
> Wow, I didn't know about enumerate. It is listed and explained in Lib Ref Manual, Chapter 2, on builtin functions and types and their methods. Everyone should read at least that much of the Lib manual. Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python Apache/2.0.52 (Win32) Python 2.4

2005-07-20 Thread Luis M. Gonzalez
Dieter Raber wrote: > Hi there, > > I am wondering if there is a mod_python for the above configuration. I > downloaded mod_python-3.1.3.win32-py2.3.exe, which of course as the > name implies keeps on asking me for a python 2.3 installation. I > imagine one could cheat a little bit with a fake re

Re: mod_python Apache/2.0.52 (Win32) Python 2.4

2005-07-20 Thread [EMAIL PROTECTED]
Dieter Raber wrote: > Hi there, > > I am wondering if there is a mod_python for the above configuration. I > downloaded mod_python-3.1.3.win32-py2.3.exe, which of course as the > name implies keeps on asking me for a python 2.3 installation. I > imagine one could cheat a little bit with a fake regi

Re: mod_python Apache/2.0.52 (Win32) Python 2.4

2005-07-20 Thread Luis M. Gonzalez
Dieter Raber wrote: > Hi there, > > I am wondering if there is a mod_python for the above configuration. I > downloaded mod_python-3.1.3.win32-py2.3.exe, which of course as the > name implies keeps on asking me for a python 2.3 installation. I > imagine one could cheat a little bit with a fake re

Filling up commands.getstatusoutput's buffer

2005-07-20 Thread travislspencer
Hey, Has anyone ever had commands.getstatusoutput's buffer fill up when executing a verbose command? If so, what workaround did you use? Did you just pipe the output into a file and then read it in or fork a processes or something else? -- Regards, Travis Spencer -- http://mail.python.org/ma

native hotshot stats module

2005-07-20 Thread Floris Bruynooghe
As part of my Google Summer of Code project I have developed a hstats module. It reads a file with profile data saved by hotshot and displays statistics of it after sorting it. The current interface is very basic in the philosophy of You Arent Gonna Need It[1]. So my question here is: please tes

File Table List in Plone

2005-07-20 Thread groups
All, Is there is a Plone type or product for generating a file list on a plone page, eg: a list of downloadable files in a table? An example of what I want can be found at http://www.zope.org/Members/MacGregor/ExtFile under "Available Releases" where a list of files resides. Is this a manually g

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Peter Hansen
stringy wrote: > I have a program that shows a 3d representation of a cell, depending on > some data that it receives from some C++. It runs with wx.timer(500), > and on wx.EVT_TIMER, it updates the the data, and receives it over the > socket. It's generally inappropriate to have a GUI program do

Re: Lots of pdf files

2005-07-20 Thread Bruce Stephens
Paul Rubin writes: > Greg Lindstrom <[EMAIL PROTECTED]> writes: >> There does not appear to be a simple way to merge many pdf's into one. > > There's probably some way to do it with pstops or some related program > or set of programs. The pdftk manpage gives this as one

Copying attributes

2005-07-20 Thread red
Hi, I'm writing a script for Blender and need to build a face array. My engine needs that all faces must be triangles, so I convert quads to triangles by dividing them into two triangles. Here is the function: def build_face_table(mesh): face_table = {} i = 0 for f in me

Re: is this pythonic?

2005-07-20 Thread Peter Hansen
Terry Reedy wrote: >>Wow, I didn't know about enumerate. > > It is listed and explained in Lib Ref Manual, Chapter 2, on builtin > functions and types and their methods. Everyone should read at least that > much of the Lib manual. Or be sure to read the "What's New in Python X.Y" pages that ar

Re: goto

2005-07-20 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Sybren Stuvel wrote: >> Mike Meyer enlightened us with: >> I dislike gotos because it is too easy to inadvertently create infinite loops. <10 WINK; 20 GOTO 10> >>> >>>And it's impossible without them? >> I thought the same thing, but then I read

Newbie question about lists

2005-07-20 Thread Austin Cox
Hello, I just started with python and have run into a problem using lists. If I enter: li = [.25,.10,.05,.01] and then enter: print li it'll output: [0.25, 0.10001, 0.050003, 0.01] Can anyone tell me why it does this, and how I can get just the value .10, and .

Re: Newbie question about lists

2005-07-20 Thread Robert Kern
Austin Cox wrote: > Hello, I just started with python and have run into a problem using > lists. > > If I enter: > li = [.25,.10,.05,.01] > and then enter: > print li > it'll output: > [0.25, 0.10001, 0.050003, 0.01] > > Can anyone tell me why it does this, and

ANN: SPE 0.7.4.a Python IDE

2005-07-20 Thread Stani
Quick release for wxPython2.6, use at your own risk Major bugfix release for wxPython 2.6+ and Mac Os X (This version doesn't work for sure with wxPython versions lower than 2.5.4.1) Bug reports which are related to wxPython 2.6- will be ignored. SPE has a new website: http://www.stani.be/python/

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
I can now pass and return quite a few types except object instances: my python code gets to the point where I do: def Get_Obj(self): . return an_object My VB code looks like Dim obj as Variant obj = acom.Get_Obj() I get an "unexpected Python error . Objects of type 'instance'

How to use octave in python

2005-07-20 Thread [EMAIL PROTECTED]
Hi, I want to use octave to read a file and do some matrix operation. My question is, how do I do it inside my python script? Also, can I write octave line by line in python without having to write the octave code in another script and then call it in the python script? Thanks in advance --

Re: Newbie question about lists

2005-07-20 Thread Austin
Well, that answers that. Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use octave in python

2005-07-20 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi, > > I want to use octave to read a file and do some matrix operation. My > question is, how do I do it inside my python script? Also, can I write > octave line by line in python without having to write the octave code > in another script and then call it in the py

interactive python session spool/save-log command?

2005-07-20 Thread S. M. Tuttle
I'm going to be teaching an introductory course on Python in the Fall, so I am hurriedly trying to both learn Python and prepare the course during the next few weeks. I'm curious if there is a command that allows everything from that point on in a python interactive session to be saved/spooled/for

Re: Newbie question about lists

2005-07-20 Thread Leo Jay
you may use the decimal module which was introduced in Python2.4 >>> from decimal import * >>> li = [Decimal(".25"), Decimal(".10"), Decimal(".05"), Decimal(".01")] >>> print li [Decimal("0.25"), Decimal("0.10"), Decimal("0.05"), Decimal("0.01")] >>> -- http://mail.python.org/mailman/listinfo/p

Re: interactive python session spool/save-log command?

2005-07-20 Thread Robert Kern
S. M. Tuttle wrote: > I'm going to be teaching an introductory course on Python > in the Fall, so I am hurriedly trying to both learn > Python and prepare the course during the next few weeks. > > I'm curious if there is a command that allows everything from > that point on in a python interactive

Re: Newbie question about lists

2005-07-20 Thread Paul Rubin
"Leo Jay" <[EMAIL PROTECTED]> writes: > [Decimal("0.25"), Decimal("0.10"), Decimal("0.05"), Decimal("0.01")] I wonder if we should have some special syntax for decimals: maybe [$.25, $.10, $.05, $.01] That would even fit in with decimals being used for financial quantities. -- http://mail.pyth

Re: Newbie question about lists

2005-07-20 Thread Leo Jay
IMO, python should use the decimal for default. .25 is right for Decimal(".25"). isn't that better? -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question about lists

2005-07-20 Thread Robert Kern
Paul Rubin wrote: > "Leo Jay" <[EMAIL PROTECTED]> writes: > >>[Decimal("0.25"), Decimal("0.10"), Decimal("0.05"), Decimal("0.01")] > > I wonder if we should have some special syntax for decimals: maybe > > [$.25, $.10, $.05, $.01] > > That would even fit in with decimals being used for financi

Re: Copying attributes

2005-07-20 Thread Terry Hancock
On Wednesday 20 July 2005 05:45 pm, red wrote: > Everything seems be ok, but i'm getting: > > Traceback (most recent call last): > File "", line 169, in write > File "", line 102, in build_face_table > AttributeError: normal > > I was wondering why? I'm not sure either, yet, but can you

Re: Python IDE

2005-07-20 Thread Stani
Try out the new version of SPE 0.7.4.a. You would make me happy if you can make it crash. (But not by running crashing programs or infinitive loops inside spe.) http://www.stani.be/python/spe Ciao, Stani -- http://mail.python.org/mailman/listinfo/python-list

Re: interactive python session spool/save-log command?

2005-07-20 Thread Brian van den Broek
Robert Kern said unto the world upon 2005-07-20 21:15: > S. M. Tuttle wrote: > >>I'm going to be teaching an introductory course on Python >>in the Fall, so I am hurriedly trying to both learn >>Python and prepare the course during the next few weeks. >> >>I'm curious if there is a command that al

Weekly Python Patch/Bug Summary

2005-07-20 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 350 open ( +1) / 2882 closed ( +2) / 3232 total ( +3) Bugs: 889 open ( -8) / 5141 closed (+22) / 6030 total (+14) RFE : 189 open ( -5) / 178 closed ( +8) / 367 total ( +3) New / Reopened Patches __ Add unico

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Christopher Subich
Peter Hansen wrote: > stringy wrote: > >> I have a program that shows a 3d representation of a cell, depending on >> some data that it receives from some C++. It runs with wx.timer(500), >> and on wx.EVT_TIMER, it updates the the data, and receives it over the >> socket. > > > It's generally ina

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Jp Calderone
On Thu, 21 Jul 2005 00:18:58 -0400, Christopher Subich <[EMAIL PROTECTED]> wrote: >Peter Hansen wrote: >> stringy wrote: >> >>> I have a program that shows a 3d representation of a cell, depending on >>> some data that it receives from some C++. It runs with wx.timer(500), >>> and on wx.EVT_TIMER,

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Christopher Subich
Jp Calderone wrote: > In the particular case of wxWidgets, it turns out that the *GUI* blocks > for long periods of time, preventing the *network* from getting > attention. But I agree with your position for other toolkits, such as > Gtk, Qt, or Tk. Wow, I'm not familiar with wxWidgets; how's

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Paul Rubin
Christopher Subich <[EMAIL PROTECTED]> writes: > > In the particular case of wxWidgets, it turns out that the *GUI* > > blocks for long periods of time, preventing the *network* from > > getting attention. But I agree with your position for other > > toolkits, such as Gtk, Qt, or Tk. > > Wow, I'm

Generating images with text in them

2005-07-20 Thread phil hunt
I am trying to generate some images (gifs or pngs) with text in them. I can use the Python Imaging Library, but it only has access to the default, rather crappy, font. Ideally I'd like to use one of the nicer fonts that come with my X Windows installation. Using Tkinter I can draw these fonts

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Donn Cave
Quoth Paul Rubin : | Christopher Subich <[EMAIL PROTECTED]> writes: | > > In the particular case of wxWidgets, it turns out that the *GUI* | > > blocks for long periods of time, preventing the *network* from | > > getting attention. But I agree with your position for othe

Re: About undisclosed recipient

2005-07-20 Thread Bartek Ryłko
Hi! Thanks for Your info!! It was very usefull for me! :-) Thanks once again! On 7/9/05, Jeff Epler <[EMAIL PROTECTED]> wrote: > You provided far too little information for us to be able to help. > > If you are using smtplib, it doesn't even look at message's headers to > find the recipient list;

Re: Dose someone have installed python on IRIX ?

2005-07-20 Thread hugonz
Hi, No I have not done it before, but no one is able to help you if you do not post what kind of errors you are getting. Basically if it compiled and linked ok, maybe you specified something in the ./configure script that the plattform does not support... Hugo -- http://mail.python.org/mailman/

How to limit the uploading file size in python?

2005-07-20 Thread praba kar
Dear All, In Php we can limit the uploading file size by php.ini configuration file. But In python what way we can limit the file uploading size. kindly let me know. regards Prabahar __ How much free photo storage d

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Peter Hansen
Jp Calderone wrote: > In the particular case of wxWidgets, it turns out that the *GUI* blocks > for long periods of time, preventing the *network* from getting > attention. But I agree with your position for other toolkits, such as > Gtk, Qt, or Tk. Are you simply showing that there are two po

Python Game Programming Challenge update

2005-07-20 Thread pyweek1
There's only one week to go before registration opens for the first Python Game Programming Challenge (also known as PyWeek). That means there's only (checks website) 37 days to go before the challenge starts! If you have a Python-based graphics, sound, music or game library that you'd like to u

Re: mod_python Apache/2.0.52 (Win32) Python 2.4

2005-07-20 Thread Dieter Raber
Thanks everybody, I followed the link Waldemar had provided and there I found what I was looking for. Dieter -- http://mail.python.org/mailman/listinfo/python-list

Re: Using SHFileOperation

2005-07-20 Thread avishay
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2