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
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.
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
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.
--
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
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
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
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?
--
http://mail.python.org/mailman/listinfo/python-list
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]
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
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
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
--
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
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,
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
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
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
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
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
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:
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
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
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
--
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
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
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
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
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
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:
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
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
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
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
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
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.
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.
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)
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.
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
--
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
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
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
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
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
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
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())
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.
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
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
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
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
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
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
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
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
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,
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
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
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.
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 :-/
--
É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
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()
?
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
___
É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
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +konryd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8324
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
--
keywords: -gsoc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8324
___
___
Python-bugs-list mailing
É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
___
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
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
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 - 100 of 144 matches
Mail list logo