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,918
» Latest member: Jillscitt
» Forum threads: 38,717
» Forum posts: 175,481

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 42 Guest(s)
Google, Bing, AOL, AOL, Facebook, Internet Archive

Latest Threads
Select Python comment (#)
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 202
New to the field
Forum: News and Discussions
Last Post: Polybunny
4 hours ago
» Replies: 0
» Views: 42
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Yesterday, 03:23 PM
» Replies: 4
» Views: 2,205
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 11:09 AM
» Replies: 2
» Views: 771
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Yesterday, 08:36 AM
» Replies: 1
» Views: 2,076
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-11-2025, 08:39 PM
» Replies: 6
» Views: 1,393
I'm trying to make a piec...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-11-2025, 05:54 PM
» Replies: 4
» Views: 1,035
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-11-2025, 05:34 PM
» Replies: 5
» Views: 1,159
pip fails to install PyGO...
Forum: General Coding Help
Last Post: Larz60+
Sep-11-2025, 10:50 AM
» Replies: 2
» Views: 1,727
how to manage crypto trad...
Forum: General Coding Help
Last Post: Mercyto
Sep-11-2025, 06:01 AM
» Replies: 2
» Views: 2,894

 
  Error without reason
Posted by: Azdaghost - May-27-2025, 01:29 PM - Forum: General Coding Help - Replies (4)

Hello and I'm trying to make a custom language (again) and I came across this problem
I got an error but without an reason:

[error]
>>> 1
Traceb..... More

Print this item

Question [SOLVED] Open file, and insert space in string?
Posted by: Winfried - May-27-2025, 01:25 PM - Forum: General Coding Help - Replies (7)

Hello,

Before I look deeper, is there a simple way to loop through each line of a text file, and append a space within a string?

I need to perfo..... More

Print this item

  Nested Dictionaries, good programming practice?
Posted by: Curbie - May-26-2025, 09:06 PM - Forum: General Coding Help - Replies (6)

I’m still playing around with nested dictionaries trying to store an ancient and arcane file system in memory to implement a PC <> Alpha file transfer..... More


Attached Files

.txt   fs.txt (Size: 149.54 KB / Downloads: 65)
Print this item

  Picamera2 add text to camera preview
Posted by: GigiG - May-26-2025, 11:46 AM - Forum: General Coding Help - No Replies

I have a Picamera2 640*480 preview running on my 800*480 DSI LCD (see photo), so there is some free room at right (it's blue because I placed a blu im..... More


Attached Files

Thumbnail(s)
   
Print this item

  Enhancement for Python’s zipimport
Posted by: 14mhz - May-26-2025, 11:40 AM - Forum: Code sharing - Replies (1)

Hello~

There seem to be some little problems with Python's zipimport, so I tried to improve it.
Of course, zipimport is very very awesome. (Thanks to..... More

Print this item

  PYTHONHOME Variable correct setting
Posted by: msetzerii - May-25-2025, 11:48 PM - Forum: General Coding Help - No Replies

Running latest LibreOffice package on Fedora 42 saw message about recommendation to setting the PYTHONHOME environment variable.

Found lots of link..... More

Print this item

  Functions: why use a variable "display" in a UDF as a Boolean
Posted by: MMartin71 - May-25-2025, 04:05 PM - Forum: General Coding Help - Replies (3)

Hello,
Can someone explain why the following code includes the "display" variable in the function?

[python]def full_name(first, middle, last, di..... More

Print this item

  Unequal values when added with 0?
Posted by: Azdaghost - May-23-2025, 09:41 PM - Forum: General Coding Help - Replies (1)

Hello! I'm trying to make a rainbow cube and realized this
why does this output 0...

print(6%6)
but this outputs 6?
[python]print..... More

Print this item

  backtesting can't optimize
Posted by: Running_Code - May-23-2025, 03:19 PM - Forum: General Coding Help - Replies (1)

[python]from backtesting import Strategy, Backtest
import yfinance as yf
import pandas as pd
import numpy as np
import pandas_ta as ta

# === Do..... More

Print this item

Question Call CLI app with input?
Posted by: Winfried - May-23-2025, 11:27 AM - Forum: General Coding Help - Replies (5)

Hello,

Does someone know how to call a CLI application in Windows with an input field?

As show, I tried calling it with a full string, an array,..... More

Print this item

  Languages
Posted by: Azdaghost - May-22-2025, 12:15 PM - Forum: General Coding Help - Replies (2)

Hello Python Community! I have a question:
Can you code in another language?

Example:

распечатать("привет")

Print this item

  Python automation: Sending clicks/keys to VMware virtual machine from host
Posted by: olips784 - May-18-2025, 06:28 PM - Forum: General Coding Help - No Replies

Hello,
I have a Windows 10 host machine running VMware Workstation with a virtual machine (VM) inside it. I run a game inside the VMware VM, and I wa..... More

Print this item

Question Import vs from x import
Posted by: Calab - May-15-2025, 01:58 PM - Forum: General Coding Help - Replies (1)

I'm trying to figure out why you would create a containing class if you were just going to import it from a file, vs just creating the g..... More

Print this item

  tracking version during run
Posted by: Skaperen - May-15-2025, 12:25 AM - Forum: News and Discussions - Replies (2)

suppose there is a Python script that intends to be run if the host has a version at or above a specific version X.Y. suppose the host also has an ol..... More

Print this item

  class Blockage not projecting
Posted by: Azdaghost - May-14-2025, 01:09 PM - Forum: General Coding Help - Replies (1)

Hello! I am making a module similar to pygame, and I have a problem.
whenever I type in this:

[python]blockage = display.Blockage(10, 10, 50, 50,..... More

Print this item

  Return a string or byte object from Enum class?
Posted by: Calab - May-13-2025, 03:57 PM - Forum: General Coding Help - Replies (5)

I wish to have a class that simply contains some values. I want to avoid using the .value attribute. In other words I want to use "class.my_enum" to g..... More

Print this item

  Library Management System
Posted by: annajoy - May-13-2025, 12:59 AM - Forum: Homework - Replies (1)

Hi everyone,

I'm working on a P..... More

Print this item

Question Why are the PythonT symlinks created by default (macOS)
Posted by: gernophil - May-12-2025, 08:10 AM - Forum: News and Discussions - No Replies

Hey everyone,
I just installed Python3.13 from python.org and I was wondering about all the PythonT symlinks in /usr/local/bin:

`python3.13t->....... More

Print this item

  Pip help
Posted by: meditek - May-11-2025, 06:14 PM - Forum: General Coding Help - Replies (4)

I was told by the author of a github showing to run this command after installig Python :-

pip install opencv-python numpy python3_xlib pyautogui ..... More

Print this item

  smbus.SMBus i2c code which worked to v.3.7.3 does not on Python 3.11.2
Posted by: NewbyTyro - May-11-2025, 11:41 AM - Forum: General Coding Help - Replies (2)

The code below has worked on a set of Raspberry Pi 2B single board computers in my workshop for some years now, each of them using a local real time c..... More

Print this item

  Tkinter: Problem with storing data from one window to the other
Posted by: iforire - May-11-2025, 08:44 AM - Forum: General Coding Help - Replies (1)

Dear all,

I am very new to Python and Tkinter, so sorry if the question is very basic.
I cannot manage to store the value of a parameter, here "va..... More

Print this item

  where variable arguments is documented
Posted by: Skaperen - May-11-2025, 01:51 AM - Forum: News and Discussions - Replies (1)

i am looking for official documentation in the references for how arguments are provided to functions that are to get a variable number of arguments, ..... More

Print this item

  [Python] Issue of Adding Single and Bulk Vouchers to UserMan
Posted by: Aymen - May-10-2025, 06:39 PM - Forum: General Coding Help - No Replies

Hi , i have the following code to add bulk of voucher (users) to Mikrotik UserMan Radius , it's working ok but when i add vouchers , Mikrotik CPU util..... More

Print this item

  Review of a ping tool made with PyQt6
Posted by: suburbanprojects - May-10-2025, 08:51 AM - Forum: Code Review - Replies (2)

I made a basic ping tool with PyQt6, so just wondering if further improvements could be made. One thing I did notice was a moment will pass before it ..... More

Print this item

  Monitor Computer Internal Clock
Posted by: EdMcCauley - May-09-2025, 02:32 PM - Forum: General Coding Help - Replies (3)

I'm working on my first Python program. I need to set up an internal timer so that an equation will be solved to produce updated data at 1 second inte..... More

Print this item

  total Noob question: Why is the code not executed
Posted by: MarkMan - May-09-2025, 10:23 AM - Forum: General Coding Help - Replies (5)

I am a total noob at learning python (day 6) and i gave myself a homework.

The program is a game where the user has to guess a number between 1-100..... More

Print this item

  How to use isintance with condition?
Posted by: Azdaghost - May-07-2025, 11:21 PM - Forum: General Coding Help - Replies (3)

Hello! I am trying to make my own language and I came across a problem.

I want it to check the type of data the user inputted, but the thing is tha..... More

Print this item

  problems with netcdf if I compile Android
Posted by: Blaubart - May-07-2025, 06:22 PM - Forum: General Coding Help - Replies (16)

Hi,

I try to compile this repository for Android:
https://github.com/OpenSoaring/OpenSoar

I get this error:
root@Werkstatt:/home/dirk/openvari..... More

Print this item

  500 Internal Server error trying to run external Python script via HTML
Posted by: ppowell777 - May-07-2025, 12:14 AM - Forum: Web Scraping & Web Development - Replies (3)

I am running a very simple HTML script on IIS 10.0 using Brython to communicate with a Python script.

HTML:

[code=html]
<html>
<!-- Based on h..... More

Print this item

  Text frame
Posted by: dnabtuh - May-06-2025, 10:24 PM - Forum: Homework - Replies (2)

Python and AutoCAD

Hi All

Anyone has a code or and idea how to draw in AutoCAD tight (offset = 0 ?) frame around text using python coding? I nee..... More


Attached Files

Thumbnail(s)
   
Print this item

  Gomoku game problem
Posted by: snl_9527 - May-06-2025, 03:07 AM - Forum: General Coding Help - Replies (6)

[python]
import pygame
pygame.init()

#game constants
WINDOW_SZ = 720
BOARD_SZ = 16
COLOR = [(255,255,255),(0,0,0)]
LINE_COLOR = (0,0,0)
BOAR..... More


Attached Files

.zip   gomokuame.zip (Size: 33.15 KB / Downloads: 78)
Print this item

  Question regarding Python
Posted by: LPTtech - May-05-2025, 02:43 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I'm working on a project that requires both data acquisition and equipment control. One of the key components I need to interface with..... More

Print this item

  How to space data on x axis
Posted by: m_kdch - May-05-2025, 12:55 PM - Forum: General Coding Help - Replies (2)

Hi everyone!

I'm trying to represent some data with matplotlib. For this particular set, I need to compare only two data, each composed of a mean +..... More


Attached Files

Thumbnail(s)
   
Print this item

  Retired and Learning Python
Posted by: breacsealgaire - May-04-2025, 04:26 AM - Forum: Code sharing - Replies (3)

After 50 years of software development from IBM 360 mainframes to Azure cloud I've decided to keep active at home and decided Python looked interestin..... More

Print this item

  tkinter only storing last element/data from entry widget
Posted by: bertschj1 - May-03-2025, 11:49 PM - Forum: General Coding Help - Replies (8)

Hello. I'm new here, and in desperate need of help! I don't have much experience with tkinter, so I may have botched something along the way. Here's m..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#) 2 hours ago SpongeB0B deanhystad General Codin...
  New to the field 4 hours ago 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 ...
  I'm trying to make a piec... 09-11, 17:54 Alislugacool DeaD_EyE General Codin...
  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... 575351
  Tutorial Requ... 496044
  Web Scraping ... 439482
  Newbie with P... 383052
  New Users Int... 363529
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 7365
deanhystad 6890
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Jillscitt Yesterday
Stowersw Yesterday
Intel Yesterday
Gichardaxora Yesterday
Olivia Yesterday

User Panel Messages

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