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,299
» Latest member: matt
» Forum threads: 38,796
» Forum posts: 175,894

Full Statistics

Online Users
There are currently 34 online users.
» 1 Member(s) | 28 Guest(s)
Bing, Google, Mojeek, Apple, racingsubby

Latest Threads
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
21 minutes ago
» Replies: 7
» Views: 577
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
4 hours ago
» Replies: 3
» Views: 94
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
10 hours ago
» Replies: 1
» Views: 61
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Yesterday, 08:47 AM
» Replies: 3
» Views: 137
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 04:40 AM
» Replies: 6
» Views: 3,197
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 262
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 148
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 100
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,533
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 184

 
  General reference for Python
Posted by: FLAJA - May-22-2019, 03:43 AM - Forum: General Coding Help - Replies (1)

Can anyone recommend a general purpose reference for Python. My local public library has only a few books for Python, but Amazon has so many that I ..... More

Print this item

  Floor Division cf. math.floor()
Posted by: Devarishi - May-22-2019, 03:25 AM - Forum: General Coding Help - Replies (3)

Hi,

A bit of confusion here:

>>> 1 / 0.2
5.0
That is perfect, but this floor division thing looks confusing:

[python]>>> 1 // 0...... More

Print this item

  iterating a list of ranges
Posted by: Skaperen - May-22-2019, 01:39 AM - Forum: General Coding Help - Replies (1)

i have multiple ranges i wish to iterate over. but the obvious solution (2 nested levels of iteration) is not available because the iteration code, w..... More

Print this item

  Whitespace syntax error
Posted by: klp21 - May-22-2019, 01:20 AM - Forum: General Coding Help - Replies (1)

I am currently using Geany 1.35 with Python 3.7.3. My book is telling me to type:
>>> print("Python")
I get SyntaxError: invalid syntax
(Program..... More

Print this item

  output to file or ...
Posted by: Skaperen - May-22-2019, 01:10 AM - Forum: News and Discussions - Replies (1)

i have noticed that many calls in Python support both an open file object as well as a file descriptor, where the argument type i part of the effect. ..... More

Print this item

  Python Script to Produce Difference Between Files and Resolve DNS Query for the Outpu
Posted by: sultan - May-22-2019, 01:06 AM - Forum: General Coding Help - Replies (2)

I wanted to write a python script that gives me the difference between two txt files that contain list of domains.

Below is my script that I was able..... More

Print this item

  PEP 594 -- Removing dead batteries from the standard library
Posted by: ichabod801 - May-22-2019, 01:05 AM - Forum: News and Discussions - Replies (3)

There's a draft PEP up for removing a whole slew of older packages from the standard library. Slowly, of course. Probably not until 2022, and there wi..... More

Print this item

  Axis lim and Plotting a graph in Tkinter
Posted by: KEDivergente - May-21-2019, 08:10 PM - Forum: GUI - No Replies

Hi everybody! I'm designing a test bank than shows me 3 temperatures of a vacuum pump, the current of the motor than impulse that pump, the rpm of the..... More

Print this item

  Python not reading cell in excel file
Posted by: wendysling - May-21-2019, 07:59 PM - Forum: General Coding Help - Replies (1)

Hi,

I am using Jupyter notebook. I created a script to open a few excel files and paste a summary dataframe in a new excel file.

All was worki..... More

Print this item

  Sum product multiple Dataframes based on column headers.
Posted by: Lastwizzle - May-21-2019, 04:05 PM - Forum: Data Science - No Replies

I have a data frame with inputs where each group represents multiple inputs values that correspond to that groups respective premium ( script for test..... More

Print this item

  making dependant comboBoxes
Posted by: Hitsugaya - May-21-2019, 03:48 PM - Forum: GUI - Replies (3)

Hello,i want to make a dependant combo boxes,where i basically choose 1 option from combobox1 and that option has its own set of options in combobox2...... More

Print this item

  RE: status bar to return to the centre after 1 minute of clicking a button ?
Posted by: chano - May-21-2019, 03:39 PM - Forum: GUI - Replies (6)

Hello,can you tell me how the statuss bar after i move with button to return it alone after 1 minute in centre.Thank you
[python]
import tkinter as..... More

Print this item

  Need help parallelizing while loop
Posted by: Smurfi - May-21-2019, 01:43 PM - Forum: General Coding Help - No Replies

Hi everyone,

I need some help parallelizing the following:

[python]
population = []

generations = 100000
generation = 1

while generatio..... More

Print this item

  Pexpect module first step
Posted by: slouw - May-21-2019, 11:58 AM - Forum: General Coding Help - Replies (1)

I am reading up/watching videos and am taking my first baby steps with pexpect.
I expected (wrongly) that the sequence below would work.
That is I w..... More

Print this item

  Suggestions for a machine learning model for invoice processing multiple languages?
Posted by: animeshsarraf - May-21-2019, 11:48 AM - Forum: News and Discussions - Replies (1)

Hi,

I need to do invoice processing in multiple languages such as english,thai,korean,japanese etc and extract certain key fields.
How should I cr..... More

Print this item

  How to specify the destination folder
Posted by: SriMekala - May-21-2019, 11:01 AM - Forum: General Coding Help - Replies (1)

Hi,
I read some comma separated data from the web, and want to write into a csv file.

I open a new CSV file write data (df) in it, but I could not be..... More

Print this item

  Please explain how to alter text with python code?
Posted by: navneet - May-21-2019, 09:58 AM - Forum: Homework - Replies (4)

# Complete the following remove_dollar function
# so that it removes any dollar signs and spaces
# and then returns the string as a number (float)...... More

Print this item

  Plot a function
Posted by: dxfrelince - May-21-2019, 09:38 AM - Forum: Homework - Replies (3)

I want to plot a function in a interval. I'm trying to do it - but I'm stuck. someone who can help?

The answer I get on the y axis also looks stran..... More

Print this item

  Python requests module doesn not return status_code
Posted by: palo173 - May-21-2019, 07:11 AM - Forum: General Coding Help - Replies (5)

I try to create definiton, which returns some data when status_code is 200, but when status_code is 404 then returns status_code. If there are others ..... More

Print this item

  collect show cdp neighbor output
Posted by: carstenlp - May-21-2019, 07:00 AM - Forum: Networking - Replies (4)

Hi

I hit a dead end here with my code. Not sure how i should proceed from this.

Description of my project:
I want to get a topology of my netw..... More

Print this item

  Excel Library for Python 3
Posted by: synthia - May-21-2019, 02:20 AM - Forum: General Coding Help - Replies (11)

What's the best library for manipulating Excel workbook and worksheet? including basic editing and encryption.

Print this item

  list of string combinations
Posted by: Skaperen - May-21-2019, 01:25 AM - Forum: General Coding Help - Replies (8)

the bash shell for Unix has a feature that allows using a text token like {a,b}{c,d}{e,f} and produces all combinations as if [icode]ac..... More

Print this item

  A problem with installing scrapy
Posted by: Truman - May-21-2019, 12:57 AM - Forum: Web Scraping & Web Development - Replies (17)

[error]rial\_dist
creating build\lib.win32-3.6\twisted\trial\_dist\test
copying src\twisted\trial\_dist\test\test_distreporter.py -> build\l..... More

Print this item

  virtual environment questions
Posted by: Skaperen - May-21-2019, 12:17 AM - Forum: News and Discussions - Replies (2)

1. can virtual environment be installed (from pip) by a non-root user just in their home directory so that no system files are touched?

2. how does..... More

Print this item

  Cannot get h4 tag text
Posted by: aniyanetworks - May-20-2019, 09:43 PM - Forum: Web Scraping & Web Development - Replies (3)

[python]
import requests
from bs4 import BeautifulSoup
website= requests.get("http://www.aniyanetworks.net/contact/")
content1=website.content

..... More

Print this item

  How to get first line of a tuple and the third item in its tuple. Need Help, Anybody?
Posted by: SukhmeetSingh - May-20-2019, 09:25 PM - Forum: General Coding Help - Replies (5)

I have these values which I store in a:
[python]a = ((1.425, 4.82145395112958, 0.0656498375731458)
(1.39716316090366, 7.2, 0.102480129941483)
..... More

Print this item

  Resources for automated testing of Android apps using TestComplete?
Posted by: ackmondual - May-20-2019, 09:03 PM - Forum: News and Discussions - No Replies

I'm gathering up resources as I'm getting into automated testing of Android apps using TestComplete, scripting in Python. While there is some material..... More

Print this item

  printing interleaved lines from many processes
Posted by: Skaperen - May-20-2019, 08:48 PM - Forum: News and Discussions - Replies (2)

a new program (no code, yet) will launch many child processes that all will be printing long lines of info to stdout that is passed along from the par..... More

Print this item

  Scraping data saving to DB error with Cursor
Posted by: cubangt - May-20-2019, 07:29 PM - Forum: Web Scraping & Web Development - Replies (3)

So ive been working on a scrapying project and up until now everything has been working great and as expected. Now that we have successfully scrapped ..... More

Print this item

  [matpltlib]Basic question about callback function
Posted by: schniefen - May-20-2019, 07:20 PM - Forum: GUI - Replies (3)

I'm learning about using the slider and button widgets and am studying the example given in the link.

..... More

Print this item

  Manage Iges Cad Model
Posted by: achilledue - May-20-2019, 06:45 PM - Forum: Data Science - No Replies

Hello

I have to displace the origin and rotate an iges cad model.
Is it possible to use a Python script?
I saw pyigs module but it is an alpha.
..... More

Print this item

  How to run animations in background with tkinter?
Posted by: Pythenx - May-20-2019, 05:53 PM - Forum: GUI - Replies (1)

Hello! I am making a tkinter app and I want to make an animation, for example, a character walking (by displaying each frame individually). But when I..... More

Print this item

  sqlite3 question - execute method with :parameter
Posted by: richalt2 - May-20-2019, 04:39 PM - Forum: General Coding Help - Replies (2)

I see code using this syntax for the .execute and parameters passed with a dictionary. Where is this :parameter syntax defined?
[python]
connec..... More

Print this item

  If Python 2.x source code and applies a transform it into valid Python 3.x code.
Posted by: vivekm - May-20-2019, 10:37 AM - Forum: General Coding Help - Replies (1)

I have changed between the versions, showing how to change from Python 2-style to Python 3.1-style.

I'm getting a SyntaxError on a file that was ge..... More

Print this item

  Plot list
Posted by: arthurvercruysse - May-20-2019, 10:23 AM - Forum: General Coding Help - Replies (2)

Hello, I need your help
How can I plot a list of numbers? Because I don't want to plot point by point.
In my example I want to plot the x-values whe..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Help with Serial.write in... 21 minutes ago racingsubby racingsubby General Codin...
  silent deployment Python ... 4 hours ago Bummibaer Larz60+ News and Disc...
  Proposal for PEP 10 hours ago matt Gribouillis News and Disc...
  My regex function is not ... Yesterday, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python Yesterday, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
Most views
  The best Prog... 579377
  Tutorial Requ... 512412
  Web Scraping ... 442298
  Newbie with P... 386343
  New Users Int... 380341
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
matt Yesterday
Divyakrishnan071 Yesterday
ichsanputr Yesterday
nicos18 11-25
Moltar1997 11-25

User Panel Messages

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