[Python-ideas] Mimetypes Include application/json

2017-08-09 Thread Nate.
39,7 @@ def _default_mime_types(): '.jpeg' : 'image/jpeg', '.jpg': 'image/jpeg', '.js' : 'application/javascript', +'.json' : 'application/j

Re: [Python-ideas] Mimetypes Include application/json

2017-08-09 Thread Nate.
O, fun! Thank you for the guidance. I managed to find a Bug already created, http://bugs.python.org/issue30824. I'll create a Pull Request using that Bug. On Wed, Aug 9, 2017 at 1:18 PM Brett Cannon wrote: > On Wed, 9 Aug 2017 at 10:43 Nate. wrote: > >> Hi, >> >&

[Python-ideas] Re: Very strange problem in python

2021-02-10 Thread nate lust
on this. There are other sources (Fluent Python book comes to mind) that go into this in more detail. -- Nate Lust, PhD. Astrophysics Dept. Princeton University ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to

[Python-ideas] Re: Operator as first class citizens -- like in scala -- or yet another new operator?

2019-06-18 Thread nate lust
I have been following this discussion for a long time, and coincidentally I recently started working on a project that could make use of assignment overloading. (As an aside it is a configuration system for a astronomical data analysis pipeline that makes heavy use of descriptors to work around his

[Python-ideas] Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in scala -- or yet another new operator?)

2019-06-20 Thread nate lust
There is nothing more humbling than sending nonsense out to an entire mailing list. It will teach me to stop an process my steam of consciousness critically instead of just firing off a message. You were right that I was not at all considering how python variables must of course work (both assignme

[Python-ideas] Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in scala -- or yet another new operator?)

2019-06-21 Thread nate lust
of descriptors. If this had existed from the start or early on, it would be perfectly natural to read and use, but for now it would be somewhat shocking (in so far as it gets actually used) and I think that is the biggest minus. On Fri, Jun 21, 2019 at 4:17 PM Ethan Furman wrote: > On 06/20/2019

[Python-ideas] Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in scala -- or yet another new operator?)

2019-06-21 Thread nate lust
5:10 PM Andrew Barnert wrote: > On Jun 20, 2019, at 13:25, nate lust wrote: > > There is nothing more humbling than sending nonsense out to an entire > mailing list. > > > You’re something like the 300th person to suggest overloading assignment, > but the only one of tha

[Python-ideas] Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in scala -- or yet another new operator?)

2019-06-21 Thread nate lust
things come to me over the weekend. If anything this thread is a fun and interesting thought experiment and a useful learning experiment for me to better understand the workings of python, and for that I thank you for your feed back and attention. Nate On Fri, Jun 21, 2019 at 6:24 PM Andrew Barn

[Python-ideas] Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in scala -- or yet another new operator?)

2019-06-21 Thread nate lust
27 PM Chris Angelico wrote: > On Sat, Jun 22, 2019 at 11:19 AM nate lust wrote: > > Typing this out though does make me think of an interesting idea. If > there was something like __getself__ in addition to __setself__, you could > implement things like MyInt. __getself__ would

[Python-ideas] A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in scala

2019-06-25 Thread nate lust
lue that is too high machine.c = 200 print(f"machine.c is {machine.c}") # Omited from this proposal but present in the linked documentation are # tools for getting the underlying variables, and or rebinding them. On Fri, Jun 21, 2019 at 9:34 PM nate lust wrote: > It probably doesn

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-06-25 Thread nate lust
I am happy to move this discussion to where ever is appropriate. I won't get to it in the next few hours (bed time for my kid) so if you would like feel free to move discussion there, and I guess I can watch this email thread for if you do. Otherwise I will do it when I am free. Nate On Tue

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-06-25 Thread nate lust
__setself__, cloaksget which does the same for get, and iscloaking which returns if a variable implements any cloaking behavior. On Tue, Jun 25, 2019 at 7:08 PM Andrew Barnert wrote: > On Jun 25, 2019, at 14:00, nate lust wrote: > > > > This message is related to two previous threads

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-06-25 Thread nate lust
I created a discussion topic located here https://discuss.python.org/t/a-proposal-and-implementation-to-add-assignment-and-load-overloading/1905 On Tue, Jun 25, 2019 at 6:41 PM nate lust wrote: > I am happy to move this discussion to where ever is appropriate. I won't > get to it

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-06-25 Thread nate lust
hon.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/2BAURL3FSDGW543TOYM3BICOPKNGRMQM/ > Code of Conduct: http:/

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-06-26 Thread nate lust
a bit of spare brain power, I will fully process what you wrote and may have additional questions. Thank you On Wed, Jun 26, 2019 at 3:12 AM Stephen J. Turnbull < turnbull.stephen...@u.tsukuba.ac.jp> wrote: > nate lust writes: > > > On first read, that may be surprising, but it

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-26 Thread nate lust
. > > ChrisA > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https:/

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-26 Thread nate lust
be used? So far, it just seems like an utter total mess. > > ChrisA > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-26 Thread nate lust
; wrote: > On Jun 26, 2019, at 13:53, Chris Angelico wrote: > > > Then in what circumstances will getself NOT be called? What is the > > point of having an object, if literally every reference to it will > > result in something else being used? > > I think Yanghao has m

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-27 Thread nate lust
ail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/5IQOHCTV5F4KYHTWSYHYCF6PERZKOJ3S/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Nate Lust, PhD. Astrophysics Dept. Princeton

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-27 Thread nate lust
w of it? > > ChrisA > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https:/

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-27 Thread nate lust
nction > call doesn't). > > Does that change your view of it? > > ChrisA > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailma

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-27 Thread nate lust
sible need. It's really no harder to write 'f.new = > mod_value()' than it is to write 'f = mod_value()' with magic behind the > scenes. > > On Thu, Jun 27, 2019, 11:25 AM nate lust wrote: > >> I think in this case, it would depend on what the metavar

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-06-27 Thread nate lust
D'Aprano wrote: > On Tue, Jun 25, 2019 at 03:34:03PM -0700, Ben Rudiak-Gould wrote: > > On Tue, Jun 25, 2019 at 2:11 PM nate lust wrote: > > >if an instance is bound to a variable name, any attempts to rebind > > >that name will result in a call to the __setself

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-06-27 Thread nate lust
ed at > https://mail.python.org/archives/list/python-ideas@python.org/message/A43QPHRQ4CWMSZ4AJ2E5RCCQE3V4OG5L/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Nate Lust, PhD. Astrophysics Dept. Princeton University ___ Python-ideas

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-07-01 Thread nate lust
eft to proper bench-marking programs. It seems like these numbers are within statistical uncertainty of each other. Nate On Thu, Jun 27, 2019 at 3:11 PM Steven D'Aprano wrote: > On Thu, Jun 27, 2019 at 12:23:24PM -0400, nate lust wrote: > > > If you have a > > bench ma

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-07-01 Thread nate lust
of > concept implementation, we need a proof of utility application." > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail

[Python-ideas] Proposal to introduce pattern matching syntax

2020-06-22 Thread nate lust
with this proposal and I appreciate any feedback you choose to provide. Thank you for your time in reading this. -- Nate Lust, PhD. Astrophysics Dept. Princeton University ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe

[Python-ideas] Re: Decorators for class non function properties

2020-08-05 Thread nate lust
g > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/TCW3TAPS6WTHGENNL2G2M5DTCKQWRJE6/ > Code of Conduct: http://pyth

[Python-ideas] Re: Move semantics

2020-11-26 Thread nate lust
All, Most of rust is based around the idea of move semantics. It's really useful in cases wherever you want the object to be mutable, want to avoid side effects from something else still having a reference unintentionally, and avoid a lot of deep copies of the underlying resources. On the project

[Python-ideas] Re: Move semantics

2020-11-26 Thread nate lust
Yeah, in most places we just use python as you described. In a few localized places it turned out to be useful for detecting issues and working with external resources that were exposed through python objects. I would not say if this proposal were included with typing that it should be taught as c

[Python-ideas] Re: Move semantics

2020-11-26 Thread nate lust
I agree that is how python is implemented, and from a memory perspective, this is not needed. What I was talking about was more from a conceptual resource point of view, and not just memory as a resource. Consider a generator, you can have many different bindings to the object, but when it is exha

[Python-ideas] Re: Move semantics

2020-11-26 Thread nate lust
his object after this function call it would be helpful(as I might have forgotten behavior of functions, or simply not been paying attention). On Thu, Nov 26, 2020 at 3:53 PM Steven D'Aprano wrote: > On Thu, Nov 26, 2020 at 02:15:50PM -0500, nate lust wrote: > > > It would be conv

[Python-ideas] Re: Move semantics

2020-11-26 Thread nate lust
ight benefit from this. But I'm not yet sufficiently > familiar with that field to be able to point you to examples. Hopefully > there are readers here who can. (Nate?) > > -- > --Guido van Rossum (python.org/~guido) > *Pronouns: he/him **(why is my pronoun here?)* > <htt

Re: [Python-ideas] New Python syntax for continuing definitions for existing classes

2016-09-13 Thread nate lust
if i == 0: continue print(i) Thank you for your time and consideration, we will be happy to take any feedback or questions on the implementation. Nate Lust On Tue, Sep 13, 2016 at 12:17 PM Pim Schellart wrote: > Dear Python Developers, > > we have a potential idea for enhancing

Re: [Python-ideas] New Python syntax for continuing definitions for existing classes

2016-09-14 Thread nate lust
All, I must say It is still exciting to be at a point of getting an official declaration on a topic from Guido. We thank you for your time and feedback. It has been a good experience and hope to be able to contribute in some other way in the future. Nate and Pim On Wed, Sep 14, 2016 at 12:30 PM