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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 32 Guest(s)
Google, Bing, Apple

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:56 AM
» Replies: 4
» Views: 134
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 109
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 81
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 122
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,204
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,374
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,574
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 197
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,205
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,455

 
  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

  Cannot import Langchain and openai.
Posted by: standenman - May-21-2023, 09:39 PM - Forum: Data Science - Replies (2)

I have a python virtual environment set up. I have installed langchain and openai. The cmd command "(MedSpacyVenv) C:\Users\stand\MedSpacyVenv>pip f..... More

Print this item

  My own Lan system
Posted by: Phidias618 - May-21-2023, 08:47 PM - Forum: Code Review - Replies (2)

Hey, I recently create a game, who need a comunication between 2 player and I came out with this, I just wan't to know if this code is not too terribl..... More

Print this item

  Get the value of arcsine(x) in a manner that I can understand.
Posted by: Pedroski55 - May-21-2023, 12:15 PM - Forum: General Coding Help - Replies (4)

I was never good at maths!

Now, I want to get the value of arcsine(y), given any particular sine(x) = y

I can plot sine(x), and, as I understand..... More

Print this item

  Output 'None'
Posted by: liketocode - May-21-2023, 11:27 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello

I have a problem with this site so i would like to know what im doing wrong. It works for another sites.
I'm practicing simple web scraping..... More

Print this item

  PyPI new user and new project registrations temporarily suspended.
Posted by: rob101 - May-20-2023, 09:28 PM - Forum: News and Discussions - Replies (2)

An interesting News Flash:

Incident Report for Python Infrastructure

[quote]
New user and new project name registrati..... More

Print this item

Sad I'm stuck with the reinforcement learning function in my Code
Posted by: OskiLori - May-20-2023, 07:31 PM - Forum: General Coding Help - Replies (2)

Hello everybody! I've got a problem with my code for my "VoiceAssistent", the normal code with speak function works well and makes everything right bu..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... Today, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578712
  Tutorial Requ... 509289
  Web Scraping ... 441856
  Newbie with P... 385811
  New Users Int... 375204
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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