Re: [Python-ideas] Left arrow and right arrow operators

2019-03-13 Thread David Teresi
`->` would not be ambiguous in the proposed cases, but it does already mean something elsewhere in the language as of 3.5: def concat(a: str, b: str) -> str: return a + b This could potentially cause confusion (as with the % operator being used for modulo as well as string formatting). On Tu

Re: [Python-ideas] f-string "debug" conversion

2018-10-02 Thread David Teresi
print(f'{value!d}') is a lot of symbols and boilerplate to type out just for a debugging statement that will be deleted later. Especially now that breakpoint() exists, I can't really see myself using this. I also don't see the use case of it being within an f-string, because I've never had to inte

Re: [Python-ideas] Python dialect that compiles into python

2018-09-12 Thread David Teresi
Not totally convinced about this. It would require PEP writers  to fully implement their proposed feature, people can usually get a pretty good idea of how a feature is supposed to work through PEPs (most of which are extremely well written), and these "mods" wouldn't be used in production code

[Python-ideas] A "within" keyword

2018-06-08 Thread David Teresi
One of the features I miss from languages such as C# is namespaces that work across files - it makes it a lot easier to organize code IMO. Here's an idea I had - it might not be the best idea, just throwing this out there: a "within" keyword that lets you execute code inside a namespace. For examp