Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,919
» Latest member: aidajnrz7704
» Forum threads: 38,717
» Forum posts: 175,484

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 39 Guest(s)
AOL, Bing, Google, AOL, Mojeek

Latest Threads
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
1 hour ago
» Replies: 5
» Views: 321
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
8 hours ago
» Replies: 5
» Views: 1,120
New to the field
Forum: News and Discussions
Last Post: Polybunny
Today, 01:31 AM
» Replies: 0
» Views: 79
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Yesterday, 03:23 PM
» Replies: 4
» Views: 2,278
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 11:09 AM
» Replies: 2
» Views: 841
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Yesterday, 08:36 AM
» Replies: 1
» Views: 2,131
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-11-2025, 08:39 PM
» Replies: 6
» Views: 1,491
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-11-2025, 05:34 PM
» Replies: 5
» Views: 1,250
pip fails to install PyGO...
Forum: General Coding Help
Last Post: Larz60+
Sep-11-2025, 10:50 AM
» Replies: 2
» Views: 1,809
how to manage crypto trad...
Forum: General Coding Help
Last Post: Mercyto
Sep-11-2025, 06:01 AM
» Replies: 2
» Views: 2,967

 
  def __str__(self) gives error
Posted by: rahul6sept - Feb-08-2025, 02:58 AM - Forum: General Coding Help - Replies (1)

Hi, the function def __str__(self) while I put inside the class is giving indent error. But if put outside doesn't give output.

plz advice.


Attached Files

.py   class_py_student.py (Size: 525 bytes / Downloads: 105)
Print this item

  "bytecode compiler" in docs means what?
Posted by: EShaw - Feb-07-2025, 05:19 PM - Forum: News and Discussions - Replies (1)

Hello, first post. I'm a CS instructor and prepping a lecture on compiling v interpreting.

My question is about the use of the term "bytecode comp..... More

Print this item

  question about changing the string value of a list element
Posted by: jacksfrustration - Feb-07-2025, 02:33 PM - Forum: General Coding Help - Replies (4)

so im still building this reminder app. It's got two parts. I need help perfecting it. Basically my app can generate reminders about events/tasks, sav..... More

Print this item

  Python - Hidden Text / Html Mail
Posted by: python1337 - Feb-07-2025, 02:02 PM - Forum: General Coding Help - Replies (1)

I have a Python tool that I want to use to send emails.

I want to send a hidden text within an html mail without the plaintext being displayed - Cu..... More

Print this item

  exception scapy
Posted by: kolikol - Feb-07-2025, 01:57 PM - Forum: Networking - Replies (1)

Hello, forum!
I have win7 x32 python 3.8.0, the problem is:

When trying to connect the scapy library (full functionality), namely by importing
fr..... More

Print this item

  Python-based telegram spam bot-telegram-bot
Posted by: archer24 - Feb-07-2025, 12:42 PM - Forum: General Coding Help - Replies (1)

Hello, everyone. I'm completely new to Python (I've been writing code for literally 3 days). My task is to write an Antispam Telegram bot based on pyt..... More

Print this item

  Improve Prime Pairs Code
Posted by: jzakiya - Feb-06-2025, 08:51 PM - Forum: General Coding Help - Replies (7)

Hi.

First, I'm not a Python programmer so please escuse my ignorance.

I'm looking for help to improve this code.
It generate prime pairs that s..... More

Print this item

  Hangman Game Buy a Vowel
Posted by: glwilliams82 - Feb-06-2025, 08:53 AM - Forum: Homework - Replies (1)

I created this code for a Hangman game where you can buy a Vowel, but for some reason it keeps subtracting from every letter even if you don't buy a v..... More

Print this item

  asyncio: WebSocketClient:connection closed (ERR): sent 1011
Posted by: Michel777 - Feb-04-2025, 08:43 PM - Forum: General Coding Help - No Replies

Hi,

I'm using Python asyncio, everything is working fine. The only issue is, that the [b](*) writing data from queue into the database: df.to_sql[/..... More

Print this item

  Parallel computation
Posted by: DoveV - Feb-04-2025, 05:59 PM - Forum: General Coding Help - Replies (6)

Hi there,

I'm relatively new to python and I'm trying to perform a 'trivially' parallel computation.
I have some big array of data and I need to p..... More

Print this item

  MPEG DASH Package implementation similar to M3U8 package
Posted by: anantha_narayanan - Feb-04-2025, 02:23 PM - Forum: General Coding Help - Replies (1)

I'm currently using the following package for working with .m3u8 (HLS) playlist files

m3u8 Package
..... More

Print this item

  I'm trying to install python 3.11.11 on windows 10 - it doesn't work
Posted by: Petonique - Feb-04-2025, 05:31 AM - Forum: General Coding Help - Replies (2)

i added environment variables, but when i try to run python setup.py install command via cmd nothing happens. just line is updated

if i do python s..... More


Attached Files

Thumbnail(s)
   
Print this item

  Plot blue
Posted by: daves_cordova - Feb-02-2025, 09:05 PM - Forum: Data Science - Replies (2)

[python]
# Import necessary libraries
import numpy as np
import pandas as pd
import geopandas as gpd
from libpysal.weights import Queen, higher_o..... More


Attached Files

.xlsx   Base de dados - Regressão.xlsx (Size: 247.78 KB / Downloads: 0)
Print this item

  Building specific Python version on Raspberry PI 5 (Raspbian)
Posted by: andrewk - Feb-02-2025, 04:55 AM - Forum: General Coding Help - Replies (2)

Hi!

I'm trying to build Python 3.8 from source on a Raspberry PI 5 (Raspbian).
A project I'm using requires Python 3.8.

Downloaded the source a..... More

Print this item

  Is there a Python solution to select unique frames from a video?
Posted by: rownong - Feb-01-2025, 11:06 PM - Forum: General Coding Help - Replies (1)

Hello
It is necessary to receive unique frames (screenshots) from the video.
Is there any Python solution to select frames from a video that, for ex..... More

Print this item

  Open CV cv2.bitwise_and() function
Posted by: rickyw2777 - Feb-01-2025, 06:41 PM - Forum: General Coding Help - Replies (3)

My question is about python and Open CV. Here is my code:
[python]import cv2
import numpy as np

# read image
img = cv2.imread(r"C:\Users\asus\D..... More

Print this item

  How to remove unwanted images and tables from a Word file using Python?
Posted by: rownong - Feb-01-2025, 10:12 AM - Forum: General Coding Help - Replies (2)

After exporting from PDF to Word (via), the file contains many unnecessary artifacts in the text:
- meaningless parts of images
- empty tables of 1 ..... More

Print this item

  Pyinstaller usage
Posted by: PhilippS - Jan-31-2025, 02:28 PM - Forum: General Coding Help - Replies (1)

Hi team,
I am using pyinstaller to cerate a exe of my main.py. The main uses different other python_scripts.py which are located in the same folder...... More

Print this item

  Implementing Efficient Event-Driven Programming in Python
Posted by: JasonGrant - Jan-31-2025, 12:38 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I’m designing an event-driven application in Python that needs to respond to external triggers quickly and efficiently. Does anyone..... More

Print this item

Question [redistribution] Reduce number + size of dependencies?
Posted by: Winfried - Jan-31-2025, 11:30 AM - Forum: General Coding Help - Replies (2)

Hello,

Using…

pyinstaller --clean myscript.py
… I notice that a simple script running Python 3.12.0 that just reads a URL from the c..... More

Print this item

  Is the Walrus Operator( := ) antipattern?
Posted by: maina - Jan-31-2025, 10:53 AM - Forum: News and Discussions - Replies (3)

The walrus operator( := ) was introduced in Python 3.8.
It allows you to create, assign..... More

Print this item

  Recording a Conversation
Posted by: puvuz - Jan-31-2025, 02:00 AM - Forum: General Coding Help - No Replies

I just started a new job in tech support and it requires documenting everything being said over the phone. I use a USB headset, the Yealink WHB620 spe..... More

Print this item

  pystran: Python Structural Analysis
Posted by: PetrKrysl - Jan-30-2025, 08:06 PM - Forum: Code sharing - Replies (1)

https://github.com/PetrKryslUCSD/pystran

I would very much appreciate feedback on how to provide documentation.
I expect the package to be downloa..... More

Print this item

  knowing for loop position in a list
Posted by: medic5678 - Jan-30-2025, 07:39 PM - Forum: General Coding Help - Replies (4)

I've got a text variable, my_word.
I want to run a for loop

For letter in my_word:
if letter == "f"

I want to know the index..... More

Print this item

  Problems creating standalone - can't find package tkdnd
Posted by: jbenfield - Jan-30-2025, 05:21 PM - Forum: GUI - Replies (4)

I have an tkinter app that runs fine in VS-Code/Terminal, but I can't seem to get it to work as a standalone.
The error is always a variant on the t..... More

Print this item

  Pulling data from mssql to PG DB
Posted by: hartman60 - Jan-30-2025, 03:57 PM - Forum: General Coding Help - Replies (1)

I'm trying to load a PostgreSQL table with information from MSsql. I have 2 tables that are identical on both db's. On the Mssql side there is a colum..... More

Print this item

Photo Cannot plot without high machine precision problems on small numbers
Posted by: aphobic - Jan-30-2025, 03:48 PM - Forum: Data Science - Replies (1)

Hi, I am trying to plot the solution of the Lindblad equation, for a Bell state probability density matrix, however I get non-zero entropy at t=0, whi..... More


Attached Files

Thumbnail(s)
   

.py   entropyPSI.py (Size: 4.06 KB / Downloads: 4)
Print this item

  Rudimentary prototype for: Fractal Growth Model, Diffusion-Limited Aggregation (DLA)
Posted by: ratwolf - Jan-30-2025, 04:09 AM - Forum: Code sharing - No Replies

   

[python]import numpy as np
import matplotlib.pyplot as plt
from numba import njit, prange
from matplotlib.cm import ScalarMapp..... More

Print this item

  Data transfer from Arduino to Pyhton
Posted by: code_noob - Jan-29-2025, 06:52 PM - Forum: General Coding Help - Replies (2)

Hi

I am having trouble with getting this code to work. I am working on a project where I want to transfer data from Arduino through a com terminal ..... More

Print this item

  app funcionality issue
Posted by: jacksfrustration - Jan-29-2025, 03:41 PM - Forum: General Coding Help - Replies (4)

ok so i'm building a reminder app for a client. So far i have one application that is booted by the user that the user can use to create reminders (se..... More

Print this item

  No module named 'importlib.metadata'
Posted by: EdVS - Jan-29-2025, 08:21 AM - Forum: General Coding Help - Replies (3)

Hi!

Windows 7 (x86).
Python 3.8.0a3 (32-bit), new installation. I can't install a newer version of Python because my computer is old - problems wi..... More

Print this item

  Upgraded Python: Module no longer found - for Linux
Posted by: Curbie - Jan-29-2025, 12:09 AM - Forum: General Coding Help - Replies (8)

Don’t know if this is the correct place for this question, if not just help out on where I should go?

A thread here titled “[SOLVED] Upgraded Pytho..... More

Print this item

  The Whole is More Than the Sum of the Parts
Posted by: ratwolf - Jan-28-2025, 03:19 AM - Forum: Code sharing - Replies (2)

[python]import numpy as np
import matplotlib.pyplot as plt

def generate_wave(custom_function, samples=100, x_range=(-1, 1)):
"""
Generat..... More


Attached Files

Thumbnail(s)
           
Print this item

  Word matching with specific parameters
Posted by: CascadeDiver - Jan-28-2025, 01:36 AM - Forum: General Coding Help - Replies (3)

Word matching with specific parameters

Hello all,


I am quite new to using Python so please bear with me.

I am looking to create a script th..... More

Print this item

Exclamation Replace dando erro
Posted by: supergbr - Jan-27-2025, 11:28 PM - Forum: General Coding Help - Replies (1)

Olá Pessoal,

Sou novo por aqui e em python, estou realizando a substituição de caracteres dentro de uma variável e no momento que executo apresenta..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#)... 1 hour ago SpongeB0B snippsat General Codin...
  I'm trying to make a piec... 8 hours ago Alislugacool MilesWeb General Codin...
  New to the field Today, 01:31 Polybunny Polybunny News and Disc...
  Seeking feedback: dynamic... Yesterday, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... Yesterday, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... Yesterday, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
  New to Python and Pygame 09-11, 17:34 JMcM JMcM Game Developm...
  pip fails to install PyGO... 09-11, 10:50 voidtrance Larz60+ General Codin...
  how to manage crypto trad... 09-11, 06:01 Mikeardy Mercyto General Codin...
  How to space data on x ax... 09-11, 05:35 m_kdch Pedroski55 General Codin...
Most views
  The best Prog... 575394
  Tutorial Requ... 496166
  Web Scraping ... 439513
  Newbie with P... 383102
  New Users Int... 363766
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12086
buran 8174
snippsat 7366
deanhystad 6890
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
aidajnrz7704 Today
Jillscitt Yesterday
Stowersw Yesterday
Intel Yesterday
Gichardaxora Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020