Skip to content
#

Python

python logo

Python is a dynamically typed programming language designed by Guido van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.

Here are 171,326 public repositories matching this topic...

fernandobperezm
fernandobperezm commented Oct 18, 2020

Describe your change:

Added a solution to Project Euler Problem 203 "Squarefree Binomial Coefficients" Link.

The solution is based on three main pilars.

  1. Calculate the unique coefficients of a Pascal's Triangle of depth d .
  2. Calculate the prime numbers between 2 and the maximum coefficient Cmax using a variant of the Sieve of Eratos
Flamefire
Flamefire commented Oct 15, 2020

During debugging I've seen many constructs like list(map(lambda i: torch.device('cuda:' + str(i)), gpus))

I'd propose to replace those by "regular" list comprehensions. So the above is equivalent to [torch.device('cuda:' + str(i)) for i in gpus]

This replacement can be automated via regexp replacement for (likely) almost all cases.

Reasoning: The nesting of parentheses and the inline

reshamas
reshamas commented Oct 16, 2020

Describe the issue linked to the documentation

In the section "Pull Request Checklist", this is how the text appears

A moderate use of type annotations is encouraged but is not mandatory. See [mypy quickstart](https://mypy.readthedocs.io/en/latest/getting_started.html) for an introduction, as well as [pandas contributing documentation]( https://pandas.pydata.org/pandas-docs/stabl
scrapy
incubator-superset
cooley-pe
cooley-pe commented Sep 30, 2020

Is your feature request related to a problem? Please describe.
I have a lot of trouble distinguishing between the shades of green signifying a running vs successful query in sqllab.

Describe the solution you'd like
Ideally these would be two different colors for running vs successful. Maybe yellow and green respectively?

Describe alternatives you've considered
If there isn't

ohemorange
ohemorange commented Jun 8, 2020

Copied from #7991:

If you look at https://certbot.eff.org/docs/api/certbot.compat.filesystem.html, you'll notice many formatting errors which should be fixed.

That's the bare minimum which I think should be done, but I think we should also see what we can do to avoid these problems from happening in the future. Is there a way we could build the docs in CI and check for these problems?

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby
You can’t perform that action at this time.