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,959
» Latest member: Xuitar
» Forum threads: 38,728
» Forum posts: 175,531

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 39 Guest(s)
Bing, Google, AOL, Mojeek, AOL, Apple

Latest Threads
pdf file processing: how ...
Forum: General Coding Help
Last Post: Xuitar
50 minutes ago
» Replies: 5
» Views: 4,745
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
2 hours ago
» Replies: 1
» Views: 1,427
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
8 hours ago
» Replies: 1
» Views: 2,483
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
11 hours ago
» Replies: 0
» Views: 157
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 01:49 PM
» Replies: 2
» Views: 333
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
Yesterday, 03:45 AM
» Replies: 3
» Views: 395
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 01:04 AM
» Replies: 0
» Views: 500
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-24-2025, 02:48 PM
» Replies: 10
» Views: 29,689
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,584
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 445

 
  Shared reference of variables...
Posted by: Denial - Aug-29-2020, 01:37 PM - Forum: General Coding Help - Replies (1)

What I understand is Python uses shared reference for variables.

I verified by assigning two variables with value of 10 (int). They both had the sa..... More

Print this item

  Better Understanding Of Object Orientation In Python
Posted by: JoeDainton123 - Aug-29-2020, 12:04 PM - Forum: General Coding Help - Replies (3)

Hello all

As part of my journey to learn python I have slowly started getting to grips with Object Orientation.

I have 3 x questions which I wa..... More

Print this item

  Abstract classes
Posted by: SephMon - Aug-29-2020, 09:53 AM - Forum: General Coding Help - Replies (8)

Can you make classes abstract in python?

Print this item

  Put Serial data to list
Posted by: PA3040 - Aug-29-2020, 08:09 AM - Forum: General Coding Help - Replies (5)

The value send from arduino is 10x12
the data coming to the python slell is b'10x12\r\n'
Dear I need to decode the carriage return from the data com..... More

Print this item

  Unable to bit shift and logical OR bytes and ints?
Posted by: MysticLord - Aug-29-2020, 08:02 AM - Forum: General Coding Help - Replies (7)

Python 3.8.2
Windows 10
Powershell

I'm trying to grab a set of 32 bit little-endian pointers from the headers in a set of 256 files, and print th..... More

Print this item

  How to map dataframe based on two columns
Posted by: Mekala - Aug-29-2020, 07:36 AM - Forum: General Coding Help - No Replies

Hi,
I have two dataframes,

df1:

Name	Pop	RANK
Indian	333	1
USA	    42	56
Taiwan	688	3
Hsinchu	34	54
Indian	333	28
Taiwan	688	23
d..... More

Print this item

  python-forum.io compared to reddit/Stackoverflow
Posted by: SpongeB0B - Aug-29-2020, 07:00 AM - Forum: Board - Replies (4)

Hi everyone,

Recently I was stuck on a problem https://python-forum.io/Thread-Flask-Dis...the-static

After a while I found a..... More

Print this item

  Accessing details of chunks in HDF5 file
Posted by: Robotguy - Aug-29-2020, 06:51 AM - Forum: Data Science - No Replies

Hi Everyone,

I found following to work with Jupyter notebook to access details of a chunked file I create. Does anyone know how to implement this i..... More

Print this item

  Session crashed after using all available RAM
Posted by: Bhavika - Aug-29-2020, 06:37 AM - Forum: General Coding Help - No Replies

I am a newbie to regular expressions. In google colaboratory, while doing an assignment on bag of words based on twitter dataset, I gave my code like ..... More

Print this item

  Spacing/Formatting
Posted by: Hendrixson29 - Aug-29-2020, 05:30 AM - Forum: Homework - Replies (2)

Hi!

I'm having some problems with spacing/formatting. I'm trying to get the pizza, state_tax, and pizza + state_tax outputs to start at directly un..... More

Print this item

  syntax highlighting
Posted by: MaartenRo - Aug-29-2020, 04:41 AM - Forum: General Coding Help - Replies (2)

Hi,

In my Python shell the numvers in the second line are red highlighted. Why are the numbers in the second line highlighted in red? Does this happe..... More

Print this item

  How to rotate log and limit the size
Posted by: maiya - Aug-29-2020, 12:37 AM - Forum: General Coding Help - No Replies

Hi All,

Below is my logging function and it is defined in my class. There are multiple functions are defined in my class and also a different file ..... More

Print this item

  [IndexError: List Index out of Range] RPG Game
Posted by: Donovan - Aug-29-2020, 12:29 AM - Forum: Game Development - Replies (3)

Hello everyone, I am following a guide that is for an RPG Game. It's titled, 'How to Write a Text Adventure in Python'

I have finished the tutorial..... More

Print this item

  Run an app in a standalone terminal and wait until it's closed
Posted by: glestwid - Aug-28-2020, 09:37 PM - Forum: General Coding Help - Replies (2)

I would like to run an app in a separated terminal from my Python3 script and make the script wait until I close the terminal. I tried to run this cod..... More

Print this item

  asyncio: executing tasks + httpserver
Posted by: freebsdd - Aug-28-2020, 09:30 PM - Forum: General Coding Help - Replies (2)

Hello All!

My English can be badly, sorry in advance

OS : Windows && ArchLinux
Python version 3.7.2

Task: Need do control by program use Htt..... More

Print this item

  Which GUI toolkit creating tool to measure distance/area on image
Posted by: kboortz - Aug-28-2020, 09:26 PM - Forum: GUI - Replies (1)

I'm new to GUI programming in Python. My first project would be a tool where you load an image (like a house plan) and can draw lines and polygons on ..... More

Print this item

  os.remove() Access is denied
Posted by: pythonnewbie138 - Aug-28-2020, 08:33 PM - Forum: General Coding Help - Replies (3)

I'm receiving the below error when attempting to use os.remove() if a directory is found to exist. I've seen suggestions of running t..... More

Print this item

  [XML] How to add new element to block?
Posted by: Winfried - Aug-28-2020, 04:09 PM - Forum: General Coding Help - No Replies

Hello,

Using BeautifulSoup, I can't figure out how to add a new element to the current block:

[python]from bs4 import BeautifulSoup as Soup

w..... More

Print this item

  post data to influxdb
Posted by: shahrilmajid - Aug-28-2020, 03:12 PM - Forum: General Coding Help - No Replies

hi .. i have a problem to send a data to influx db. here i have 2 code, need to modified

[python]this is for reading a sensor
import Adafruit_DHT..... More

Print this item

  MYSQL Update Query format
Posted by: simdo01 - Aug-28-2020, 02:49 PM - Forum: General Coding Help - Replies (1)

I am having trouble getting a database UPDATE query to run using variables. I get an error message of "1054 (42S22): Unknown column 'channel_bandwidth..... More

Print this item

  Using lambdas and map() to parse substrings in a single line
Posted by: Drone4four - Aug-28-2020, 01:59 PM - Forum: General Coding Help - Replies (5)

I’m learning about lambdas and the map() builtin. I’ve got an elegant lambda expression I came across online which takes a list of three subs string..... More

Print this item

  TypeError: 'type' object is not subscriptable
Posted by: Stef - Aug-28-2020, 01:31 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm fairly new to Python and I'm getting this error and to be honest, I have no clue why. I get it when running a pytest. The full stacktrace i..... More

Print this item

  Cannot find reference
Posted by: spalisetty06 - Aug-28-2020, 01:10 PM - Forum: General Coding Help - Replies (9)

Hello,
I have imported the module named 'module' and I am trying to use the members in another file, I have installed packages as well, why do I stil..... More

Print this item

  Binary file
Posted by: Aussie - Aug-28-2020, 09:54 AM - Forum: General Coding Help - Replies (12)

Hi, I have been given a file and was told it was a binary file.

In Python I can open the file and read what I think is for four bytes (4).

byte..... More

Print this item

  How to convert what appears to be a JSON file to CSV
Posted by: NewBeie - Aug-28-2020, 09:34 AM - Forum: General Coding Help - Replies (4)

Hi,
I have this file below, the format looks like it's JSON but I'm not sure, I want to convert it to csv.

I have also attached the file for clear..... More


Attached Files

.txt   JSONfile.txt (Size: 2.7 KB / Downloads: 449)
Print this item

  scipy.signal findpeaks
Posted by: claw91 - Aug-28-2020, 09:28 AM - Forum: Data Science - Replies (10)

Hello there. I'm new to Python and my goal is to replicate Matlab's findpeaks prebuilt function.

The goal is to find positive and negative peaks. I..... More

Print this item

  attribute error instead of correct output
Posted by: MaartenRo - Aug-28-2020, 09:28 AM - Forum: General Coding Help - Replies (2)

Hi,

When running this code i should get " Hallo Zelda" but instead i get an error message. What am i doing wrong?

Any input is much appreciated!..... More

Print this item

  New open-source Python SDK for NEO blockchain
Posted by: Marsum - Aug-28-2020, 09:16 AM - Forum: News and Discussions - No Replies

Dear all,

the open-source developer community City of Zion has released its new SDK and smart contract repository for the [b]NEO blockchain ..... More

Print this item

  String formatting - tax brackets
Posted by: darek88 - Aug-28-2020, 09:15 AM - Forum: Homework - Replies (1)

In progressive tax systems, tax rates change according to the income. Tax brackets are divisions that regulate those changes.

Here's an example of ..... More

Print this item

  Update Python Files
Posted by: Harshil - Aug-28-2020, 08:32 AM - Forum: General Coding Help - Replies (3)

How to update python apps Without using any framework Hand in pyqt5.
Another Problem: And Replace The Old Source Code File File With Updated? I C..... More

Print this item

  API call question
Posted by: DPaul - Aug-28-2020, 07:38 AM - Forum: General Coding Help - Replies (6)

Hi,

When you launch an API call to the imdb (movie database) e.g. to retrieve details about a film (e.g. 'TOPKAPI'),
your response is an elaborate..... More

Print this item

  " Run constructors" instead of the correct line
Posted by: MaartenRo - Aug-28-2020, 06:40 AM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to run this code. Somehow it shows " Run constructors" instead of the line " Hallo daar!". What am i doing wrong?

Any input is m..... More

Print this item

  urllib is not a package traceback
Posted by: cc26 - Aug-28-2020, 04:13 AM - Forum: General Coding Help - Replies (3)

Hello! I'm in desperate need of help.

I'm attempting to run the following code:
[python]
import urllib.request, urllib.parse, urllib.error

fha..... More

Print this item

  Extracting data based on specific patterns in a text file
Posted by: K11 - Aug-28-2020, 04:09 AM - Forum: General Coding Help - Replies (1)

I have a huge report file with some data where i have to do some data processing on lines starting with the code "MLT-TRR" For now i have extracted al..... More

Print this item

  IM stuck and need help plz!
Posted by: ruprechtgaming - Aug-28-2020, 03:26 AM - Forum: General Coding Help - Replies (2)

i cant figure out how to open anything or code! plz help me!

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pdf file processing: how ... 50 minutes ago Pavel_47 Xuitar General Codin...
  Regarding pdf for PCEP an... 2 hours ago P212 Biks News and Disc...
  Using Python to SSH and R... 8 hours ago justaguy SprunkiRetake Networking
  My goal to be hired worki... 11 hours ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... Yesterday, 13:49 Perry DeaD_EyE General Codin...
  [Tkinter] how to export a... Yesterday, 03:45 RonR Pedroski55 GUI
  Is the interpreter that c... Yesterday, 01:04 helendamdam helendamdam General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
Most views
  The best Prog... 576964
  Tutorial Requ... 499643
  Web Scraping ... 440725
  Newbie with P... 384703
  New Users Int... 368729
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7367
deanhystad 6895
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Xuitar Today
SprunkiRetake Today
GnomeSweetGnome Yesterday
alxpetrovo2272 Yesterday
Jamirul Yesterday

User Panel Messages

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