Download .jpg from web

2005-01-06 Thread GMane Python
Hello All. Using a network camera with built-in webserver, I'd like to have a python program download .jpg files on a local lan. the location is http:///jpg/image.jpg. Currently, I'm importing urllib and using urlopen to the address, then read()-ing it, saving it to a binary file. All that i

Re: File Handling Problems Python I/O

2005-01-06 Thread Alex Martelli
Josh <[EMAIL PROTECTED]> wrote: ... > He is the function where I am making the call. If I change the open > statment to another file, say "c:\test.txt", a file I know exists, it Are you sure a file exist whose name is, c, colon, tab, e, s, t ...? \t is an escape sequence and it means TAB (char

Re: Python evolution: Unease

2005-01-06 Thread Bengt Richter
On 05 Jan 2005 23:19:39 -0800, Paul Rubin wrote: >[EMAIL PROTECTED] (Bengt Richter) writes: >> What do you think of automated secure importing/installing from a >> remote server? You know, you try to import something and it imports >> a stub that was included as a batte

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Alex Martelli
Peter Hansen <[EMAIL PROTECTED]> wrote: > Jacek Generowicz wrote: > > Peter Hansen <[EMAIL PROTECTED]> writes: > >>Why the heck would I ever have to do "rectangle operations" on a > >>regular basis? ;-) > > > > Well, given that all editors are cat equivalent[*], you don't _have_ > > to use any o

Re: Other notes

2005-01-06 Thread Andrew Dalke
Me (BTW, it needs to be 1 .. 12 not 1..12 because 1. will be interpreted as the floating point value "1.0".)< Steve Holden: > Indeed, but if ".." is defined as an acceptable token then there's > nothing to stop a strict LL(1) parser from disambiguating the cases in > question. "Token"

Re: Building unique comma-delimited list?

2005-01-06 Thread Bengt Richter
On 5 Jan 2005 17:05:40 -0500, [EMAIL PROTECTED] (Roy Smith) wrote: >I've got a silly little problem that I'm solving in C++, but I got to >thinking about how much easier it would be in Python. Here's the >problem: > >You've got a list of words (actually, they're found by searching a >data structu

Re: wxPython clipboard

2005-01-06 Thread Jeremy Bowers
On Thu, 06 Jan 2005 03:27:56 -0800, lbolognini wrote: > Could you please give me some advice on the best approach to solve this > problem? To the best of my knowledge, and I'd be surprised if this wasn't true, wxPython does not have the necessary tools to do this. That program doesn't even use t

Re: Embedding a restricted python interpreter

2005-01-06 Thread Bengt Richter
On Thu, 6 Jan 2005 16:53:23 +0100, Gerhard Haering <[EMAIL PROTECTED]> wrote: > >--rwEMma7ioTxnRzrJ >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >On Thu, Jan 06, 2005 at 07:32:25AM -0800, Paul Rubin wrote: >> Jp Calderone <

Re: Python evolution: Unease

2005-01-06 Thread Bulba!
On Wed, 05 Jan 2005 17:25:08 -0800, Robert Kern <[EMAIL PROTECTED]> wrote: >> Yes, I know, it can be written by hand. But by this line of logic why >> bother learning VHLL and not just stay with C? >I'm not sure what you mean by "written by hand." I mean the same way as you do mylist.sort() in

Re: File Handling Problems Python I/O

2005-01-06 Thread mhartl
You can use the os module to build path names in a platform-independent manner. On my Linux box, I can type >>> BASE = '/' >>> import os >>> os.path.join(BASE, 'foo', 'bar', 'baz') '/foo/bar/baz' On a Windows machine, you get >>> BASE = 'C:' >>> import os >>> os.path.join(BASE, 'foo', 'bar', 'b

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

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

Re: File Handling Problems Python I/O

2005-01-06 Thread mhartl
Sorry, the BASE variable should be 'C:\\' on Windows: >>> BASE = 'C:\\' >>> import os >>> os.path.join(BASE, 'foo', 'bar', 'baz') 'C:\\foo\\bar\\baz' -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding a restricted python interpreter

2005-01-06 Thread Peter Maas
Jp Calderone schrieb: But mod_python is an apache module and runs in the same apache process with other users' scripts. I am uncertain as to how this differs from mod_php (the alternative discussed in the OP's story). I've been away from PHP for a while, so perhaps mod_php has gained some fea

Re: Python evolution: Unease

2005-01-06 Thread Jarek Zgoda
Iwan van der Kleyn wrote: But I see little to no efforts from the core python team to address my needs as listed above. They seem mainly to focus on the core attributes and syntax of the language. Very little or no efforts are taken to improve the infrastructure around the language. And then I

Re: sorting on keys in a list of dicts

2005-01-06 Thread Jeff Shannon
Jp Calderone wrote: L2 = [(d[key], i, d) for (i, d) in enumerate(L)] L2.sort() L = [d for (v, i, d) in L2] Out of curiosity, any reason that you're including the index? I'd have expected to just do L2 = [(d[key], d) for d in L] L2.sort() L = [d for (v, d) in L2] I suppose

Re: File Handling Problems Python I/O

2005-01-06 Thread Josh
Micheal, Thanks for the advice as the programming I am doing will be run on both Windows and Linux based PC's, that being the main reason for my venture into Python. I'm glad to see that people are willing to help out even the newbie's. Josh -- http://mail.python.org/mailman/listinfo/python-l

Re: Other notes

2005-01-06 Thread Bengt Richter
On Thu, 06 Jan 2005 19:24:52 GMT, Andrew Dalke <[EMAIL PROTECTED]> wrote: >Me > (BTW, it needs to be 1 .. 12 not 1..12 because 1. will be interpreted > as the floating point value "1.0".)< > >Steve Holden: >> Indeed, but if ".." is defined as an acceptable token then there's >> nothing to

Re: File Handling Problems Python I/O

2005-01-06 Thread Peter Hansen
Josh wrote: He is the function where I am making the call. If I change the open statment to another file, say "c:\test.txt", a file I know exists, it will error out stating the file does not exist. Thanks def GetStartVars(self): try: DOWNFILE = open("c:\fixes.txt","r") Josh, it's surprising that th

Pb encodage & import

2005-01-06 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Bonsoir !Hi ! My english is short, therefore, I do short. Two scripts, "i1.py" and "i2.py" : i1.py : import i2 print i2.GlobalA i2.py : GlobalA ="azerty" Like this, it's OK ; but : i1.py : import i2 print i2.GlobalA i2.py : GlobalA = "azerty" OK ===

Python Operating System???

2005-01-06 Thread David Brown
Hello. I recently came across a free operating system called Unununium (or something like that) and it was developed in Python and Assembly. Now, I have been looking for a way to make an operating system for a long long time and the only possibilities I could find were C++ and assembly. I don't mi

Re: Download .jpg from web

2005-01-06 Thread Istvan Albert
GMane Python wrote: Using a network camera with built-in webserver The first thing that might be worth investigating is this webserver. What kind of throughput is it capable of? How does it handle repeated requests etc. Your program won't be faster than the server that provides it with the data.

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 08:39:11 GMT, Roel Schroeven <[EMAIL PROTECTED]> wrote: >> If GPL folks had their way, it would not be possible not to "share" >> _anything_ you create. >That's generally the goal of the Free Software Foundation: they think >all users should have the freedom to modify and/or

Really OT (was Re: OT: spacing of code in Google Groups)

2005-01-06 Thread Peter Hansen
Alex Martelli wrote: Peter Hansen <[EMAIL PROTECTED]> wrote: This "cat equivalent" thing is a red-herring. I can rarely type more I tried offering a red herring to my cat to check this out, and, sure enough, she indignantly refused it and miaowed loudly for less smelly food. So, you may have a po

Pre/Postconditions with decorators

2005-01-06 Thread Rittersporn
My humble attempt to model pre/postconditions with decorators :-) It's also my first experiment with decorators. If you have any ideas or thoughts on how to improve the code snippet, I'll be happy to learn more. Enjoy :-) def condition(pretext,posttext=""): precode=compile(pretex

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 15:44:03 GMT, Roel Schroeven <[EMAIL PROTECTED]> wrote: >I was thinking more of end-user packages: if you somehow could lay your >hands on the source code of Visual Studio itself, you're still not >allowed to do anything with it. And why would anybody want to waste their tim

[OT] Re: The Industry choice

2005-01-06 Thread Peter Dembinski
Bulba! <[EMAIL PROTECTED]> writes: [...] > That's remarkable, first time I see smth like this - > out of curiosity, could you say a word where was that? Are you the same Bulba I know from alt.pl.comp.os.hacking? -- http://mail.python.org/mailman/listinfo/python-list

Re: Download .jpg from web

2005-01-06 Thread ralobao
You could try using: urlllib.urlretrieve ...it may be faster. -- http://mail.python.org/mailman/listinfo/python-list

Re: Another PythonWin Excel question

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

Re: Python Operating System???

2005-01-06 Thread Lucas Raab
David Brown wrote: Hello. I recently came across a free operating system called Unununium (or something like that) and it was developed in Python and Assembly. Now, I have been looking for a way to make an operating system for a long long time and the only possibilities I could find were C++ and as

Re: The Industry choice

2005-01-06 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: > Yes, apart from libraries and similar cases (frameworks etc), it's no > doubt rare for closed-source "end-user packages" to be sold with > licenses that include source and allow you to "do anything with it". > > However, allowing customization (at least

Re: Embedding a restricted python interpreter

2005-01-06 Thread Paul Rubin
Peter Maas <[EMAIL PROTECTED]> writes: > I think PHP has a safe mode which solves the probem of isolating > scripts of different users on application level. This is not optimal > but better than nothing. Best solution would probably be to create > a thread for each request that can operate only wit

Re: The Industry choice

2005-01-06 Thread Jeff Shannon
Bulba! wrote: On Thu, 06 Jan 2005 08:39:11 GMT, Roel Schroeven <[EMAIL PROTECTED]> wrote: That's generally the goal of the Free Software Foundation: they think all users should have the freedom to modify and/or distribute your code. You have the freedom of having to wash my car then. ;-) A more a

Re: Embedding a restricted python interpreter

2005-01-06 Thread Paul Rubin
Gerhard Haering <[EMAIL PROTECTED]> writes: > > But mod_python is an apache module and runs in the same apache process > > with other users' scripts. > > Which is why it's a good idea for each customer to have it's own > system user and their virtual hosts running under this uid. Which > was the i

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Alan Gauld
On Thu, 30 Dec 2004 23:28:46 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: > GvR has commented that he want to get rid of the lambda keyword for Python > 3.0. > Getting rid of lambda seems like a worthy goal, Can I ask what the objection to lambda is? 1) Is it the syntax? 2) Is it the limita

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 12:20:35 +0100, Stefan Axelsson <[EMAIL PROTECTED]> wrote: >> If GPL folks had their way, it would not be possible not to "share" >> _anything_ you create. It is widely acknowledged that GPL >> license has the "viral" aspect of extending itself on your >> software - can you po

Re: Download .jpg from web

2005-01-06 Thread Adam DePrince
On Thu, 2005-01-06 at 13:49, GMane Python wrote: > Hello All. > Using a network camera with built-in webserver, I'd like to have a python > program download .jpg files on a local lan. the location is > http:///jpg/image.jpg. > > Currently, I'm importing urllib and using urlopen to the address

Re: The Industry choice

2005-01-06 Thread Paul Rubin
Jeff Shannon <[EMAIL PROTECTED]> writes: > Note that the so-called 'viral' nature of GPL code only applies to > *modifications you make* to the GPL software. Well, only under an unusually broad notion of "modification". The GPL applies to any program incorporating GPL'd components, e.g. if I di

Re: Pre/Postconditions with decorators

2005-01-06 Thread Stephen Thorne
On 6 Jan 2005 13:33:42 -0800, Rittersporn <[EMAIL PROTECTED]> wrote: > @condition("number>0 and number<2","result>=0") > def sqrt(number): > import math > return math.sqrt(number) > > @condition("list(seq) is not None","sum(seq)==result") > def my_sum(seq): > tmp=0 >

Excluded and other middles in licensing (was: The Industry choice)

2005-01-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . . . >One last reflection -- I believe there are or used to be some programs >written by people no doubt of very good will, distributed with all >sources

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 09:27:49 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >>>I'd go further. It's not possible to force anyone to share, but the >>>GPL aims to remove software from a system that instead aims to force >>>people NOT to share. >> Nope. IMHO, GPL attempts to achieve the vendor lo

Re: Pb encodage & import

2005-01-06 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Hi ! Wilk had give me a solution pour UnicodeDecode Error. But no ideas for other problems. -- http://mail.python.org/mailman/listinfo/python-list

Re: project

2005-01-06 Thread Arich Chanachai
jerry wise wrote: Thank you for responding. I have responded to Jeff several times, but he has not sent me anything back. I have read several of the pymedia docs, but truthfully they mean nothing to me because like I said, I have no experience in computer programming. You told me to look at

Re: Python Operating System???

2005-01-06 Thread Arich Chanachai
David Brown wrote: Hello. I recently came across a free operating system called Unununium (or something like that) and it was developed in Python and Assembly. Now, I have been looking for a way to make an operating system for a long long time and the only possibilities I could find were C++ and as

RE: Pre/Postconditions with decorators

2005-01-06 Thread Robert Brewer
Stephen Thorne wrote: > On 6 Jan 2005 13:33:42 -0800, Rittersporn > <[EMAIL PROTECTED]> wrote: > > @condition("number>0 and number<2","result>=0") > > def sqrt(number): > > import math > > return math.sqrt(number) > > > > @condition("list(seq) is not None","sum(seq)==result") > >

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 09:42:42 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >> You see, I'm not disagreeing with you that your model applies >> _where it applies_. I only disagree that it applies in face of >> stronger forces. Now what kind of forces is dominant in >> most frequent scenarios would

Re: wxPython clipboard

2005-01-06 Thread flaxeater
Ok well you should look at this module http://www.rutherfurd.net/python/sendkeys/#id1 I then you could take frequent snapshots and use and OCR to find your stuff. Then use the above library to type to the window. -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-06 Thread Paul Rubin
Bulba! <[EMAIL PROTECTED]> writes: > Making derived work proprietary in no way implies that the base > work is publicly unavailable anymore. Since you want to be able to incorporate GPL code in your proprietary products, and say there's no problem since the base work is still available from the sa

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 10:38:53 -0800, Jeff Shannon <[EMAIL PROTECTED]> wrote: >It's also noteworthy to consider that many times, waste happens not >because of corruption or self-interest, but simply because of errors >of judgement. Precisely. That is one of the main points I was trying to get

Re: The Industry choice

2005-01-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Jeff Shannon <[EMAIL PROTECTED]> wrote: > >Note that the so-called 'viral' nature of GPL code only applies to >*modifications you make* to the GPL software. The *only* way in which >your code can be 'infected' by the GPL is if you copy GPL source. That's not tru

python reading/writing ms-project files?

2005-01-06 Thread zslist
any existing or pointers on how to do this? thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I make Windows Application with Python ?

2005-01-06 Thread Rob Emmons
On Wed, 05 Jan 2005 04:49:05 -0800, Fuzzyman wrote: > Couple of corrections - neither pypy nor starkiller are compilers. > Starkiller isn't available yet and *may* be helpful in building > compilers. Pyrex is an alternative language - a python/C hybrid that > can be compiled. > > If you want to r

Re: The Industry choice

2005-01-06 Thread Terry Reedy
"Bulba!" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Which I find again wrong: suppose this developer used GPL-ed > library A, developed patches B and C. He provided you with > the source code of publicly available library A and a patch > C, but he doesn't want to release patch

Re: Embedding a restricted python interpreter

2005-01-06 Thread Michael Sparks
Rolf Magnus wrote: > I would like to embed a python interpreter within a program, but since > that program would be able to automatically download scripts from the > internet, I'd like to run those in a restricted environment, which > basically means that I want to allow only a specific set of mod

Re: Python Operating System???

2005-01-06 Thread Fuzzyman
The bootloader would have to be a 'python-core'. Ideally a fast implementation of just the python syntax and language features. Now *that* would be an excellent basis for a restricted mode python interpreter - which could make 'python applets' closer to a reality. It would also make python for embe

Re: Python Operating System???

2005-01-06 Thread Carl Banks
Arich Chanachai wrote: > But > then again, if you don't like C++, you probably won't like Java. They > can be very different languages, but in my experience, the reasons why > one does not like C++ is usually due to a quality/flaw that can also be > found in Java. Oh, brother. The Zen of Python s

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Jeff Shannon
Alan Gauld wrote: Can I ask what the objection to lambda is? 1) Is it the syntax? 2) Is it the limitation to a single expression? 3) Is it the word itself? I can sympathise with 1 and 2 but the 3rd seems strange since a lambda is a well defined name for an anonymous function used in several progr

Re: The Industry choice

2005-01-06 Thread Bulba!
On 06 Jan 2005 14:16:13 -0800, Paul Rubin wrote: >> Yes, apart from libraries and similar cases (frameworks etc), it's no >> doubt rare for closed-source "end-user packages" to be sold with >> licenses that include source and allow you to "do anything with it". >> >> Ho

Re: Python Operating System???

2005-01-06 Thread Christopher Koppler
On Thu, 06 Jan 2005 16:12:54 -0800, Carl Banks wrote: > Arich Chanachai wrote: >> But >> then again, if you don't like C++, you probably won't like Java. > They >> can be very different languages, but in my experience, the reasons > why >> one does not like C++ is usually due to a quality/flaw tha

Re: The Industry choice

2005-01-06 Thread Bulba!
On 06 Jan 2005 15:38:53 -0800, Paul Rubin wrote: >> Making derived work proprietary in no way implies that the base >> work is publicly unavailable anymore. >Since you want to be able to incorporate GPL code in your proprietary >products, Nope. That is not what I'm arg

Re: The Industry choice

2005-01-06 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > > Which I find again wrong: suppose this developer used GPL-ed > > library A, developed patches B and C. He provided you with > > the source code of publicly available library A and a patch > > C, but he doesn't want to release patch B. > > Then he does

Re: Contributor's List

2005-01-06 Thread Fuzzyman
My understanding is that the 2nd edition will *only* have new entries. this may be entirely off the wall of course. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Paul Rubin
Jeff Shannon <[EMAIL PROTECTED]> writes: > It seems to me that in other, less-dynamic languages, lambdas are > significantly different from functions in that lambdas can be created > at runtime. What languages are those, where you can create anonymous functions at runtime, but not named functions?

Re: The Industry choice

2005-01-06 Thread Terry Reedy
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Absolutely not. Some people want to share under very specific conditions, > hence the proliferation of licenses in the open source world. Indeed, Prof. Lessig at Standford University, I believe, recently designed the

Re: Python evolution: Unease

2005-01-06 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] > If I have a 400 gig hard drive, I don't see why I need 99.99% of it > empty instead of 99.0% after I do my OS install. Even though I currently only have 80 megs (about the minimum one can currently buy), I'

Re: The Industry choice

2005-01-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Bulba! <[EMAIL PROTECTED]> wrote: > >Nope. That is not what I'm arguing. Really, I think you have >jumped to conclusion about that: I merely pointed out that >I don't like what I perceive as end effect of what GPL license >writers are attempting to achieve: vendor l

Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 14:27:55 -0800, Jeff Shannon <[EMAIL PROTECTED]> wrote: >>>That's generally the goal of the Free Software Foundation: they think >>>all users should have the freedom to modify and/or distribute your code. >> >> You have the freedom of having to wash my car then. ;-) >A more

Re: [OT] Re: The Industry choice

2005-01-06 Thread Bulba!
On Thu, 06 Jan 2005 22:42:01 +0100, Peter Dembinski <[EMAIL PROTECTED]> wrote: >[...] > >> That's remarkable, first time I see smth like this - >> out of curiosity, could you say a word where was that? >Are you the same Bulba I know from alt.pl.comp.os.hacking? No, but I like to see I have an ev

Re: The Industry choice

2005-01-06 Thread Paul Rubin
[EMAIL PROTECTED] (Aahz) writes: > >I don't like what I perceive as end effect of what GPL license > >writers are attempting to achieve: vendor lock-in. > And my counter-argument is that I believe your perception is wrong. If > I agreed with your focus on lock-in, I'd say that what the GPL is tr

Re: Python evolution: Unease

2005-01-06 Thread Peter Hansen
Terry Reedy wrote: "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] If I have a 400 gig hard drive, I don't see why I need 99.99% of it empty instead of 99.0% after I do my OS install. Even though I currently only have 80 megs (about the minimum one can cur

Re: Python Operating System???

2005-01-06 Thread Roose
What exactly do you mean by an operating system? If you don't want to program in C/C++ then you're going to have a hard time. I don't want to be too discouraging, but with that attitude I doubt you would get very far. It sounds like you want to make more of an OS shell -- no? You can implement a

Re: Python Operating System???

2005-01-06 Thread Peter Hansen
Fuzzyman wrote: There is/was a project (Peter Hansen ?) to produce a pure python file system. that could be an interesting component. Good memory... uh, sort of. :-) It was probably me you're thinking of, but the point of the project was solely a "virtual" file system, to be used exclusively as a

Please Contribute Python Documentation!

2005-01-06 Thread Skip Montanaro
I'm changing the subject so that hopefully people who have long ago tuned out the "Python evolution: Unease" subject will read this note. John> I would like to contribute some documentation to Python. I've got John> the time, I write quite a bit, etc. I've got fairly strong John> opi

Re: Python Operating System???

2005-01-06 Thread Arich Chanachai
Carl Banks wrote: Arich Chanachai wrote: But then again, if you don't like C++, you probably won't like Java. They can be very different languages, but in my experience, the reasons why one does not like C++ is usually due to a quality/flaw t

Re: Another PythonWin Excel question

2005-01-06 Thread It's me
Yes, Mike, Others pointed that out as well. The difficulty is that they are all in VBAs. Most of them can be translated to Python fairly easily, and some I can get from looking at the recorded macro - but some requires quite a bit of head scratching. For instance, I wanted to figure out how cr

Re: Python Operating System???

2005-01-06 Thread Arich Chanachai
Roose wrote: What exactly do you mean by an operating system? If you don't want to program in C/C++ then you're going to have a hard time. I don't want to be too discouraging, but with that attitude I doubt you would get very far. Indeed, this is very true. It sounds like you want to make more o

Re: The Industry choice

2005-01-06 Thread Jeff Shannon
Bulba! wrote: And note that it was definitely not in his personal interest, whoever that was, a person or group of persons, as he/they risked getting fired for that. This doesn't necessarily follow. The decision-maker in question may have received a fat bonus for having found such a technic

Re: Python evolution: Unease

2005-01-06 Thread Robert Kern
Bulba! wrote: On Wed, 05 Jan 2005 17:25:08 -0800, Robert Kern <[EMAIL PROTECTED]> wrote: I still think numarray is a good start for this. It handles more than just numbers. And RecArray (an array that has different types in each column, as you seem to require) can be subclassed to add these meth

Re: Excluded and other middles in licensing

2005-01-06 Thread Robert Kern
Cameron Laird wrote: In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . . . One last reflection -- I believe there are or used to be some programs written by people no doubt of very good will, distribute

Re: wxPython clipboard

2005-01-06 Thread Lorenzo Bolognini
[EMAIL PROTECTED] wrote: Ok well you should look at this module http://www.rutherfurd.net/python/sendkeys/#id1 I then you could take frequent snapshots and use and OCR to find your stuff. Then use the above library to type to the window. Ok the problem on Windows looks like solved but still I woul

Re: Working with flat files [LDIF].

2005-01-06 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Scott A. McIntyre wrote: I looked around but didn't see any LDIF tools for perl or python... Did you ever get this issue resolved? I have a similar need to merge two LDIF files. Use module LDIF which is part of http://python-ldap.sourceforge.net/. You can use it stand-alo

Re: Embedding a restricted python interpreter

2005-01-06 Thread Doug Holton
Rolf Magnus wrote: Hi, I would like to embed a python interpreter within a program, but since that program would be able to automatically download scripts from the internet, I'd like to run those in a restricted environment, which basically means that I want to allow only a specific set of modules

Re: Python evolution: Unease

2005-01-06 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > Would it be possible, at least for Windows, to write a Python script > implementing a 'virtual distribution'? IE, download Python, install it, > download next package, install it, etc. -- prefereably table driven? I just don't understand why you'd wa

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Jeff Shannon
Paul Rubin wrote: Jeff Shannon <[EMAIL PROTECTED]> writes: It seems to me that in other, less-dynamic languages, lambdas are significantly different from functions in that lambdas can be created at runtime. What languages are those, where you can create anonymous functions at runtime, but not named

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Doug Holton
Alan Gauld wrote: GvR has commented that he want to get rid of the lambda keyword for Python 3.0. Getting rid of lambda seems like a worthy goal, Can I ask what the objection to lambda is? 1) Is it the syntax? 2) Is it the limitation to a single expression? 3) Is it the word itself? I can symp

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Terry Reedy
"Alan Gauld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 30 Dec 2004 23:28:46 +1000, Nick Coghlan > <[EMAIL PROTECTED]> wrote: > >> GvR has commented that he want to get rid of the lambda keyword for >> Python 3.0. >> Getting rid of lambda seems like a worthy goal, > >

Re: Another PythonWin Excel question

2005-01-06 Thread Mike Thompson
It's me wrote: Yes, Mike, Others pointed that out as well. For good reason. The difficulty is that they are all in VBAs. Most of them can be translated to Python fairly easily, and some I can get from looking at the recorded macro - but some requires quite a bit of head scratching. For instance,

Re: The Industry choice

2005-01-06 Thread Steve Holden
Bulba! wrote: On Thu, 06 Jan 2005 09:42:42 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: You see, I'm not disagreeing with you that your model applies _where it applies_. I only disagree that it applies in face of stronger forces. Now what kind of forces is dominant in most frequent scenarios wou

This Program Realy Works

2005-01-06 Thread MIke
MAKE LOTS OF MONEY QUICKLY, GUARANTEED 100%, NO SCAM! Turn 6.00 into 42,000! This is true!! Read this carefully to find out how!! READING THIS WILL CHANGE YOUR LIFE! I found this on a bulletin board and decided to try it. A little while back, I was browsing through newsgroups, and ca

Re: Python Operating System???

2005-01-06 Thread John Roth
"David Brown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello. I recently came across a free operating system called Unununium (or something like that) and it was developed in Python and Assembly. Now, I have been looking for a way to make an operating system for a long long time

Re: Problem remotely shutting down a windows computer with python

2005-01-06 Thread EW
This does exactly what I needed! Thanks! Not sure what Windows Management Instrumentation is, but I'll look into it now. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Python evolution: Unease

2005-01-06 Thread Terry Reedy
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Terry Reedy wrote: >> Would it be possible, at least for Windows, to write a Python script >> implementing a 'virtual distribution'? IE, download Python, install it, >> download next package, install it, etc. -- pref

Re: Python evolution: Unease

2005-01-06 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] > "Terry Reedy" <[EMAIL PROTECTED]> writes: >> Would it be possible, at least for Windows, to write a Python script >> implementing a 'virtual distribution'? IE, download Python, install it, >> download next pa

Re: what is lambda used for in real code?

2005-01-06 Thread Steven Bethard
I wrote: * Functions I don't know how to rewrite Some functions I looked at, I couldn't figure out a way to rewrite them without introducing a new name or adding new statements. [snip] inspect.py: def formatargspec(args, varargs=None, varkw=None, ... formatvara

Re: Python Operating System???

2005-01-06 Thread Nick Vargish
Arich Chanachai <[EMAIL PROTECTED]> writes: > He should just build around a linux core or use OS kit (if he is > serious/determined). There's Ubuntu Linux, a Debian-based distro with commercial backing and a regular release schedule. One of the neat things about Ubuntu is that Python use is encou

Re: Embedding a restricted python interpreter

2005-01-06 Thread Craig Ringer
On Thu, 2005-01-06 at 23:05, Peter Maas wrote: > Craig Ringer schrieb: > It would certainly be difficult to track all harmful code constructs. > But AFAIK the idea of a sandbox is not to look at the offending code > but to protect the offended objects: files, databases, URLs, sockets > etc. and to

Re: Another PythonWin Excel question

2005-01-06 Thread It's me
Okay, thanks. That helps a lot. "Mike Thompson" wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > Yes, Mike, > > > > Others pointed that out as well. > > For good reason. > > > > > The difficulty is that they are all in VBAs. Most of them can be > > translated to Python fairly easil

Re: Python evolution: Unease

2005-01-06 Thread Paul Rubin
[EMAIL PROTECTED] (Bengt Richter) writes: > I agree 1000% !! Importing a stub should get you an imported stub that > prints info as it imports, so you know its not functional. But I don't even understand why I'd even want to use these stubs, instead of just having the full installation from day 1

Re: Python C Object Comparison

2005-01-06 Thread Craig Ringer
On Thu, 2005-01-06 at 18:34, Anand K Rayudu wrote: > Here is my python code > > import myModule > > a=myModule.myAPI1("1") > b=myModule.myAPI2("name") > > # basically both above functions return same C pointer. > # so i want to compare > if(a==b): print "They are same" > else : print "They are

Re: File Handling Problems Python I/O

2005-01-06 Thread Craig Ringer
On Fri, 2005-01-07 at 02:06, Josh wrote: > Peter, > > Thank you for the rookie correction. That was my exact problem. I > changed the address to use forward slashes and it works perfect. I did > not know that a backslash had special meaning within a string, but now > I do! Thanks again There's an

Re: Embedding a restricted python interpreter

2005-01-06 Thread Craig Ringer
On Thu, 2005-01-06 at 23:40, Steve Holden wrote: > Jp Calderone wrote: > > [...] > > > > > > A Python sandbox would be useful, but the hosting provider's excuse > > for not allowing you to use mod_python is completely bogus. All the > > necessary security tools for that situation are provide

<    1   2   3   >