Hi,
I don't know if this was already debated but I don't know how to search
in the whole archive of the list.
For now the adoption of pyproject.toml file is more difficult because
toml is not in the standard library.
Each tool which wants to use pyproject.toml has to add a toml lib as a
> but requires either some obscure syntax or a statement instead of a simple
> expression.
>
> The proposal is to enable the obvious syntax for something that should be
> obvious.
>
> Stefan
The discussions on this list show that the behavior of `+` operator with
dict will never be obvious
Hi,
I'm not old on this list but every time there is a proposal, the answer
is "what are you trying to solve ?".
Since
|z ={**x,**y} and z.update(y) Exists, I can"t find the answer.
|
|
|
Le 02/03/2019 à 04:52, Steven D'Aprano a écrit :
> Executive summary:
>
> - I'm going to argue for
Hi,
There was the discussion about vector, etc...
I think I have a frustration about chaining things easily in python in
the stdlib where many libs like orm do it great.
Here an example :
The code is useless, just to show the idea
>>> a = [1,2,3]
>>> a.append(4)
>>> a.sort()
>>> c =
Indeed the "obscure" argument should be thrown away.
The `|` operator in sets seems to be evident for every one on this list
but I would be curious to know how many people first got a TypeError
doing set1 + set2 and then found set1 | set2 in the doc.
Except for math geek the `|` is always
> Does anyone have an example of another programming language that
> allows for addition of dictionaries/mappings?
>
kotlin does that (`to` means `:`) :
fun main() {
var a = mutableMapOf("a" to 1, "b" to 2)
var b = mutableMapOf("c" to 1, "b" to 3)
println(a)
println(b)
Hi,
Please let me share my story of non experienced python programmer.
Last year I wanted to merge three dicts for config stuff.
I found very quickly the answer : a = {**b, **c, **d}
Sadly I was working on python 3.3 and that was nos possible to use this
syntax. I don't remember what I did
Hi,
thank for the replies.
I searched on python-idea as Chris proposed me with "chain" and I've
found 2 relevant discussions :
* A proposal from Cris Angelico ;-)
https://mail.python.org/pipermail/python-ideas/2014-February/026079.html
"""Right. That's the main point behind this: it gives the
Hi,
At the end this long thread because 2 functions doing quite the same
thing have the same name but not the same signature and it's confusing
for some people (I'm one of those)
|str.||join|(/iterable/)
|os.path.||join|(/path/, /*paths/)
There are strong arguments about why it's implemented
Hi,
I'm not sure to understand the real purpose of Vector.
Is that a new collection ?
Is that a list with a builtin map() function ?
Is it a wrapper to other types ?
Should it be iterable ?
The clear need explained before is using fluent interface on a collection :
10 matches
Mail list logo