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 212,645 public repositories matching this topic...

nmichlo
nmichlo commented Jun 23, 2021

🚀 Feature

Add drop_remainder: bool = True support to torch.chunk and torch.split

  • similar in function to drop_last in torch.utils.data.DataLoader
  • If the length of the dimension is not perfectly divisible, drop the remaining elements from the returned arrays.

Add redistribute: bool = True support to torch.chunk and torch.split

  • Spread the elements evenly across the c
jnothman
jnothman commented May 12, 2021

We should be using pkg_resources (or importlib.resources if our min Python version is 3.7) instead of uses of __file__.

$ get grep '__file__' sklearn/
sklearn/__check_build/__init__.py:    local_dir = os.path.split(__file__)[0]
sklearn/datasets/_base.py:    module_path = dirname(__file__)
sklearn/datasets/_base.py:    module_path = dirname(__file__)
sklearn/datasets/_base.py:    
scrapy
risicle
risicle commented May 23, 2021

Quick one - if, for instance, you're running the the scrapy test suite in some sort of CI setup where builds get performed by random different dedicated "build users", you'll end up in a situation where /tmp/foobar already exists, owned by a different user. At which point FileFeedStoragePreFeedOptionsTest will fail:

E       PermissionError: [Errno 13] Permission denied: '/tmp/foobar'
fastapi
tiangolo
tiangolo commented Jun 12, 2020

First check

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the FastAPI documentation, with the integrated search.
  • I already searched in Google "How to X in FastAPI" and didn't find any information.
  • I already read and followed all the tutorial in the docs and didn't find an answ
datapythonista
datapythonista commented Jun 29, 2021

We've got two versions of our logo, one for light backgrounds, and another one for dark backgrounds: https://pandas.pydata.org/about/citing.html#brand-and-logo.

Modern browsers usually support a dark mode, and when users have it activated, our favicon (our logo for light backgrounds) doesn't look really nice:

![Screenshot at 2021-06-29 13-18-05](https://user-images.githubusercontent.com/1005

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby