[Python-ideas] site.py uses os.sep to determine platform

2017-02-12 Thread Alex Walters
On august 7th, 1998, Guido committed https://github.com/python/cpython/commit/d89fa0c5761254c970af72e5abcea420fd2 3e893 to python, adding the quit() and exit() built-ins. He decided to determine the platform python was running on by checking os.sep. I don't understand the rationale behind this

Re: [Python-ideas] namedtuple literals [Was: RE a new namedtuple]

2017-07-29 Thread Alex Walters
My $0.02 on the entire series of nametuple threads is… there *might* be value in an immutable namespace type, and a mutable namespace type, but namedtuple’s promise is that they can be used anywhere a tuple can be used. If passing in kwargs to create the potential replacement to namedtuple is

Re: [Python-ideas] namedtuple literals [Was: RE a new namedtuple]

2017-07-30 Thread Alex Walters
E a new namedtuple] > > > > Le 29/07/2017 à 18:14, Alex Walters a écrit : > > My $0.02 on the entire series of nametuple threads is… there **might** > > be value in an immutable namespace type, and a mutable namespace type, > > but namedtuple’s promise is that t

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alex Walters
> -Original Message- > From: Python-ideas [mailto:python-ideas-bounces+tritium- > list=sdamon@python.org] On Behalf Of Jason H > Sent: Friday, August 11, 2017 10:58 AM > To: python-ideas@python.org > Subject: [Python-ideas] Towards harmony with JavaScript? > > Before I done my

[Python-ideas] Should iscoroutine and iscoroutinefunction be in builtins?

2017-07-02 Thread Alex Walters
Before async/await it made sense that iscoroutine and iscoroutinefunction live in asyncio. But now that coroutines are a built in type, supported by its own syntax, wouldn't it make sense to make those functions builtins? ___ Python-ideas mailing list

[Python-ideas] fnmatch.filter_false

2017-05-17 Thread Alex Walters
Fnmath.filter works great. To remind people what it does, it takes an iterable of strings and a pattern and returns a list of the strings that match the pattern. And that is wonderful However, I often need to filter *out* the items that match the pattern (to ignore them). In every project that

Re: [Python-ideas] Looking for input to help with the pip situation

2017-11-12 Thread Alex Walters
> -Original Message- > From: Python-ideas [mailto:python-ideas-bounces+tritium- > list=sdamon@python.org] On Behalf Of Nick Coghlan > Sent: Sunday, November 12, 2017 6:19 PM > To: Brendan Barnwell > Cc: python-ideas@python.org > Subject: Re: [Python-ideas]

Re: [Python-ideas] Defining an easily installable "Recommended baseline package set"

2017-10-28 Thread Alex Walters
At this point, I would punt to distutils-sig about curated packages, and pip tooling to support that, but they are bogged down as it stands with just getting warehouse up and running. I don’t support putting specialized tooling in python itself to install curated packages, because that

Re: [Python-ideas] Defining an easily installable "Recommended baseline package set"

2017-10-29 Thread Alex Walters
Writing scripts for non-developers, in an unmanaged environment (IT cant push a python install to the system) on windows means running pyinstaller et. al., on your script, if it has dependencies or not. Its not worth it to walk someone through a python install to run a script, let alone

Re: [Python-ideas] install pip packages from Python prompt

2017-10-30 Thread Alex Walters
kages from Python prompt > > On Sun, Oct 29, 2017 at 8:45 PM, Alex Walters <tritium-l...@sdamon.com> > wrote: > > Then those users have more fundamental problems. There is a minimum > level > > of computer knowledge needed to be successful in programming. &g

Re: [Python-ideas] install pip packages from Python prompt

2017-10-29 Thread Alex Walters
I have a somewhat better, imo, implementation of a pip object to be loaded into the repl. class pip: def __call__(self, *a, **kw): sys.stderr.write(str(self)) def __repr__(self): return str(self) def __str__(self): return “Please run pip from

Re: [Python-ideas] install pip packages from Python prompt

2017-10-29 Thread Alex Walters
-ideas] install pip packages from Python prompt Hi, What would be the difference with current pip module? pip.main(['install', 'some_package']) 2017-10-29 20:26 GMT+01:00 Alex Walters <tritium-l...@sdamon.com <mailto:tritium-l...@sdamon.com> >: I have a somewhat better, i

Re: [Python-ideas] A "within" keyword

2018-06-08 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of David Teresi > Sent: Friday, June 8, 2018 2:42 PM > To: python-ideas@python.org > Subject: [Python-ideas] A "within" keyword > > One of the features I miss from languages such as C# is namespaces that >

Re: [Python-ideas] Add a __cite__ method for scientific packages

2018-07-01 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Nick Timkovich > Sent: Sunday, July 1, 2018 12:02 PM > To: Matt Arcidy > Cc: python-ideas > Subject: Re: [Python-ideas] Add a __cite__ method for scientific packages > > From an abstract level, however,

Re: [Python-ideas] Format mini-language for lakh and crore

2018-01-28 Thread Alex Walters
It’s my opinion that instead of adding syntax, we should instead encourage using number formatting library functions. * You can replace the function or have the function dispatch differently depending on locale * It means that syntax doesn’t need to be extended for every use case – its

Re: [Python-ideas] Possible Enhancement to py Launcher - set default

2018-02-06 Thread Alex Walters
I actually like the idea of being able to modify the py.ini file to set the default from py.exe. That seams like the most intuitive thing to me. > -Original Message- > From: Python-ideas [mailto:python-ideas-bounces+tritium- > list=sdamon@python.org] On Behalf Of Jan Claeys > Sent:

Re: [Python-ideas] Possible Enhancement to py Launcher - set default

2018-02-06 Thread Alex Walters
> -Original Message- > From: Paul Moore [mailto:p.f.mo...@gmail.com] > Sent: Tuesday, February 6, 2018 6:31 AM > To: Alex Walters <tritium-l...@sdamon.com> > Cc: Jan Claeys <li...@janc.be>; Python-Ideas <python-ideas@python.org> > Subject: Re: [Pyth

Re: [Python-ideas] Possible Enhancement to py Launcher - set default

2018-02-06 Thread Alex Walters
While this thread has focused on the location and means of managing py.ini, I think there is a more general solution that should be considered to the original problem, as described. The problem isn't that it's difficult or non-obvious how to set the default python for the py.exe launcher (that's

Re: [Python-ideas] Possible Enhancement to py Launcher - set default

2018-02-07 Thread Alex Walters
> -Original Message- > From: Paul Moore [mailto:p.f.mo...@gmail.com] > Sent: Wednesday, February 7, 2018 4:15 AM > To: Alex Walters <tritium-l...@sdamon.com> > Cc: Steve Barnes <gadgetst...@live.co.uk>; Python-Ideas id...@python.org> > Subject: Re: [P

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Abe Dillon > Sent: Monday, August 13, 2018 12:56 AM > To: Chris Angelico > Cc: Python-Ideas > Subject: Re: [Python-ideas] Syntactic sugar to declare partial functio

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-12 Thread Alex Walters
> [Steven D'Aprano] > > > You've said that the choice of keyword, "lambda", has caused harm. > Given > the chance to clarify what you meant, you stood by your comment > that the > choice of keyword "lambda" has done real, significant, non-trivial > harm > to Python (the

Re: [Python-ideas] __iter__(), keys(), and the mapping protocol

2018-09-10 Thread Alex Walters
I can see custom mapping types where iterating the keys() would be trivial, but items() could be expensive. I could use that as an argument, but I don't have to. The keys() method is part of the API, just like index() and count() are part of the sequence API. To be treated like a mapping

Re: [Python-ideas] PEP 572: Statement-Local Name Bindings

2018-02-28 Thread Alex Walters
For what its worth, I'm +1 on it. I actually like that it would allow: while (something() as var): something_else(var) ...without being a bug magnet. The bug magnet isn't the assignment of a name in the condition of a while loop, it's the fact that assignment is a simple typo away from

Re: [Python-ideas] Medium for discussion potential changes to python (was: PEP 572: Statement-Local Name Bindings)

2018-02-28 Thread Alex Walters
"This page was intentionally left blank." > -Original Message- > From: Python-ideas [mailto:python-ideas-bounces+tritium- > list=sdamon@python.org] On Behalf Of Oleg Broytman > Sent: Wednesday, February 28, 2018 5:12 PM > To: python-ideas@python.org > Subject: Re: [Python-ideas]

[Python-ideas] Medium for discussion potential changes to python (was: PEP 572: Statement-Local Name Bindings)

2018-02-28 Thread Alex Walters
That should probably be its own thread From: Python-ideas [mailto:python-ideas-bounces+tritium-list=sdamon@python.org] On Behalf Of Robert Vanden Eynde Sent: Wednesday, February 28, 2018 4:48 PM Cc: python-ideas Subject: Re: [Python-ideas] PEP 572:

Re: [Python-ideas] Upgrading python-ideas to MM3?

2018-02-28 Thread Alex Walters
Besides the login issues (or non-issues), assuming best case scenario, would the migration be seamless from my inbox’s point of view? Would I have to re-subscribe? From: Python-ideas [mailto:python-ideas-bounces+tritium-list=sdamon@python.org] On Behalf Of Nick Coghlan Sent: Thursday,

Re: [Python-ideas] PEP 572: Assignment Expressions (post #4)

2018-04-12 Thread Alex Walters
> > On the third hand, requiring parentheses all the time would also feel > strained: > > while m := someregexp.match(somestring): > > is already impossible to misread. > > Annoying ;-) While adding parens to that would be superfluous for the reader of the module, as a tradeoff for

Re: [Python-ideas] Pypi private repo's

2018-04-04 Thread Alex Walters
I am fairly sure if you give the PyPA that suggestion, they will just deflate at the thought of the workload. Besides, we already offer private repos for free, several ways ranging from devpi to python -m SimpleHTTPServer in a specially created directory. From: Python-ideas

Re: [Python-ideas] Add a __cite__ method for scientific packages

2018-06-28 Thread Alex Walters
, June 29, 2018 12:16 AM > To: Alex Walters > Cc: Steven D'Aprano ; python-ideas@python.org > Subject: Re: [Python-ideas] Add a __cite__ method for scientific packages > > For me, it's about setting a standard that is endorsed by the > language, and setting expectations

Re: [Python-ideas] Add a __cite__ method for scientific packages

2018-06-28 Thread Alex Walters
Why not scipy.cite() or scipy.citation()? I don't see any reason for these functions to ship with standard python at all. > -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Steven D'Aprano > Sent: Thursday, June 28, 2018 8:17 PM > To:

Re: [Python-ideas] Moving to another forum system where

2018-09-20 Thread Alex Walters
> -Original Message- > From: Hans Polak > Sent: Thursday, September 20, 2018 3:38 AM > To: Alex Walters ; python-ideas@python.org > Subject: Re: [Python-ideas] Moving to another forum system where > > > I don’t think its unreasonable to point out t

Re: [Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

2019-01-04 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Abe Dillon > Sent: Friday, January 4, 2019 2:02 PM > To: Python-Ideas > Subject: [Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS > > I keep coming back to this great video

Re: [Python-ideas] __iter__(), keys(), and the mapping protocol

2018-09-12 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Serhiy Storchaka > Sent: Tuesday, September 11, 2018 2:54 AM > To: python-ideas@python.org > Subject: Re: [Python-ideas] __iter__(), keys(), and the mapping protocol > > 11.09.18 05:04, Elias Tarhini

Re: [Python-ideas] PEP 8 update on line length

2019-02-24 Thread Alex Walters
> Probably because IBM decided on 80 columns for their punched cards. > And that probably didn't have anything to do with a readable width > for text. Nobody used computers for word processing back then. > In fact punched cards predate computers altogether, originally > being developed for

Re: [Python-ideas] Stack traces ought to flag when a module has been changed on disk

2019-01-30 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Jonathan Fine > Sent: Wednesday, January 30, 2019 6:40 AM > To: python-ideas > Subject: Re: [Python-ideas] Stack traces ought to flag when a module has > been changed on disk > > I think Steve's

[Python-ideas] Re: Suggestion: Windows launcher default to not using pre-releases by default

2019-07-10 Thread Alex Walters
I have made this suggestion in the past. The response then was that there is no metadata in the windows install that includes if the release is development or stable (that information is not stored in the registry). I was advised to adjust my configuration of the py.exe launcher to set a

[Python-ideas] Re: Python should take a lesson from APL: Walrus operator not needed

2019-11-05 Thread Alex Walters
The arrow ...which I will not copy and paste to really hammer home the point that its not on my fairly standard US keyboard... doesn't look like assignment, it looks like a comparison operator. > -Original Message- > From: martin_05--- via Python-ideas > Sent: Tuesday, November 5, 2019

[Python-ideas] Re: Traits

2020-02-15 Thread Alex Walters
Telling someone you are trying to convince to do something to go learn something else to "get on your level" as the youth would put it... is not how you get people to agree with you. To summarize this thread, as I see it so far * you asked about adding a feature with the name "traits" to the