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 200,777 public repositories matching this topic...

tugsbayasgalan
tugsbayasgalan commented Apr 8, 2021

🐛 Bug

During our hackathon today, I ran into this weird error highlighting.

import torch
from typing import Dict

@torch.jit.script
def missing_index(x: Dict[str, int]) -> int:
    return x['dne']

missing_index({'item': 20, 'other_item': 120})

This code outputs:

     9 
     10 
---> 11 missing_index({'item': 20, 'other_item': 120})

RuntimeError: The fo
reshamas
reshamas commented Apr 20, 2021

Describe the issue linked to the documentation

Videos on contributing to scikit-learn reference were created prior to renaming the branch name, and so refer to master, not main

Suggest a potential alternative/fix

In this file, under "Video Resources" section: https://github.com/scikit-learn/scikit-learn/blob/d01014c3198aafa336d9f8ed306f292d68c4a886/doc/developers/contributing.r

scrapy
Gallaecio
Gallaecio commented Apr 5, 2021

@apalala reported this issue when a site sends some invalid images, and suggested a fix for the spider middleware:

        image_stream = self.get_images(response, request, info, item=item)
        while True:
            try:
                path, image, buf = next(image_stream)
            except StopIteration:
                break
            except Exception:
                co
superset
MatanBobi
MatanBobi commented Apr 20, 2021

I'm trying to implement my custom plugin as a native filter but it looks like the height defined for every native filter is 20px, unlike the correct height when the plugin is defined in the dashboard.

Here's the relevant code:
https://github.com/apache/superset/blob/8ef572a4121ffd2fec6f64d0a053218dbf98308a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/Fi

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
Dr-Irv
Dr-Irv commented Apr 14, 2021

Need to fix the procedures so that the PDFs (English, Japanese) for the cheat sheet here: https://github.com/pandas-dev/pandas/tree/master/doc/cheatsheet

get uploaded to here:
https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf

(and when the Japanese one is there, can update the docs to link to it as well)

Note: If we decide to move the location on the web site, then we should do a redirec

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby