Re: exporting mesh from image data

2005-02-04 Thread John Hunter
> "Fernando" == Fernando Perez <[EMAIL PROTECTED]> writes: Fernando> I hope you posted this on the VTK list with a CC to Fernando> Prabhu as well... The hopes of a positive reply there Fernando> are, I suspect, a fair bit higher. The scipy list would Fernando> be a good idea,

How to enable Python Scripts with MS IIS Web Server?

2005-02-04 Thread syed_saqib_ali
Hi. I have MS Windows Server 2003, Enterprise Edition. It has MS Management Console 2.0, Version 5.2 and IIS Manager 6.0 I have a directory called "myDirs". Within this directory are 2 files: 1) index.pl (a perl script) 2) index.py (a python script whose first line is "#!C:\Python21\pythonw.e

Re: forms, xslt and python

2005-02-04 Thread Uche Ogbuji
Firstly, that isn't an XML file. You're missing quotes around attribute values. Secondly, your question is very unclear. Are you looking for an XSLT way to correlate the correct_answer attribute to the alternative element in corresponding order? Are you looking for a Python means to do this?

Re: test_socket.py failure

2005-02-04 Thread x2164
Nick Coghlan <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Marc, it is possible that there was a change between > > glibc-2.2.4 and 2.2.5 that would account for the > > difference in behaviour. I think i'll write a little > > test program in C to check out getserv

Re: IPython colors in windows

2005-02-04 Thread Fuzzyman
Are you really using the readline module from newcenturycomputers ? I've got a feeling that's broken and you need to use the Gary Bishop one with IPython Sorry if this is spurious... (restricted internet access, so I can't check for you... but the correct one is linked to from the IPython site

Re: bytecode obfuscation

2005-02-04 Thread Gabriel Cooper
snacktime wrote: Also, I'm curious how much demand their is for this application in the Python world. The application replaces online credit card processors(Verisign, Authorizenet) by providing a platform that connects directly to the bank networks for credit card processing, and also provides ot

Re: mounting a filesystem?

2005-02-04 Thread Larry Bates
There is smbmount, but I don't know what type of filesystem you are looking for. http://redclay.altervista.org/ Larry Bates Dan Stromberg wrote: Is there a python module that can mount a filesystem? More specifically, a loopback filesystem with a particular offset, under linux? Thanks! -- http://ma

Re: regular expression match collection

2005-02-04 Thread [EMAIL PROTECTED]
Thanks you... -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression match collection

2005-02-04 Thread P
[EMAIL PROTECTED] wrote: Hello, For example I have a string : "Halo by by by" Then I want to take and know the possition of every "by" how can I do it in python? [ match.start() for match in p.finditer("Helo by by by") ] see: http://mail.python.org/pipermail/python-list/2004-December/255013.html --

Re: regular expression match collection

2005-02-04 Thread Steve Holden
[EMAIL PROTECTED] wrote: Hello, For example I have a string : "Halo by by by" Then I want to take and know the possition of every "by" how can I do it in python? I tried to use: p = re.compile(r"by") m = p.search("Helo by by by") print m.group() # result "by" print m.span() # result (5,7)

Re: making symlinks with distutils

2005-02-04 Thread TZOTZIOY
On 4 Feb 2005 04:01:25 -0800, rumours say that "Michele Simionato" <[EMAIL PROTECTED]> might have written: >I guess I need to add a os.link(src, dst) somewhere in the >setup.py script or in a postinstallation script but I am not exactly >sure where. Since you want to make a symbolic link, you pro

Re: regular expression match collection

2005-02-04 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > For example I have a string : "Halo by by by" > Then I want to take and know the possition of every "by" > how can I do it in python? > > I tried to use: > > p = re.compile(r"by") > m = p.search("Helo by by by") > print m.group() # result "by" > print m.span() # r

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Dave Brueck
Fredrik Lundh wrote: Tim Daneliuk wrote: THis is why, IMHO, things like SOAP a laughable - RPC is a poor foundation for reliable, durable, and high-performance TP. It might be fine for sending an order or invoice now and then, but sustained through- put of the sort I think of as "high" performanc

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Al Dykes
In article <[EMAIL PROTECTED]>, Dave Brueck <[EMAIL PROTECTED]> wrote: >Paul Rubin wrote: >> How would you go about building such a site? Is LAMP really the right >> approach? > >Two major problems I've noticed, don't know if they are universal, but they >sure >hurt the performance: > >1) Some

Re: advice needed for simple python web app

2005-02-04 Thread Dan Perl
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > If you're just trying to get a conceptual understanding of web > programming, I suggest you start with cgi. > > Next you might want to read Philip and Alex's Guide to Web Publishing: > > http://philip.greenspun.com

Re: dynamic func. call

2005-02-04 Thread Tim Jarman
Aljosa Mohorovic wrote: > can i do something like this: > > s = "myFunction" > a = s() # equals to: a = myFunction() Functions are first-class objects in Python, so you can do: def myFunction(): # whatever which creates a function object and binds the name myFunction to it. Then: s = myFu

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Al Dykes
In article <[EMAIL PROTECTED]>, Tim Daneliuk <[EMAIL PROTECTED]> wrote: >Paul Rubin wrote: > >> Tim Daneliuk <[EMAIL PROTECTED]> writes: >> >>>I worked for an Airline computer reservation system (CRS) for almost a >>>decade. There is nothing about today's laptops that remotely comes close >>>to t

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Fredrik Lundh
Tim Daneliuk wrote: > THis is why, IMHO, things like SOAP a laughable - RPC is a poor > foundation for reliable, durable, and high-performance TP. It might be > fine for sending an order or invoice now and then, but sustained through- > put of the sort I think of as "high" performance is likely n

regular expression match collection

2005-02-04 Thread [EMAIL PROTECTED]
Hello, For example I have a string : "Halo by by by" Then I want to take and know the possition of every "by" how can I do it in python? I tried to use: p = re.compile(r"by") m = p.search("Helo by by by") print m.group() # result "by" print m.span() # result (5,7) How can I get the inf

Re: global variables

2005-02-04 Thread Nick Coghlan
A Steve wrote: A Steve wrote: A Steve wrote: There we go, much clearer ;) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mail

Re: IPython colors in windows

2005-02-04 Thread Claudio Grondi
Hi, I have watched this thread hoping to get an hint on my problem, but it seems I didn't. My problem is, that the background of part of the error messages is always black (e.g. after typing In [1]: sdfsdf) and my monitor failes to show the red, green texts on black background clearly enough to s

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Dave Brueck
Steve Holden wrote: Paul Rubin wrote: Skip Montanaro <[EMAIL PROTECTED]> writes: It's more than a bit unfair to compare Wikipedia with Ebay or Google. Even though Wikipedia may be running on high-performance hardware, it's unlikely that they have anything like the underlying network structure (rep

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Al Dykes
In article <[EMAIL PROTECTED]>, Tim Daneliuk <[EMAIL PROTECTED]> wrote: >Paul Rubin wrote: > > > >> I've only worked on one serious site of this type and it was "SAJO" >> (Solaris Apache Java Oracle) rather than LAMP, but the concepts are >> the same. I just feel like something bogus has to be go

Re: Converting a string to a function pointer

2005-02-04 Thread Steve Holden
Håkan Persson wrote: Hi. I am trying to "convert" a string into a function pointer. Suppose I have the following: from a import a from b import b from c import c funcString = GetFunctionAsString() and funcString is a string that contains either "a", "b" or "c". How can I simply call the correct fun

Re: [EVALUATION] - E01: The Java Failure - May Python Helps?

2005-02-04 Thread Markus Wankus
Fredrik Lundh wrote: Markus Wankus wrote: Google his name - he has been banned from Netbeans and Eclipse (and Hibernate, and others...) for good reason. Can you imagine how much of a Troll you need to be to *actually* get "banned" from the newsgroups of open source projects such as those? have

Re: Is there a market for python developers?

2005-02-04 Thread Nick Coghlan
Paul Rubin wrote: 2) Can using Python make you more marketable as a programmer? Certainly it can. You can often get things done faster in Python than in other languages, and getting things done always helps your marketability. Lots of times the customer just needs to get some task completed, and

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Kartic
Paul Rubin said the following on 2/3/2005 10:00 PM: I have the idea that the Wikipedia implementers know what they're doing, but I haven't looked into it super closely. Absolutely, hence my disclaimer about not viewing the Mediawiki code. Hmm, I wasn't aware that Apache 2.x gave any significant spe

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Steve Holden
Paul Rubin wrote: Skip Montanaro <[EMAIL PROTECTED]> writes: It's more than a bit unfair to compare Wikipedia with Ebay or Google. Even though Wikipedia may be running on high-performance hardware, it's unlikely that they have anything like the underlying network structure (replication, connection

Re: making symlinks with distutils

2005-02-04 Thread Sylvain Thenault
On Fri, 04 Feb 2005 04:59:51 -0800, Michele Simionato wrote: > Sylvain Thenault: >> Actually it does install it is $PREFIX/bin. > > Aha! And how do I set $PREFIX? Is it a Unix environment variable or is it > a keyword argument in setup? Something like setup( prefix="/usr") ? it's a command line

Re: dynamic func. call

2005-02-04 Thread Ola Natvig
Aljosa Mohorovic wrote: can i do something like this: s = "myFunction" a = s() # equals to: a = myFunction() a = locals()[x]() locals() returns a dictionary with string keys that you can use -- -- Ola Natvig <[EMAIL PROTECTED]> infoSense AS / development -- ht

Re: Why does super() require the class as the first argument?

2005-02-04 Thread Nick Coghlan
Kevin Smith wrote: I can create a super() that does this as follows: _super = super def super(obj, cls=None): if cls is None: return _super(type(obj), obj) return super(cls, obj) I guess I'm just not sure why it wasn't done that way in the first place. Because it doesn't work. As Ch

Re: Extreme Python

2005-02-04 Thread John Roth
Sigh. Another mailing list to subscribe to. Why do we need this? Especially why do we need it at Google? I'd rather not Balkanize things and keep the XP and Python issues away from the two lists involved. If there are Python specific issues, they're quite welcome on either this list/newsgroup or on

dynamic func. call

2005-02-04 Thread Aljosa Mohorovic
can i do something like this: s = "myFunction" a = s() # equals to: a = myFunction() -- http://mail.python.org/mailman/listinfo/python-list

Re: making symlinks with distutils

2005-02-04 Thread Michele Simionato
Sylvain Thenault: > Actually it does install it is $PREFIX/bin. Aha! And how do I set $PREFIX? Is it a Unix environment variable or is it a keyword argument in setup? Something like setup( prefix="/usr") ? -- http://mail.python.org/mailman/listinfo/python-list

Re: python equivalent to haskells iterate.

2005-02-04 Thread Nick Coghlan
Graeme Caldwell wrote: What this does is takes as a paramter a decimal integer and converts it to a sequence in which each member is numeral from each position in the integer. For this specific problem, the builtin 'str' is your best bet: digit_list = map(int, str(val)) (If you only want to displ

Re: making symlinks with distutils

2005-02-04 Thread Sylvain Thenault
On Fri, 04 Feb 2005 04:01:25 -0800, Michele Simionato wrote: >>From what I see in the docs, registering a script just normalize the > shebang line, but does not install it in /usr/bin, nor make any symbolic > links, so it is not what I am looking for. Actually it does install it is $PREFIX/bin.

Re: what version of pyQt are compatible with QT 3.1.1 educational ?

2005-02-04 Thread Phil Thompson
> hello > I have QT 3.1.1 educational on my computer (Win XP) That doesn't sound like you are conforming to Trolltech's Educational License. To quote: " The product may only be used on school hardware and on the school's premises." > I tried to install several version of pyQt (PyQt edu 3.13 Edu,

Re: walktree browser filenames problem

2005-02-04 Thread dimitri pater
thanks! now it works: ret.append(' http://e-bench.serpia.com/upload/%s>%s\n' % (urllib.quote(escape(name)),escape(name))) bye, Dimitri On Fri, 4 Feb 2005 11:45:17 -, Richard Brodie <[EMAIL PROTECTED]> wrote: > > "dimitri pater" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]

what version of pyQt are compatible with QT 3.1.1 educational ?

2005-02-04 Thread Fabrice H
hello I have QT 3.1.1 educational on my computer (Win XP) I tried to install several version of pyQt (PyQt edu 3.13 Edu, PyQt edu 3.6, PyQT non-commercial 4.13, but I still can't import qt module. when I enter : import qt I have the following message : Import Error : DLL Load failed : cannot find

Re: making symlinks with distutils

2005-02-04 Thread Michele Simionato
>From what I see in the docs, registering a script just normalize the shebang line, but does not install it in /usr/bin, nor make any symbolic links, so it is not what I am looking for. I guess I need to add a os.link(src, dst) somewhere in the setup.py script or in a postinstallation script but I

Re: Learning Python for a new beginner

2005-02-04 Thread Nick Coghlan
Lisa Horton wrote: I hear that Python is one of the easiest languages to learn. It is easier than PHP or Pearl? Is it as useful as those two? I am attracted to Python as a first language, but I just want to be sure I will be able to use it. Opinions, thoughts, thanks! I suggest grabbing the 2.4 Pyt

Re: Weekly Python Patch/Bug Summary

2005-02-04 Thread David Fraser
Kurt B. Kaiser wrote: Patch / Bug Summary ___ Patches : 284 open ( +4) / 2748 closed ( +1) / 3032 total ( +5) Bugs: 804 open ( +1) / 4812 closed (+13) / 5616 total (+14) RFE : 167 open ( +0) / 142 closed ( +1) / 309 total ( +1) I wonder if it would be possible to

Re: Converting a string to a function pointer

2005-02-04 Thread John Machin
On Fri, 04 Feb 2005 12:01:35 +0100, Håkan Persson <[EMAIL PROTECTED]> wrote: >Hi. > >I am trying to "convert" a string into a function pointer. >Suppose I have the following: > >from a import a >from b import b >from c import c > >funcString = GetFunctionAsString() > >and funcString is a string th

Re: walktree browser filenames problem

2005-02-04 Thread Richard Brodie
"dimitri pater" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The problem is that the filenames are cut off in the status bar of the > browser because of the white space (eg 'hello.pdf' works, but 'hello > there.pdf' is displayed as hello). urllib.quote() should do the trick. You

Re: advice needed for simple python web app

2005-02-04 Thread Fred Pacquier
"Dan Perl" <[EMAIL PROTECTED]> said : > This is exactly the kind of summary that I think should be in a > WebProgrammingShootOut (see another one of my postings in this thread) > but I failed to find such a summary. Thanks, Brian! Anyone can add > to the list? I myself am also into (very) sim

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-04 Thread http://www.stani.be
I think SPE has exactly what you need. Next to the shell there is the session, which has only the commands typed on the interactive prompt. Stani http://spe.pycs.net Ashot wrote: > This is sort of both Python and Vim related (which is why I've posted to > both newsgroups). > > Python related: >

Re: Python 2.4 binaries for accessing PostgreSQL from Windows?

2005-02-04 Thread Josef Meile
Hi Frank I tried the psycopg site, but it does not seem to have binaries at all. Does anyone know if either of these will be available in binary form for Python 2.4 on Windows? For psycopg, there is a site with binaries for windows: http://www.stickpeople.com/projects/python/psycopg/ Regards, Josef

Re: OT: why are LAMP sites slow?

2005-02-04 Thread JanC
Paul Rubin schreef: > I don't know that the browser necessarily renders that faster than it > renders a table, Simple tables aren't slow, but tables-in-tables-in-tables-in-tables-in- tables are. -- JanC "Be strict when sending and tolerant when receiving." RFC 1958 - Architectural Principles o

walktree browser filenames problem

2005-02-04 Thread dimitri pater
Hello, I use the following script to list the files and download files from my website (99% of the code is from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/200131). The problem is that the filenames are cut off in the status bar of the browser because of the white space (eg 'hello.pdf'

Re: Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-04 Thread Daniel Bickett
Fredrik Lundh wrote: > your DeleteKeyAll operation would fit nicely in such an interface, but I'm not > sure it belongs in the low-level interface, and a higher-level interface > consisting > of just one helper would seem a bit odd.on the other hand, it's about time > someone wrote that "winre

Re: IPython colors in windows

2005-02-04 Thread Ashot
yea, I've done that. It must be something subtle, as the colors and tab completion works. On Thu, 03 Feb 2005 20:31:37 -0800, DogWalker <[EMAIL PROTECTED]> wrote: "Ashot" <[EMAIL PROTECTED]> said: On 3 Feb 2005 19:18:33 -0800, James <[EMAIL PROTECTED]> wrote: Ashot wrote: I am using IPython in w

Re: [Fwd: [gnu.org #220719] Re: python and gpl]

2005-02-04 Thread Richard Brodie
"Tim Churches" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1) In Australia and Europe at least, loading program code from disc into > memory in > order to execute it is not considered as making an infringing copy under > copyright law. I don't think it's as clear cut as that.

Converting a string to a function pointer

2005-02-04 Thread Håkan Persson
Hi. I am trying to "convert" a string into a function pointer. Suppose I have the following: from a import a from b import b from c import c funcString = GetFunctionAsString() and funcString is a string that contains either "a", "b" or "c". How can I simply call the correct function? I have tried u

Re: making symlinks with distutils

2005-02-04 Thread Sylvain Thenault
On Fri, 04 Feb 2005 02:45:34 -0800, Michele Simionato wrote: > I want to distribute a pure Python package with this structure: > >>mypackage >> __init__.py >> module1.py >> module2.py >> ... >> myexecutable.py > > In particular, myexecutable.py is a sc

making symlinks with distutils

2005-02-04 Thread Michele Simionato
I want to distribute a pure Python package with this structure: >mypackage > __init__.py > module1.py > module2.py > ... > myexecutable.py In particular, myexecutable.py is a script which is intended to be used from the command line via the shebang tric

Re: Regular expression match objects - compact syntax?

2005-02-04 Thread Diez B. Roggisch
Johann C. Rocholl wrote: > > How do you people handle this? Usually we don't bothe too much. But it has been suggested to do something like this: class Matcher: def __init__(self, rex): self.rex = rex def match(self, s): self.m = self.rex.match(s) return not self.m

python equivalent to haskells iterate.

2005-02-04 Thread Graeme Caldwell
Subject: equivalent to Haskell's iterate function.   While reading through "Two Dozen Short Lessons in Haskell". I came across the following function:   decimalNumeralFromInteger x = reverse [d | (s,d) <- takeWhile(/=(0,0)) (sdPairs x)] where    sdPairs x = iterate nextDigit (x `d

Re: continuous plotting with Tkinter

2005-02-04 Thread Martin Blume
"Russell E. Owen" schrieb > > >I have a number-crunching application that spits out > >a lot of numbers. Now I'd like to pipe this into a > >python app and plot them using Tkinter, such as: > >$ number_cruncher | myplot.py > >But with Tkinter once I call Tkinter's mainloop() I > >give up my contro

Re: Python 2.4 binaries for accessing PostgreSQL from Windows?

2005-02-04 Thread Gerhard Haering
On Fri, Feb 04, 2005 at 02:24:50AM -0800, Frank Millman wrote: > Hi all > > The subject line says it all. > > I have been using pypgsql to access PostgreSQL from Linux and from > Windows, and it works fine. > > I am upgrading to Python 2.4. I can recompile pypgsql for Linux, but I > do not have

Python 2.4 binaries for accessing PostgreSQL from Windows?

2005-02-04 Thread Frank Millman
Hi all The subject line says it all. I have been using pypgsql to access PostgreSQL from Linux and from Windows, and it works fine. I am upgrading to Python 2.4. I can recompile pypgsql for Linux, but I do not have a Windows compiler. SourceForge has a binary for Python 2.3, which is the one I h

Re: List mapping question

2005-02-04 Thread TZOTZIOY
On Thu, 03 Feb 2005 17:27:05 -0500, rumours say that Marc Huffnagle <[EMAIL PROTECTED]> might have written: >Thanks ... so there's no way to pass an actual variable into a list >mapping, instead of its value? I guess I'm thinking of something the >equivalent of call by reference. No, there is

Re: ANN: PyDev 0.9.0 released

2005-02-04 Thread Michele Petrazzo
Fabio Zadrozny wrote: Hi All, PyDev - Python IDE (Python development enviroment for Eclipse) version 0.9.0 has just been released. This release supports python 2.4 and has PyLint 0.6 integrated. Code completion had some improvements too. Check the homepage for more details (http://pydev.sourcefor

Re: Calling a method using an argument

2005-02-04 Thread C Gillespie
Dear All, Many thanks Colin "C Gillespie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear All, > > I have a simple class > class hello: > def world(self): > return 'hello' > def test(self,arg): > return self.arg > > When I want to do is: > >hello.test('w

Re: how to generate SQL SELECT pivot table string

2005-02-04 Thread McBooCzech
Tahnks a lot. Michalels sequence works flawlessly. And it is really elegant :) John Machin wrote: >A few quick silly questions: >Have you read the Python tutorial? >Do you read this newsgroup (other than answers to your own questions)? >Could you have done this yourself in a language other than Py

Re: advice needed for simple python web app

2005-02-04 Thread Dave Cook
On 2005-02-04, Dan Perl <[EMAIL PROTECTED]> wrote: > I have a pretty simple python script and I would like to turn it into a web > application but web apps are a domain I know very little about. I know that > Twisted, CherryPy, Plone and Zope exist but not exactly what they do. I I think Che

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-04 Thread TZOTZIOY
On Wed, 02 Feb 2005 20:45:48 -0600, rumours say that Ashot <[EMAIL PROTECTED]> might have written: >I have been frustrated for quite some time with a lack of a history >command in IDLE (in fact with IDLE in general). Often I'll develop new >code at the command line, testing each line as I go.

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Tim Daneliuk
Paul Rubin wrote: Tim Daneliuk <[EMAIL PROTECTED]> writes: [other good stuff from Tim snipped] Today I think most seeks can be eliminated by just using ram or SSD (solid state disks) instead of rotating disks. But yeah, you wouldn't do that on a laptop. But that still does not solve the latency pr

dict indexed by lists - ?

2005-02-04 Thread Alexander Zatvornitskiy
Привет All! 04 февраля 2005 в 02:47, Alexander Zatvornitskiy в своем письме к All писал: AZ> I'am trying to make something like this: AZ> CPT={ ['b0','c0']:1, ['b0','c1']:0, ['b1','c0']:3, ['b1','c1']:1 } Thanks, I fix it - i use lists. AZ> and, later, modifying it like this: AZ> key[2]=up

Learning Python for a new beginner

2005-02-04 Thread Lisa Horton
I hear that Python is one of the easiest languages to learn. It is easier than PHP or Pearl? Is it as useful as those two? I am attracted to Python as a first language, but I just want to be sure I will be able to use it. Opinions, thoughts, thanks! -- http://mail.python.org/mailman/listinfo/pyt

<    1   2   3