Re: Calling GPL code from a Python application

2006-01-03 Thread Terry Hancock
On Wed, 04 Jan 2006 08:26:43 +0100 Heiko Wundram <[EMAIL PROTECTED]> wrote: > You're nitpicking here, if I may say so. Of course, if you > create the derivative work inside your head, you're not > going to distribute it and as such the GPL distribution > clauses don't apply. But: as soon as you wri

Re: Calling GPL code from a Python application

2006-01-03 Thread Karl A. Krueger
Mike Meyer <[EMAIL PROTECTED]> wrote: > 1) Executing software involves several copy operations. Each of those > potentially violate the copyright, and hence the copyright holder > can restrict execution of a program. #include In the U.S. at least, there's a specific statute *exempting* the r

Re: itertools.izip brokeness

2006-01-03 Thread gene tani
[EMAIL PROTECTED] wrote: > <[EMAIL PROTECTED]> wrote: > > pissed-offedly-yr's, rurpy > > Well, i'm sorry your pissed off. I will say i believe that map(None,*sequences) mentioned above is a pretty commonly seen thing, as is padding shorter sequence for zip/izip. Also have you looked at diff

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-03 Thread Brian van den Broek
Steven D'Aprano said unto the world upon 03/01/06 07:33 PM: > On Tue, 03 Jan 2006 08:27:39 -0800, Alex Martelli wrote: > > >>Or some even more stringent qualification, such as the state's Bar exam >>for lawyers -- you may not be able to sit for that exam w/o the >>appropriate degree, but the degr

RE: WMI - invalid syntax error?

2006-01-03 Thread Tim Golden
[py] | I may end up looking into some other way of getting the list of | processesthis is real screwy. Just in case you hadn't found it under your own steam, this link may help: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/442477 TJG

Re: How to generate (enumerate) 2**N tuples representing all vertices of unit hypercube in N-dimensional hyperspace ?

2006-01-03 Thread Claudio Grondi
Heiko Wundram wrote: > Paul Rubin wrote: > >>def perm(n): >> return [tuple([(1,-1)[(t>>i)%2] for i in xrange(n)]) >> for t in xrange(2L**n)] > > > or replace that with: > > def perm(n): >return (tuple(((1,-1)[(t>>i)%2] for i in xrange(n))) >for t in xrange(2L**n))

Re: Calling GPL code from a Python application

2006-01-03 Thread Steven D'Aprano
On Wed, 04 Jan 2006 01:59:34 -0500, Mike Meyer wrote: > I believe there is precedent that contradicts the FSF's > position. There are two arguments against it: > > 1) Executing software involves several copy operations. Each of those >potentially violate the copyright, and hence the copyright

Re: Calling GPL code from a Python application

2006-01-03 Thread Heiko Wundram
Mike Meyer wrote: > Heiko Wundram <[EMAIL PROTECTED]> writes: >> The stance the FSF (and it's lawyers) take on this is that it is illegal >> to dynamically link applications that are not under a GPL-compatible >> license to GPL works > > I doubt that, because it's simply not true. I can use GPL'ed

Re: Re: Calling GPL code from a Python application

2006-01-03 Thread Steven D'Aprano
On Wed, 04 Jan 2006 14:57:58 +1100, Tim Churches wrote: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> In particular: >> >> http://www.gnu.org/licenses/gpl-faq.html >> >> [quote] >> >> Q: If a library is released under the GPL (not the LGPL), does that mean >> that any program which uses it ha

Re: Calling GPL code from a Python application

2006-01-03 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > On Tue, 03 Jan 2006 20:48:12 -0500 > It is interesting to note that the FSF holds the position > that the language that "gives you this right" *doesn't* -- > it just clarifies the fact that you already hold that right, > because it is provided by "fair us

Re: Microsoft IronPython?

2006-01-03 Thread Ray
Luis M. González wrote: > > IronPython as it is now is already slightly different from CPython > > isn't it? Because it has to capture features of CLR languages that are > > not in Python (such as using generic containers). > > Hmm... I'm not sure what you mean by "capture features of CLR". > I th

Re: itertools.izip brokeness

2006-01-03 Thread rurpy
<[EMAIL PROTECTED]> wrote: > But here is my real question... > Why isn't something like this in itertools, or why shouldn't > it go into itertools? Never mind... I just read this in the source code for itertools.imap: 1) Itertools are designed to be easily combined and chained together. Ha

Re: check if class really implements api?

2006-01-03 Thread Terry Hancock
On 3 Jan 2006 12:56:58 -0800 "Karsten W." <[EMAIL PROTECTED]> wrote: > with the zope.interface module I can query if my class > claims to implement my API. This > is what the method implementedBy is for. > > However, I find myself constantly changing the API and I > am looking for a more reliable

Re: Translate this to python?

2006-01-03 Thread Patrick Maupin
Peter Hansen wrote: > Though, without knowing what the body does, one can't be sure > that's going to be a faithful translation. The for loop in Python > always iterates over the entire set of items given to it, unless > it's told to break early. But if "j" or "nPoints" is modified in the > body

Re: itertools.izip brokeness

2006-01-03 Thread bonono
[EMAIL PROTECTED] wrote: > It is clear that there is a real need for iterating in parallel > over multiple iterators to the end of the longest one. Why > does something that stops at the shortest get included in > the standard library, but one that stops after the longest > doesn't? Is there any

Re: Try Python update

2006-01-03 Thread Devan L
Mike Meyer wrote: > [EMAIL PROTECTED] writes: [comments about Mike Meyer's try python, I think] > > I had no trouble with from math import * followed by print pi, but > > there was no >>> prompt after the result appeared .. is that part of > > the 'closures' thing mentioned earlier? > > Hmm. Are y

Re: Calling GPL code from a Python application

2006-01-03 Thread Terry Hancock
On Tue, 03 Jan 2006 20:48:12 -0500 Mike Meyer <[EMAIL PROTECTED]> wrote: > If you want to know the intent of the authors, that is > that libraries covered by the GPL would infect programs > they are linked with, whether it's dynamically or > statically. The Library (now Lesser) GPL was created to t

Re: Try Python update

2006-01-03 Thread Devan L
[EMAIL PROTECTED] wrote: > I like the form, no matter what its limitations may be. Three notes: > > It might be a good way to catch newbi mistakes (those are the kind I > make :P, thereby providing a feedback loop to improved error messages. > > I had no trouble with from math import * followed b

Re: python concurrency proposal

2006-01-03 Thread Corey Coughlin
OK, thanks for all this criticism, you've obviously taken some time here, guess I'll see if I can help clear some of this up Michael wrote: > > > On the surface of it, what you've described resembles Kamaelia[1] - > specifically in the way used in the Axon Shell [2]. In other ways it > dif

Re: Calling GPL code from a Python application

2006-01-03 Thread Patrick Maupin
Mike Meyer wrote: .> Note that I'm *not* interpreting the GPL. I'm interpreting what the > FSF says about the GPL. If the goal is to avoid a lawsuit, the latter > is what you have to pay attention to, as they're telling you what > actions you can take without getting sued. The text comes into play

Re: Calling GPL code from a Python application

2006-01-03 Thread Patrick Maupin
Mike Meyer wrote: .> Note that I'm *not* interpreting the GPL. I'm interpreting what the > FSF says about the GPL. If the goal is to avoid a lawsuit, the latter > is what you have to pay attention to, as they're telling you what > actions you can take without getting sued. The text comes into play

Re: Calling GPL code from a Python application

2006-01-03 Thread Patrick Maupin
Mike Meyer wrote: .> Note that I'm *not* interpreting the GPL. I'm interpreting what the > FSF says about the GPL. If the goal is to avoid a lawsuit, the latter > is what you have to pay attention to, as they're telling you what > actions you can take without getting sued. The text comes into play

Re: python concurrency proposal

2006-01-03 Thread Corey Coughlin
> Yes. Parallelism certainly deserves attention, and I believe > "amateurs" are likely to help in the breakthroughs to come. I > further suspect, though, that they'll be amateurs who benefit > from knowledge of existing research into the range of documented > concurrency concepts, including CSPs

Re: Calling GPL code from a Python application

2006-01-03 Thread Mike Meyer
Tim Churches <[EMAIL PROTECTED]> writes: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> In particular: >> http://www.gnu.org/licenses/gpl-faq.html >> [quote] >> Q: If a library is released under the GPL (not the LGPL), does that mean >> that any program which uses it has to be under the GPL? >> A

Re: python concurrency proposal

2006-01-03 Thread Corey Coughlin
Hey, some responses, let's see... Peter Tillotson wrote: > I'd really like to see a concurrency system come into python based on > theories such as Communicating Sequential Processes (CSP) or its > derivatives lambda or pi calculus. These provide an analytic framework > for developing multi thr

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-03 Thread Aahz
[much stuff deleted that I mostly agree with to get at an interesting chunk of disagreement] In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >By contrast, today's professional bodies like law, medicine etc. have >independent standards of skill that must be met. I don'

Re: itertools.izip brokeness

2006-01-03 Thread rurpy
"Duncan Booth" <[EMAIL PROTECTED]> wrote: > Peter Otten wrote: > > > from itertools import izip, chain, repeat > > > > def prt_files (file1, file2): > > file1 = chain(file1, repeat("")) > > file2 = chain(file2, repeat("")) > > for line1, line2 in iter(izip(file1, file2).next, ("", "")):

Re: Try Python update

2006-01-03 Thread Mike Meyer
[EMAIL PROTECTED] writes: > I like the form, no matter what its limitations may be. Three notes: > > It might be a good way to catch newbi mistakes (those are the kind I > make :P, thereby providing a feedback loop to improved error messages. I'm doing almost no error catching. I think I catch two

Re: Re: Calling GPL code from a Python application

2006-01-03 Thread Tim Churches
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > In particular: > > http://www.gnu.org/licenses/gpl-faq.html > > [quote] > > Q: If a library is released under the GPL (not the LGPL), does that mean > that any program which uses it has to be under the GPL? > > A: Yes, because the program as it is a

Re: Translate this to python?

2006-01-03 Thread Zeng Nan
On Tue, Jan 03, 2006 at 05:42:44PM -0800, KraftDiner wrote: > I'm porting a routing from C++ to python. > There is a complex for loop that I don't know how to code in python > > for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) > i = nPoints - 1 for j in range(nPoints): i = j

Re: Re: Calling GPL code from a Python application

2006-01-03 Thread Tim Churches
Mike Meyer <[EMAIL PROTECTED]> wrote: > But in that case, you're going to need a real lawyer, so you might as > well talk to one beforehand, and only try what they think you have a > chance of getting in court. This is excellent advice. We did, in fact, talk to a real lawyer, and paid him real mo

Re: Calling GPL code from a Python application

2006-01-03 Thread Mike Meyer
[EMAIL PROTECTED] (Björn Lindström) writes: > Tim Churches <[EMAIL PROTECTED]> writes: >> Which section(s) of the GPL say(s) that, exactly? I mean, where is >> dynamic linking mentioned, or even implied? I can see where it says >> "derived from", but not where it says "dependent on at run-time".

Re: Calling GPL code from a Python application

2006-01-03 Thread Steven D'Aprano
On Tue, 03 Jan 2006 16:36:31 -0800, Michel Sanner wrote: > Hello, > > One of the greatest feature of Python in my opinion is the way the > interpreter can be used to integrate a wide variety of > software packages by dynamically linking them. This approach has been > extremely successful for u

Re: application and web app technologies

2006-01-03 Thread l v
ccc wrote: > [snip] We are just your basic IT shop, system > and network administration, hardware, help desk, the web site, and > database administration. This is also the reason for the 'bad code' ( > which we have in abundance.) People who are not programmers and whose > job it isn't to program w

Re: Try Python update

2006-01-03 Thread browerg
I like the form, no matter what its limitations may be. Three notes: It might be a good way to catch newbi mistakes (those are the kind I make :P, thereby providing a feedback loop to improved error messages. I had no trouble with from math import * followed by print pi, but there was no >>> pro

Re: Calling GPL code from a Python application

2006-01-03 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> What I *can't* do is distribute it (or work derived from it, etc.) >> unless the entire work being distributed is under the GPL (unless the >> license has changed recently, *not* a GPL-compatible license, but the >> GPL itself), and me

Re: Calling GPL code from a Python application

2006-01-03 Thread Björn Lindström
Tim Churches <[EMAIL PROTECTED]> writes: > Which section(s) of the GPL say(s) that, exactly? I mean, where is > dynamic linking mentioned, or even implied? I can see where it says > "derived from", but not where it says "dependent on at run-time". It's in the interpretation of the term "derived f

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Tom Anderson
On Tue, 3 Jan 2006, Dan Sommers wrote: > On Tue, 03 Jan 2006 15:21:19 GMT, > Doug Schwarz <[EMAIL PROTECTED]> wrote: > >> Strictly speaking, it's not OS X, but the HFS file system that is case >> insensitive. Aaah, of course. Why on earth didn't Apple move to UFS/FFS/whatever with the switch to

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Tom Anderson
On Tue, 3 Jan 2006, Scott David Daniels wrote: > Tom Anderson wrote: > >> Java has a java.io.File.getCanonicalPath method that does this, but i can't >> find an equivalent in python - is there one? > > What's wrong with: os.path.normcase(path) ? It doesn't work. Hooke:~ tom$ uname Darwin Hooke:

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Alex Martelli
Ilias Lazaridis <[EMAIL PROTECTED]> wrote: ... > > One normally does not define large numbers of identical accessors (there > [...] - (extensive elaboration) > > possibly one can provide the code for something similar to the ruby > attr_accessor: > > class Talker >def sayHello > puts

Re: Translate this to python?

2006-01-03 Thread KraftDiner
Thanks all! -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Calling GPL code from a Python application

2006-01-03 Thread Tim Churches
Mike Meyer <[EMAIL PROTECTED]> wrote: > In > particular, if I distribute an application that has to be dynamically > linked with a GPL'ed library to run, I need to distribute my > application under the terms of the GPL. Mike, Which section(s) of the GPL say(s) that, exactly? I mean, where is dyna

Re: Microsoft IronPython?

2006-01-03 Thread Luis M. González
> IronPython as it is now is already slightly different from CPython > isn't it? Because it has to capture features of CLR languages that are > not in Python (such as using generic containers). Hmm... I'm not sure what you mean by "capture features of CLR". I think Ironpython is a faithful impleme

Re: UpDate For SCSIPython Storage device test library

2006-01-03 Thread sam
I found a bug in the GetLastError() call I was making after all calls to DeviceIOControl() when accessing the devices mounted by Windows. This has been corrected and posted to http://starship.python.net/crew/samschul/ These changes have been made to SCSITOOLS23USBVer1.4.zip, and SCSITOOLS24USBV1.4

Re: Calling GPL code from a Python application

2006-01-03 Thread Tim Churches
Michel Sanner <[EMAIL PROTECTED]> wrote: > One of the greatest feature of Python in my opinion is the way the > interpreter can be used to integrate a wide variety of > software packages by dynamically linking them. This approach has been > extremely successful for us so far but now I run > into

Re: Translate this to python?

2006-01-03 Thread Peter Hansen
Patrick Maupin wrote: >>for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) > > > A simple translation of this would be: > > i = npoints-1 > > for j in range(npoints): > ... (your code here) > i = j Though, without knowing what the body does, one can't be sure that's going to be a fai

Re: Translate this to python?

2006-01-03 Thread Peter Hansen
KraftDiner wrote: > I'm porting a routing from C++ to python. > There is a complex for loop that I don't know how to code in python > > for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) i = nPoints - 1 j = 0 while j < nPoints: # do stuff i = j j += 1 For loops in C aren't really

Re: Translate this to python?

2006-01-03 Thread Patrick Maupin
> for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) Alternatively, if you don't like the initial setup of i and would prefer your setup code at the top of the loop: for j in range(npoints): i = (j-1) % npoints ... (your code here) Finally, you could always do something like this: poin

Re: Calling GPL code from a Python application

2006-01-03 Thread Peter Hansen
Mike Meyer wrote: > What I *can't* do is distribute it (or work derived from it, etc.) > unless the entire work being distributed is under the GPL (unless the > license has changed recently, *not* a GPL-compatible license, but the > GPL itself), and meets the requirements of the that license. In >

Re: Translate this to python?

2006-01-03 Thread Patrick Maupin
> for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) A simple translation of this would be: i = npoints-1 for j in range(npoints): ... (your code here) i = j HTH, Pat -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft IronPython?

2006-01-03 Thread Ray
Hi Luis, IronPython as it is now is already slightly different from CPython isn't it? Because it has to capture features of CLR languages that are not in Python (such as using generic containers). I wonder how this will branch further in the future--will CPython expand to follow IP, or will they

Re: Calling GPL code from a Python application

2006-01-03 Thread Mike Meyer
Heiko Wundram <[EMAIL PROTECTED]> writes: > The stance the FSF (and it's lawyers) take on this is that it is illegal to > dynamically link applications that are not under a GPL-compatible license > to GPL works I doubt that, because it's simply not true. I can use GPL'ed code any way I want to - t

Re: How to generate (enumerate) 2**N tuples representing all vertices of unit hypercube in N-dimensional hyperspace ?

2006-01-03 Thread Heiko Wundram
Paul Rubin wrote: > def perm(n): >return [tuple([(1,-1)[(t>>i)%2] for i in xrange(n)]) > for t in xrange(2L**n)] or replace that with: def perm(n): return (tuple(((1,-1)[(t>>i)%2] for i in xrange(n))) for t in xrange(2L**n)) to get a generator like in Paul's first

Re: Calling GPL code from a Python application

2006-01-03 Thread Mike Meyer
Michel Sanner <[EMAIL PROTECTED]> writes: > One of the greatest feature of Python in my opinion is the way the > interpreter can be used to integrate a wide variety of > software packages by dynamically linking them. This approach has been > extremely successful for us so far but now I run > into

Re: How to generate (enumerate) 2**N tuples representing all vertices of unit hypercube in N-dimensional hyperspace ?

2006-01-03 Thread Paul Rubin
Heiko Wundram <[EMAIL PROTECTED]> writes: > def perm(n): > rv = [] > for i in xrange(2L**n): > cur = [] > for j in range(n): > cur.append(1-2*(bool(i & (1< # cur is in reversed order LSB first, but as you seemingly don't > # care about order of th

Translate this to python?

2006-01-03 Thread KraftDiner
I'm porting a routing from C++ to python. There is a complex for loop that I don't know how to code in python for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to generate (enumerate) 2**N tuples representing all vertices of unit hypercube in N-dimensional hyperspace ?

2006-01-03 Thread Heiko Wundram
Dr. Colombes wrote: > Maybe converting each integer in the range(2**N) to binary, then > converting to bit string, then applying the "tuple" function to each > bit string? A direct translation of that: def perm(n): rv = [] for i in xrange(2L**n): cur = [] for j in range(n)

OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-03 Thread Steven D'Aprano
On Tue, 03 Jan 2006 08:27:39 -0800, Alex Martelli wrote: > Or some even more stringent qualification, such as the state's Bar exam > for lawyers -- you may not be able to sit for that exam w/o the > appropriate degree, but the degree by itself is not enough, you still > have to pass the exam. It

Re: How to generate (enumerate) 2**N tuples representing all vertices of unit hypercube in N-dimensional hyperspace ?

2006-01-03 Thread Paul Rubin
"Dr. Colombes" <[EMAIL PROTECTED]> writes: > I'm looking for a good Python way to generate (enumerate) the 2**N > tuples representing all vertices of the unit hypercube in N-dimensional > hyperspace. > For example, for N=4 the Python code should generate the following 2**N > = 16 tuples: Here's a

Re: check if class really implements api?

2006-01-03 Thread Heiko Wundram
Karsten W. wrote: > However, I find myself constantly changing the API and I am looking for > a more reliable way > to check my implementation classes. Is there a way to check if at least > all function > names of the API are defined by the class and if their parameter lists > fit the API? A way >

Re: Calling GPL code from a Python application

2006-01-03 Thread Paul Rubin
Michel Sanner <[EMAIL PROTECTED]> writes: > A google search about GPL and dynamic linking came up with an equal > number of pages saying that dynamic linking of GPL > code into non GPL applications is allowed as it is the end user who > cretes the derived work, as pages saying the opposite ! So doe

How to generate (enumerate) 2**N tuples representing all vertices of unit hypercube in N-dimensional hyperspace ?

2006-01-03 Thread Dr. Colombes
I'm looking for a good Python way to generate (enumerate) the 2**N tuples representing all vertices of the unit hypercube in N-dimensional hyperspace. For example, for N=4 the Python code should generate the following 2**N = 16 tuples: (1,1,1,1), (1,1,1,-1), (1,1,-1, 1), (1,1,-1,-1), (1,-1,1,1)

Re: Calling GPL code from a Python application

2006-01-03 Thread Heiko Wundram
Michel Sanner wrote: > A google search about GPL and dynamic linking came up with an equal > number of pages saying that dynamic linking of GPL > code into non GPL applications is allowed as it is the end user who > cretes the derived work, as pages saying the opposite ! > So does anyone know what

Slightly OT: detecting the socket type of a descriptor

2006-01-03 Thread Heiko Wundram
Hi all! I'm currently in the process of implementing SCM_RIGHTS support for Python in the socket module, and I'm stuck at wrapping socket descriptors in an appropriate socket object. The problem boils down to the fact that I can test for the type of a file descriptor being a socket, but after I k

Re: Calling GPL code from a Python application

2006-01-03 Thread Robert Kern
Michel Sanner wrote: > Hello, > > One of the greatest feature of Python in my opinion is the way the > interpreter can be used to integrate a wide variety of > software packages by dynamically linking them. This approach has been > extremely successful for us so far but now I run > into a licen

Calling GPL code from a Python application

2006-01-03 Thread Michel Sanner
Hello, One of the greatest feature of Python in my opinion is the way the interpreter can be used to integrate a wide variety of software packages by dynamically linking them. This approach has been extremely successful for us so far but now I run into a license nightmare. Some the libraries w

Re: Python article in Free Software Magazine

2006-01-03 Thread Terry Hancock
On Sun, 01 Jan 2006 09:33:09 -0600 Kirk Strauser <[EMAIL PROTECTED]> wrote: > You have fair points. Unfortunately, though, the word > length of the article just didn't provide enough space to > go into the level of detail those subjects would have > required. I tried to compromise by giving the a

Re: why import, reload, import again?

2006-01-03 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Near the beginning of file test_matrix.py from scipy are the lines > > import scipy.base > reload(scipy.base) > from scipy.base import * > del sys.path[0] > > Could someone please explain why the first two lines were included? A > similar script I wrote works fine witho

Re: Getting the encoding of sys.stdout and sys.stdin, and changing it properly

2006-01-03 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > Exactly what does the following line return? On your system, the result of nl_langinfo(CODESET), see nl_langinfo(3). On your system, this, in turn, is computed from the LANG, LC_CHARSET, and LC_ALL environment variables. > Is it the encoding of the terminal? I think no

Re: One-step multiples list generation?

2006-01-03 Thread Steven D'Aprano
On Tue, 03 Jan 2006 19:21:32 +0100, Damien Wyart wrote: > Thanks for these important and useful additions, they are very welcome ! > > In writing my answer I had immutables in mind, but mutables are a bit > more dangerous, here... Mutables are easy to deal with using the copy module and list com

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Martin v. Löwis
Tom Anderson wrote: > Java has a java.io.File.getCanonicalPath method that does this, but i > can't find an equivalent in python - is there one? > > I can emulate it like this: I think it could be implemented more efficiently with getattrlist(2), looking for ATTR_CMN_NAME. Unfortunately, there ap

Re: application and web app technologies

2006-01-03 Thread Harpo
ccc wrote: > > We don't have any 'programmers' on staff. At most, we have several > people writing, maybe, two hours of code a week, Fine ! > with maybe once a > year building an application. We are just your basic IT shop, system > and network administration, hardware, help desk, the web sit

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread Stuart D. Gathman
On Mon, 02 Jan 2006 19:05:04 -0500, Steven D'Aprano wrote: > I don't dare ask where your evidence for this hypothesis is, but I will > ask what are your reasons for imagining this? What is the chain of > thought that leads from: > > Step 1: We live in a temporal world. > > to: > > Step N: Our

Re: Tkinter Scrollbar not working

2006-01-03 Thread Dustan
Yes, I know PMW has scrolled Text, but the module has to be installed seperately; this is something I'm releasing to a number of people. I'll try doing it with a canvas. -- http://mail.python.org/mailman/listinfo/python-list

Re: Application architecture (long post - sorry)

2006-01-03 Thread Dave Benjamin
On Tue, 3 Jan 2006, Mike Meyer wrote: > ... Personally, I prefer to Cheetah Templates to PSP - it plays better > in the OO world, and I can use intelligent HTML/XML/SGML editors on the > files. ... Thanks for reminding me of Cheetah. I am trying out TurboGears on a small project, and haven't g

Re: python concurrency proposal

2006-01-03 Thread Michael
[EMAIL PROTECTED] wrote: > Alright, so I've been following some of the arguments about enhancing > parallelism in python, and I've kind of been struck by how hard things > still are. It seems like what we really need is a more pythonic > approach. [... major snippage ...] > OK? So what do you a

Re: itertools.izip brokeness

2006-01-03 Thread rurpy
<[EMAIL PROTECTED]> wrote: > But that is exactly the behaviour of python iterator, I don't see what > is broken. > > izip/zip just read from the respectives streams and give back a tuple, > if it can get one from each, otherwise stop. And because python > iterator can only go in one direction, tho

Re: Visualisation Engine for Python

2006-01-03 Thread Ernst Noch
rodmc wrote: > I am looking for a 2D data visualisation or graphics library for > Python. Can anyone point me in the right direction? > > > Thanks in advance, > > rod > Maybe download and install the enthought python edition from http://code.enthought.com/enthon/ Contains the following librari

Re: Application architecture (long post - sorry)

2006-01-03 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Ok then, web it is, just wondering how you can test the web application > while developing and how do you find out the capabilities of the > browser, I now have browsed WAP pages on my Windows smartphone, is > there any difference to developing a WAP/WML solution to a HT

Re: why import, reload, import again?

2006-01-03 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Near the beginning of file test_matrix.py from scipy are the lines > > import scipy.base > reload(scipy.base) > from scipy.base import * > del sys.path[0] > > Could someone please explain why the first two lines were included? A > similar script I wrote works fine witho

Re: Microsoft IronPython?

2006-01-03 Thread Luis M. González
Ironpython has been in development from awhile, and now it's in beta version 1.0. Is it good to have Python running on every existing platform out there? Of course it is. Is it good to have Python running on Java and .NET? Sure, why not? One of the good things about Python is that it runs everywhe

Re: Python or Java or maybe PHP?

2006-01-03 Thread Dan Sommers
On Tue, 03 Jan 2006 16:25:06 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: > I vaguelly recall hearing that Guido thought about adding macros to > Python, and rejected the idea because he didn't want users to have to > deal with compile-time errors at run time. Or something to that > effect. That

why import, reload, import again?

2006-01-03 Thread beliavsky
Near the beginning of file test_matrix.py from scipy are the lines import scipy.base reload(scipy.base) from scipy.base import * del sys.path[0] Could someone please explain why the first two lines were included? A similar script I wrote works fine without them. Also, what is the purpose of the "

Re: Microsoft IronPython?

2006-01-03 Thread Peter Hansen
Nainto wrote: > The Cnet article is from today. Maybe when David said it happened over a year ago, he was obliquely suggesting that your questions might have been asked before (and as I recall they were) and that a search of the archives would probably find answers to your question. -Peter --

Re: Microsoft IronPython?

2006-01-03 Thread Nainto
The Cnet article is from today. -- http://mail.python.org/mailman/listinfo/python-list

Macros in Python? (was Re: Python or Java or maybe PHP?)

2006-01-03 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Aahz) writes: >> In article <[EMAIL PROTECTED]>, >> James <[EMAIL PROTECTED]> wrote: >>> >>>I keep asking myself why isn't this more popular especially when many >>>prominent Python devs seem to be well aware

Re: - Requesting Comments for Process Definition and Presentation

2006-01-03 Thread Gerard Flanagan
Ilias Lazaridis wrote: > comp.lang.python / comp.lang.ruby > > - > > I would like to ask for feedback on the Process Definition and Presentation. > > Essentially this is exactly what I've myself specialized to do. > > But I cannot apply the process to my own system. > > I ask here, as I have criti

Re: Try Python update

2006-01-03 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Very nice :) > > I found this online Ruby tutorial: > http://tryruby.hobix.com/ That's what inspired me to create my version. > I think it would be cool to have something similar for Python. Want to > go further and make a nice tutorial to accom

Re: Microsoft IronPython?

2006-01-03 Thread David Wahler
Nainto wrote: > I came across this link today. http://tinyurl.com/9c7ta It seems > Microsoft is getting involved with Python. What do you think of it? Is > it any good? Anything to worry about? > -- > Zach See http://www.ironpython.com/ -- apparently this happened over a year ago. -- David -- h

Re: application and web app technologies

2006-01-03 Thread ccc
> If no one knows the language > you want to use, do you have time to account for the learning curve? Do you > really want to try and replace all your programmers? We don't have any 'programmers' on staff. At most, we have several people writing, maybe, two hours of code a week, with maybe once a

Re: Python or Java or maybe PHP?

2006-01-03 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > In article <[EMAIL PROTECTED]>, > James <[EMAIL PROTECTED]> wrote: >>I keep asking myself why isn't this more popular especially when many >>prominent Python devs seem to be well aware of Lisp where macros are >>done right. > You have confused "many Python devs"

Re: Komodo IDE: '__file__' is not defined when debugging

2006-01-03 Thread fortepianissimo
Thank you very much for the prompt reply and the patch - I applied it and everything is well now. Looking forward to the update! -- http://mail.python.org/mailman/listinfo/python-list

check if class really implements api?

2006-01-03 Thread Karsten W.
Hello, with the zope.interface module I can query if my class claims to implement my API. This is what the method implementedBy is for. However, I find myself constantly changing the API and I am looking for a more reliable way to check my implementation classes. Is there a way to check if at leas

Re: Application architecture (long post - sorry)

2006-01-03 Thread limeydrink
Hello Mike, Thanks for the response. And yeah, you're right, after a bit of investigation I found you can pay for an unlimited mobile data usage and it's not that expensive so thanks for prompting me. Ok then, web it is, just wondering how you can test the web application while developing and ho

Re: Photogallery written in Python?

2006-01-03 Thread Iñigo Serna
Hi Arthur I can recommend pynakotheka [1], I'm very happy with it, don't know why, maybe because I wrote it :) Anyway, it does not support comments or scores, but I think it's pretty useful for personal photo galleries. Best regards, Iñigo [1] http://inigo.katxi.org/devel/pynakotheka El sáb, 31

Re: Microsoft IronPython?

2006-01-03 Thread Nainto
Oops sorry for the double post. I got an error message and though I had to resend it. -- http://mail.python.org/mailman/listinfo/python-list

Microsoft IronPython?

2006-01-03 Thread Nainto
I came across this link today. http://tinyurl.com/9c7ta It seems Microsoft is getting involved with Python. What do you think of it? Is it any good? Anything to worry about? -- Zach -- http://mail.python.org/mailman/listinfo/python-list

Microsoft IronPython?

2006-01-03 Thread Nainto
I came across this link today. http://tinyurl.com/9c7ta It seems Microsoft is getting involved with Python. What do you think of it? Is it any good? Anything to worry about? -- Zach -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Ilias Lazaridis
Alex Martelli wrote: > Ilias Lazaridis <[EMAIL PROTECTED]> wrote: [...] - google stuff >>http://lazaridis.com/case/lang/python.html#simple_variable_access >> >>this leads to a new limitation: >> >>"#LIMITATION: large amount of repetitive code" > > One normally does not define large numbers of ide

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread Shane Hathaway
[EMAIL PROTECTED] wrote: > Perhaps this is one reason why programmers are so passionate, and even > religious, about their programming tools; because they intuitively > sense that we are dealing with ideas that, however crudely, mirror > eternal realities of immense significance. While I don't ass

  1   2   >