Re: Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

2007-01-12 Thread Martin v. Löwis
Sorin Schwimmer schrieb: >> Did you add /usr/local/lib to /etc/ld.so.conf? > > It's there It is it also listed with "ldconfig -p"? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python nuube needs Unicode help

2007-01-12 Thread Peter Otten
[EMAIL PROTECTED] wrote: > HELP! > Guy who was here before me wrote a script to parse files in Python. > > Includes line: > print u According to your other posts 'u' seems to be an instance of a custom Utterance class with a __str__() method that accidentally returns unicode. Try changing the pr

RE: Learning Python book, new edition?

2007-01-12 Thread Demel, Jeff
John wrote: >So what happens with google bots etc... Information provided >in the email could be helpful to others that are NOT the original > recipient. And what happens to the archive stuff? I will forward your response to our crack legal department. Perhaps they can help you with your very

Re: maximum number of threads

2007-01-12 Thread Hendrik van Rooyen
"William Heymann" <[EMAIL PROTECTED]> wrote: > So you know I tried this on ubuntu edgy 64bit edition on a dual 2218 opteron > system with 8G of ram and I got > > > Exception raised: can't start new thread > Biggest number of threads: 32274 > This almost looks as if the number of threads is

Re: What happened to SPE?

2007-01-12 Thread Paulo Pinto
Hi, Thanks for the feedback. Paulo -- http://mail.python.org/mailman/listinfo/python-list

pygame and python 2.5

2007-01-12 Thread siggi
Hi all, when I rtry to install pygame (pygame-1.7.1release.win32-py2.4.exe, the most ciurrent version I found) it requires Python 2.4! Will I really have to uninstall my Python 2.5 and install the old Python 2.4 in order to use pygame? Thanks, Siggi -- http://mail.python.org/mailman/listinf

Re: Maths error

2007-01-12 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, "Hendrik van Rooyen" <[EMAIL PROTECTED]> writes: |> |> I would have thought that this sort of thing was a natural consequence |> of rounding errors - if I round (or worse truncate) a binary, I can be off |> by at most one, with an expectation of a half of a least s

How to run external program?

2007-01-12 Thread Lad
How can I run external program from Python? I use Python with XP Thank you for help LB -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run external program?

2007-01-12 Thread Gary Herron
Lad wrote: > How can I run external program from Python? > I use Python with XP > Thank you for help > LB > > The subprocess module is what you want for this. It's got ways of running external executables as separate subprocesses, and interacting with the subprocess and both its input and out

Re: pygame and python 2.5

2007-01-12 Thread Ben Sizer
siggi wrote: > when I rtry to install pygame (pygame-1.7.1release.win32-py2.4.exe, the most > ciurrent version I found) it requires Python 2.4! Will I really have to > uninstall my Python 2.5 and install the old Python 2.4 in order to use > pygame? For now, yes. This is a long-standing problem w

Re: How to modify object attribute by python C API

2007-01-12 Thread Ben Sizer
Huayang Xia wrote: > PyObject* py_obj_attr1 = PyObject_GetAttrString(obj, "attr1"); > PyObject_SetAttrString(py_obj_attr1, "attr2", > PyString_FromString("a")); > Py_DECREF(py_obj_attr1); > > The object py_obj_attr1 is said to be a "New reference". It's > confusing, does it refer to th

Re: pygame and python 2.5

2007-01-12 Thread Laurent Pointal
siggi a écrit : > Hi all, > > when I rtry to install pygame (pygame-1.7.1release.win32-py2.4.exe, the most > ciurrent version I found) it requires Python 2.4! Will I really have to > uninstall my Python 2.5 and install the old Python 2.4 in order to use > pygame? Note: You can have both versions

Re: How to run external program?

2007-01-12 Thread Lad
Gary Herron wrote: > Lad wrote: > > How can I run external program from Python? > > I use Python with XP > > Thank you for help > > LB > > > > > The subprocess module is what you want for this. > > It's got ways of running external executables as separate subprocesses, > and interacting with the

Re: Is there a good example on instantiating, calling, using, an API from Python on Windows?

2007-01-12 Thread Ben Sizer
kj7ny wrote: > To be more exact, I am trying to use Python to talk to a Livelink > system (http://www.opentext.com/) through their LAPI interface (.dll's, > I think). I'll see if I can generate a more intelligent answer to your > question, but for now, I'm far enough in the dark that this is as g

Re: maximum number of threads

2007-01-12 Thread Ganesan Rajagopal
> Felipe Almeida Lessa <[EMAIL PROTECTED]> writes: >> >> to modify the maximum number of user process (AFAIK each thread use a >> process entry on Linux) > I don't think it's only this. It isn't that at all. The default Linux POSIX threads stack size is 8MB. Linux user space is 3GB (Kernel i

Re: Parallel Python

2007-01-12 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > The main difference between MPI python solutions and ppsmp is that with > MPI you have to organize both computations > {MPI_Comm_rank(MPI_COMM_WORLD, &id); if id==1 then ... else } and > data distribution (MPI_Send / MPI_Recv) by yourself. While with ppsmp > you jus

Re: Integer solutions to linear equation?

2007-01-12 Thread scolnik
http://mathworld.wolfram.com/DiophantineEquation.html You can use this web application for solving diophantine equations: http://www.math.uwaterloo.ca/~snburris/htdocs/linear.html Hugo Scolnik Imagination is more important than knowledge.-- http://mail.python.org/mailman/listinfo/python-list

Integer solutions to linear equation?

2007-01-12 Thread scolnik
The answer to your integer solutions problem can be found in http://www.alpertron.com.ar/QUAD.HTM Best Hugo Scolnik Imagination is more important than knowledge.-- http://mail.python.org/mailman/listinfo/python-list

Re: Read from database, write to another database, simultaneously

2007-01-12 Thread Paul Boddie
Dennis Lee Bieber wrote: > The problem though, is that the original poster claimed the Oracle > data was being emitted in multiple chunks, not as a single output -- and > they want to avoid collecting the data in a temporary file... I think he wanted to know whether concurrent reads from Oracle a

Re: Learning Python book, new edition?

2007-01-12 Thread Steven Wayne
On Thu, 11 Jan 2007 16:42:34 -0600, Demel, Jeff <[EMAIL PROTECTED]> wrote: > John wrote: >>So what happens with google bots etc... Information provided >>in the email could be helpful to others that are NOT the original >> recipient. And what happens to the archive stuff? > > I will forw

Re: How to run external program?

2007-01-12 Thread Viewer T.
Lad wrote: > How can I run external program from Python? > I use Python with XP > Thank you for help A possible way to do this is the following: Let's say we want to run a program called program.exe from the path C/Program/Program.exe. We would first need to import the os module and type the fol

Re: Learning Python book, new edition?

2007-01-12 Thread Duncan Booth
Steven Wayne <[EMAIL PROTECTED]> wrote: > Don't take this the wrong way, but this isn't an email, it's a usenet > posting. It is now, but it started as an email. If you examine its headers he sent it to the list but the list administrator had set up software up to copy the email to a newsgroup.

Re: Is there a way to protect a piece of critical code?

2007-01-12 Thread robert
Hendrik van Rooyen wrote: > "robert" <[EMAIL PROTECTED]> wrote: > > >> pushing data objects through an inter-thread queue is a major source for > trouble - as this thread shows again. >> Everybody builds up a new protocol and worries about Empty/Full, > Exception-handling/passing, None-Elements,

Re: Parallel Python

2007-01-12 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, "Paul Boddie" <[EMAIL PROTECTED]> writes: |> [EMAIL PROTECTED] wrote: |> > |> > The main difference between MPI python solutions and ppsmp is that with |> > MPI you have to organize both computations |> > {MPI_Comm_rank(MPI_COMM_WORLD, &id); if id==1 then ... else .

Re: Learning Python book, new edition?

2007-01-12 Thread Steven D'Aprano
On Fri, 12 Jan 2007 04:50:21 -0600, Steven Wayne wrote: [snip stupid disclaimer and response to it] > Unlawful how? You've already given permission for an "agent responsible > for delivering the message" to broadcast it around the world. > > Sorry for the rant, but I'm an email admin and I've ju

Re: Parallel Python

2007-01-12 Thread robert
Paul Boddie wrote: > [EMAIL PROTECTED] wrote: >> The main difference between MPI python solutions and ppsmp is that with >> MPI you have to organize both computations >> {MPI_Comm_rank(MPI_COMM_WORLD, &id); if id==1 then ... else } and >> data distribution (MPI_Send / MPI_Recv) by yourself. Whi

Re: Learning Python book, new edition?

2007-01-12 Thread Steven Wayne
On 12 Jan 2007 11:06:29 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: > Steven Wayne <[EMAIL PROTECTED]> wrote: > >> Don't take this the wrong way, but this isn't an email, it's a usenet >> posting. > > It is now, but it started as an email. If you examine its headers he sent > it to the li

Re: Parallel Python

2007-01-12 Thread Neal Becker
[EMAIL PROTECTED] wrote: > Has anybody tried to run parallel python applications? > It appears that if your application is computation-bound using 'thread' > or 'threading' modules will not get you any speedup. That is because > python interpreter uses GIL(Global Interpreter Lock) for internal > b

Re: Learning Python book, new edition?

2007-01-12 Thread Steven Wayne
On Fri, 12 Jan 2007 22:44:33 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 12 Jan 2007 04:50:21 -0600, Steven Wayne wrote: > > [snip stupid disclaimer and response to it] > >> Unlawful how? You've already given permission for an "agent responsible >> for delivering the message

Re: Parallel Python

2007-01-12 Thread Paul Boddie
robert wrote: > Paul Boddie wrote: > > > > [1] http://www.python.org/pypi/parallel > > I'd be interested in an overview. I think we've briefly discussed the above solution before, and I don't think you're too enthusiastic about anything using interprocess communication, which is what the above sol

Re: Tools Designing large/complicated applications

2007-01-12 Thread Torabisu
Carl J. Van Arsdall wrote: > For those of you that work on larger applications but still code in > python... do your development teams use any tools to facilitate the > design? (i'm not asking about editors here, i'm really asking about > software design tools) Are these the same tools you would

Hint :Easy_Install Documentation

2007-01-12 Thread Norbert
Hello list, just in the moment I wanted to write about then lacking documentation about Easy_Install, but then I found this one : http://www-128.ibm.com/developerworks/library/l-cppeak3.html. Just for google. HTH Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-12 Thread Konrad Hinsen
On Jan 12, 2007, at 11:21, Paul Boddie wrote: > done. My own experience with regard to releasing software is that even > with an open source licence, most people are likely to ignore your > projects than to suddenly jump on board and take control, and even if My experience is exactly the same. An

Re: Parallel Python

2007-01-12 Thread Paul Boddie
Konrad Hinsen wrote: > > That's one more project... It seems that there is significant > interest in parallel computing in Python. Perhaps we should start a > special interest group? Not so much in order to work on a single > project; I believe that at the current state of parallel computing we > s

Re: Rational Numbers

2007-01-12 Thread Carsten Haese
On Thu, 2007-01-11 at 23:47 +, Nick Maclaren wrote: > In article <[EMAIL PROTECTED]>, > Facundo Batista <[EMAIL PROTECTED]> writes: > |> Noud Aldenhoven wrote: > |> > |> > When I was programming in a mathematical project I began to wonder if > python > |> > supports rational numbers[1]. In a

Re: How much slower is dict indexing vs. list indexing?

2007-01-12 Thread Emin
On Jan 11, 5:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > What technique were you thinking of to look up the cached index values > in Python, just as a matter of curiosity? Storing them in a dict? It > would be hard to think of a faster way ... ;-) I didn't have anything fancy in mind. I was

context managers and co-routines

2007-01-12 Thread Bob . Sidebotham
I'm happily using context managers and co-routines, and would like to use both at the same time, e.g. with foo(): ... x = yield y ... In this code multiple copies of this code can be executing at the "same" time, interleaved by the yield statement. This doesn't work we

Newbie imap lib question

2007-01-12 Thread jrpfinch
I have three messages in my inbox. Why does messageCount = gServer.select('INBOX') not just return OK and 3. See below for examples - seems to be completely random how many threes it returns. The documentation for imaplib seems sparse. Does anybody have any good links? Many thanks, Jon message

Re: How much slower is dict indexing vs. list indexing?

2007-01-12 Thread skip
Emin> It sounds like it's probably not worth the effort in general, but Emin> might be for extremely ultra-critical parts of code. Even in extremely ultra-critical parts of code I doubt the loss of readability would be worth it. If there are situations where you can really gain by switch

Re: Tools Designing large/complicated applications

2007-01-12 Thread Nick Vatamaniuc
Carl, Some well known design applications have plugins for UML<->Python translation. For example EnterpriseArchitect (http://www.sparxsystems.com.au/resources/mdg_tech/) has a plugin for Python. ObjectDomain though supports it natively: http://www.objectdomain.com/products/od/overview.do The goo

setup.py ./configure arguments

2007-01-12 Thread km
Hi, how do i pass '--enable-shared' etc arguments to Python2.5 setup.py ? do i need to edit some file ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: How much slower is dict indexing vs. list indexing?

2007-01-12 Thread Paul McGuire
"Emin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jan 11, 5:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> >> What technique were you thinking of to look up the cached index values >> in Python, just as a matter of curiosity? Storing them in a dict? It >> would be hard to

Re: What about this?

2007-01-12 Thread Diez B. Roggisch
Dr. Who wrote: > What's more amazing is that anyone would click on the link at all given > the increasing number of website that provide hidden content that tries > to deliver spyware or viruses just by getting visitors. Me LinuxBoy, me not in danger... SCNR :) Diez -- http://mail.python.org/ma

Re: Python nuube needs Unicode help

2007-01-12 Thread [EMAIL PROTECTED]
Can you attach files in this forum? Couldn't find the option. Oh well, here's the file. #!/usr/bin/python # Version: 1.1 # Author: Steve Losh from sets import Set from optparse import OptionParser from xml.dom.minidom import parse AudioPath = 'audio/' DatafilePath = 'utterances.trmxml' CON

Re: Python nuube needs Unicode help

2007-01-12 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Can you attach files in this forum? Couldn't find the option. Oh well, > here's the file. > > #!/usr/bin/python > # Version: 1.1 > # Author: Steve Losh > > from sets import Set > from optparse import OptionParser > from xml.dom.minidom import parse > > AudioPath

Command line arguments on Vista

2007-01-12 Thread jmike
So I write this sript called printargs.py: -- #!/usr/local/bin/python import sys print 'there are %d args' % len(sys.argv) for arg in sys.argv: print 'arg: %s' % arg -- and make it executable. On pretty much every platform I can get my hands on, when I run printargs.py booga -a

Re: context managers and generators

2007-01-12 Thread Jean-Paul Calderone
On 12 Jan 2007 06:17:01 -0800, [EMAIL PROTECTED] wrote: >I'm happily using context managers and co-routines, and would like to >use both at the same time, e.g. Python has generators, not co-routines. > >with foo(): >... >x = yield y >... > >In this code multiple copies

Re: Command line arguments on Vista

2007-01-12 Thread jmike
By the way, note that if I say (on Vista) python printargs.py booga -a wooga I get the desired output: > there are 4 args > arg: printargs.py > arg: booga > arg: -a > arg: wooga So the quesiton still stands, what's up with that? Thanks, --JMike -- http://mail.pytho

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Carsten Haese <[EMAIL PROTECTED]> writes: |> On Thu, 2007-01-11 at 23:47 +, Nick Maclaren wrote: |> > In article <[EMAIL PROTECTED]>, |> > Facundo Batista <[EMAIL PROTECTED]> writes: |> > |> Noud Aldenhoven wrote: |> > |> |> > |> > When I was programming in a m

Re: context managers and generators

2007-01-12 Thread [EMAIL PROTECTED]
Jean-Paul Calderone wrote: > On 12 Jan 2007 06:17:01 -0800, [EMAIL PROTECTED] wrote: > >I'm happily using context managers and co-routines, and would like to > >use both at the same time, e.g. > > Python has generators, not co-routines. They may be called generators, but I'm using them as co-routi

Re: Command line arguments on Vista

2007-01-12 Thread jmike
Some further information: perl seems to do the same thing (losing arguments). We think it may have something to do with file association. Any ideas anyone? --JMike -- http://mail.python.org/mailman/listinfo/python-list

Re: Command line arguments on Vista

2007-01-12 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > But on Windows Vista, when I run that command, I get > > there are 1 args > arg: printargs.py > > What's up with that? It sounds like the registry entry for running Python files is messed up. Can you go to a command line and see what the command 'ftype Pyth

Re: What about this?

2007-01-12 Thread Dr. Who
What's more amazing is that anyone would click on the link at all given the increasing number of website that provide hidden content that tries to deliver spyware or viruses just by getting visitors. Jeff Bjoern Schliessmann wrote: > new wrote: > > > www.magicoz.com > > amazing > > Yeah, it *is*

Re: context managers and generators

2007-01-12 Thread Laszlo Nagy
> I'm still thinking there is a better way to do it, and would appreciate > any ideas. > Everything can be implemented with goto and arrays. http://entrian.com/goto/ :-P -- http://mail.python.org/mailman/listinfo/python-list

Re: Python nuube needs Unicode help

2007-01-12 Thread [EMAIL PROTECTED]
Diez, you are awesome! This works! Thank you so much!!! You are so awesome! Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > > > Can you attach files in this forum? Couldn't find the option. Oh well, > > here's the file. > > > > #!/usr/bin/python > > # Version: 1.1 > > # Author: Steve Losh >

Re: Rational Numbers

2007-01-12 Thread Carsten Haese
On Fri, 2007-01-12 at 15:05 +, Nick Maclaren wrote: > In article <[EMAIL PROTECTED]>, > Carsten Haese <[EMAIL PROTECTED]> writes: > |> On Thu, 2007-01-11 at 23:47 +, Nick Maclaren wrote: > |> > In article <[EMAIL PROTECTED]>, > |> > Facundo Batista <[EMAIL PROTECTED]> writes: > |> > |> Pyth

Re: ValueError from dict - some detail would be helpful

2007-01-12 Thread Facundo Batista
metaperl wrote: > File "/sw/lib/python2.5/csv.py", line 120, in _dict_to_list > raise ValueError, "dict contains fields not in fieldnames" > > > --- it would be nice if it said what field it was Yeap, nice and useful... but, for example, what'd happen if the fields that are not in fieldname

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Carsten Haese <[EMAIL PROTECTED]> writes: |> |> Ah, so now you're putting words in the BDFL's mouth. ;) |> |> The pronouncement does say "The needs outlined in the rationale section |> have been addressed to some extent by the acceptance of PEP 327 for |> decimal

Re: Matching Directory Names and Grouping Them

2007-01-12 Thread Neil Cerutti
On 2007-01-11, J <[EMAIL PROTECTED]> wrote: > Steve- > > Thanks for the reply. I think what I'm trying to say by similar > is pattern matching. Essentially, walking through a directory > tree starting at a specified root folder, and returning a list > of all folders that matches a pattern, in this

Any python based "Live Web Chat Support"

2007-01-12 Thread johnny
Is there any open source "live web chat support" program or script out there? Any you can recommend? -- http://mail.python.org/mailman/listinfo/python-list

Re: Rational Numbers

2007-01-12 Thread Facundo Batista
Noud Aldenhoven wrote: > There are a (small) couple of other issues where rational numbers could be > handy. That's because rational numbers are exact, irrational numbers (in > python) aren't. But these issues are probably too mathematical to be used in For the sake of me being less ignorant, cou

Re: Need better run/edit method. I have to restart the shell after every script change.

2007-01-12 Thread Mark
Thanks guys. I'll give it a try. Brian Blais wrote: > Mark wrote: > > I'm currently running the IDLE shell under Python 2.5, on Windows XP. > > > > Every time I edit my .txt or .py file, I have to restart the IDLE shell > > for the changes to take effect. It's pretty annoying. Assuming IDLE is > >

Re: How to modify object attribute by python C API

2007-01-12 Thread Huayang Xia
Thanks for the replies. For the checking, I found we have to spend a lot of codes to check the Python API's results. That is a pain. Is it reasonable to ignore the result check of APIs like PyString_FromString and PyString_AsString which will fail only when out of memory. Unfortunately there is no

getting the name of hyperlinks in a file

2007-01-12 Thread CSUIDL PROGRAMMEr
folks, I am trying to write a script that would open a download server and download all the files and store them in a list for example Download server is http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/SRPMS/ is there any way this can be done in python?? -- http://mail.pytho

ArchGenXML please help

2007-01-12 Thread tonydevlin
I am creating a workflow in plone using argouml and archgenxml. I have been following the steps on the site:- http://plone.org/documentation/tutorial/anonymously-adding-custom-content-types-with-argouml-and-archgenxml/creating-a-class-and-workflow-with-argouml However I am confused at step 9 in

module file

2007-01-12 Thread Imbaud Pierre
I am willing to retrieve the file an imported module came from; module.__file__, or inspect.getfile(module) only gives me the relative file name. How do I determine the path? Its obviously possible from python: ipython displays the information (interactively: *module?*). Python 2.4 on Suse 9.3 (clu

modules...n methods

2007-01-12 Thread lee
First of all thnx guys for ur cover on ma questionsOk some more then...whats the way to read the sourcecode of methods and built in functions? -- http://mail.python.org/mailman/listinfo/python-list

Re: ArchGenXML please help

2007-01-12 Thread Bruno Desthuilliers
tonydevlin a écrit : > I am creating a workflow in plone using argouml and archgenxml. I have been > following the steps on the site:- > http://plone.org/documentation/tutorial/anonymously-adding-custom-content-types-with-argouml-and-archgenxml/creating-a-class-and-workflow-with-argouml > > Howev

'LoadFile' not found when invoking Acrobat via wx.lib.pdfwin

2007-01-12 Thread Christian Stapfer
Hi, I get the following traceback when trying to have wx.lib.pdfwin.PDFWindow open a PDF file: E:\Tutoring\Teacher\Flashcards>python pdfwin1.py Traceback (most recent call last): File "pdfwin1.py", line 50, in OnOpenButton self.pdf.LoadFile(dlg.GetPath()) File "C:\Python24\lib\site-pack

Re: modules...n methods

2007-01-12 Thread Bjoern Schliessmann
lee wrote: > whats the way to read the sourcecode of methods Easy. Look up the .py file and open it in an editor of your choice. Those files are, for example, in "/usr/lib/python". > and built in functions? Get your python interpreter's source code and look up the functions there. Regards, B

Re: context managers and generators

2007-01-12 Thread Bjoern Schliessmann
Laszlo Nagy wrote: >> I'm still thinking there is a better way to do it, and would >> appreciate any ideas. > > Everything can be implemented with goto and arrays. But is that really better? Regards, Björn -- BOFH excuse #174: Backbone adjustment -- http://mail.python.org/mailman/list

Re: What about this?

2007-01-12 Thread Bjoern Schliessmann
Dr. Who wrote: > What's more amazing is that anyone would click on the link at all > given the increasing number of website that provide hidden content > that tries to deliver spyware or viruses just by getting visitors. How could active input reach *me* if I just fed the W3C validator with the U

Re: Parallel Python

2007-01-12 Thread Konrad Hinsen
On Jan 12, 2007, at 15:08, Paul Boddie wrote: > It seems to me that a more useful first step would be to create an > overview of the different modules and put it on the python.org Wiki: > > http://wiki.python.org/moin/FrontPage > http://wiki.python.org/moin/UsefulModules (a reasonable entry point)

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, Facundo Batista <[EMAIL PROTECTED]> writes: |> Noud Aldenhoven wrote: |> |> > There are a (small) couple of other issues where rational numbers could be |> > handy. That's because rational numbers are exact, irrational numbers (in |> > python) aren't. But these iss

parsing a file name

2007-01-12 Thread CSUIDL PROGRAMMEr
I have a filename cairo-2.3.4.src.rpm Is there any way i can only get 2.3.4 from this file name thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie imap lib question

2007-01-12 Thread jrpfinch
All I have to go on is the RFC2060 standard which says: 7.3.1. EXISTS Response Contents: none The EXISTS response reports the number of messages in the mailbox. This response occurs as a result of a SELECT or EXAMINE command, and if the size of the mailbox changes (e.g. n

What is a perl hash in python

2007-01-12 Thread Karyn Williams
I am new to Pyton. I am trying to modify and understand a script someone else wrote. I am trying to make sense of the following code snippet. I know line 7 would be best coded with regex. I first would like to understand what was coded originally. thelistOut looks like a hash to me (I'm more famili

Re: Any python based "Live Web Chat Support"

2007-01-12 Thread Kartic
johnny sayeth, on 01/12/2007 11:11 AM: > Is there any open source "live web chat support" program or script out > there? Any you can recommend? Why don't you install ejabberd (a Jabber server implemented in erlang) and install Muckl (http://zeank.in-berlin.de/muckl/), an AJAX client for mult

Re: ArchGenXML please help

2007-01-12 Thread tonydevlin
Bruno Desthuilliers wrote: > > tonydevlin a écrit : >> I am creating a workflow in plone using argouml and archgenxml. I have >> been >> following the steps on the site:- >> http://plone.org/documentation/tutorial/anonymously-adding-custom-content-types-with-argouml-and-archgenxml/creating-a-c

Re: parsing a file name

2007-01-12 Thread Tim Williams
On 12 Jan 2007 09:16:51 -0800, CSUIDL PROGRAMMEr <[EMAIL PROTECTED]> wrote: > I have a filename > cairo-2.3.4.src.rpm > Is there any way i can only get 2.3.4 from this file name Is this a one off, or do you have to process multiple files with similar names? -- Tim Williams -- http://mail.pyt

Re: parsing a file name

2007-01-12 Thread Chris Mellon
On 12 Jan 2007 09:16:51 -0800, CSUIDL PROGRAMMEr <[EMAIL PROTECTED]> wrote: > I have a filename > cairo-2.3.4.src.rpm > Is there any way i can only get 2.3.4 from this file name > thanks > > -- > http://mail.python.org/mailman/listinfo/python-list > I'm trying to think of a good reason to extract

Re: parsing a file name

2007-01-12 Thread Paul Boddie
Chris Mellon wrote: > > I'm trying to think of a good reason to extract the version from the > filename instead of using RPM to get the real version from the > metadata and I can't come up with one. The inquirer doesn't have any RPM handling tools installed/available or is dealing with a lot of ve

Re: What is a perl hash in python

2007-01-12 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Karyn Williams wrote: > I am new to Pyton. I am trying to modify and understand a script someone > else wrote. I am trying to make sense of the following code snippet. I know > line 7 would be best coded with regex. What is line 7 in the snippet? > I first would like to u

I need to consume a .NET web service in a Python client

2007-01-12 Thread mohit
Hello, I am a .NET developer experimenting with Python. I need to consume a .NET web service in a Python client. how do I go about it? which libraries do i need? pointers to help me get started would be much appreciated. I am just a newbie to the Python world so please be bear with my novice queri

Re: parsing a file name

2007-01-12 Thread Chris Mellon
On 12 Jan 2007 10:23:41 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: > Chris Mellon wrote: > > > > I'm trying to think of a good reason to extract the version from the > > filename instead of using RPM to get the real version from the > > metadata and I can't come up with one. > > The inquirer doe

Re: Rational Numbers

2007-01-12 Thread Noud Aldenhoven
On 1/12/07, Facundo Batista <[EMAIL PROTECTED]> wrote: Noud Aldenhoven wrote: > There are a (small) couple of other issues where rational numbers could be > handy. That's because rational numbers are exact, irrational numbers (in > python) aren't. But these issues are probably too mathematical

Re: I need to consume a .NET web service in a Python client

2007-01-12 Thread Ravi Teja
mohit wrote: > Hello, > > I am a .NET developer experimenting with Python. > I need to consume a .NET web service in a Python client. how do I go > about it? > which libraries do i need? > pointers to help me get started would be much appreciated. > I am just a newbie to the Python world so please

Re: I need to consume a .NET web service in a Python client

2007-01-12 Thread Simon Brunning
On 12 Jan 2007 11:11:21 -0800, Ravi Teja <[EMAIL PROTECTED]> wrote: > Start Here > http://www.diveintopython.org/soap_web_services/index.html > Example Client > http://www.diveintopython.org/soap_web_services/first_steps.html Sadly, SOAPpy doesn't seem to be maintained any more. I'd take a look at

Re: Rational Numbers

2007-01-12 Thread Simon Brunning
On 12 Jan 2007 15:55:39 GMT, Nick Maclaren <[EMAIL PROTECTED]> wrote: > > In article <[EMAIL PROTECTED]>, > Carsten Haese <[EMAIL PROTECTED]> writes: > |> but there are more use > |> cases for Decimal than for Rational. > > That is dubious, but let's not start that one again. Decimals are good for

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
In article <[EMAIL PROTECTED]>, "Simon Brunning" <[EMAIL PROTECTED]> writes: |> |> > |> but there are more use |> > |> cases for Decimal than for Rational. |> > |> > That is dubious, but let's not start that one again. |> |> Decimals are good for holding financial values. There's a whole lot of |

Re: Rational Numbers

2007-01-12 Thread Thomas Ploch
Simon Brunning schrieb: > On 12 Jan 2007 15:55:39 GMT, Nick Maclaren <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, >> Carsten Haese <[EMAIL PROTECTED]> writes: >> |> but there are more use >> |> cases for Decimal than for Rational. >> >> That is dubious, but let's not start that one

Re: Rational Numbers

2007-01-12 Thread Simon Brunning
On 12 Jan 2007 19:41:52 GMT, Nick Maclaren <[EMAIL PROTECTED]> wrote: > Sigh. I was hoping not to have that myth perpetrated again. > > Financial calculations need decimal FIXED-point, with a precisely > specified precision. It is claimed that decimal FLOATING-point > helps with providing that, b

[ANN] XPN 0.7.0

2007-01-12 Thread Nemesis
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode support. It is written with Python+GTK. It has features like scoring/actions, X-Face and Face decoding, muting of quoted text, newsrc import/export, find article and search in the body, spoiler char/rot13, random taglines and con

Re: Rational Numbers

2007-01-12 Thread Simon Brunning
On 1/12/07, Thomas Ploch <[EMAIL PROTECTED]> wrote: > Do not forget: > > - Time > - Personal Data (like birthdays, age) The datetime module has perfectly good classes for holding date and time values, and age sounds like an integer to me. -- Cheers, Simon B [EMAIL PROTECTED] -- http://mail.pyth

How to respond to a confirmation prompt automatically

2007-01-12 Thread Coby
Just to give you some background about my problem: I execute os.system(command), where command is a string. On the command line in windows, I get: "Continue, and unload these objects? [no]" I need to respond 'y' to continue, but I am uncertain on how to output the 'y' automatically. Thanks in

dynamic argument name for functions

2007-01-12 Thread mark
I want to pass a value to an argument of a function. The argument name is dynamic and is stored in a variable. How do I call the function using with arg_name and value as the parameters. thanks mark For ex: def function(arg1='None', arg2='None', arg3='None'): print arg1 print arg2

Re: dynamic argument name for functions

2007-01-12 Thread Carsten Haese
On Fri, 2007-01-12 at 12:17 -0800, mark wrote: > I want to pass a value to an argument of a function. The argument name > is dynamic and is stored in a > variable. How do I call the function using with arg_name and value as > the parameters. > thanks > mark > > For ex: > def function(arg1='None',

Re: dynamic argument name for functions

2007-01-12 Thread Simon Brunning
On 1/12/07, mark <[EMAIL PROTECTED]> wrote: > I want to pass a value to an argument of a function. The argument name is > dynamic and is stored in a > variable. How do I call the function using with arg_name and value as the > parameters. > thanks > mark > > For ex: > def function(arg1='None',

Re: dynamic argument name for functions

2007-01-12 Thread Carsten Haese
On Fri, 2007-01-12 at 20:22 +, Simon Brunning wrote: > On 1/12/07, mark <[EMAIL PROTECTED]> wrote: > > I want to pass a value to an argument of a function. The argument name is > > dynamic and is stored in a > > variable. How do I call the function using with arg_name and value as the > > para

Re: Newbie imap lib question

2007-01-12 Thread Roel Schroeven
jrpfinch schreef: > I have three messages in my inbox. Why does messageCount = > gServer.select('INBOX') not just return OK and 3. See below for > examples - seems to be completely random how many threes it returns. > The documentation for imaplib seems sparse. Does anybody have any good > links

  1   2   >