Chris Angelico writes:
> Why? Unless they're going to be maintaining a Py2 codebase, why should
> they learn the older version with less features?
Are there actually Py3 codebases? I guess there must be, even though
I've never seen one. Every Python codebase of any size that I know of
is Py2.
Steven D'Aprano wrote:
> Rick Johnson wrote:
>
> >
> > But just because we have been trained that the implicit
> > `if x:` is shorthand for the reasonable `if bool(x) ==
> > True:`
>
> That's not reasonable. bool(x) already returns a True or
> False flag, comparing it to True is superfluous.
S
On Tue, 12 Sep 2017 20:01:52 -0700, Rick Johnson wrote:
> But just because we have been trained that the implicit `if x:` is
> shorthand for the reasonable `if bool(x) == True:`
That's not reasonable.
bool(x) already returns a True or False flag, comparing it to True is
superfluous. (Regardless
Terry Reedy wrote:
> Paul Moore said:
[...]
> I was going to suggest tkinter.
I would second Terry's advice here. If a low barrier and
simplicity are what you want, then i would suggest tkinter
first and Pygame second. You can do a lot with a tk.Canvas
widget, and for proper image support make sur
On Wed, 13 Sep 2017 01:12:25 +0100, MRAB wrote:
>> I don't recall seeing them go into paroxysms of
>> gender confusion when Prince Charles,
>> Duke of Edinburgh, appears in public wearing a kilt.
>
> You do know that Prince Charles is the Prince of Wales and that the Duke
> of Edinburgh is his fa
On Tue, 12 Sep 2017 20:22:30 -0700, Rick Johnson wrote:
> Gregory Ewing wrote:
>> Rick Johnson wrote:
>> > Heck, when is the last time GvR participated in any discussion
>> > outside the hermetic bubble of Python-Dev or Python-Ideas?
>>
>> I'd hardly call python-ideas "hermetic". Anyone is free t
Gregory Ewing wrote:
> Rick Johnson wrote:
> > Heck, when is the last time GvR participated in any
> > discussion outside the hermetic bubble of Python-Dev or
> > Python-Ideas?
>
> I'd hardly call python-ideas "hermetic". Anyone is free to
> post there and participate in discussions. Python-dev i
On Wed, Sep 13, 2017 at 1:01 PM, Rick Johnson
wrote:
> Chris Angelico wrote:
>> Rick Johnson wrote:
>> > So, what are your answers to my four questions:
>> >
>
> I told you to forget about the superfluous lambda, but
> alas, you cannot :-(
You told me to forget about the key thing I was making my
Chris Angelico wrote:
> Rick Johnson wrote:
> > So, what are your answers to my four questions:
> >
> > (1) Is it a speed issue? Then prove it.
> >
> > (2) Is it a readability issue? If so, then that's an
> > opinion _you_ get to have.
> >
> > (3) Is it a matter of "python purity"?
On Tuesday, September 12, 2017 at 6:59:32 PM UTC-5, Gregory Ewing wrote:
> Larry Martell wrote:
> > https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
>
> The only disadvantage might be the GIL interfering with
> parallel processing using multiple machines in
On 2017-09-13 00:32, Steve D'Aprano wrote:
On Wed, 13 Sep 2017 02:16 am, Larry Martell wrote:
Not too many females here, but anyway:
https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
Was expecting a dress in a snake-skin pattern.
Was pleasantly surpri
Larry Martell wrote:
https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
The only disadvantage might be the GIL interfering with
parallel processing using multiple machines in a laundromat.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 13 Sep 2017 01:18 am, Paul Moore wrote:
> Using map vs comprehensions is mostly a stylistic choice. Python
> programmers will typically choose a comprehension, so that style looks
> more idiomatic, but the map is not wrong. I haven't tested which is
> faster - I can't imagine it would make
2017/09/13 午前3:04 "Rick Johnson" :
alister wrote:
> [...]
> were i to be less generous I would suggest that you had
> deliberately picked the worst python method you could think
> of to make the point
Feel free to offer a better solution if you like. INADA
Naoki offered a good solution for Python
On Wed, 13 Sep 2017 02:16 am, Larry Martell wrote:
> Not too many females here, but anyway:
>
>
https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
Was expecting a dress in a snake-skin pattern.
Was pleasantly surprised to see Insertion Sort in Python on a d
On 12 September 2017 at 18:52, Rick Johnson
wrote:
> In any event, i believe my point -- that complex statements
> in Ruby follow a more intuitive left-to-right comprehension
> flow, whereas Python, which due to a reliance on built-in
> functions as opposed to Object methods is directly
> responsi
0.10.0 features environment-aware testing, full Xonsh shell support, and more
colors! https://github.com/ofek/hatch#0100
--
https://mail.python.org/mailman/listinfo/python-list
On 09/12/2017 04:00 PM, Ben Finney wrote:
Larry Martell writes:
https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
(And if any guys want to wear this, there's nothing wrong with that.)
Boo, the code is not PEP 8 conformant :-)
If it weren't for the bad
Larry Martell writes:
> https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
> (And if any guys want to wear this, there's nothing wrong with that.)
Boo, the code is not PEP 8 conformant :-)
If it weren't for the bad code style, I might consider it. The dress
On 12 September 2017 at 21:15, Stephan Houben
wrote:
> Op 2017-09-12, Jona Azizaj schreef :
>> It looks very nice, thanks for sharing :)
>
>print(insertionSort)
>
> It's even Python3-compliant!
>
> Stephan
> --
> https://mail.python.org/mailman/listinfo/python-list
Meh. That should be a retur
Op 2017-09-12, Jona Azizaj schreef :
> It looks very nice, thanks for sharing :)
print(insertionSort)
It's even Python3-compliant!
Stephan
--
https://mail.python.org/mailman/listinfo/python-list
alister wrote:
> [...]
> were i to be less generous I would suggest that you had
> deliberately picked the worst python method you could think
> of to make the point
Feel free to offer a better solution if you like. INADA
Naoki offered a good solution for Python3 folks, but AFAIK,
set comprehensio
Paul Moore wrote:
[...]
> Ignoring stylistic choices (variable naming, map vs
> generator) then for me the key distinction here is "lambda
> f: int(f)" vs just "int". Python's callables (of which the
> integer constructor int is one) are first class objects, so
> you should just pass them directly
On Wed, Sep 13, 2017 at 3:22 AM, Rick Johnson
wrote:
> So, what are your answers to my four questions:
>
> (1) Is it a speed issue? Then prove it.
>
> (2) Is it a readability issue? If so, then that's an
> opinion _you_ get to have.
>
> (3) Is it a matter of "python purity"? If so
On Wed, Sep 13, 2017 at 3:22 AM, Rick Johnson
wrote:
> Oops! Yes, i did put a superfluous anonymous function in
> there, my bad O:-) Although, to my defense, (and although i
> never use this style in real code, but i'm trying to save
> face here #_o, so bear with me...) the lambda does make the
>
Chris Angelico wrote:
> Rick Johnson wrote:
> > Chris Angelico wrote:
> > > Rick Johnson wrote:
> > > >
> > > > Ruby:
> > > > farray = [1.5, 1.9, 2.0, 1.0]
> > > > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length
> > > >
> > > > Python:
> > > > flist = [1.5, 1.9, 2.0, 1.0]
> > > >
It looks very nice, thanks for sharing :)
On 09/12/2017 06:16 PM, Larry Martell wrote:
> Not too many females here, but anyway:
>
> https://u434.ct.sendgrid.net/wf/click?upn=PEGtk34F2vzY-2FdDEgdADyR5WgaJXp3kK7yjjfCP4LBGKF2bSjvTFWCFYRlwVAQZ5HEeMdCPRw1tUKRf8HLGvHzOQQS1VCWAz-2FXnHFw36zPHseeHhMMP
Stephan Houben wrote:
> Rick Johnson schreef:
> > It seems to me the best solution is for the TCL/Tk folks
> > to provide a configuration utility that stores user
> > preferences in the registry, or some other OS provided
> > mechanism, as to have these settings reset on every
> > invocation of the
On Tuesday, September 12, 2017 at 5:37:31 PM UTC+2, Johannes Bauer wrote:
> Hi group,
>
> so I'm having a problem that I'd like to solve *nicely*. I know plenty
> of ways to solve it, but am curious if there's a solution that allows me
> to write the solution in a way that is most comfortable for
Not too many females here, but anyway:
https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress
(And if any guys want to wear this, there's nothing wrong with that.)
--
https://mail.python.org/mailman/listinfo/python-list
By the way, here's my work in progress:
https://gist.github.com/johndoe31415/7e432b4f47f0030f0903dbd6a401e5dc
I really really love the look & feel, but am unsure if there's a better
way for this?
Cheers,
Joe
--
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich
On Tue, 12 Sep 2017 08:03:58 -0700, Rick Johnson wrote:
> Chris Angelico wrote:
>> Rick Johnson wrote:
>> > Ruby:
>> > farray = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length
>> >
>> > Python:
>> > flist = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers =
Hi group,
so I'm having a problem that I'd like to solve *nicely*. I know plenty
of ways to solve it, but am curious if there's a solution that allows me
to write the solution in a way that is most comfortable for the user.
I'm trying to map registers of a processor. So assume you have a n bit
ad
> floats = [1.5, 1.9, 2.0, 1.0]
> unique_integers = len(set(int(f) for f in floats))
And it can be written with set comprehension too.
>>> floats = [1.5, 1.9, 2.0, 1.0]
>>> len({int(x) for x in floats})
2
As my personal recommendation, map is OK only
when first argument is predefined.
In other w
On 12 September 2017 at 16:03, Rick Johnson
wrote:
> Chris Angelico wrote:
>> Rick Johnson wrote:
>> > Ruby:
>> > farray = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length
>> >
>> > Python:
>> > flist = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = len(s
On Wed, Sep 13, 2017 at 1:03 AM, Rick Johnson
wrote:
> Chris Angelico wrote:
>> Rick Johnson wrote:
>> > Ruby:
>> > farray = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length
>> >
>> > Python:
>> > flist = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = len
Chris Angelico wrote:
> Rick Johnson wrote:
> > Ruby:
> > farray = [1.5, 1.9, 2.0, 1.0]
> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length
> >
> > Python:
> > flist = [1.5, 1.9, 2.0, 1.0]
> > uniqueIntegers = len(set(map(lambda f:int(f), flist)))
>
> Python:
>
> floats = [1.5
Steve D'Aprano wrote:
> Leam Hall wrote:
>
> > But if someone comes onto the list, or IRC, and says they
> > need to stay on Python 2 then please drop the dozens of
> > e-mails and comments about upgrading.
> [...]
> > My recent experience with some people's inability to take
> > "Sorry, I can't"
On Tue, Sep 12, 2017 at 8:28 AM, Steve D'Aprano
wrote:
> On Tue, 12 Sep 2017 09:20 pm, Leam Hall wrote:
>
> > But if someone comes onto the list, or IRC, and says they need to stay
> > on Python 2 then please drop the dozens of e-mails and comments about
> > upgrading.
> [...]
> > My recent exper
On Tuesday, September 12, 2017 at 7:26:40 AM UTC-5, Chris Angelico wrote:
[...]
> Okay, I get the picture. Fine. You can stay on a version as
> old as you like - but I'm not going to help you with
> 2.6-specific issues. Fair?
Chris, now you're just being a jerk. And while the decision
whether or n
Steve D'Aprano wrote:
> Chris Angelico wrote:
>
> [...]
> > >
> > > Yet look at your answer; "upgrade". For a person working
> > > on a server there's usually no economic choice to do. The
> > > OS python must stay in place and the newly installed
> > > upgrade must be personally maintained, upda
On 12 September 2017 at 13:47, Leam Hall wrote:
> A few months ago my manager asked about what direction I recommended for the
> team. I'm the opinionated old guy who is new to this team. At the time I was
> really enjoying Ruby; just so dang fun!
>
> I told my manager that we should use python. I
On 12/09/2017 08:35, dieter wrote:
Robin Becker writes:
Certificate verification generally depends on local configuration:
specifically, the set of installed trusted root certificates.
I do not know about Windows, but often the root certificates installed
for other packages, e.g. the browser, a
Op 2017-09-12, Tim Golden schreef :
> I agree. Except for the unusual case where someone's mistakenly chosen
> to use, eg, Python 2.4 because they're using an old text book which
> mentions it as the current version, most people are using the version
> which suits them for one reason or another
On 09/12/2017 08:28 AM, Steve D'Aprano wrote:
On Tue, 12 Sep 2017 09:20 pm, Leam Hall wrote:
But if someone comes onto the list, or IRC, and says they need to stay
on Python 2 then please drop the dozens of e-mails and comments about
upgrading.
[...]
My recent experience with some people's in
On 12/09/2017 12:20, Leam Hall wrote:
But if someone comes onto the list, or IRC, and says they need to stay
on Python 2 then please drop the dozens of e-mails and comments about
upgrading.
(Just spotted this quoted by Steven D'Aprano).
Another factor of course is that people are reading and
On Tue, 12 Sep 2017 09:20 pm, Leam Hall wrote:
> But if someone comes onto the list, or IRC, and says they need to stay
> on Python 2 then please drop the dozens of e-mails and comments about
> upgrading.
[...]
> My recent experience with some people's inability to take "Sorry, I
> can't" for an a
On 12/09/2017 12:20, Leam Hall wrote:
This is an area the Python community can improve on. Even I would
encourage someone new to Python and wanting to do webdev to use Python 3.
But if someone comes onto the list, or IRC, and says they need to stay
on Python 2 then please drop the dozens of e-
On Tue, Sep 12, 2017 at 10:21 PM, Ned Batchelder wrote:
> On 9/12/17 7:40 AM, Chris Angelico wrote:
>> On Tue, Sep 12, 2017 at 9:34 PM, Leam Hall wrote:
>>> On 09/12/2017 07:27 AM, Chris Angelico wrote:
On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote:
> Hey Chris,
>
> This is a
On 9/12/17 7:40 AM, Chris Angelico wrote:
> On Tue, Sep 12, 2017 at 9:34 PM, Leam Hall wrote:
>> On 09/12/2017 07:27 AM, Chris Angelico wrote:
>>> On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote:
Hey Chris,
This is an area the Python community can improve on. Even I would
enc
Steve,
Thank you very much. I appreciate your wisdom and support.
Leam
--
https://mail.python.org/mailman/listinfo/python-list
Op 2017-09-12, Thomas Jollans schreef :
> This isn't the first time I've someone with this issue here. It's
> probably putting off plenty of potential new users who don't make as
> much effort to find a solution. I can't say I understand the ins and
> outs of installing things on Windows... is ther
On Tue, 12 Sep 2017 09:40 pm, Chris Angelico wrote:
[...]
>> Yet look at your answer; "upgrade". For a person working on a server there's
>> usually no economic choice to do. The OS python must stay in place and the
>> newly installed upgrade must be personally maintained, updated, and tested
>> w
On Tue, Sep 12, 2017 at 9:34 PM, Leam Hall wrote:
> On 09/12/2017 07:27 AM, Chris Angelico wrote:
>>
>> On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote:
>>>
>>> Hey Chris,
>>>
>>> This is an area the Python community can improve on. Even I would
>>> encourage
>>> someone new to Python and wantin
On 09/12/2017 07:27 AM, Chris Angelico wrote:
On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote:
Hey Chris,
This is an area the Python community can improve on. Even I would encourage
someone new to Python and wanting to do webdev to use Python 3.
But if someone comes onto the list, or IRC, an
On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote:
> Hey Chris,
>
> This is an area the Python community can improve on. Even I would encourage
> someone new to Python and wanting to do webdev to use Python 3.
>
> But if someone comes onto the list, or IRC, and says they need to stay on
> Python 2
On 09/12/2017 12:29 AM, Chris Angelico wrote:
On Tue, Sep 12, 2017 at 1:42 PM, Paul Rubin wrote:
Chris Angelico writes:
students learning Python *today* ... they're learning Python 3.
I'm not so sure of that. I do know a few people currently learning
Python, and they're using Python 2.
W
On 12/09/17 09:46, rdb...@juno.com wrote:
> I have subscribed to the Python List as directed.Below is my information
> request re-submitted. Thank you.
> -- Forwarded Message --
> From: "rdb...@juno.com"
> To: python-list@python.org
> Subject: Problems Installing Python36
> Date:
Op 2017-09-12, Thomas Jollans schreef :
> I'm not sure actually. Maybe someone else here can help. I have a hunch
> that on Windows the memory might not be shared in the same way that it
> would on Linux/Unix, since Windows simply doesn't have the same process
> forking capabilities as Unix.
`mul
On Tue, 12 Sep 2017 07:46:47 GMT, "rdb...@juno.com"
wrote:
>I have subscribed to the Python List as directed.Below is my information
>request re-submitted. Thank you.
>-- Forwarded Message --
>From: "rdb...@juno.com"
>To: python-list@python.org
>Subject: Problems Installing Pyt
On 12/09/17 10:21, gerlando.fala...@gmail.com wrote:
> Il giorno lunedì 11 settembre 2017 12:19:27 UTC+2, Thomas Jollans ha scritto:
>> On 2017-09-10 23:05, iurly wrote:
>>> As far as I'm concerned, I'm probably better off using double buffers to
>>> avoid this kind of issues.
>>> Thanks a lot for
Op 2017-09-12, gerlando.fala...@gmail.com schreef :
> Notice however how I'd have to create those Arrays dynamically in the
> producer thread. Would I then be able to pass them to the consumer by
> putting a reference in a queue?
Yes.
> I wouldn't want them to be pickled at all in that case, of
Il giorno lunedì 11 settembre 2017 12:19:27 UTC+2, Thomas Jollans ha scritto:
> On 2017-09-10 23:05, iurly wrote:
> > As far as I'm concerned, I'm probably better off using double buffers to
> > avoid this kind of issues.
> > Thanks a lot for your help!
> >
>
>
> That should work. Some other th
I have subscribed to the Python List as directed.Below is my information
request re-submitted. Thank you.
-- Forwarded Message --
From: "rdb...@juno.com"
To: python-list@python.org
Subject: Problems Installing Python36
Date: Tue, 12 Sep 2017 01:35:11 GMT
I am having difficulty
On 11.09.2017 12:58, Paul Moore wrote:
I'm doing some training for a colleague on Python, and I want to look
at a bit of object orientation. For that, I'm thinking of a small
project to write a series of classes simulating objects moving round
on a chess-style board of squares.
I want to concent
Robin Becker writes:
> I have an application built on 32 bit windows 7 with python 2.7.10.
> The application runs fine on windows 7 and older windows machines, but
> it is failing to connect properly using urllib2 when run on windows 8.
>
> The error CERTIFICATE_VERIFY_FAILED indcates this is som
Antoon Pardon writes:
> When one wants to combine multithreading and gui programming
> all sorts of issues arise. So I wonder how one might combine
> multiprocessing with gui programming.
>
> gui libraries typically have some registration mechanisme,
> where you can register a call back for when d
67 matches
Mail list logo