[Python-ideas] Re: Matching TypedDicts and other values in JSON

2020-11-22 Thread Samuel Colvin
27;d love it if python's developers could be a bit more supportive to runtime type inspection in future. Match statements look very interesting, thanks for alerting me to the PEP. Samuel -- Samuel Colvin On Sun, 22 Nov 2020 at 18:17, Guido van Rossum wrote: > You nerd-sniped me there.

[Python-ideas] Re: Suggestion: annotated exceptions

2020-09-25 Thread Samuel Colvin
ment, wrapper function or context function could be used. -- Samuel Colvin ___ 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.pytho

[Python-ideas] Re: Suggestion: annotated exceptions

2020-09-25 Thread Samuel Colvin
seful long before it was complete or 100% correct. In this regard I see a lot of similarities with type hints and typeshed. Anyway, thank you Sergio for suggesting this. I really hope it comes to fruition somehow. -- Samuel Colvin ___ Python-ideas mai

[Python-ideas] Re: Doc preview in Github PR

2020-06-17 Thread Samuel Colvin
> > It was suspended because of limitation of netlify. I had the same problem with docs previews for pydantic, I solved it by creating a google cloud run script that unpacked a zip file and uploaded it to google cloud storage where the docs could be viewed, the files expire after 6 months to avoi

[Python-ideas] Re: dunder methods for encoding & prettiness aware formal & informal representations

2020-03-21 Thread Samuel Colvin
> I'd be interested to see the "display utility" point of view expanded. For me there are two use cases: I use devtool's debug() command instead of print() ALL THE TIME when debugging, so does the rest of my office and others who I've demonstrated its merits to. I use this sitecustomize trick

[Python-ideas] Re: dunder methods for encoding & prettiness aware formal & informal representations

2020-03-20 Thread Samuel Colvin
Hi Steven, > Are you aware that dunder names are reserved for Python's use? I wasn't aware it was explicitly discouraged, thanks for the link. It seems to me that "__pretty__" (however it's implemented) seems a very sensible name for a method used when pretty printing objects. If it's one day im

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

2019-02-19 Thread Samuel Colvin
I'm afraid I'm not sure of your point here. (By the way, that code is already run through black, just with a line length limit of 120) ___ Python-ideas mailing list Python-ideas@python.o

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

2019-02-19 Thread Samuel Colvin
> Nothing says that you have to write an entire function header on one line. Of course. I just think that code with a 7 line function header is much harder to read and understand than code with a one line function header. For example: it's less likely that two chunks of code I'm looking at are sti

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

2019-02-19 Thread Samuel Colvin
I too would argue that it's time to reconsider line length limits. But the reason is not monitor changes, or any particularly strong personal opinion, but changes to python: Let's take a real life example from here (cha

Re: [Python-ideas] Debugging: some problems and possible solutions

2018-10-05 Thread Samuel Colvin
integrate a package like this into the standard lib since it relies on pygments for colouring output, but not impossible. Is this the kind of thing you were thinking about? Samuel Colvin ___ Python-ideas mailing list Python-ideas@python.org https://ma