Re: Picking a license

2010-05-14 Thread Steven D'Aprano
On Thu, 13 May 2010 17:18:47 -0700, Carl Banks wrote: The thing you GPL fanbois refuse to understand or accept is that, in the real world, a person or company who doesn't want to open source their derivative work will only rarely be forced to by the GPL. They'll work around it instead, vast

Re: Picking a license

2010-05-14 Thread Steven D'Aprano
On Thu, 13 May 2010 19:10:09 -0700, Patrick Maupin wrote: The broken window fallacy is about labor that could have been spent elsewhere if someone else had done something differently. The only time that comes into play in my programming life is when I have to recode something that is

Re: Picking a license

2010-05-14 Thread Carl Banks
On May 13, 10:59 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Thu, 13 May 2010 17:18:47 -0700, Carl Banks wrote: The thing you GPL fanbois refuse to understand or accept is that, in the real world, a person or company who doesn't want to open source their derivative

Re: client to upload big files via https and get progress info

2010-05-14 Thread News123
Hi Sean, Sean DiZazzo wrote: On May 13, 9:54 pm, Sean DiZazzo half.ital...@gmail.com wrote: On May 13, 9:39 am, News123 news1...@free.fr wrote: Hi Aaaz, Aahz wrote: In article 4bea6b50$0$8925$426a7...@news.free.fr, News123 news1...@free.fr wrote: I'd like to perform huge file

Re: client to upload big files via https and get progress info

2010-05-14 Thread News123
Hi James, James Mills wrote: On Wed, May 12, 2010 at 6:48 PM, News123 news1...@free.fr wrote: Hi, I'd like to perform huge file uploads via https. I'd like to make sure, - that I can obtain upload progress info (sometimes the nw is very slow) - that (if the file exceeds a certain size) I

Re: client to upload big files via https and get progress info

2010-05-14 Thread News123
Hi J, J.O. Aho wrote: News123 news1...@free.fr wrote: What do others do for huge file uploads The uploader might be connected via ethernet, WLAN, UMTS, EDGE, GPRS. ) Those cases where I have had to move big files it's been scp on those cases where you just have to push a new file, in

Re: stopping execution window on error - newbie

2010-05-14 Thread a
On 14 May, 00:14, Mensanator mensana...@aol.com wrote: On May 13, 4:00 pm, a oxfordenergyservi...@googlemail.com wrote: I'm coding on an old windows laptop i write the code and double click the icon.   Don't do that. it runs the program and writes results to a window. when the

d-cm Controll Manager

2010-05-14 Thread darragh
Hey, I'm developing d-cm, it's a program for web-developers that often need a text-editor,file-manager,sql-manager,ftp-manager. d-cm combines all of them in one easy to use program. i'm looking for people that would like to help developing or to test the program. http://code.google.com/p/d-cm --

write a 20GB file

2010-05-14 Thread Jackie Lee
Hello there, I have a 22 GB binary file, a want to change values of specific positions. Because of the volume of the file, I doubt my code a efficient one: #! /usr/bin/env python #coding=utf-8 import sys import struct try: f=open(sys.argv[1],'rb+') except (IOError,Exception): print

Re: How to add callbacks that is the same function with different argument in Tkinter python26?

2010-05-14 Thread Bruno Desthuilliers
Jean-Michel Pichavant a écrit : chen zeguang wrote: code is in the end. I want to print different number when pressing different button. Yet the program outputs 8 no matter which button is pressed. I guess it's because the callback function is not established untill the button is pressed, and

cmd app and xml

2010-05-14 Thread kak...@gmail.com
Hi there, i'm writing a console app using the cmd library. I also use xml.dom.minidom to parse an xml file that i get as a response to an HTTP Post request. with data = response.read() i get the xml response from the server. i then feed the parser with that data. myDoc = parse(data) but it doesn't

Re: cmd app and xml

2010-05-14 Thread Stefan Behnel
kak...@gmail.com, 14.05.2010 12:46: Hi there, i'm writing a console app using the cmd library. I also use xml.dom.minidom to parse an xml file that i get as a response to an HTTP Post request. with data = response.read() i get the xml response from the server. i then feed the parser with that

Re: Picking a license

2010-05-14 Thread Lawrence D'Oliveiro
In message 2ff3643b-6ef1-4471-8438- dcba0dc93...@a21g2000yqn.googlegroups.com, Patrick Maupin wrote: On May 13, 10:04 pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.142.1273767256.32709.python-l...@python.org, Ed Keith wrote: The claim is being made

Re: Picking a license

2010-05-14 Thread Lawrence D'Oliveiro
In message 2b17ee77-0e49-4a97-994c-7582f86c0...@r34g2000yqj.googlegroups.com, Patrick Maupin wrote: On May 13, 10:06 pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Under the GPL, everybody has exactly the same freedoms. That's absolutely not true. For a start, the

Re: write a 20GB file

2010-05-14 Thread Dave Angel
Jackie Lee wrote: Hello there, I have a 22 GB binary file, a want to change values of specific positions. Because of the volume of the file, I doubt my code a efficient one: #! /usr/bin/env python #coding=utf-8 import sys import struct try: f=open(sys.argv[1],'rb+') except

Re: write a 20GB file

2010-05-14 Thread Jackie Lee
Thx, Dave, The code works fine. I just don't know how f.write works. It says that file.write won't write the file until file.close or file.flush. So I don't know if the following one is more efficient (sorry I forget to add condition to break the loop): #! /usr/bin/env python #coding=utf-8

Re: cmd app and xml

2010-05-14 Thread kak...@gmail.com
On May 14, 7:10 am, Stefan Behnel stefan...@behnel.de wrote: kak...@gmail.com, 14.05.2010 12:46: Hi there, i'm writing a console app using the cmd library. I also use xml.dom.minidom to parse an xml file that i get as a response to an HTTP Post request. with data = response.read()

Data store solution need help

2010-05-14 Thread Haulyn Jason
Hi, all: I am a Java programmer, now I am working on a Python program. At the moment, I need to store some data from user's input, no database, no xml, no txt(we can not make users open the data file by vim or other text editor). Any suggestions or reference url? Is there a lib should do

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 13 Mai, 22:10, Patrick Maupin pmau...@gmail.com wrote: [...] Just to deal with your Ubuntu high horse situation first, you should take a look at the following for what people regard to be the best practices around GPL-licensed software distribution:

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Thu, 5/13/10, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: From: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand Subject: Re: Picking a license To: python-list@python.org Date: Thursday, May 13, 2010, 11:06 PM In message

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 03:56, a...@pythoncraft.com (Aahz) wrote: IMO this only makes sense if one agrees that people should not be allowed to sell software for money.  Absent that agreement, your argument about freedom seems rather limited. You'll have to explain this to me because I don't quite follow

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Thu, 5/13/10, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: From: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand Subject: Re: Picking a license To: python-list@python.org Date: Thursday, May 13, 2010, 11:07 PM In message

Re: Data store solution need help

2010-05-14 Thread Bruno Desthuilliers
Haulyn Jason a écrit : Hi, all: I am a Java programmer, now I am working on a Python program. At the moment, I need to store some data from user's input, no database, no xml, no txt(we can not make users open the data file by vim or other text editor). Any suggestions or reference url? Is

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Thu, 5/13/10, Patrick Maupin pmau...@gmail.com wrote: From: Patrick Maupin pmau...@gmail.com Subject: Re: Picking a license To: python-list@python.org Date: Thursday, May 13, 2010, 11:45 PM On May 13, 10:06 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In

Re: Data store solution need help

2010-05-14 Thread Tim Chase
On 05/14/2010 08:18 AM, Haulyn Jason wrote: I am a Java programmer, now I am working on a Python program. At the moment, I need to store some data from user's input, no database, no xml, no txt(we can not make users open the data file by vim or other text editor). You don't mention what type

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 05:35, Patrick Maupin pmau...@gmail.com wrote: I mean, it's in English and very technically precise, but if you follow all the references, you quickly come to realize that the license is a patch to the GPL. It is a set of exceptions applied to version 3 of the GPL, done this way so

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: The GPL ensures that once software has entered the commons (and therefore available for all), it can never be removed from the commons. The MIT licence does not. Now, you might argue that in practice once

Re: Data store solution need help

2010-05-14 Thread Alex Hall
An important question is: will you need this input stored across multiple runs of the program? What I mean is, do you want the user to set the data, then have those same settings even after closing and re-opening the program? On 5/14/10, Bruno Desthuilliers

Re: Data store solution need help

2010-05-14 Thread superpollo
Haulyn Jason ha scritto: Hi, all: I am a Java programmer, now I am working on a Python program. At the moment, I need to store some data from user's input, no database, no xml, no txt(we can not make users open the data file by vim or other text editor). security thru obscurity? mmmhhh...

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Thu, 5/13/10, Patrick Maupin pmau...@gmail.com wrote: From: Patrick Maupin pmau...@gmail.com Subject: Re: Picking a license To: python-list@python.org Date: Thursday, May 13, 2010, 11:35 PM On May 13, 10:07 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: How

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: The GPL ensures that once software has entered the commons (and therefore available for all), it can never be removed from the commons. The MIT licence does not. Now, you might argue that in practice once

Setup global variables settings for the entire applications

2010-05-14 Thread AON LAZIO
Hi, Say I have an application which requires a global settings for the user. When the user finishes setting those global variables for the app. Any class can use that variables (which are the same for all), something like that. What is the suitable mechanism for this solution? Thanks in

Re: write a 20GB file

2010-05-14 Thread J
On Fri, May 14, 2010 at 07:32, Jackie Lee jackie.sp...@gmail.com wrote: Thx, Dave, The code works fine. I just don't know how f.write works. It says that file.write won't write the file until file.close or file.flush. So I don't know if the following one is more efficient (sorry I forget to

recursively remove all the directories and files which begin with '.'

2010-05-14 Thread albert kao
How do I recursively remove all the directories and files which begin with '.'? My test program rmdir.py does not do the job yet. Please help. [code] #!c:/Python31/python.exe -u import os from shutil import * root = C:\\test\\com.comp.hw.prod.proj.war\\bin for curdir, dirs, files in

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 8:47 am, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 05:35, Patrick Maupin pmau...@gmail.com wrote: I mean, it's in English and very technically precise, but if you follow all the references, you quickly come to realize that the license is a patch to the GPL. It is a

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 9:10 am, Ed Keith e_...@yahoo.com wrote: --- On Thu, 5/13/10, Patrick Maupin pmau...@gmail.com wrote: From: Patrick Maupin pmau...@gmail.com Subject: Re: Picking a license To: python-l...@python.org Date: Thursday, May 13, 2010, 11:35 PM On May 13, 10:07 pm, Lawrence

parsing XML

2010-05-14 Thread kak...@gmail.com
Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points rebounds7.8/rebounds /player /team How can i get the

Re: recursively remove all the directories and files which begin with '.'

2010-05-14 Thread J
On Fri, May 14, 2010 at 10:53, albert kao albertk...@gmail.com wrote: C:\pythonrmdir.py C:\test\com.comp.hw.prod.proj.war\bin ['.svn', 'com'] d .svn dotd C:\test\com.comp.hw.prod.proj.war\bin\.svn Traceback (most recent call last):  File C:\python\rmdir.py, line 14, in module    

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 1:08 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Thu, 13 May 2010 19:10:09 -0700, Patrick Maupin wrote: The broken window fallacy is about labor that could have been spent elsewhere if someone else had done something differently.  The only time that comes

Re: write a 20GB file

2010-05-14 Thread Martin v. Loewis
The code works fine. I just don't know how f.write works. It says that file.write won't write the file until file.close or file.flush. You are misinterpreting the documentation. It certainly won't keep the entire file in memory. Instead, it has a fixed-size buffer (something like 8kiB or 32kiB)

Re: parsing XML

2010-05-14 Thread Martin v. Loewis
kak...@gmail.com wrote: Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points rebounds7.8/rebounds

Re: parsing XML

2010-05-14 Thread Stefan Behnel
kak...@gmail.com, 14.05.2010 16:57: Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points

an element from a set

2010-05-14 Thread gerardob
Hello, let S be a python set which is not empty (http://docs.python.org/library/sets.html) i would like to obtain one element (anyone, it doesn't matter which one) and assign it to a variable. How can i do this? Thanks. -- View this message in context:

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 09:08, Carl Banks pavlovevide...@gmail.com wrote: On May 13, 10:59 pm, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Thu, 13 May 2010 17:18:47 -0700, Carl Banks wrote: 2. Reimplment the functionality seperately (*cough* PySide) Yes. So what? In what possible

Re: recursively remove all the directories and files which begin with '.'

2010-05-14 Thread albert kao
On May 14, 11:01 am, J dreadpiratej...@gmail.com wrote: On Fri, May 14, 2010 at 10:53, albert kao albertk...@gmail.com wrote: C:\pythonrmdir.py C:\test\com.comp.hw.prod.proj.war\bin ['.svn', 'com'] d .svn dotd C:\test\com.comp.hw.prod.proj.war\bin\.svn Traceback (most recent call

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 8:26 am, Paul Boddie p...@boddie.org.uk wrote: On 13 Mai, 22:10, Patrick Maupin pmau...@gmail.com wrote: Just to deal with your Ubuntu high horse situation first, you should take a look at the following for what people regard to be the best practices around GPL-licensed software

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 6:12 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message 2ff3643b-6ef1-4471-8438- dcba0dc93...@a21g2000yqn.googlegroups.com, Patrick Maupin wrote: On May 13, 10:04 pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 6:13 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message 2b17ee77-0e49-4a97-994c-7582f86c0...@r34g2000yqj.googlegroups.com, Patrick Maupin wrote: On May 13, 10:06 pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Under the GPL,

Re: Picking a license

2010-05-14 Thread mk
Steven D'Aprano wrote: Are you implying that by distributing your libraries under the MIT or Apache licence, no linking is required? That's a cool trick, can you explain how it works please? Err.. Linking statically with library in question? Which excludes LGPL for legal reasons and doesn't

Re: Picking a license

2010-05-14 Thread Tobiah
Assertion II: If person A is free do perform an action person B is not free to perform then person A is free to do more than person B. This does not hold water. Let's say there are only 10 activities available. Person A can do number 1 and person B can not. Person B can do activities

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Patrick Maupin pmau...@gmail.com wrote: From: Patrick Maupin pmau...@gmail.com Subject: Re: Picking a license To: python-list@python.org Date: Friday, May 14, 2010, 11:47 AM On May 14, 6:13 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Tobiah t...@rcsreg.com wrote: From: Tobiah t...@rcsreg.com Subject: Re: Picking a license To: python-list@python.org Date: Friday, May 14, 2010, 11:59 AM Assertion II:     If person A is free do perform an action person B is not free to     perform then person A is

Re: Iterating over dict and removing some elements

2010-05-14 Thread Bryan
Adi Eyal wrote: Bryan: Terry Reedy wrote: [...] for k in [k for k in d if d[k] == 'two']:          d.pop(k) We have a winner. also foo = lambda k, d : d[k] == two d = dict([(k, d[k]) for k in d.keys() if not foo(k, d)]) incidentally, this is marginally slower than pops and

Re: an element from a set

2010-05-14 Thread Terry Reedy
On 5/14/2010 11:24 AM, gerardob wrote: Hello, let S be a python set which is not empty (http://docs.python.org/library/sets.html) i would like to obtain one element (anyone, it doesn't matter which one) and assign it to a variable. How can i do this? Depends on whether or not you want the

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 17:37, Patrick Maupin pmau...@gmail.com wrote: Before, you were busy pointing me at the GPL FAQ as authoritative. No, the licence is the authority, although the FAQ would probably be useful to clarify the licence author's intent in a litigation environment. [Fast-forward through the

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 10:20 am, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 09:08, Carl Banks pavlovevide...@gmail.com wrote: On May 13, 10:59 pm, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Thu, 13 May 2010 17:18:47 -0700, Carl Banks wrote: 2. Reimplment the

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 11:48 am, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 17:37, Patrick Maupin pmau...@gmail.com wrote: Before, you were busy pointing me at the GPL FAQ as authoritative. No, the licence is the authority, although the FAQ would probably be useful to clarify the licence

Re: Picking a license

2010-05-14 Thread Albert van der Horst
In article 4be9554...@dnews.tpgi.com.au, Lie Ryan lie.1...@gmail.com wrote: SNIP Come on, 99% of the projects released under GPL did so because they don't want to learn much about the law; they just need to release it under a certain license so their users have some legal certainty. Most

joining two column

2010-05-14 Thread mannu jha
Hi, I have two different file file1: a1 a2 a3 a4 a5 a6 a7 a8 file2: b1 b2 b3 b4 b5 b6 b7 b8 and I want to join them so the output should look like this: a1 a2 b1 b2 a3 a4 b3 b4 a5 a6 b5 b6 a7 a8 b7 b8 how to do that? -- http://mail.python.org/mailman/listinfo/python-list

Re: joining two column

2010-05-14 Thread James Mills
On Sat, May 15, 2010 at 3:22 AM, mannu jha mannu_0...@rediffmail.com wrote: Hi, I have two different file file1: a1 a2 a3 a4 a5 a6 a7 a8 file2: b1 b2 b3 b4 b5 b6 b7 b8 and I want to join them so the output should look like this: a1 a2 b1 b2 a3 a4 b3 b4 a5 a6 b5 b6 a7 a8 b7

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 19:00, Patrick Maupin pmau...@gmail.com wrote: Would you have agreed had he had said that MatLab's license doesn't do much good and assigned the same sort of meaning to that statement, namely that the MatLab license prevented enough motivated people from freely using MatLab in ways

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: This is a big reason for me to release everything (see my website, it is a *lot*) under GPL. If someone wants to use it they can, if someone wants to use it commercially, they can too, as long as they pay me a

Re: parsing XML

2010-05-14 Thread kak...@gmail.com
On May 14, 6:22 pm, Stefan Behnel stefan...@behnel.de wrote: kak...@gmail.com, 14.05.2010 16:57: Hi to all, let's say we have the following Xml team    player name='Mick Fowler' age='27' height='1.96m'      points17.1/points      rebounds6.4/rebounds    /player    player name='Ivan

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 1:07 pm, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 19:00, Patrick Maupin pmau...@gmail.com wrote: Would you have agreed had he had said that MatLab's license doesn't do much good and assigned the same sort of meaning to that statement, namely that the MatLab license

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 19:15, Patrick Maupin pmau...@gmail.com wrote: On May 14, 11:48 am, Paul Boddie p...@boddie.org.uk wrote: Section 3 of GPLv2 (and section 6(d) of GPLv3 reads similarly): If distribution of executable or object code is made by offering access to copy from a designated place, then

Re: joining two column

2010-05-14 Thread Tim Chase
On 05/14/2010 12:55 PM, James Mills wrote: file1: a1 a2 a3 a4 a5 a6 a7 a8 file2: b1 b2 b3 b4 b5 b6 b7 b8 and I want to join them so the output should look like this: a1 a2 b1 b2 a3 a4 b3 b4 a5 a6 b5 b6 a7 a8 b7 b8 This is completely untested, but this should (tm) work: from itertools

Re: Is Python a functional programming language?

2010-05-14 Thread Nobody
On Tue, 11 May 2010 18:31:03 -0700, Paul Rubin wrote: is called an equation rather than an assignment. It declares x is equal to 3, rather than directing x to be set to 3. If someplace else in the program you say x = 4, that is an error, normally caught by the compiler, since x cannot be

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 1:38 pm, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 19:15, Patrick Maupin pmau...@gmail.com wrote: On May 14, 11:48 am, Paul Boddie p...@boddie.org.uk wrote: Section 3 of GPLv2 (and section 6(d) of GPLv3 reads similarly): If distribution of executable or object code is

Re: Is Python a functional programming language?

2010-05-14 Thread Chris Rebert
On Fri, May 14, 2010 at 12:08 PM, Nobody nob...@nowhere.com wrote: On Tue, 11 May 2010 18:31:03 -0700, Paul Rubin wrote: is called an equation rather than an assignment.  It declares x is equal to 3, rather than directing x to be set to 3.  If someplace else in the program you say x = 4, that

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Paul Boddie p...@boddie.org.uk wrote: lots of stuff snipped Like I said, if you really have a problem with Ubuntu shipping CDs and exposing others to copyright infringement litigation. A lot more stuff snipped Everyone is assuming a certain degree of computer

Re: Is Python a functional programming language?

2010-05-14 Thread Nobody
On Thu, 13 May 2010 12:29:08 +1200, Lawrence D'Oliveiro wrote: Some people would prefer to have a manageable set of rules rather than having to remember the results of all of the possible combinations of interactions between language features. What are you accusing Python of, exactly? I'm

Re: write a 20GB file

2010-05-14 Thread Nobody
On Fri, 14 May 2010 10:50:49 -0400, J wrote: someone smarter than me can correct me, but file.write() will write when it's buffer is filled, or close() or flush() are called. And, in all probability, seek() will either flush it immediately or cause the next write() to flush it before writing

Re: joining two column

2010-05-14 Thread James Mills
On Sat, May 15, 2010 at 4:46 AM, Tim Chase python.l...@tim.thechases.com wrote: I think you meant izip() instead of chain() ... the OP wanted to be able to join the two lines together, so I suspect it would look something like You're quite right! My mistake :) --James --

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 20:36, Patrick Maupin pmau...@gmail.com wrote: That statement was made in the context of why Carl doesn't use GPL- licensed *libraries*.  He and I have both explained the difference between libraries and programs multiple times, not that you care. Saying that GPL-licensed

Including a remote file -- permission denied?

2010-05-14 Thread Aaron Scott
I have a Python script running on the default OSX webserver, stored in /Library/WebServer/CGI-Executables. That script spits out a list of files on a network drive, a la os.listdir('/Volumes/code/ directory/'). If I just execute this from the terminal, it works as expected, but when I try to

Re: Picking a license

2010-05-14 Thread Ed Keith
--- On Fri, 5/14/10, Paul Boddie p...@boddie.org.uk wrote: snip No, PySide is about permitting the development of proprietary applications by providing a solution to the all-important ISVs which lets them develop and deploy proprietary software. Do you really think a platform vendor

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 2:26 pm, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 20:36, Patrick Maupin pmau...@gmail.com wrote: That statement was made in the context of why Carl doesn't use GPL- licensed *libraries*.  He and I have both explained the difference between libraries and programs

Re: parsing XML

2010-05-14 Thread Stefan Behnel
Martin v. Loewis, 14.05.2010 17:15: kak...@gmail.com wrote: Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m'

Re: Iterating over dict and removing some elements

2010-05-14 Thread Paul Rubin
Bryan bryanjugglercryptograp...@yahoo.com writes: In Python 3.X, and in Python 2.X starting with 2.4, you can drop the square brackets and avoid creating an extra temporary list: d = dict((k, d[k]) for k in d.keys() if not foo(k, d)) In 2.x, I think you want d.iterkeys() rather than d.keys()

Re: parsing XML

2010-05-14 Thread Adam Tauno Williams
On Fri, 2010-05-14 at 22:17 +0200, Stefan Behnel wrote: team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points rebounds7.8/rebounds

Re: Loading C extension from memory

2010-05-14 Thread Martin v. Loewis
I wonder if there is a way to load C extension from in-memory object, not from the file on the disk? I'm asking bc I would like to download C extensions over network and load them into Python interpreter (without storing the C extension in file on the disk). I googled for this but there

Re: parsing XML

2010-05-14 Thread Martin v. Loewis
Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points rebounds7.8/rebounds /player /team

Alternate string object type for PyStringObject(available Python 2.x) in python 3.x?

2010-05-14 Thread MathanK
What is the replacement in python 3.x for PyStringObject which is available in python 2.x? -- http://mail.python.org/mailman/listinfo/python-list

Re: write a 20GB file

2010-05-14 Thread J
On Fri, May 14, 2010 at 15:23, Nobody nob...@nowhere.com wrote: On Fri, 14 May 2010 10:50:49 -0400, J wrote: someone smarter than me can correct me, but file.write() will write when it's buffer is filled, or close() or flush() are called. And, in all probability, seek() will either flush it

Re: Alternate string object type for PyStringObject(available Python 2.x) in python 3.x?

2010-05-14 Thread Chris Rebert
On Fri, May 14, 2010 at 10:15 AM, MathanK switch2mat...@gmail.com wrote: What is the replacement in python 3.x for PyStringObject which is available in python 2.x? PyUnicodeObject or PyBytesObject depending on your use case. Cheers, Chris -- http://blog.rebertia.com --

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 22:12, Patrick Maupin pmau...@gmail.com wrote: I *obviously* was explaining that projects which *aren't* marginal, such as PyQt and MatLab, are the *only* kinds of projects that would be rewritten for a simple license change. As far as your comments about PyQt proving out the

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 21:14, Patrick Maupin pmau...@gmail.com wrote: If Joe downloads and burns a CD for his friend, he may not have the sources and may not have any intention of getting them, and probably didn't provide a written offer.  What you're ignoring for the moment is my whole point, that

Re: Picking a license

2010-05-14 Thread Paul Boddie
On 14 Mai, 21:18, Ed Keith e_...@yahoo.com wrote: The GPL is fine when all parties concern understand what source code is and what to do with it. But when you add people like my father to the loop if gets very ugly very fast. Sure, and when I'm not otherwise being accused of pushing one

huh??? weird problem

2010-05-14 Thread cerr
Hi There, I got following code: start=time.time() print 'warnTimeout '+str(WarnTimeout) print 'critTimeout '+str(CritTimeout) print 'start',str(start) while wait: passed = time.time()-start print 'passed ',str(passed) if passed = WarnTimeout: print ' Warning!' ... ... ...

Re: Picking a license

2010-05-14 Thread Terry Reedy
The following lines from http://www.softwarefreedom.org/resources/2008/compliance-guide.html seem to cover the case of someone who casually redistributes, for free, Ubuntu or whatever. Such can refer people back to the Ubuntu site. They should, perhaps, be familiar with the url, but I would

Puzzled by code pages

2010-05-14 Thread Adam Tauno Williams
I'm trying to process OpenStep plist files in Python. I have a parser which works, but only for strict ASCII. However plist files may contain accented characters - equivalent to ISO-8859-2 (I believe). For example I read in the line: handle = open('file.txt', 'rb') data = handle.read()

Re: huh??? weird problem

2010-05-14 Thread Chris Rebert
On Fri, May 14, 2010 at 5:14 PM, cerr ron.egg...@gmail.com wrote: Hi There, I got following code: start=time.time() print 'warnTimeout '+str(WarnTimeout) print 'critTimeout '+str(CritTimeout) print 'start',str(start) while wait:    passed =  time.time()-start    print 'passed

Re: Picking a license

2010-05-14 Thread Carl Banks
On May 14, 8:20 am, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 09:08, Carl Banks pavlovevide...@gmail.com wrote: On May 13, 10:59 pm, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Thu, 13 May 2010 17:18:47 -0700, Carl Banks wrote: 2. Reimplment the

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 6:42 pm, Paul Boddie p...@boddie.org.uk wrote: You really should slow down and read a bit more carefully. You might want to tone down the condescension. I didn't start out condescending, and I agree I could have worded this particular statement a bit more clearly, so I apologize

Re: Puzzled by code pages

2010-05-14 Thread Adam Tauno Williams
On Fri, 2010-05-14 at 20:27 -0400, Adam Tauno Williams wrote: I'm trying to process OpenStep plist files in Python. I have a parser which works, but only for strict ASCII. However plist files may contain accented characters - equivalent to ISO-8859-2 (I believe). For example I read in the

Re: huh??? weird problem

2010-05-14 Thread Mensanator
On May 14, 7:14 pm, cerr ron.egg...@gmail.com wrote: Hi There, I got following code: start=time.time() print 'warnTimeout '+str(WarnTimeout) print 'critTimeout '+str(CritTimeout) print 'start',str(start) while wait:     passed =  time.time()-start     print 'passed ',str(passed)     if

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 7:24 pm, Terry Reedy tjre...@udel.edu wrote: The option to provide an offer for source rather than direct source distribution is a special benefit to companies equipped to handle a fulfillment process. GPLv2 § 3(c) and GPLv3 § 6(c) avoid burdening noncommercial, occasional

Re: huh??? weird problem

2010-05-14 Thread Dave Angel
cerr wrote: Hi There, I got following code: start=time.time() print 'warnTimeout '+str(WarnTimeout) print 'critTimeout '+str(CritTimeout) print 'start',str(start) while wait: passed = time.time()-start print 'passed ',str(passed) if passed = WarnTimeout: print ' Warning!'

Re: Picking a license

2010-05-14 Thread Patrick Maupin
On May 14, 6:52 pm, Paul Boddie p...@boddie.org.uk wrote: On 14 Mai, 21:14, Patrick Maupin pmau...@gmail.com wrote: If Joe downloads and burns a CD for his friend, he may not have the sources and may not have any intention of getting them, and probably didn't provide a written offer.  What

Re: parsing XML

2010-05-14 Thread Lawrence D'Oliveiro
In message mailman.170.1273850586.32709.python-l...@python.org, Stefan Behnel wrote: Here's an overly complicated solution, but I thought that an object oriented design would help here. How many times are you going to write the “name, age, height” sequence? The next assignment question I

  1   2   3   >