[Python-ideas] Re: Add .cache and compile_commands.json to .gitignote

2021-08-20 Thread Tim Delaney
nored directory needs to be in the repo then it can be added. Whilst I'd say it's a really good idea to have your build system artifacts in your personal gitignore, IMO any files and directories generated by any supported build systems should be in the repo's .gitignore so those les

Re: [Python-ideas] Retire or reword the "Beautiful is better than ugly" Zen clause

2018-09-13 Thread Tim Delaney
ul" with. And I can't think of an elegant replacement for "ugly" to pair with "elegant". "Awkward" would probably be the best I can think of, and "Elegant is better than awkward" just feels kinda awkward ... Tim Delaney __

Re: [Python-ideas] True and False are singletons

2019-03-18 Thread Tim Delaney
wledge that True and False are each a singleton and the author explicitly intended to use them that way. Use of == in the same context is more likely to indicate a programmer who is unfamiliar with Python's truth rules. Tim Delaney ___ Python-ideas mailing li

Re: [Python-ideas] incremental hashing in __hash__

2016-12-29 Thread Tim Delaney
awl. 100% CPU, throughput at a standstill ... it didn't look good. Adding that one field to the hash resulted in the ability to scale up to hundreds of thousands of objects with minimal CPU. I can't remember if it was millions we tested to (it was around 10 years ago ...). Tim Delaney _

Re: [Python-ideas] Exploiting type-homogeneity in list.sort() (again!)

2017-03-09 Thread Tim Delaney
g version available for general use/unoptimised sorting)? Tim Delaney ___ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] A "local" pseudo-function

2018-04-28 Thread Tim Delaney
woa) } ​​ > if local(m = re.match(regexp, line)): > print(m.group(0)) > ​ if local { m = re.match(regexp, line) }: print(m.group(0)) And a further implication: a = lambda a, b: local(c=4, a*b*c) a = lambda a, b: local { c = 4 return a * b * c } Tim Delaney _

Re: [Python-ideas] A "local" pseudo-function

2018-04-28 Thread Tim Delaney
On Sun, 29 Apr 2018 at 10:30, Tim Peters wrote: > [Tim Delaney ] > > My big concern here involves the: > > > ​​ > > if local(m = re.match(regexp, line)): > > print(m.group(0)) > > > > example. The entire block needs to be implicitly local for that to

Re: [Python-ideas] Verbatim names (allowing keywords as names)

2018-05-15 Thread Tim Delaney
= \except + 1 > ​result = $except + 1​ > result = something.\except > ​result = somthing.$except​ result = \except.\finally > ​result = $except.$finally @\return def func(): pass @$return def func(): pass Tim Delaney​ ___ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/