[issue43701] Add this optionality

2021-04-01 Thread Masoud Azizi


New submission from Masoud Azizi :

I want to rediuse two var togeder!
When i do that buy sum is rediuse to zero and not effect the sellsum
buySum[pair] -= sellSum[pair]
sellSum[pair] -= buySum[pair]

Cuz of that i try this statment but its not work!
Its a simple code that will python support it:

buySum[pair],sellSum[pair] -= sellSum[pair], buySum[pair]

Please add this optionallity to python

--
messages: 390032
nosy: mablue
priority: normal
severity: normal
status: open
title: Add this optionality
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue43701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45989] Getting key of max value of dict really dose not sense

2021-12-05 Thread Masoud Azizi


New submission from Masoud Azizi :

Maximum_signal_key=max(collective_signals,key=collective_signals.get)
This code is really hard to learn and remember.
Please change it to something that more sense.

--
messages: 407719
nosy: mablue
priority: normal
severity: normal
status: open
title: Getting key of max value of dict really dose not sense
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 
<https://bugs.python.org/issue45989>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43134] (list have item) instate (item in list)

2021-02-05 Thread Masoud Azizi


New submission from Masoud Azizi :

Please append a code to reverse check?like that?

print([input() for i in'_'*10] have input())

Instade of:
print(input() in [input() for i in'_'*10] )


i want to check that: is last input in the inputs or not!

--
messages: 386522
nosy: mablue
priority: normal
severity: normal
status: open
title: (list have item) instate (item in list)
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue43134>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi


Masoud Azizi  added the comment:

English is a powerful language too.
In English we have just one way to say someone have something too. 
there is one way to say that are you have this or not cuz of that:

in this one line simple code we check the search keyword after all 10 inputs
print([input() for i in'_'*10] have input())

but in this code we get the search keyword first so we get 10 value!and it have 
mistake
print(input() in [input() for i in'_'*10] )

and i said that want to check that: 
is last input in the inputs or not!(secend code is not true code for do that)

Have is not a duplicated command its a natural way that all people use it in 
his life in his powerful language like English, Turkish, Persian and etc...

Its a powerful command to write codes and think and speak better and/or 
different!

--

___
Python tracker 
<https://bugs.python.org/issue43134>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi


Masoud Azizi  added the comment:

powerful languages always reduces multi-lines to one line.
like python than make it ease to say a,b=1,3 and now we shroud have a command 
to say that i want to search in some one that i know him but still i did not 
know what i want to search I'm waiting to get that.
like a human that we know that we will speak about him but still we don't know 
what we want to say about it!
its a root communication skill that we tell some one that:
I have many things,tell me What do you want from me?

--

___
Python tracker 
<https://bugs.python.org/issue43134>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi


Change by Masoud Azizi :


--
status: closed -> open

___
Python tracker 
<https://bugs.python.org/issue43134>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43134] (list have item) instate (item in list)

2021-02-14 Thread Masoud Azizi


Masoud Azizi  added the comment:

Linus makes the Linux kernel without expecting benefits.
USA start a war against German and Japan in ww2 without expecting benefits.
Some times we should not think about benefits, just we will do it, if its the 
right thing.
A child never will not born for benefits.
It just born cuz thats only true way to be alive to learn walking well, 
thinking well and speaking well...
With humans, with computers.
Linus never said that to himself forget that it have not benefits.
He continued without having any observer for his work.you know why?
Cuz its the only way to do it without reversing the rules.
And at the end he reversed the rules!

--

___
Python tracker 
<https://bugs.python.org/issue43134>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com