Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 12:19 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 08 May 2010 16:39:33 -0700, Carl Banks wrote: GPL is about fighting a holy war against commercial software. Much GPL software *is* commercial software. Given that you're so badly misinformed about the

Re: Kindly show me a better way to do it

2010-05-09 Thread Steven D'Aprano
On Sat, 08 May 2010 14:06:33 -0700, Oltmans wrote: On May 9, 1:53 am, superpollo ute...@esempio.net wrote: add = lambda a,b: a+b for i in reduce(add,a):      print i This is very neat. Thank you. Sounds like magic to me. Can you please explain how does that work? Many thanks again.

Re: Fastest way to calculate leading whitespace

2010-05-09 Thread Steven D'Aprano
On Sat, 08 May 2010 14:27:32 -0700, dasacc22 wrote: U presume entirely to much. I have a preprocessor that normalizes documents while performing other more complex operations. Theres nothing buggy about what im doing I didn't *presume* anything, I took your example code and ran it and

Re: Picking a license

2010-05-09 Thread Paul Rubin
Patrick Maupin pmau...@gmail.com writes: I certainly agree that RMS's language is couched in religious rhetoric. I would say political movement rhetoric. He's not religious. He uses the word spiritual sometimes but has made it clear he doesn't mean that in a religious sense. --

Re: Picking a license

2010-05-09 Thread Carl Banks
On May 8, 10:19 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 08 May 2010 16:39:33 -0700, Carl Banks wrote: GPL is about fighting a holy war against commercial software. Much GPL software *is* commercial software. Given that you're so badly misinformed about the

Re: Picking a license

2010-05-09 Thread Carl Banks
On May 8, 9:29 pm, Paul Rubin no.em...@nospam.invalid wrote: Carl Banks pavlovevide...@gmail.com writes: If a commercial developer has a EULA that prevents users from combining their tools with tools from (say) their competitors, Do you mean something like a EULA that stops you from buying

flattening list

2010-05-09 Thread gopi krishna
Hi , Anyone can pls help me in flattening the list. if p is the my list which is defined below p=[1,[2,3,4],[5,6,],9,[[11,12]]] from the above how to get a list as [1,2,3,4,5,6,9,11,12] -- http://mail.python.org/mailman/listinfo/python-list

can we change the variables with function

2010-05-09 Thread gopi krishna
Hi can I change the variable in a function using the function suppose def a(): x=20 can we change the variable using the function -- http://mail.python.org/mailman/listinfo/python-list

Why list comprehension faster than for loop?

2010-05-09 Thread gopi krishna
Why list comprehension faster than for loop? -- http://mail.python.org/mailman/listinfo/python-list

Re: flattening list

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:16 AM, gopi krishna dasarathulag...@gmail.com wrote: Hi ,     Anyone can pls help me in flattening the list. if p is the my list which is defined below p=[1,[2,3,4],[5,6,],9,[[11,12]]] from the above how to get a list as [1,2,3,4,5,6,9,11,12]

win32com

2010-05-09 Thread mohamed issolah
hey, there is an alternative of win32com in linux? what i want to say : can communicate with application (ex: evolution or another) throught python like in windows with win32com thanks, sorry for my english need help -- issolah mohamed -- http://mail.python.org/mailman/listinfo/python-list

Re: can we change the variables with function

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:19 AM, gopi krishna dasarathulag...@gmail.com wrote: Hi    can I change the variable in a function using the function suppose def a(): x=20 can we change the variable using the function Your question is incomprehensible. Please rephrase it more clearly and provide

Re: Why list comprehension faster than for loop?

2010-05-09 Thread Xavier Ho
On Sun, May 9, 2010 at 6:20 PM, gopi krishna dasarathulag...@gmail.comwrote: Why list comprehension faster than for loop? Because Python optimises for certain special cases, when the number of iterations is predicable in a list comprehension. Cheers, Xav --

zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?

2010-05-09 Thread Matthew Brett
Hi, I sorry if this is a bad place to ask, but I wanted to find out if the behavior I'm seeing is a bug. I maintain scipy's matlab file readers, and I came across a zlib compressed string that causes a zlib error on decompression, but only with zlib.decompress, not zlib.decompressobj. I saved

Re: can we change the variables with function

2010-05-09 Thread Xavier Ho
On Sun, May 9, 2010 at 6:19 PM, gopi krishna dasarathulag...@gmail.comwrote: Hi can I change the variable in a function using the function suppose def a(): x=20 can we change the variable using the function Can you give us an example of how you'd like to change the variable, in code,

Re: flattening list

2010-05-09 Thread Abhishek Mishra
thanks for the excercise just figured out this - #!/usr/bin/env python import sys sys.setrecursionlimit(2000) def flatten(l): flattened = [] for i in l: if type(i) == type([]): flattened += flatten(i) else: flattened.append(i) return flattened if

Re: can we change the variables with function

2010-05-09 Thread Abhishek Mishra
Could you also demonstrate with an example as to what kind of effect you're expecting from whatever you've been desiring to do? On Sun, May 9, 2010 at 1:49 PM, gopi krishna dasarathulag...@gmail.comwrote: Hi can I change the variable in a function using the function suppose def a(): x=20

Re: win32com

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:15 AM, mohamed issolah isso@gmail.com wrote: hey, there is an alternative of win32com in linux? what i want to say : can communicate with application (ex: evolution or another) throught python like in windows with win32com The closest equivalent would probably

can we change the variables with function

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:33 AM, gopi krishna dasarathulag...@gmail.com wrote: My Question is can we access the variables defined in a function ? class A:     def b(self):         x=40     z=40 q=A() q.z 40 q.z=60 q.z 60 We can access the variables defined in a class as shown above  

Re: Kindly show me a better way to do it

2010-05-09 Thread Steven D'Aprano
On Sun, 09 May 2010 15:17:38 +1000, Lie Ryan wrote: On 05/09/10 07:09, Günther Dietrich wrote: Why not this way? a = [[1,2,3,4], [5,6,7,8]] for i in a: for j in i: print(j) 1 2 3 4 5 6 7 8 Too simple? IMHO that's more complex due to the nested

solve a newspaper quiz

2010-05-09 Thread superpollo
if a b c are digits, solve ab:c=a*c+b solved in one minute with no thought: for a in range(10): for b in range(10): for c in range(10): try: if (10.*a+b)/c==a*c+b: print %i%i:%i=%i*%i+%i % (a,b,c,a,c,b) except:

Re: Picking a license

2010-05-09 Thread Martin P. Hellwig
On 05/09/10 04:49, Paul Rubin wrote: cut As I read it, he is saying that when someone releases free software, they have for all intends and purposes lost control over its use, so they should have made peace with the fact and surrender gracefully. I'm asking why he doesn't think Microsoft has

Re: solve a newspaper quiz

2010-05-09 Thread Xavier Ho
On Sun, May 9, 2010 at 7:20 PM, superpollo ute...@esempio.net wrote: if a b c are digits, solve ab:c=a*c+b Sorry, what does the notation ab:c mean? Cheers, Xav -- http://mail.python.org/mailman/listinfo/python-list

Re: solve a newspaper quiz

2010-05-09 Thread Andre Engels
On Sun, May 9, 2010 at 11:31 AM, Xavier Ho cont...@xavierho.com wrote: On Sun, May 9, 2010 at 7:20 PM, superpollo ute...@esempio.net wrote: if a b c are digits, solve ab:c=a*c+b Sorry, what does the notation ab:c mean? The number ab divided by c. -- André Engels, andreeng...@gmail.com --

Re: Windows - select.select, timeout and KeyboardInterrupt

2010-05-09 Thread Lawrence D'Oliveiro
In message mailman.2769.1273327083.23598.python-l...@python.org, exar...@twistedmatrix.com wrote: On 07:48 am, l...@geek-central.gen.new_zealand wrote: In message mailman.2760.1273288730.23598.python-l...@python.org, exar...@twistedmatrix.com wrote: This is a good example of why it's a bad

Re: Why list comprehension faster than for loop?

2010-05-09 Thread Trent Nelson
On 9 May 2010, at 16:29, Xavier Ho wrote: On Sun, May 9, 2010 at 6:20 PM, gopi krishna dasarathulag...@gmail.commailto:dasarathulag...@gmail.com wrote: Why list comprehension faster than for loop? Because Python optimises for certain special cases, when the number of iterations is predicable

Re: solve a newspaper quiz

2010-05-09 Thread Alain Ketterlin
superpollo ute...@esempio.net writes: if a b c are digits, solve ab:c=a*c+b solved in one minute with no thought: Obviously. for a in range(10): for b in range(10): for c in range(10): try: if (10.*a+b)/c==a*c+b: print

Re: win32com

2010-05-09 Thread mohamed issolah
hey, I wich to have an example please need help 2010/5/9 Chris Rebert c...@rebertia.com On Sun, May 9, 2010 at 1:15 AM, mohamed issolah isso@gmail.com wrote: hey, there is an alternative of win32com in linux? what i want to say : can communicate with application (ex: evolution

Re: accessing superclass methods from subclass

2010-05-09 Thread TFH
On Sat, 08 May 2010 16:50:11 -0700, ben wrote: Why doesn't this work: class C1: def f1(self): print(f1) class C2(C1): f1() It throws this error: Traceback (most recent call last): File ./c1.py, line 7, in module class C2(C1): File ./c1.py, line 8, in

Re: A more general solution

2010-05-09 Thread Tim Chase
On 05/08/2010 10:33 PM, 3Jane wrote: You could interpret [[1,2,3,4],[5,6,7,8]] as a tree and your task as traversal of its leaves. All solutions before would not work with trees with bigger height. Here is how to traverse such trees recursively: def eventualPrint(x): for v in x:

The python theme T-shirt is cool ?

2010-05-09 Thread 疯图灵
To see the picture http://wooogooo.pixa.us/images/18838653/1 http://wooogooo.pixa.us/images/18838652/2 Welcome to discus . lol -- http://mail.python.org/mailman/listinfo/python-list

Re: Extract a bordered, skewed rectangle from an image

2010-05-09 Thread Paul Hemans
Thanks David, that is a 'tonne' of information. I am going to have a play with it, probably looking at masking out the contents of the label and finding the label border within the scanned document is the place to start. Looks like there is going to be a learning curve here. Thanks again for

Re: Python is cool!!

2010-05-09 Thread Fuzzyman
On Mar 23, 10:04 pm, geremy condra debat...@gmail.com wrote: On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden m...@timgolden.me.uk wrote: On 23/03/2010 16:55, Jose Manuel wrote: I have been learning Python, and it is amazing I am using the tutorial that comes with the official

Re: zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?

2010-05-09 Thread Antoine Pitrou
On Sun, 9 May 2010 01:28:14 -0700 (PDT) Matthew Brett matthew.br...@gmail.com wrote: If instead I do this: out = zlib.decompressobj().decompress(data) How about: d = zlib.decompressobj() out = d.decompress(data) + d.flush() ? Notice the documentation for decompressobj.decompress

Re: Kindly show me a better way to do it

2010-05-09 Thread Lie Ryan
On 05/09/10 19:18, Steven D'Aprano wrote: On Sun, 09 May 2010 15:17:38 +1000, Lie Ryan wrote: On 05/09/10 07:09, Günther Dietrich wrote: Why not this way? a = [[1,2,3,4], [5,6,7,8]] for i in a: for j in i: print(j) 1 2 3 4 5 6 7 8 Too simple? IMHO

Re: Fastest way to calculate leading whitespace

2010-05-09 Thread Wolfram Hinderer
On 8 Mai, 21:46, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 08 May 2010 12:15:22 -0700, Wolfram Hinderer wrote: Returning s[:-1 - len(t)] is faster. I'm sure it is. Unfortunately, it's also incorrect. However, s[:-len(t)] should be both faster and correct. Ouch.

virtualenvwrapper for Windows (Powershell)

2010-05-09 Thread Guillermo
Hi, If you've ever missed it on Windows and you can use Powershell, you might want to take a look at this port of virtualenvwrapper: http://bitbucket.org/guillermooo/virtualenvwrapper/wiki/Home It's a work in progress, but is should be fairly functional already. It requires Powershell v2.

Re: Fastest way to calculate leading whitespace

2010-05-09 Thread John Machin
dasacc22 dasacc22 at gmail.com writes: U presume entirely to much. I have a preprocessor that normalizes documents while performing other more complex operations. Theres nothing buggy about what im doing Are you sure? Your solution calculates (the number of leading whitespace characters)

Re: Fastest way to calculate leading whitespace

2010-05-09 Thread Mark Dickinson
On May 9, 6:13 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 08 May 2010 13:46:59 -0700, Mark Dickinson wrote: However, s[:-len(t)] should be both faster and correct. Unless len(t) == 0, surely? Doh! The hazards of insufficient testing. Thanks for catching that.

Re: Picking a license (an atempt to give real advice)

2010-05-09 Thread Ed Keith
Stepping back from the political/philosophical/religious arguments, I'd like to give some real advice based on my own perspective. How you license your software should be based on how you want it to be used. If you are releasing an end user application I do not care how you license it. If it

Re: accessing superclass methods from subclass

2010-05-09 Thread Lie Ryan
On 05/09/10 10:05, Chris Rebert wrote: Additionally, it makes no sense to call an *instance* method such as f1() in a class context. Or in Java-speak: you can't call a non-static method in a static context. nitActually, in python it does make sense, with a caveat that you have to provide the

Re: Getting a Python program to run of off a flash drive?

2010-05-09 Thread catalinf...@gmail.com
On Apr 1, 4:22 am, timo verbeek timoverbee...@gmail.com wrote: On Apr 1, 12:48 am, Abethebabe abrahamalra...@gmail.com wrote: I wanted to know if there was a way I could get a Python program to run off of my flash drive as soon as the computer (Windows) detected the device? For example

Re: Python is cool!!

2010-05-09 Thread André
On Mar 23, 1:55 pm, Jose Manuel jfernan...@gmail.com wrote: I have been learning Python, and it is amazing I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in engineering applications to be published on the Web,

Re: zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?

2010-05-09 Thread Matthew Brett
Hi, Thanks for the reply. If instead I do this: out = zlib.decompressobj().decompress(data) How about: d = zlib.decompressobj() out = d.decompress(data) + d.flush() Do you mean, that you would then expect the decompressobj method to fail as well? But, no, d.flush() returns the empty

Re: Windows - select.select, timeout and KeyboardInterrupt

2010-05-09 Thread Paul Kölle
Am 09.05.2010 11:59, schrieb Lawrence D'Oliveiro: In messagemailman.2769.1273327083.23598.python-l...@python.org, exar...@twistedmatrix.com wrote: On 07:48 am, l...@geek-central.gen.new_zealand wrote: In messagemailman.2760.1273288730.23598.python-l...@python.org, exar...@twistedmatrix.com

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 09:05, Carl Banks pavlovevide...@gmail.com wrote: Bottom line is, GPL hurts everyone: the companies and open source community.  Unless you're one of a handful of projects with sufficient leverage, or are indeed a petty jealous person fighting a holy war, the GPL is a bad idea and

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 07:09, Patrick Maupin pmau...@gmail.com wrote: See, for example, Apple's support of BSD, Webkit, and LLVM.  Apple is not a do no evil corporation, and their contributions back to these packages are driven far more by hard-nosed business

Re: Picking a license

2010-05-09 Thread Stephen Hansen
On Sun, May 9, 2010 at 10:23 AM, Paul Boddie p...@boddie.org.uk wrote: On 9 Mai, 07:09, Patrick Maupin pmau...@gmail.com wrote: Apple is ***not a do no evil corporation This being the same Apple that is actively pursuing software patent litigation against other organisations; a company

Re: zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?

2010-05-09 Thread Antoine Pitrou
On Sun, 9 May 2010 09:25:16 -0700 (PDT) Matthew Brett matthew.br...@gmail.com wrote: How about: d = zlib.decompressobj() out = d.decompress(data) + d.flush() Do you mean, that you would then expect the decompressobj method to fail as well? Yes. But, no, d.flush() returns the empty

Re: Picking a license

2010-05-09 Thread Steven D'Aprano
On Sun, 09 May 2010 10:23:29 -0700, Paul Boddie wrote: On 9 Mai, 07:09, Patrick Maupin pmau...@gmail.com wrote: See, for example, Apple's support of BSD, Webkit, and LLVM.  Apple is not a do no evil corporation, and their contributions back to

Re: Kindly show me a better way to do it

2010-05-09 Thread Steven D'Aprano
On Sun, 09 May 2010 22:52:55 +1000, Lie Ryan wrote: IMHO that's more complex due to the nested loop, What's so complex about a nested loop? one more nested tab. That extra whitespaces is quite irritating. Then say you don't like it, don't try to make a subjective dislike seem objectively

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 8 Mai, 22:05, Patrick Maupin pmau...@gmail.com wrote: On May 8, 2:38 pm, Steven D'Aprano st...@remove-this- No, you don't *owe* them anything, but this brings us back to Ben's original post. If you care about the freedoms of Cisco's customers as much as you care about the freedoms of

Re: Picking a license

2010-05-09 Thread Steven D'Aprano
On Sat, 08 May 2010 13:05:21 -0700, Patrick Maupin wrote: [...] certainly the risk of discovery if you just use a small portion of GPL code and don't distribute your source must be very small. There are certainly fewer companies getting away with MIT license violations, simply because the

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 19:55, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: Patrick said that Apple is NOT a do no evil company. Yes, apologies to Patrick for reading something other than what he wrote. I suppose I've been reading too many Apple apologist commentaries of late and probably

Re: Python is cool!!

2010-05-09 Thread Godson Gera
On Sun, May 9, 2010 at 6:24 PM, Fuzzyman fuzzy...@gmail.com wrote: On Mar 23, 10:04 pm, geremy condra debat...@gmail.com wrote: On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden m...@timgolden.me.uk wrote: On 23/03/2010 16:55, Jose Manuel wrote: The closest is Skulpt which is very much an

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 1:03 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 08 May 2010 13:05:21 -0700, Patrick Maupin wrote: [...] certainly the risk of discovery if you just use a small portion of GPL code and don't distribute your source must be very small. There are

Re: Where can I buy Soma without a prescription. Purchasing Soma quick delivery no prescription. Buy Soma w/out insurance. Non generic Soma no prescription. Buy Soma online prescription.

2010-05-09 Thread Shattered Soldier
I have some generic somas that I'd like to part with. I'm charging only $1.00 per pill plus SH. Please let me know if you are interested. shatteredsold...@hushmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Fastest way to calculate leading whitespace

2010-05-09 Thread dasacc22
On May 9, 8:28 am, John Machin sjmac...@lexicon.net wrote: dasacc22 dasacc22 at gmail.com writes: U presume entirely to much. I have a preprocessor that normalizes documents while performing other more complex operations.  Theres nothing buggy about what im doing Are you sure? Your

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 1:02 pm, Paul Boddie p...@boddie.org.uk wrote: On 8 Mai, 22:05, Patrick Maupin pmau...@gmail.com wrote: On May 8, 2:38 pm, Steven D'Aprano st...@remove-this- No, you don't *owe* them anything, but this brings us back to Ben's original post. If you care about the freedoms of

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 1:42 am, Paul Rubin no.em...@nospam.invalid wrote: Patrick Maupin pmau...@gmail.com writes: I certainly agree that RMS's language is couched in religious rhetoric. I would say political movement rhetoric.  He's not religious.  He uses the word spiritual sometimes but has made it

Re: Picking a license

2010-05-09 Thread Martin P. Hellwig
On 05/09/10 18:24, Stephen Hansen wrote: cut Wait, what? Why shouldn't I profit repeatedly from the same work already done? *I* created, its *mine*. I put blood, sweat and tears into it and perhaps huge amounts of resources, risking financial security and sanity, and you're arguing I

Re: Picking a license (an atempt to give real advice)

2010-05-09 Thread Patrick Maupin
On May 9, 8:58 am, Ed Keith e_...@yahoo.com wrote: Stepping back from the political/philosophical/religious arguments, I'd like to give some real advice based on my own perspective. How you license your software should be based on how you want it to be used. If you are releasing an end user

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 12:08 pm, Paul Boddie p...@boddie.org.uk wrote: On 9 Mai, 09:05, Carl Banks pavlovevide...@gmail.com wrote: Bottom line is, GPL hurts everyone: the companies and open source community.  Unless you're one of a handful of projects with sufficient leverage, or are indeed a petty

Re: Picking a license

2010-05-09 Thread Stephen Hansen
On Sun, May 9, 2010 at 12:33 PM, Martin P. Hellwig martin.hell...@dcuktec.org wrote: On 05/09/10 18:24, Stephen Hansen wrote: cut Wait, what? Why shouldn't I profit repeatedly from the same work already done? *I* created, its *mine*. I put blood, sweat and tears into it and perhaps huge

python to exe

2010-05-09 Thread Robin
Does anyone know of a way I can make a python script into an exe that runs on windows7, I don't care if it is a python to c++ or python to c translator or anything like it. The version of python I am using is python 3.1. Thanks, -Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: python to exe

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:28 PM, Robin rob...@cnsp.com wrote: Does anyone know of a way I can make a python script into an exe that runs on windows7, I don't care if it is a python to c++ or python to c translator or anything like it. The version of python I am using is python 3.1. Thanks, The

Re: Django as exemplary design

2010-05-09 Thread Paul Kölle
Am 07.05.2010 04:48, schrieb TomF: On 2010-05-06 18:20:02 -0700, Trent Nelson said: I'm interested in improving my python design by studying a large, well-designed codebase. I'll tell you one of the best ways to improve your Python code: attend one of Raymond Hettinger's Code Clinic workshops

Re: python to exe

2010-05-09 Thread Vlastimil Brom
2010/5/9 Robin rob...@cnsp.com: Does anyone know of a way I can make a python script into an exe that runs on windows7, I don't care if it is a python to c++ or python to c translator or anything like it. The version of python I am using is python 3.1. Thanks, -Robin --

Re: zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?

2010-05-09 Thread Matthew Brett
Hi, Do you mean, that you would then expect the decompressobj method to fail as well? Yes. But, no, d.flush() returns the empty string after decompressing ``data``. Hmm, then it's a bug. Can you report it tohttp://bugs.python.org? I will - thanks for your advice, Matthew --

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 21:07, Patrick Maupin pmau...@gmail.com wrote: On May 9, 1:02 pm, Paul Boddie p...@boddie.org.uk wrote: People often argue that the GPL only cares about the software's freedom, not the recipient's freedom, which I find to be a laughable claim because if one wanted to point at

Re: Python is cool!!

2010-05-09 Thread Michael Foord
On 9 May 2010 20:36, Godson Gera godso...@gmail.com wrote: On Sun, May 9, 2010 at 6:24 PM, Fuzzyman fuzzy...@gmail.com wrote: On Mar 23, 10:04 pm, geremy condra debat...@gmail.com wrote: On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden m...@timgolden.me.uk wrote: On 23/03/2010 16:55, Jose

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 4:21 pm, Paul Boddie p...@boddie.org.uk wrote: (Lots of good and balanced commentary snipped...) I didn't say that you personally argued that way, but people do argue that way. In fact, it's understandable that this is how some people attempt to understand the GPL - the software

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 21:55, Patrick Maupin pmau...@gmail.com wrote: On May 9, 12:08 pm, Paul Boddie p...@boddie.org.uk wrote: Oh sure: the GPL hurts everyone, like all the companies who have made quite a lot of money out of effectively making Linux the new enterprise successor to Unix, plus all the

Re: Picking a license

2010-05-09 Thread Martin P. Hellwig
On 05/09/10 21:06, Stephen Hansen wrote: On Sun, May 9, 2010 at 12:33 PM, Martin P. Hellwig martin.hell...@dcuktec.org mailto:martin.hell...@dcuktec.org wrote: On 05/09/10 18:24, Stephen Hansen wrote: cut Wait, what? Why shouldn't I profit repeatedly from the same

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 10 Mai, 00:02, Patrick Maupin pmau...@gmail.com wrote: You just answered your own question.  It's pathetic to try to change people's behavior by offering them something worthless if they change their license to match yours.  (I'm not at all saying that all GPL code is worthless, but I have

Binary file email attachment problem

2010-05-09 Thread Alan Harris-Reid
Hi there, Using Python 3.1.2 I am having a problem sending binary attachment files (jpeg, pdf, etc.) - MIMEText attachments work fine. The code in question is as follows... for file in self.attachments: part = MIMEBase('application', octet-stream) part.set_payload(open(file,rb).read())

Re: Picking a license

2010-05-09 Thread Ed Keith
Stepping back from the political/philosophical/religious arguments, I'd like to give some adjectival advice based on my own perspective. How you license your software should be based on how you want it to be used. If you are releasing an end user application I do not care how you license it.

Re: Picking a license

2010-05-09 Thread Stephen Hansen
On Sun, May 9, 2010 at 2:22 AM, Martin P. Hellwig martin.hell...@dcuktec.org wrote: Microsoft has indeed lost control of it in the same way, it is just because we here in the 'western' world spend huge amount of money on prosecuting and bringing to 'justice' does who, whether for commercial

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 6:39 pm, Paul Boddie p...@boddie.org.uk wrote: On 10 Mai, 00:02, Patrick Maupin pmau...@gmail.com wrote: If this is code that you would consider using in an existing project, Well, in a few cases I'm talking about, I wouldn't consider using the code -- I just stumbled across it when

Re: Picking a license

2010-05-09 Thread Patrick Maupin
On May 9, 5:05 pm, Paul Boddie p...@boddie.org.uk wrote: On 9 Mai, 21:55, Patrick Maupin pmau...@gmail.com wrote: On May 9, 12:08 pm, Paul Boddie p...@boddie.org.uk wrote: Oh sure: the GPL hurts everyone, like all the companies who have made quite a lot of money out of effectively

Re: Picking a license

2010-05-09 Thread Paul Rubin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: It's certainly true that an MIT licence will allow you to maximise the number of people who will use your software, but maximising the number of users is not the only motive for writing software. I'd say proprietary licenses

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-05-09 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: Using a UCS2 Python on a platform with a 32-bit wchar_t, the following code throws an exception (but should not): ctypes.c_wchar('\u1') Traceback (most recent call last): File stdin, line 1, in module TypeError: one

[issue8510] update to autoconf2.65

2010-05-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: r81004: Remove extra closing bracket and comma introduced in r80969. (This was causing misdetection of the OS X 10.5 SDK on Linux and OS X, and a test_platform failure on OS X.) -- nosy: +mark.dickinson

[issue8324] add a distutils test command

2010-05-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Adapting the setuptools command is a great way to start of course. Please see my note about using unittest/unittest2 test discovery as a default command if unitest2 is available and no test_suite is specified. I'm very happy to help

[issue8635] enumerate() docstring doesn't cover optional start argument

2010-05-09 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Attached a patch. It changes the docstring to: enumerate(iterable[, start]) - iterator for index, value of iterable Return an enumerate object. iterable must be another object that supports iteration, start must be an integer (defaults to

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Perfect! Applied in r81020. You're correct that n/10**6 and n/1e6 aren't the same thing, at least for n large enough: Python 2.7b2+ (trunk:81019:81020, May 9 2010, 10:33:17) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type help,

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. The 'delay_traps' context manager idea doesn't quite work here. A problem occurs if (for example) an Overflow occurs during the with block; in that case, Overflow should be raised at the end of the with block. That's fine, except

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Umm. Please pretend I didn't write this: One simple change that might help would be to have all Decimal exceptions derive from a common `DecimalException` superclass, making it easier to catch just decimal exceptions in a try-except

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-05-09 Thread garazi111
garazi111 garazi...@yahoo.fr added the comment: Hi, I think the bug is also present in the function encode_quopri which should look like this : def encode_quopri(msg): Encode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header.

[issue8324] add a distutils test command

2010-05-09 Thread Dan Buch
Dan Buch daniel.b...@gmail.com added the comment: Should I assume that unittest2 is an installation requirement of distutils2, or is it preferable to try using unittest2 and falling back to a custom TestLoader? Sorry if I'm reading too much into this :-/ --

[issue8324] add a distutils test command

2010-05-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: unittest2 is the name of the independent release of the improved unittest package in 2.7’s and 3.2’s stdlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8324

[issue8324] add a distutils test command

2010-05-09 Thread Dan Buch
Dan Buch daniel.b...@gmail.com added the comment: @merwok I know ;-) ... should I assume that it's an installation requirement a la `install_requires=['unittest2']`, or do:: try: load_tests_with_unittest2() except ImportError: load_tests_with_custom_test_loader() ?

[issue8588] test_urllib2.py test failures on Py3K Mac OS X

2010-05-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r81024 (py3k), r81025 (release31-maint). -- components: +Library (Lib) nosy: +mark.dickinson resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___

[issue8324] add a distutils test command

2010-05-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Not a unittest expert, but I suspect that usual test for features will work: try: from unittest.something.discovery import Loader except ImportError: from unittest2.something.discovery import Loader Adding Konrad to nosy, since adding

[issue8324] add a distutils test command

2010-05-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +konryd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8324 ___ ___ Python-bugs-list mailing

[issue8324] add a distutils test command

2010-05-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: -gsoc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8324 ___ ___ Python-bugs-list mailing

[issue8665] make pycremoval fails

2010-05-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Suggestion: rm -rf __pycache__ dirs before using find for stray pycs. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8665 ___

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-09 Thread Foehn of blue
Foehn of blue foehnofb...@kimo.com added the comment: Can you teach me how to Writing programs? Please!!! I'm from Taiwan That's my e-mail:foehnofb...@kimo.com -- nosy: +foehn blue ___ Python tracker rep...@bugs.python.org

[issue8324] add a distutils test command

2010-05-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: unittest2 is used for distutils2 development, but *not* a required dependency for *using* distutils2 (if I understand correctly(. Well, if there is no test runner and no test suite specified but the test command is invoked then the

[issue8324] add a distutils test command

2010-05-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Documentation for unittest.TestLoader.discover(...) is at: http://docs.python.org/dev/library/unittest.html#unittest.TestLoader.discover -- ___ Python tracker rep...@bugs.python.org

  1   2   >