Ananthakrishnan added the comment:
>>Sorry, Ananthakrishnan, but I think this problem is too difficult to you.
>>Adding math.lcm() taken 2 weeks and produced 200 messages. It is simpler to
>>implement this feature myself to me.
I'm a beginner.Not everyone is per
Change by Ananthakrishnan :
--
keywords: +patch
pull_requests: +17959
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18590
___
Python tracker
<https://bugs.python.org/issu
Ananthakrishnan added the comment:
Thanks for the hint.Made changes.
--
___
Python tracker
<https://bugs.python.org/issue39648>
___
___
Python-bugs-list mailin
Ananthakrishnan added the comment:
Yes I know.
--
___
Python tracker
<https://bugs.python.org/issue39648>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ananthakrishnan added the comment:
This is my code for math.gcd:
static PyObject *
math_gcd(PyObject *module, PyObject *args, Py_ssize_t n)
{
PyObject *g = 0, *item, *in;
Py_ssize_t i;
for (i = 0; i < n; i++) {
item = args[i];
in = PyNumber_Index(i
Ananthakrishnan added the comment:
I want to do a PR,if this is still needeed.
--
nosy: +Ananthakrishnan
___
Python tracker
<https://bugs.python.org/issue6
Ananthakrishnan added the comment:
code.compile_command takes _exec_
as symbol.As it is not documented or mentioned anywhere I can't find any
details about that.Can anyone please tell me what it does?
--
nosy: +Ananthakrishnan
___
Python tr
Change by Ananthakrishnan :
--
keywords: +patch
pull_requests: +17941
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18561
___
Python tracker
<https://bugs.python.org/issu
Ananthakrishnan added the comment:
Can i add a pull request for this.
--
nosy: +Ananthakrishnan
___
Python tracker
<https://bugs.python.org/issue39560>
___
___
Ananthakrishnan added the comment:
I just addded a PR for this issue.
--
nosy: +Ananthakrishnan
___
Python tracker
<https://bugs.python.org/issue17422>
___
___
Change by Ananthakrishnan :
--
pull_requests: +17939
pull_request: https://github.com/python/cpython/pull/18559
___
Python tracker
<https://bugs.python.org/issue17
Ananthakrishnan added the comment:
yes,I'm interested in writing docs for the `__required_keys__` and
`__total_keys__` attributes.
--
___
Python tracker
<https://bugs.python.org/is
Change by Ananthakrishnan :
--
keywords: +patch
pull_requests: +17935
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/18554
___
Python tracker
<https://bugs.python.org/issu
Ananthakrishnan added the comment:
yes,I'm interested.
--
___
Python tracker
<https://bugs.python.org/issue39572>
___
___
Python-bugs-list mailing list
Ananthakrishnan added the comment:
It will be usefull if we document _total_ argument also.
--
___
Python tracker
<https://bugs.python.org/issue39572>
___
___
Ananthakrishnan added the comment:
https://stackoverflow.com/questions/58427394/what-is-the-meaning-of-total-dunder-attribute-in-python-3
questions about this.
--
nosy: +Ananthakrishnan
___
Python tracker
<https://bugs.python.org/issue39
Change by Ananthakrishnan :
--
keywords: +patch
pull_requests: +17932
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/1153
___
Python tracker
<https://bugs.python.org/issu
Ananthakrishnan added the comment:
Can I put together a PR for this issue?
--
___
Python tracker
<https://bugs.python.org/issue39648>
___
___
Python-bugs-list m
Change by Ananthakrishnan :
--
pull_requests: +17925
pull_request: https://github.com/python/cpython/pull/18547
___
Python tracker
<https://bugs.python.org/issue39
Change by Ananthakrishnan :
--
keywords: +patch
pull_requests: +17915
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18538
___
Python tracker
<https://bugs.python.org/issu
Ananthakrishnan added the comment:
Is this issue still needed?
Can I add a pull request for this.
--
nosy: +Ananthakrishnan
___
Python tracker
<https://bugs.python.org/issue9
Ananthakrishnan added the comment:
It should take variable number of positional arguments.
it should return:
>>math.gcd()
0
>>math.gcd(8)
8
>>math.gcd(-8)
8
--
___
Python tracker
<https://bugs.
Ananthakrishnan added the comment:
It will take more time to write the statement itself and there are chances of
getting mistakes as the statement is complicated.
--
___
Python tracker
<https://bugs.python.org/issue39
New submission from Ananthakrishnan :
If we have to find the gcd of three or more numbers, now we should use
gcd(a, gcd(b, gcd(c, gcd(d, e)
which will create lot of problems.
math.gcd should take "n" number of arguments,like:
gcd(a,b,c,)
gcd(4,6,8)//returns 2
g
Ananthakrishnan added the comment:
I think this is not present in python.
This module should contain operations that can be performed on binary numbers.
In the below examples a and b are binary numbers.
binary.add(a,b)
binary.sub(a,b)
binary.mul(a,b)
binary.div(a,b)
binary.ones_complement(a
Ananthakrishnan added the comment:
I meant a module for "binary number".
It can do operations on binary number.
--
___
Python tracker
<https://bugs.python.o
Change by Ananthakrishnan :
--
components: +Library (Lib) -C API
___
Python tracker
<https://bugs.python.org/issue39644>
___
___
Python-bugs-list mailin
Ananthakrishnan added the comment:
It operates only on 0 and 1
--
___
Python tracker
<https://bugs.python.org/issue39644>
___
___
Python-bugs-list mailin
Ananthakrishnan added the comment:
It is "addition". I meant binary addition:
1110+1010=11000.
-1000=0111
--
___
Python tracker
<https://bugs.python.o
Change by Ananthakrishnan :
--
nosy: +mark.dickinson, serhiy.storchaka, tim.peters -Ananthakrishnan
___
Python tracker
<https://bugs.python.org/issue39
New submission from Ananthakrishnan :
Add binary module that has binary operations like:
binary addition.
binary subtracion.
binary multiplication.
binary division.
compliment.
1's complement.
2's complement.
cconverting to various number system.
converting to BCD.
converting to gr
Change by Ananthakrishnan :
--
keywords: +patch
pull_requests: +17719
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18328
___
Python tracker
<https://bugs.python.org/issu
Ananthakrishnan A S added the comment:
Yes,I want to put together a PR.
--
___
Python tracker
<https://bugs.python.org/issue39479>
___
___
Python-bugs-list m
Ananthakrishnan A S added the comment:
I agree with Vedran Čačić.As the modules are not made for one person but it is
for the ease of coding.There are so many functions which i don't use but used
by other people.We are using functions to make coding easy and if lcm function
is added
Ananthakrishnan A S added the comment:
some problems that needs lcm function:
1:find the least number which when divided by 'a','b','c','d' leaves remainder
'e' in each case.
2:person A exercises every 'n' days and person B every
Ananthakrishnan A S added the comment:
Should i proceed with adding a pull request for adding a 'lcm' function in
python's math module.
--
___
Python tracker
<https://bugs.pyt
Ananthakrishnan A S added the comment:
I created this issue as i came across the following question:
There are n students in class A,and m students in class B.each class divides
into teams for a competition.What is the biggest possible team size that can be
divided,such that each team has
New submission from Ananthakrishnan A S :
can we add an lcm and gcd function that can work as:
lcm(4,6) # returns 12
gcd(4,6) # returns 2
--
components: Library (Lib)
messages: 360875
nosy: Ananthakrishnan A S
priority: normal
severity: normal
status: open
title: can we add a lcm and
New submission from Ananthakrishnan A S :
add a function called 'median' that we can use like:
list=[1,2,3,4,5,6,7,8,9] # declaring list
median(list) #returns 5
--
components: Library (Lib)
messages: 360873
nosy: Ananthakrishnan A S
priority: normal
severity: nor
39 matches
Mail list logo