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,468
» Latest member: AymanNassar
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 700 online users.
» 0 Member(s) | 695 Guest(s)
Bing, Yandex, Google, Applebot

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 182
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 132
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,315
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 102
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 365
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,175
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 363
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 424
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 987
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 225

 
Question [solved] compressing files with python.
Posted by: SpongeB0B - May-26-2023, 02:54 PM - Forum: General Coding Help - Replies (1)

Hi everyone,

I'm looking for Pytonic readable way to compress files.

I've found https://docs.python.org/3/library/gzip.html

with which I came..... More

Print this item

  remote work
Posted by: MCL169 - May-26-2023, 01:58 PM - Forum: Jobs - Replies (1)

I am changing careers later in life and started back to school. I want to have the freedom to work remotely and stay employable. I'm finishing up my f..... More

Print this item

  Notice about PyPi and your security
Posted by: Larz60+ - May-26-2023, 11:36 AM - Forum: News and Discussions - No Replies

FYI:
Just read this one: PiPi Hands over user data

Print this item

  Openpyxl module breaking my code
Posted by: EnderSM - May-26-2023, 10:44 AM - Forum: General Coding Help - Replies (5)

I was working on a discord bot and wanted to scrape data from an excel spreadsheet so I installed the pandas library and imported it into my file. I w..... More

Print this item

  FTS5 again
Posted by: DPaul - May-26-2023, 07:13 AM - Forum: Bar - No Replies

FTS5 again, and not for the last time. Sad
I have a hard time comparing the various docs we have uncovered,
and making sense of what they try to..... More

Print this item

  Software Engineer - Backend at Rapyuta Robotics
Posted by: djangojobs.net - May-26-2023, 06:09 AM - Forum: Jobs - No Replies

Learn More from
djangojobs.net/jobs/1190/software-engineer-backend-rapyuta-robotics/

Koto City,Tokyo,Japan

Description

Our Tokyo engineering..... More

Print this item

  The way to chase how the set of integer is iterated in mutating loop
Posted by: khei4 - May-26-2023, 05:49 AM - Forum: General Coding Help - Replies (4)

Hi! I'm new to Python source code reading, but I'm curious and I want to chase the following example's execution on CPython source level
[python]
x ..... More

Print this item

  Badly defined python code?
Posted by: Ken76 - May-25-2023, 08:01 PM - Forum: General Coding Help - Replies (2)

I get following error message with my python code.
[i] File "/home/ken/Programming/temp.py", line 20
try:
IndentationError: unexpected indent[/..... More

Print this item

  Simple Question - ' defined as "a". ?'
Posted by: Ryan012 - May-25-2023, 01:37 PM - Forum: General Coding Help - Replies (10)

I have one error for no defined as "a". How can we define "a"? Angel Blush

import a as l

def sum (x, y):
return x + y


..... More


Attached Files

Thumbnail(s)
   
Print this item

  Handshake ( Server Hello )
Posted by: JohnnyCoffee - May-25-2023, 10:38 AM - Forum: Networking - Replies (2)

Do I need to send a ( Server Hello ) as a response to the handshake ( Client Hello ) received, but I couldn’t find out why it doesn’t work? If I can h..... More

Print this item

  getting wrong source IP address using socket and struct
Posted by: billykid999 - May-25-2023, 08:56 AM - Forum: Networking - Replies (1)

I'm sending a ping from a lab environment to my looback on machine. Whether I send the ping sourced from routers in the lab, virtual ips on my pc, oth..... More

Print this item

Question How to annotation type?
Posted by: gamecss - May-25-2023, 03:20 AM - Forum: General Coding Help - Replies (4)

There is a simple function.
[python]
def func(a: AnyStr, *b: AnyStr) -> Tuple[Optional[AnyStr], AnyStr]:
for _b in b:
if a.startswith(_b):
..... More

Print this item

  Application becomes unresponsive as soon as i use the buttons
Posted by: AX_LEARNS - May-25-2023, 01:41 AM - Forum: GUI - Replies (2)

Not sure on why it happens as im still very new to python... Any suggestions or can you guys see any reason of why it might be happening??

[python]..... More

Print this item

  Problem with playing sounds
Posted by: jderickson - May-24-2023, 08:03 PM - Forum: General Coding Help - Replies (5)

Hello,
New poster here. I've been having a problem that I don't know if it is related to Python or to Debian Linux. I have written a very simple scri..... More

Print this item

  Installing From Pip Using -f
Posted by: nyoungarcc - May-24-2023, 06:51 PM - Forum: General Coding Help - Replies (3)

Hello,


I am trying to install a requirements.txt file. This is what it consists of.
[output]
torch~=2.0.0
torchvision==0.10.0+cu102 -f https:/..... More

Print this item

  Minimax algorithm
Posted by: freethrownucleus - May-24-2023, 05:12 PM - Forum: Game Development - Replies (3)

Is there anyway I can make my minimax algorithm stronger? (For a tic-tac-toe game.)

[python]
def minimax(mark, square, alpha=-1000, beta=1000, dep..... More

Print this item

  Sqlite not updating
Posted by: angus1964 - May-24-2023, 04:37 AM - Forum: General Coding Help - Replies (21)

I have a program that records score when practicing darts, then shows them in a high score table.
[python]
def addToDb(self):
name = self.n..... More

Print this item

  Possible to create an object inside another object that is visible outside that objec
Posted by: MeghansUncle2 - May-24-2023, 01:10 AM - Forum: General Coding Help - Replies (17)

I know it sounds confusing so I'll try to illustrate the question

in Main:

self.myobj = myclass


self.myobj(parameters)
..... More

Print this item

  How do I suppress "Cmd exec error."
Posted by: xplet - May-23-2023, 09:49 PM - Forum: Networking - Replies (1)

How do I suppress "Cmd exec error."


[python]
import paramiko

# ...

cli_x = "something unknown"
ssh_client = paramiko.SSHClient()
stdin,..... More

Print this item

  How do i listen to loopback address on my local computer, without a port
Posted by: billykid999 - May-23-2023, 08:30 PM - Forum: Networking - Replies (6)

I want to listent to my loopback address on my windows PC, without attaching it to a port. I want to listent to any messages, or ICMP pings sourced fr..... More

Print this item

  [solved] list of list with one or more empty one
Posted by: paul18fr - May-23-2023, 05:39 PM - Forum: Data Science - Replies (5)

Hi

Without using a loop, is there a way to find an empty list as showing in the following example?

The idea is to find the location and t..... More

Print this item

  What is the fastest way to get all the frames from a video file?
Posted by: glorsh66 - May-23-2023, 03:33 PM - Forum: General Coding Help - Replies (3)

What is the fastest way to get all the frames from a video file?

Print this item

  infinity jump problem
Posted by: augusto_A - May-23-2023, 02:12 PM - Forum: Game Development - Replies (3)

hey hi, i add jump to my game but the charracter can keep jumping infinitely, how do i fix that? heres my code
[python]import pygame, sys

leve..... More

Print this item

  SQLite question
Posted by: DPaul - May-23-2023, 07:04 AM - Forum: General Coding Help - Replies (3)

Hi,
I am using SQLite (version 2.6.0)
Somewhere in the code I need to check if there is an active connection to a database.

In mySQL there is someth..... More

Print this item

  Updating Code And Having Issue With Keys
Posted by: Xileron - May-23-2023, 04:51 AM - Forum: General Coding Help - Replies (8)

Hello, I'm currently updating some code from a plug-in for Maya (the animation software) from Python 2 to Python 3 and noticed I was having some issue..... More

Print this item

  Regex Include and Exclude patterns in Same Expression
Posted by: starzar - May-23-2023, 02:38 AM - Forum: General Coding Help - Replies (2)

How to split sep = "," at only ")," and exclude "%," ?

[python]text = "METAL (3.25%,a/d=13/1),IT(2.31%,a/d=10/0),HEALTHCAREINDEX(1.32%,a/d=13..... More

Print this item

  why globals() exits python when quit() is aliased as q
Posted by: abc12346 - May-23-2023, 01:56 AM - Forum: General Coding Help - Replies (4)

I was trying to set up my python so that typing 'q' or 'quit' (instead of 'quit()') will exit the python interpreter, by doing:
[python]type(quit).__..... More

Print this item

  with open context inside of a recursive function
Posted by: billykid999 - May-23-2023, 01:42 AM - Forum: General Coding Help - Replies (1)

I'm writing code to check various routers, part of it includes checking the traffic statistics, which is parsed per router. So I need either an open('..... More

Print this item

  Index out of range error
Posted by: standenman - May-22-2023, 10:35 PM - Forum: Data Science - No Replies

I am trying to simply load a pdf doc and use langchain to process so I could query it with ChatGPT. I cannot get past loading the pdf doc. Cannot fig..... More

Print this item

  Creating a GUI
Posted by: flash77 - May-22-2023, 01:18 PM - Forum: GUI - Replies (2)

Hi,
as required, I started a new thread.

I'm very sorry for asking again, but unfortunately I can not handle this...

Could you please help me a..... More

Print this item

  Variables in a SCPI string
Posted by: thomaswfirth - May-22-2023, 01:00 PM - Forum: General Coding Help - Replies (3)

Hi, I'm new to Python programming and have been unable to find help with a question.
Can a variable be used within a SCPI command? I would like to se..... More

Print this item

  [Newbie] Multiple Array
Posted by: azhuda - May-22-2023, 09:19 AM - Forum: General Coding Help - Replies (3)

Hello, im just new in this python language,
Im seeking some advice or help on return value
My situation / scenario is like this :
im currently work..... More

Print this item

  Advancing Page Numbers
Posted by: knight2000 - May-22-2023, 07:09 AM - Forum: General Coding Help - Replies (4)

Hi all,

I want to be able to scrape different pages and categories within the same website. I have this code so far:

[python]from bs4 import Bea..... More

Print this item

  Convert a subreddit to a podcast with Python
Posted by: admtal - May-22-2023, 12:23 AM - Forum: Code sharing - No Replies

I'm thrilled to share my latest open source project with you, a Python script that turns a subreddit into a podcast!

https://github.com/AdmTal/cro..... More

Print this item

  Error 1064 (42000) when executing UPDATE SQL
Posted by: gratiszzzz - May-21-2023, 11:12 PM - Forum: General Coding Help - Replies (7)

Good afternoon:

I am trying to run an UPDATE query in SQL from python. I think the statement is correct, but it constantly returns an error. I do n..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564350
  Tutorial Requ... 452231
  Web Scraping ... 429325
  Newbie with P... 364373
  Thread remain... 336823
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15
JeanChristophe 05-14
EZEKIELGRAPHICSMEDIA 05-14

User Panel Messages

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