News for hackers. Stuff that matters.
Re:“Python's batteries are leaking” by alexdong on Saturday May 18, 2019 @04:44PM (#19949620)
Yup. Totally agree with you on that. And yes this one is a constructive proposal.

My problem is on the like part.

Where shall we draw the line and how do we decide? To me this is a far more interesting discussion. (Maybe it has happened. I don’t go to many conferences these days so I might be missing something here. )

She mentioned http.client vs requests, datetime vs. moments etc, which are also quite correct to me. How about the cgilibs? Or pickle? Or the collections? Or unittest? Stay or go?

Lastly, the title of the talk can be tempered a bit. No? We all know what a leaking battery mean right? Toxic.

Re:“Python's batteries are leaking” by dragonwriter on Saturday May 18, 2019 @04:54PM (#19949651)
> Where shall we draw the line and how do we decide?

Why does there need to be a line? As long as the package manager is part of the core distribution (even if it is itself an upgradable package) why not moving everything into packages, even if some are maintained by the core team and have the stable version at time of distribution release included with the core distribution—but perhaps installed only on demand?

Re:“Python's batteries are leaking” by peteradio on Saturday May 18, 2019 @09:29PM (#19950811)
How would you get standards like unittest?

pip install unitest? Oops I spelled it wrong wonder what I just installed?

Re:“Python's batteries are leaking” by dragonwriter on Sunday May 19, 2019 @02:43PM (#19954747)
> How would you get standards like unittest?

“have the stable version at time of distribution release included with the core distribution”

Ruby, for instance has both “default” and “bundled” gems with the core distribution.

https://stdgems.org/

Re:“Python's batteries are leaking” by jp_sc on Saturday May 18, 2019 @11:59PM (#19951350)
pip install pytest

Kidding aside, most of the problem with the fake libraries could be solved if pypi namespace them per author, like GitHub does for repos.

Re:“Python's batteries are leaking” by pvg on Saturday May 18, 2019 @04:55PM (#19949659)
Lastly, the title of the talk can be tempered a bit. No? We all know what a leaking battery mean right? Toxic.

Come on. Python has had the 'batteries' metaphor for decades and this is a straightforward and obvious play on it. You're bringing 'toxic' into this which I suppose is technically and biochemically correct (both, surely, the best kinds of correct) but has far, far more negative connotations than the title warrants. You're having to work really hard to make a generic thing sound dreadful.

Re:“Python's batteries are leaking” by ma2rten on Saturday May 18, 2019 @09:20PM (#19950773)
Actually I feel like asyncio is the one thing that should be part of the standard library. It even introduces special syntax.

To be honest, I think she might be biased here given that she maintains a competing package.

Re:“Python's batteries are leaking” by jMyles on Saturday May 18, 2019 @11:15PM (#19951223)
> To be honest, I think she might be biased here given that she maintains a competing package.

I hope that you take time to reconsider this view.

We're not talking about competition in the same sense as in a capitalist system, between two companies.

Prior to asyncio, Twisted maintained the only viable flow control for serious asynchrony in python. Put another way, python had no standard flow control for serious asynchronous abstractions in the standard language (and standard library) before asyncio (and `await/async def`, etc) landed.

Nobody is saying that the syntactical changes to python belong in a separate package on PyPI (cue Gary Bernhardt's Pretzel Colon). These things are fine.

But `asyncio.Future`? Yeah, I see a very reasonable argument for that stuff (ie, the asyncio namespace) being in a separate package.

But OK - looking again at the "competing package" narrative: now that these things have landed, Twisted has done an amazing job of using them alongside all the other tooling that Twisted also provides, most notably its test infrastructure.

Amber doesn't stand to personally benefit from asyncio failing. To the contrary, having the flow control taken care of so that Twisted doesn't have to be its sole brainparent gives her much less free work to feel obligated to do.

Re:“Python's batteries are leaking” by rafacm on Monday May 20, 2019 @01:56AM (#19957857)
> cue Gary Bernhardt's Pretzel Colon

Could you provide a reference/explanation for this? Thanks in advance!

Re:“Python's batteries are leaking” by mos_basik on Monday May 20, 2019 @08:16PM (#19966586)
Not GP, but Gary Bernhardt is the guy who gave the classic "Wat" [0] and "Birth and Death of JavaScript" [1] talks, and some searching turns up "pretzel colon" as the "&:" operator in Ruby [2]. I assume he's mentioned it in a screencast or something, but I wasn't able to find it.

[0] https://www.destroyallsoftware.com/talks/wat

[1] https://www.destroyallsoftware.com/talks/the-birth-and-death...

[2] https://technology.customink.com/blog/2015/06/08/ruby-pretze...

Re:“Python's batteries are leaking” by jsmeaton on Saturday May 18, 2019 @06:22PM (#19950050)
I thought the title was very clever. I associated the leaking with “leaky abstraction” more than anything.
Re:“Python's batteries are leaking” by DonHopkins on Sunday May 19, 2019 @08:30AM (#19952999)
Maybe Python should upgrade from toxic leaking alkaline batteries to explosive overheating lithium batteries!