On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano
wrote:
> Does anyone know any examples of values or types from the standard
> library or well-known third-party libraries which satisfies
> isinstance(a, numbers.Number) but not isinstance(a, numbers.Complex)?
>>> issubclass(decimal.Decimal, number
On 07.06.2014 11:54, Alain Ketterlin wrote:
> No. Cost is the issue (development, maintenance, operation,
> liability...). Want an example? Here is one:
>
> http://tech.slashdot.org/story/14/06/06/1443218/gm-names-and-fires-engineers-involved-in-faulty-ignition-switch
Yeah this is totally believ
On 05.06.2014 23:53, Marko Rauhamaa wrote:
> or:
>
>def make_street_address_map(info_list):
>return dict((info.get_street_address(), info.get_zip_code())
>for info in info_list)
>
or, what I think is even clearer than your last one:
def make_street_address_map(i
On Wednesday, June 4, 2014 10:53:13 PM UTC+8, Mark H. Harris wrote:
> On 6/4/14 9:24 AM, Skip Montanaro wrote:
>
> > Surely your local colleagues realize that Python has been around for
>
> > 20-odd years now, that indentation-based block structure has been
>
> > there since Day One, and that it
Johannes Bauer :
> def make_street_address_map(info_list):
> return { info.get_street_address(): info.get_zip_code()
>for info in info_list }
Live and learn. Have been an the lookout for dict comprehensions, but
didn't notice they were already included.
Marko
--
https://mai
This is with python 2.7.3 pn HP-UX 11.11
From: SABARWAL, SHAL
Sent: Friday, June 13, 2014 9:41 PM
To: python-list@python.org
Subject: tempfile.py", line 83, in once_lock = _allocate_lock()
thread.error: can't allocat lock
Appreciate any help in resolving/understanding following error.
Very
Will do .
Thanks for the tips.
Using the mailing list process for the first time.
One of the problems is that the issue occurs only in production. Have not been
able to recreate the issue in dev/test. However will continue with some trials.
-Original Message-
From: Cameron Simpson [mailt
On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote:
> On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano
> wrote:
>> Does anyone know any examples of values or types from the standard
>> library or well-known third-party libraries which satisfies
>> isinstance(a, numbers.Number) but not isinstance
In article <539dbcbe$0$29988$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote:
>
> > On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano
> > wrote:
> >> Does anyone know any examples of values or types from the standard
> >> library
On Sun, Jun 15, 2014 at 11:28 AM, Roy Smith wrote:
> In article <539dbcbe$0$29988$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote:
>>
>> > On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano
>> > wrote:
>> >> Does anyone know a
Dear Santa,
Please can I have the "new" regex module in Python 3.5, if only because
MRAB has done so much work on it.
Love and kisses.
Mark xxx
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free f
On Mon, Jun 16, 2014 at 7:15 AM, Mark Lawrence wrote:
> Dear Santa,
>
> Please can I have the "new" regex module in Python 3.5, if only because MRAB
> has done so much work on it.
>
> Love and kisses.
>
> Mark xxx
As it's not December, you have to pay full rate emails to Santa. But
more important
On Sun, 15 Jun 2014 13:28:44 -0400, Roy Smith wrote:
> In article <539dbcbe$0$29988$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote:
>>
>> > On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano
>> > wrote:
>> >> Does anyone kn
On Sun, 15 Jun 2014 22:15:47 +0100, Mark Lawrence wrote:
> Dear Santa,
>
> Please can I have the "new" regex module in Python 3.5, if only because
> MRAB has done so much work on it.
Have you asked MRAB what he thinks? Python-Dev has given approval way
back in 3.3 days, it all depends on him.
On Mon, Jun 16, 2014 at 10:38 AM, Steven D'Aprano
wrote:
> Mathematically, ℂ (complex) is a superset of ℝ (real), and Decimals are a
> kind of real(ish) number, like float:
The Python complex type represents a subset of ℂ. The Python Decimal
and float types implement a subset of ℝ, which as you s
In article ,
Chris Angelico wrote:
> I guess if you have a list of Numbers that are all the same type, you
> can probably sum them, but you can sum non-Numbers too. The docstring
> is a bit vague - sure, it's a number, but what can you do with it?
You can use it to count to three!
--
https://m
On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> I guess if you have a list of Numbers that are all the same type, you
>> can probably sum them, but you can sum non-Numbers too. The docstring
>> is a bit vague - sure, it's a number, but what can you
In article ,
Chris Angelico wrote:
> On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith wrote:
> > In article ,
> > Chris Angelico wrote:
> >
> >> I guess if you have a list of Numbers that are all the same type, you
> >> can probably sum them, but you can sum non-Numbers too. The docstring
> >> is
On Sun, 15 Jun 2014 22:17:57 -0400, Roy Smith wrote:
> I don't believe HandGrenade implements throw(). It does, however,
> implement lobbeth().
And therein lies the problem with Object Oriented Programming:
instances of HandGrenade neither throw nor lobbeth.
One, Two, Five'ly yours,
Dan
--
htt
In article ,
Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
> > On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith wrote:
> > > In article ,
> > > Chris Angelico wrote:
> > >
> > >> I guess if you have a list of Numbers that are all the same type, you
> > >> can probably sum them, but
20 matches
Mail list logo