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,400
» Latest member: zcharlesoogleto9533
» Forum threads: 38,826
» Forum posts: 176,030

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 35 Guest(s)
Google, Bing, Applebot, AOL

Latest Threads
Womens From Your City - A...
Forum: General Coding Help
Last Post: Larry1888
53 minutes ago
» Replies: 0
» Views: 18
What Happens At The End O...
Forum: General Coding Help
Last Post: asauellittle8716
1 hour ago
» Replies: 0
» Views: 21
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 1
» Views: 41
Погрузитесь в ясность аза...
Forum: General Coding Help
Last Post: luisfrancesz3208
1 hour ago
» Replies: 0
» Views: 11
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,587
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 177
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,593
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 142
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 289
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,107

 
  try_finally question
Posted by: akbarza - Oct-07-2023, 11:22 AM - Forum: General Coding Help - Replies (3)

hi
I saw the below code on the net:
[python]def foo():
try:
return 1
finally:
return 2


k=foo()
print(k)[/pytho..... More

Print this item

  Isolate all images from a pdf document
Posted by: cybertooth - Oct-07-2023, 07:46 AM - Forum: General Coding Help - Replies (7)

Hi everyone. I am trying to isolate images from a pdf file. The problem I am facing is that all the images are not isolated, out of the 3 images the c..... More


Attached Files

.pdf   doc3.pdf (Size: 201.99 KB / Downloads: 243)
Print this item

  IP address for users
Posted by: Robots - Oct-07-2023, 06:10 AM - Forum: Networking - Replies (4)

Hi all -

Using Python 3 .

I have been tasked with logging the IP address, date and time when users attempt to access a database. There are many..... More

Print this item

Photo read matlab data
Posted by: pz16 - Oct-06-2023, 08:28 PM - Forum: Data Science - Replies (1)

Hello,
I have some data stored in a matab file (data.mat). The data is stored in a table as shown in the following figure (screen shot from matlab)...... More


Attached Files

Thumbnail(s)
   

.zip   data.zip (Size: 38.14 KB / Downloads: 5)
Print this item

  Lists
Posted by: blake7 - Oct-06-2023, 11:22 AM - Forum: General Coding Help - Replies (6)

Fairly new to Python, having some issues with lists.

I am trying to scrape a Cisco Switch config file

So I am splitting the file using ! and the..... More

Print this item

  problem In using functools in a code
Posted by: akbarza - Oct-06-2023, 10:27 AM - Forum: General Coding Help - Replies (7)

hi
in code:
[python]# from: https://python.coderz.ir/lessons/l13-dec...tions.html
import functools
import..... More

Print this item

  Splitting imports off into a separate thread - suggestion for importlib
Posted by: ArnoDuvenhage - Oct-06-2023, 09:38 AM - Forum: News and Discussions - Replies (1)

I don't know where to make such a suggestion, so I'm bringing the topic up on this forum.

In short, I have a proof of concept that allows a user to..... More

Print this item

  How to profile tornado web app ?
Posted by: umen - Oct-06-2023, 08:55 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello all,
I have a legacy Tornado web app that I need to profile. What is the best tool for that?
At first glance, it seems like there is a missin..... More

Print this item

  Help Scraping links and table from link
Posted by: cartonics - Oct-06-2023, 08:32 AM - Forum: Web Scraping & Web Development - Replies (11)

[python]from bs4 import BeautifulSoup
from bs4.dammit import EncodingDetector
import requests

parser = 'html.parser' # or 'lxml' (preferred) or ..... More

Print this item

  How to summarize an article that is stored in a word document on your laptop?
Posted by: Mikedicenso87 - Oct-05-2023, 09:26 PM - Forum: General Coding Help - Replies (2)

So I am new here.... I wrote a code in pycharm that summarizes articles online. This is the code below: it works fine. what about if I want to summari..... More

Print this item

  Alphabetical or ASCII?
Posted by: Mark17 - Oct-05-2023, 07:49 PM - Forum: General Coding Help - Replies (6)

Here's a program from an intro book:

[code]
x = input("Enter some input for identification: ")
if x.isalnum():
if x.isalpha():
r = ..... More

Print this item

  Find a specific keyword after another keyword and change the output
Posted by: sgtmcc - Oct-05-2023, 11:50 AM - Forum: General Coding Help - Replies (5)

I will start off by saying I am new to Python and I have searched Google for a fix to my problem. Maybe I did not search it well enough, or did not se..... More

Print this item

Sad Migrating of python2 script to python3
Posted by: zuri - Oct-05-2023, 11:27 AM - Forum: General Coding Help - Replies (7)

Hello Fellow Python users i have a frontend code and other backend,libraries that i need to convert them from python2 to python3 but while trying usin..... More


Attached Files

Thumbnail(s)
   
Print this item

  neeed to activate a custom tk slider
Posted by: janeik - Oct-05-2023, 03:34 AM - Forum: GUI - Replies (1)

hello.
At present time,I need to mouse click on the slider1 manually to activate it (to change transparency of a top level window.
How do I activate..... More

Print this item

  Online Python Editors with Built-in Compilers
Posted by: Elon_Warner - Oct-04-2023, 08:35 PM - Forum: News and Discussions - Replies (1)

In the ever-evolving world of programming, Python stands out as one of the most popular and versatile languages. Whether you're a seasoned developer o..... More

Print this item

  Different code execution times
Posted by: Wirbelwind94 - Oct-04-2023, 06:06 PM - Forum: General Coding Help - Replies (4)

Hi,
i have the problem with the following code that it takes extremely long time to run completely under Python 3.9 - 3.11. but under 3.6 - 3.8 it wo..... More

Print this item

  How to read module/class from list of strings?
Posted by: popular_dog - Oct-04-2023, 02:01 PM - Forum: General Coding Help - Replies (1)

How can I get 'string_wrong' to print out what 'correct' is printing out?

[python]
from google.cloud import bigquery

corret = [bigquery.SchemaF..... More

Print this item

  cant click button by script at page
Posted by: michael1834 - Oct-04-2023, 12:27 PM - Forum: Web Scraping & Web Development - Replies (1)

i try to click button, which, when clicked, should send the contract number and return data in the table

[quote]
<button class="k-primary k-button k-..... More

Print this item

  difference between forms of input a list to function
Posted by: akbarza - Oct-04-2023, 11:06 AM - Forum: General Coding Help - Replies (6)

hi
what is difference between f(b) and f(b[:]) in below? when i run them the outputs are different
1)
[python]b=[1,2]
id(b)
def f(a):
a[0]=3..... More

Print this item

  Resolving ImportError: No module named gdb (Python in C++)
Posted by: mandaxyz - Oct-04-2023, 10:14 AM - Forum: General Coding Help - Replies (3)

The following serves as the foundation of my code; however, I encounter an error: "ImportError: No module named gdb". How can I resolve this issue? Go..... More

Print this item

  How to find element in a deeply nested html structure
Posted by: Orientation_group - Oct-04-2023, 06:20 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi, I have a deeply nested element (the 11.7 value underlined) as shown below. May I know how can I find this element?


..... More

Print this item

  trouble reading string/module from excel as a list
Posted by: popular_dog - Oct-03-2023, 10:22 PM - Forum: General Coding Help - No Replies

I'm trying to read from a cell in a csv file as a list, but I'm running into a problem.

[python]import csv
from google.cloud import bigquery


with ..... More

Print this item

  concat 3 columns of dataframe to one column
Posted by: flash77 - Oct-03-2023, 08:55 PM - Forum: Data Science - Replies (2)

Hi,
I've got a dataframe with 100 rows and 3 columns (please see attachment).

How can I concate the 3 columns to one column?

Per example the 3 ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Kivy Flask Buildozer compile apk
Posted by: frohr - Oct-03-2023, 07:11 PM - Forum: General Coding Help - Replies (2)

Hi, I have simple code for Flask local server:

[python]
import sys
import io

sys.stdout = io.StringIO()
sys.stderr = io.StringIO()

from ki..... More

Print this item

  cv2 and opcua, doesn't like each other
Posted by: Mvcko - Oct-03-2023, 09:42 AM - Forum: General Coding Help - No Replies

Hi, I've got a problem with my code, I have to stop while loop in 244 line using varible from opcua server. It works, but when i using this method my ..... More


Attached Files

.py   demo.py (Size: 17.99 KB / Downloads: 214)
Print this item

  i tried to install python for the first time today and pretty certain im being remote
Posted by: brianlj - Oct-03-2023, 09:34 AM - Forum: General Coding Help - Replies (2)

I'm pretty certain I'm being remote accessed and just straight effed around. It wouldn't install python for me today for my first attempt ever. I am a..... More

Print this item

  build Python 3.12 in el7
Posted by: SergeyMx - Oct-03-2023, 08:26 AM - Forum: General Coding Help - Replies (5)

I have been building all versions ( 3.11.5 and below) of Python on my el7 (CentOS 7) system with no problems.
Now 3.12 is out and I can't build it.
..... More

Print this item

  advice needed
Posted by: DPaul - Oct-03-2023, 06:38 AM - Forum: Bar - Replies (5)

Hi,
I could use some advice ! Prayer cards are an endless source of challenges.
In our centre, over the years, zillions of documents have been filed..... More

Print this item

  How to find out from outside Python (in Windows) the current version of Python?
Posted by: pstein - Oct-03-2023, 06:34 AM - Forum: General Coding Help - Replies (5)

Assume I installed in the past Python on my Windows 10 system.

Is there a way to find out from OUTSIDE Python the currently installed version of Py..... More

Print this item

  howto get size of a ctk image?
Posted by: janeik - Oct-03-2023, 02:53 AM - Forum: General Coding Help - Replies (2)

hi, I have a CTkImage that needs heigth and width size of image.
Guess I have to use cget but doesnt find parameters.
my_image.cget(?,?)
Anyone?
..... More

Print this item

  to find in dictionary given parameter 'name' and to output position
Posted by: Liki - Oct-03-2023, 01:26 AM - Forum: Homework - Replies (10)

Hello!

Given ist the dictionary "telefonbook" with telefon-Nr. as the key, and with vorname, name, adress as the parameters to the keys.

I'm try..... More

Print this item

  Make your own assets! Lightning fast Workflow for Character Animation Sprite Sheets
Posted by: ReneEspinoza - Oct-02-2023, 11:34 PM - Forum: Bar - Replies (1)

I'm thrilled to announce that I'm about to launch a course on the Udemy platform, specially designed for game developers and 2D artists! 🎮🎨

If you're..... More

Print this item

  Mysql and mysql.connector error
Posted by: lostintime - Oct-02-2023, 11:32 PM - Forum: General Coding Help - Replies (2)

Hello ,
i trying to read a text file that has 9 items to be inputted to the MySQL database.
The one issue i have (other than this error) the file ca..... More

Print this item

  getpass.getpass() results in AttributeError: module 'os' has no attribute 'O_NOCTTY'
Posted by: EarthAndMoon - Oct-02-2023, 02:56 PM - Forum: General Coding Help - Replies (4)

When I call getpass.getpass(), I get this error:

[b]Traceback (most recent call last):
_File "<stdin>", line 1, in <module>
[colo..... More

Print this item

  Python coming to DroidScript (build native Android Apps)
Posted by: d_a_v_e - Oct-02-2023, 02:27 PM - Forum: News and Discussions - Replies (5)

Hi Guys,

I'm the founder of droidscript.org, a not-for-profit organisation with the aim of making app development easy, fast and fun for everyone, ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Womens From Your City - A... 53 minutes ago Larry1888 Larry1888 General Codin...
  What Happens At The End O... 1 hour ago asauellittle8716 asauellittle8716 General Codin...
  Opencv findContours Q 1 hour ago jogl Pedroski55 General Codin...
  Погрузитесь в ясность аза... 1 hour ago luisfrancesz3208 luisfrancesz3208 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580410
  Tutorial Requ... 519526
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386510
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zcharlesoogleto9533 Today
asauellittle8716 Today
luisfrancesz3208 Today
MaxTranslate Yesterday
pizofreude Yesterday

User Panel Messages

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