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 203,007 public repositories matching this topic...

dreiss
dreiss commented May 6, 2021

🐛 Bug

After freezing a traced model, I expect all unnecessary tuple operations to be removed, but some remain.

To Reproduce

https://colab.research.google.com/gist/dreiss/0414c8e294e482e8a07f98990e7130fc/freezetuple.ipynb

Expected behavior

No TupleConstruct and TupleUnpack nodes.

Environment

See notebook. It reproduces on nightly as well.

Additional context

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
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
vishwa-raj
vishwa-raj commented May 8, 2021
  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • (optional) I have confirmed this bug exists on the master branch of pandas.


#------ pandas 1.2.* ------

import pandas as pd
df = pd.DataFrame(index = pd.DatetimeIndex([]))

print(df.T.sum().index) # output: Index([], dt

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby