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,580
» Latest member: kava
» Forum threads: 38,635
» Forum posts: 175,038

Full Statistics

Online Users
There are currently 391 online users.
» 0 Member(s) | 387 Guest(s)
Google, Yandex, Baidu

Latest Threads
A penny doubled every day...
Forum: General Coding Help
Last Post: DeaD_EyE
3 hours ago
» Replies: 3
» Views: 60
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
5 hours ago
» Replies: 11
» Views: 376
Problème d'exécutable
Forum: General Coding Help
Last Post: Zauf
11 hours ago
» Replies: 0
» Views: 83
PRANK YOUR FRIENDS WITH T...
Forum: Code sharing
Last Post: shailesen
Yesterday, 07:55 AM
» Replies: 3
» Views: 3,986
[split] Simple webbot for...
Forum: Code Review
Last Post: Plyth
Yesterday, 04:55 AM
» Replies: 3
» Views: 110
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:07 AM
» Replies: 3
» Views: 173
What Are the Most Overloo...
Forum: News and Discussions
Last Post: Plyth
Jun-19-2025, 03:37 AM
» Replies: 2
» Views: 134
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
Jun-18-2025, 09:15 PM
» Replies: 4
» Views: 253
Wish to write a code for ...
Forum: General Coding Help
Last Post: Hasan2025
Jun-18-2025, 06:40 AM
» Replies: 4
» Views: 1,004
I have a question
Forum: General Coding Help
Last Post: Pedroski55
Jun-18-2025, 04:47 AM
» Replies: 1
» Views: 118

 
  Using xml.parsers.expat I can't get parser.ParseFile(f) to work
Posted by: Pedroski55 - Apr-24-2024, 05:31 AM - Forum: General Coding Help - Replies (3)

This code comes from Dave Beazly and it is a bit old, Python 2.something. I am trying to get it to work ..... More

Print this item

  watchdog on_modified
Posted by: CAD79 - Apr-23-2024, 01:47 PM - Forum: General Coding Help - Replies (3)

I'm creating a desktop application that notifies the user whenever a file has been modified, I've only just started using all of these modules and goi..... More

Print this item

Question [SOLVED] Right way to open files with different encodings?
Posted by: Winfried - Apr-23-2024, 08:49 AM - Forum: General Coding Help - Replies (3)

Hello,

Some of the files could be Windows (latin1, iso9959-1, cp1252), others could be utf-8.

Is try/except the right way to do it?

[python]#..... More

Print this item

  TypeError: Diagram.render() takes 1 positional argument but 2 were given
Posted by: sachin1361 - Apr-23-2024, 06:39 AM - Forum: General Coding Help - No Replies

I'm new to Python and used ChatGPT to generate a script that automatically creates a visual diagram after running terraform apply. The script (in diag..... More

Print this item

  Add NER output to pandas dataframe
Posted by: dg3000 - Apr-22-2024, 08:14 PM - Forum: Data Science - No Replies

I'm trying to write a script that will scan a document and add the extracted information to a dataframe, currently it just prints it and exits. Obvio..... More

Print this item

  Loop through all files in a directory?
Posted by: Winfried - Apr-22-2024, 06:16 PM - Forum: General Coding Help - Replies (10)

Hello,

I need to find all the files located under a given directory, including all the sub-directories it may contain.

Is this a/the right way t..... More

Print this item

  Volume label
Posted by: DPaul - Apr-22-2024, 03:10 PM - Forum: Bar - Replies (3)

Hi,
I would like to do the following:
When I start my search program for prayer cards,
the system looks immediately for availability of the data on t..... More

Print this item

  Made a discord bot game that uses commands but now trying to add buttons
Posted by: Dmcsdiscord - Apr-22-2024, 10:17 AM - Forum: General Coding Help - Replies (1)

Hey guys,

https://pastebin.com/YwTqHbiV —— game working with ! Commands and no buttons

https://pastebin.com/gJWVnGHU ——- game not so working, b..... More

Print this item

  Need help with Allure report
Posted by: Nik1811 - Apr-22-2024, 09:59 AM - Forum: General Coding Help - No Replies

Hi,
I need some help in setting up allure reporting structure into my framework. Can someone please guide where can we add the dependencies and how ..... More

Print this item

  What does .flush do? How can I change this to write to the file?
Posted by: Pedroski55 - Apr-22-2024, 09:28 AM - Forum: General Coding Help - Replies (3)

Looking at using yield, I have this simulated log file: logsim.py

logsim.py has 2 very long lists, ips and docs

ips like this: ips = ['129.194.8..... More

Print this item

  FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries
Posted by: sawtooth500 - Apr-21-2024, 06:16 PM - Forum: General Coding Help - Replies (14)

This is with pandas dataframes. The code works, but I am getting a warning.

[error]C:\Users\thpfs\documents\python\cleaner.py:223: FutureWarning: ..... More

Print this item

  Failing to connect by 'net use'
Posted by: tester_V - Apr-20-2024, 05:34 AM - Forum: General Coding Help - Replies (1)

Greetings to those that still up at this time! Wink
I'm failing to map network shares.
I'm identifying "letters not in use" for a share to mou..... More

Print this item

  Management software with image comparison
Posted by: franc1986 - Apr-19-2024, 09:12 PM - Forum: Web Scraping & Web Development - No Replies

Hi, let me start by saying I'm a beginner.
I wanted to try my hand at this adventure, convinced that with ChatGPT 4 I would be able to do it.
But he..... More

Print this item

Question Using Lists as Dictionary Values
Posted by: bfallert - Apr-19-2024, 08:30 PM - Forum: General Coding Help - Replies (8)

I am trying to use lists as dictionary values. I am running a loop that creates a new list each time and then assigns it to a specific key. The iterat..... More

Print this item

  Pandas Outer merge
Posted by: skollu826 - Apr-19-2024, 07:28 PM - Forum: General Coding Help - Replies (2)

I have two data frames
dataframe 1
col1 col2
1 A
1 B
2 C
5 Z
4 Q

dataframe 2

col1 col2
1 A
1 ..... More

Print this item

  Game "Fluppy bird"
Posted by: nastia_nadashkevich - Apr-19-2024, 04:12 PM - Forum: Game Development - Replies (1)

The problem is that after the bird loses one life, as well as after restarting the game, the pipes do not disappear, so the bird remains in the same p..... More

Print this item

  How does this code create a class?
Posted by: Pedroski55 - Apr-19-2024, 10:56 AM - Forum: General Coding Help - Replies (6)

I don't understand classes in Python!

Why do I get a class like this, without declaring a class??

[python]Employee = type("Employee", (object,),..... More

Print this item

  yield from
Posted by: akbarza - Apr-19-2024, 07:55 AM - Forum: General Coding Help - Replies (4)

hi
in the below code, what is doing yield from? please explain:

[python]#yield_from.py
# from:https://treyhunner.com/2018/04/keyword-argum..... More

Print this item

  questions about dict.get
Posted by: akbarza - Apr-19-2024, 06:21 AM - Forum: General Coding Help - Replies (2)

hi
in the below code:
[python]
#dict_get.py
print(help(dict.get))
'''
Help on method_descriptor:

get(self, key, default=None, /)
Return..... More

Print this item

  convert to bin problem
Posted by: kucingkembar - Apr-19-2024, 02:50 AM - Forum: General Coding Help - Replies (3)

hi, sorry for my bad english,
i tried to create phash compare using "VideoHash"

[python]
#pip install videohash
from videohash import VideoHash..... More

Print this item

  measure diameter of complex structure
Posted by: alminnawi - Apr-18-2024, 10:20 AM - Forum: General Coding Help - No Replies

Hi all,

I have a few complex geometries but for the sake of simplicity lets assume they are random branches of trees (no trunk or leaves) and the b..... More

Print this item

  Cloud computing advice needed
Posted by: sawtooth500 - Apr-17-2024, 07:31 PM - Forum: Data Science - Replies (3)

I'm doing stock backtesting using Python - and I've pretty much maxed the computational abilities of my local machines. So I'm looking for some cloud ..... More

Print this item

  Help with writing monitored data to mysql upon change of one particular variable
Posted by: donottrackmymetadata - Apr-16-2024, 11:28 PM - Forum: General Coding Help - Replies (3)

I am trying to monitor a set of variables which record a product recipe batch and record the final values (or very close to the final values) and writ..... More

Print this item

  Reduce PDF Size
Posted by: bg3075 - Apr-16-2024, 05:21 PM - Forum: Code sharing - No Replies

This code prompts the user for an input & output path/filename, and compresses the original PDF. This is a huge asset when working with PDF images tha..... More

Print this item

  python packaging/ hosted in IIS server
Posted by: manjureka - Apr-16-2024, 10:43 AM - Forum: Web Scraping & Web Development - No Replies

I have developed a website using python Flask which is hosted on IIS and accessible to my team. My question is for security reasons how to package the..... More

Print this item

  Adding a sub menu to a ttk.OptionMrnue ?
Posted by: Robo - Apr-16-2024, 10:31 AM - Forum: GUI - Replies (5)

Hi all,

Can somebody tell me how to add a sub menu to python's ttk.OptionMenu I've created a drop down menu.
but I am unable to fined how to add a..... More

Print this item

  python calculate float plus float is incorrect?
Posted by: sirocawa - Apr-16-2024, 08:06 AM - Forum: General Coding Help - Replies (6)

hi everybody

maybe , try print(27.56+13.78)

I use 3.10.12 and 3.12, get result is 41.339999999999996.
what happend?

Print this item

  Need to get around SSL: CERTIFICATE_VERIFY_FAILED
Posted by: sawtooth500 - Apr-15-2024, 11:18 PM - Forum: General Coding Help - Replies (4)

I'm trying to connect to the API at polygon.io to download historical stock trades data - the below is sample API code provided from polygon.io so it ..... More

Print this item

  Hide CMD call window
Posted by: tester_V - Apr-15-2024, 07:45 PM - Forum: General Coding Help - Replies (8)

Greetings!
Running my script every hour on a windows machine.
The script has a “arp-a” cmd call and a window pops up that is very annoying **angry..... More

Print this item

  Rich output to PDF
Posted by: HEbO61 - Apr-15-2024, 02:26 PM - Forum: General Coding Help - Replies (1)

Is it possible to create an PDF based on Rich output?

Or is there another solution/package in Python to create a PDF with RTF?

Print this item

  Making the tab key work like a tab key
Posted by: jackg - Apr-15-2024, 01:29 PM - Forum: General Coding Help - Replies (3)

Folks,

Is there a way to make the tab key (on the keyboard) work like a tab key? I like to use it to tab over 8 spaces or so per key-hit to align m..... More

Print this item

  Dynamically plotting graphs with matplotlib
Posted by: CAD79 - Apr-15-2024, 10:46 AM - Forum: Data Science - Replies (11)

I'm trying to create an application that formats data from a data logger that I have coded using an Arduino. I have the code finished and the output d..... More

Print this item

  Cubic spline Graph Interpretation how?
Posted by: GREEN369 - Apr-15-2024, 06:51 AM - Forum: Data Science - Replies (1)

Hi Friends,

i am new to python i want to calculate the r2 value for the cubic spline graph and how the results are intercepted from the graph based..... More


Attached Files

Thumbnail(s)
   
Print this item

  library for C but written in Python
Posted by: Skaperen - Apr-15-2024, 02:47 AM - Forum: News and Discussions - Replies (1)

has anyone here ever created a library for C but written in Python? i assume the hardest part is the arguments and their types. is there any particu..... More

Print this item

  Just beginning
Posted by: dalekeel - Apr-15-2024, 01:22 AM - Forum: General Coding Help - Replies (2)

I have downloaded and installed python wins from Microsoft v 3.12.3 using default installation.

I got these three files: the first gen_metadata.py ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A penny doubled every day... 3 hours ago esoyboy DeaD_EyE General Codin...
  How do select this table ... 5 hours ago MarkMan snippsat Web Scraping ...
  Problème d'exécutable 11 hours ago Zauf Zauf General Codin...
  PRANK YOUR FRIENDS WITH T... Yesterday, 07:55 Spyros_dev shailesen Code sharing
  [split] Simple webbot for... Yesterday, 04:55 AB073 Plyth Code Review
  Dynamic Module Import Err... Yesterday, 00:07 DaddyMAN Pedroski55 General Codin...
  What Are the Most Overloo... 06-19, 03:37 shreyapatel Plyth News and Disc...
  Setting AST node lineno c... 06-18, 21:15 voidtrance deanhystad General Codin...
  Wish to write a code for ... 06-18, 06:40 Hasan2025 Hasan2025 General Codin...
  I have a question 06-18, 04:47 Clictithe Pedroski55 General Codin...
  How to produce a CPU load... 06-18, 02:19 Calab Plyth General Codin...
Most views
  The best Prog... 572274
  Tutorial Requ... 484761
  Web Scraping ... 436814
  Newbie with P... 379637
  Thread remain... 351221
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7339
deanhystad 6839
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
kava Yesterday
esoyboy Yesterday
Zauf Yesterday
rupacodingclave Yesterday
Langlais Yesterday

User Panel Messages

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