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,506 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

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