Questions tagged [python-3.8]

This tag is for issues that are specific to Python 3.8. For general questions use the more generic [python] and [python-3.x] tags.

Python 3.8 was released on 2019-10-14 (PEP 569).


Use this tag if your question is specifically related to Python 3.8. Otherwise, use the following guidelines to determine which tag(s) you should add to your question:

  • If your question applies to Python in general, use only the tag.
  • If your question applies to Python 3.x but not to Python 2.x, add the tag .
  • If you aren't sure, tag your question with and mention which version you're using in the post.

References

1757 questions
0
votes
1 answer

How to create a download bar in python

So I am working on this program that is supposed to be downloading stuff from the web using tkinter and urllib.request but it is lacking a download bar(or a progress bar if that is the true word). So I found out that you can create a progress bar…
Omid Ki
  • 111
  • 1
  • 10
0
votes
1 answer

How to cancel or pause a urllib request in python

So I have this program which requests a file from the web and the user can download it. I am using urllib.request and tkinter for my program. The problem is that when the user hits the 'Download' button there is no pause or cancel until the file…
Omid Ki
  • 111
  • 1
  • 10
0
votes
2 answers

How to print new list from previous list using functions in python?

def send_messages(message): while message: print(message) message.pop() sent_messages.append(message) message = ['hello', 'i am on my way', 'cant talk right now'] sent_messages =…
Hussain
  • 9
  • 2
0
votes
0 answers

Multiple balls moving in a box(2D)

I was working on a code to simulate multiple balls moving inside a box using pygame. I wrote the code for a single ball that collides with the walls of the container. I want to increase the number of balls as I want. I looked for help here and got a…
Sahil
  • 70
  • 4
0
votes
2 answers

Why was Python 3.7.7 released after Python 3.8.2?

Why was Python 3.7.7 released after Python 3.8.2? When its the same version, meaning python2 and python3 It says so on the website: https://www.python.org/downloads/
0
votes
1 answer

pd.df find rows pairwise using groupby and change bogus values

My pd.DataFrame looks like this example but has about 10mio rows, hence I am looking for an efficient solution. import pandas as pd …
steff
  • 796
  • 2
  • 7
  • 20
0
votes
1 answer

How to draw complex networkx DiGraph in a readable way?

I'd like to use networkx to study the architecture of a fairly large project but the test i've done so far are not so good, here's a minimal example of all my research: import matplotlib.pyplot as plt import networkx as nx from networkx.readwrite…
BPL
  • 9,807
  • 7
  • 37
  • 90
0
votes
1 answer

sqlite3.OperationalError: near "--": syntax error

Can't find where is this typo or something - everytime getting this error line 33, in c_a.execute('ATTACH DATABASE temp.db AS check') sqlite3.OperationalError: near "check": syntax error I'm trying to attach database temp.db to the…
pylsokol
  • 1
  • 1
0
votes
3 answers

stripping \n from every element of a list

I am currently completely new to python and trying to build a simple hangman game. I created a .txt file with all the sample words and imported it to python. When printing them out however they all have this format: ['exampleword\n'],…
0
votes
0 answers

SNAKE GAME- snake passing through barrier (PYTHON 3.8-TURTLE MODULE)

Tried putting it as a range but says that two operations cannot be done. Check for collisions with barrier if (head.ycor()<200 and head.ycor()>-200 and head.xcor()<10 and head.xcor()>-10): time.sleep(1) head.goto(-70, 0) head.direction…
0
votes
1 answer

How to skip some chunks in python read file code?

I have a code like this: chunk_size=512*1024 #512 kb big_file = open(file, 'rb') while True: data = big_file .read(chunk_size) if not data: break If I want to read only every 10th item/element or every 5th element,…
Rahul
  • 107
  • 8
0
votes
0 answers

How are imports handled in package __init__.py files?

I ran across a very specific case where I cannot explain myself, why the python import does what it does and I am hoping you can help me. The set up is as follows: root/ ├── main.py └── pack/ ├── __init__.py ├── db.py └── plugins/ …
Woltan
  • 12,751
  • 12
  • 70
  • 97
0
votes
2 answers

can't get a file size in python

I am a python newbie and learning from "automate boring stuff" book, so it says in the book the I can use os.path.getsize(path) to get a file size but when I run this code it gives an error, can you please explain why I am getting this? import…
mr.Arrow
  • 49
  • 5
0
votes
1 answer

Traverse directory at URL to root in Python

How can you traverse directory to get to root in Python? I wrote some code using BeautifulSoup, but it says 'module not found'. So I have this: # # There is a directory traversal vulnerability in the # following page…
Ollie
  • 279
  • 5
  • 15
0
votes
1 answer

Unable to install face_recognition in python3

The version of python I'm using is 3.7.0. Tried it with 3.8 but ended in same error I installed the latest version of cmake and tried installing face_recognition but I'm getting the following error.
1 2 3
99
100