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,924
» Latest member: Fobertsmene
» Forum threads: 38,719
» Forum posts: 175,490

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 30 Guest(s)
Applebot, Google, AOL, Mojeek, AOL

Latest Threads
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 2
» Views: 341
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
8 hours ago
» Replies: 7
» Views: 1,628
Python Installation issue
Forum: News and Discussions
Last Post: Dev
8 hours ago
» Replies: 4
» Views: 15,554
New to the field
Forum: News and Discussions
Last Post: Larz60+
11 hours ago
» Replies: 1
» Views: 286
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Today, 02:34 AM
» Replies: 1
» Views: 318
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:34 PM
» Replies: 5
» Views: 623
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Yesterday, 06:11 AM
» Replies: 5
» Views: 1,404
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,377
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,098
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,339

 
  smtplib send email has no timestamp
Posted by: Pedroski55 - Jun-10-2024, 07:17 AM - Forum: General Coding Help - Replies (2)

I want to send emails to customers automatically. So I am testing with just 5 email addresses to see how it works

I import these

[python]import ..... More

Print this item

  how to test if something is a sequence?
Posted by: Skaperen - Jun-09-2024, 11:54 PM - Forum: General Coding Help - Replies (11)

how to test if something is a sequence (as opposed to merely a list)?

Print this item

  Variable being erased inside of if statement
Posted by: deusablutum - Jun-09-2024, 07:50 PM - Forum: General Coding Help - Replies (8)

On the program I'm currently working on I have a variable that disappears at an if statement and I can't figure out why. Here is sort of what the code..... More

Print this item

  Guidance for the basic concept send/receive a heartbeat signal
Posted by: StefanL38 - Jun-09-2024, 01:40 PM - Forum: General Coding Help - Replies (1)

Hi Everybody,

I have some experience in programming pascal / delphi and C++.
So this means I know the basic concepts. But I have almost no knoweld..... More

Print this item

  Regex to catch what user has put in text box
Posted by: robertkwild - Jun-09-2024, 01:09 PM - Forum: General Coding Help - Replies (26)

hi all,

this is a small snippet from my python flask-wtf code

[python]
class PasswordForm(FlaskForm):
un = StringField('Username', [InputR..... More

Print this item

  How to compare specific elements of a TSV in difflib
Posted by: gonksoup - Jun-08-2024, 12:11 PM - Forum: General Coding Help - Replies (1)

This compare routine works fine to constrain the search to specific rows and columns. However, the column limits are useless if I want to compare 2 T..... More

Print this item

  Formatting DateTime string and and converting it from AM/PM to 24 hours
Posted by: tester_V - Jun-08-2024, 06:53 AM - Forum: General Coding Help - Replies (2)

Greetings!
Here are two snippets, it seems both are right but only first one is working:
I'm confused why the second one is not working:
[python]
dt_s..... More

Print this item

  Is NaN a float?
Posted by: Pedroski55 - Jun-08-2024, 06:19 AM - Forum: General Coding Help - Replies (4)

Is NaN a float?

The girlfriend works for a company that exports agrochemicals. She sent me an Excel with about 250 customers details, mostly in Afr..... More

Print this item

  Warn user of validation error before they click submit
Posted by: robertkwild - Jun-07-2024, 08:17 PM - Forum: General Coding Help - Replies (1)

hi all,

so ive done a flask-wtf form but instead of warning users after they click the “submit button” i want it to warn them before ie as soon as ..... More

Print this item

  how solve: local variable referenced before assignment ?
Posted by: trix - Jun-07-2024, 05:27 PM - Forum: General Coding Help - Replies (5)

hello,

i am writing a code for a stepper motor, it moves from the left to the right.
i limit the movement with a software limit.
if the stepper g..... More

Print this item

  Reading an ASCII text file and parsing data...
Posted by: oradba4u - Jun-07-2024, 04:55 PM - Forum: General Coding Help - Replies (2)

I have attached a sample Scores file from a HR Derby app (qaz.txt). it is an ASCII text file.
I am attempting to write a python program to read this ..... More


Attached Files

.py   derby_read.py (Size: 1.89 KB / Downloads: 187)
.txt   qaz.txt (Size: 35.87 KB / Downloads: 176)
Print this item

  colomns error
Posted by: konya42 - Jun-07-2024, 08:18 AM - Forum: General Coding Help - No Replies

[python][quote]import pandas as pd

# Location of the Excel file and the name of the sheet
file_path = r'C:\Users\elf\Desktop\BUY.xlsx'
sheet_name..... More

Print this item

  Most efficient way to roll through a pandas dataframe?
Posted by: sawtooth500 - Jun-07-2024, 03:31 AM - Forum: General Coding Help - Replies (2)

See the below example of a pandas df.

Assumptions - The datetime index will ALWAYS be at 1 second interval

So I need a "rolling" window of this..... More

Print this item

  Explosion hits enemies, they explode as well
Posted by: flash77 - Jun-06-2024, 07:22 PM - Forum: Game Development - Replies (4)

Hello,
I'm currently programming a small game and, apart from 2 topics, I'm almost finished. There is one topic I would like to ask about today. When..... More

Print this item

  HTTP, python size e upload file
Posted by: it6 - Jun-06-2024, 01:06 PM - Forum: Networking - No Replies

Hello everyone,

I need to use the HTTP API of transfernow (https://developers.transfernow.net/) to implement a Python application that allows you t..... More

Print this item

  Do any of you work with a devopment team?
Posted by: phpjunkie - Jun-06-2024, 08:26 AM - Forum: Bar - Replies (1)

If you do, do you have a supervisor that checks your code?

Print this item

Question Tetris... xpos, ypos of next block is not initialized after hard drop
Posted by: dddd123p - Jun-06-2024, 06:05 AM - Forum: Game Development - No Replies

(sorry poor english)
Hello.
I have trouble in making tetris.
I can't make xpos, ypox of next block be initialized after hard drop.
How I mo..... More

Print this item

  Downloading Page Source From URL List
Posted by: zunebuggy - Jun-05-2024, 06:51 PM - Forum: General Coding Help - Replies (11)

[python]from urllib.request import urlopen
from pathlib import Path

with open(r'D:\Desktop\sites.txt', 'r', encoding='UTF-8') as file:
while ..... More

Print this item

  raspberry pi in a python script
Posted by: Raysz - Jun-05-2024, 12:44 PM - Forum: General Coding Help - Replies (5)

Quote:Hey everyone
so I have this simple function for my raspberry pi
and I made a python file it does work

[python]
from gpiozero ..... More

Print this item

  Webscrape script, add to run every day at a specific time
Posted by: jjcooper - Jun-04-2024, 05:51 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

I have the following code which pulls data from the web (Booking.com). Does anyone know how to add code to it which would run it every day a..... More

Print this item

  <Figure size 640x480 with 0 Axes> problem during plotting in matplotlib
Posted by: Kashfi - Jun-04-2024, 12:07 PM - Forum: Data Science - Replies (1)

I am trying to plot a PDP plot using Matplotlib, but I find an error that indicates that figures were created but nothing was drawn on it.
This is my..... More


Attached Files

Thumbnail(s)
       
Print this item

  Error Calculating Circle Area in Python
Posted by: aaronramsdale - Jun-04-2024, 07:20 AM - Forum: General Coding Help - Replies (1)

I'm working on a Python script to calculate the area of different shapes. I have functions defined for calculating the area of a square and a rectangl..... More

Print this item

  Having difficulty with threads and input()
Posted by: sawtooth500 - Jun-03-2024, 07:34 PM - Forum: General Coding Help - Replies (13)

Hello,

I have the below function running on it's own thread:

[python]
def handle_input(ws, stop_event):
while not stop_event.is_set():
..... More

Print this item

  DEC pack, unpack and disk-images
Posted by: Curbie - Jun-03-2024, 06:57 PM - Forum: General Coding Help - Replies (32)

Pyton newbie here, but programming in one language or another 50 years. Someone who’s opinion I trust said I should look into python because of it’s r..... More

Print this item

Shocked async was never was never awaited but the await is still in the code
Posted by: Nietzsche - Jun-03-2024, 05:00 PM - Forum: General Coding Help - Replies (3)

Hello, in this script i get an freezing window after i activate the checkbox IR raw:

[python]import pyqtgraph as pg
from PyQt6.QtWidgets import QM..... More

Print this item

  3-d surface plotting
Posted by: Tuxedo - Jun-03-2024, 04:59 PM - Forum: General Coding Help - Replies (11)

Looking for a Python package for publication quality 3d surface plots. The surfaces I deal with have just a single peak but can have odd shapes near ..... More

Print this item

  Please Help With Syntax - New To Python 3
Posted by: jgbarber65 - Jun-03-2024, 03:07 PM - Forum: General Coding Help - Replies (4)

I am new to Python 3, old to BASIC and VB. I have a text list of URLs and I want to increment through the list and simply save the HTML of each URL a..... More

Print this item

  Troubleshooting Jupyter Notebook installation with Python using pip and a venv
Posted by: Drone4four - Jun-03-2024, 01:00 AM - Forum: General Coding Help - Replies (1)

I’m struggling to set up and manage my Jupyter Notebook development environments.

..... More

Print this item

  Extracting the correct data from a CSV file
Posted by: S2G - Jun-02-2024, 08:07 PM - Forum: General Coding Help - Replies (6)

Writing a code where I can extract data from this file.

.csv   satellites.csv (Size: 8.59 KB / Downloads: 236)
Someone able to help to write a code that can, for example:

"Print a..... More

Print this item

Bug Debugging live plotting data
Posted by: Nietzsche - Jun-02-2024, 03:59 PM - Forum: General Coding Help - Replies (1)

Hello,

i have an phyton script for live plotting data. First i send 2 arrays via 100 numbers via ble to my PC (esp32 C++). Then i handle the data in ..... More

Print this item

Bug Copying methods to effect the new owner instead of the old instance
Posted by: Daniel285 - Jun-02-2024, 02:02 PM - Forum: General Coding Help - Replies (2)

Here is my code, with a small debug loop...

[python]
class foo:
def __init__(self, message="hello Damien", rotation=0):
self.message..... More

Print this item

  is this a valid variable name?
Posted by: Skaperen - Jun-02-2024, 03:07 AM - Forum: General Coding Help - Replies (6)

i have a str and i want to test if it is a valid variable name in the running version of Python. is str.isalpha() sufficient to perform such a..... More

Print this item

  Python Code Help - pip install PyMuPDF python-docx pillow
Posted by: Splishsplash92 - May-31-2024, 09:04 PM - Forum: General Coding Help - Replies (3)

I have this code below. The purpose of the code is to: extract the paragraphs that include an asterisk and its associated photos, from a PDF document,..... More

Print this item

  equalto validator doesnt work
Posted by: robertkwild - May-31-2024, 05:47 PM - Forum: General Coding Help - Replies (1)

hi all,

my code below doesnt work ie the new password and confirm new password, the user on the web when they click the submit button they dont get..... More

Print this item

  Need help setting up trusted root ca in virtual environment
Posted by: dstempfley - May-31-2024, 03:14 PM - Forum: General Coding Help - No Replies

I have a RHEL 8 system and am writing a script that uses requests to access an internal website. The environment is configured with the internal cert..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data input while debuggin... 4 hours ago fred1232 deanhystad General Codin...
  New to Python and Pygame 8 hours ago JMcM JMcM Game Developm...
  Python Installation issue 8 hours ago RFHill Dev News and Disc...
  New to the field 11 hours ago Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Today, 02:34 RonR deanhystad GUI
  Select Python comment (#)... Yesterday, 13:34 SpongeB0B snippsat General Codin...
  I'm trying to make a piec... Yesterday, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575574
  Tutorial Requ... 496589
  Web Scraping ... 439650
  Newbie with P... 383267
  New Users Int... 364357
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+ 12087
buran 8174
snippsat 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Fobertsmene Today
jeremyn24503 Today
homataheri Today
Dev Today
RonR Yesterday

User Panel Messages

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