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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,558

Full Statistics

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

Latest Threads
Webscrapping sport bettin...
Forum: Web Scraping & Web Development
Last Post: Williamcaurb
1 hour ago
» Replies: 5
» Views: 13,796
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
3 hours ago
» Replies: 6
» Views: 709
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
4 hours ago
» Replies: 0
» Views: 38
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
7 hours ago
» Replies: 8
» Views: 444
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,822
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 691
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,220
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,793
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,190
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,151

 
  How I can overload operator [] ?
Posted by: AlekseyPython - Feb-19-2019, 10:18 AM - Forum: General Coding Help - Replies (3)

Python 3.7.2

I created my own class- collection ​​and I don’t want to write the add method everywhere when adding elements in my collection...... More

Print this item

  script: remove all "carriage return" from my json variable
Posted by: mfran2002 - Feb-19-2019, 09:42 AM - Forum: General Coding Help - Replies (4)

Hi all,
in my script I have a variable json with its fields (key, value)

I would like to remove all the "CRLF" (or "\n") from all the value fields..... More

Print this item

  Program that, inside a loop, does multiple things. needs to print in a certain way
Posted by: reidmcleod - Feb-19-2019, 07:56 AM - Forum: Homework - Replies (1)

Write a Python program that, inside a loop, does several things:
a)Asks the user for values of mass in kg, damping in N/(m/s), and stiffness in N/..... More

Print this item

  Omit pronoun/common words when searching in Python
Posted by: fabkhush - Feb-19-2019, 07:25 AM - Forum: General Coding Help - Replies (1)

I have a python program to count most appearing words in a file. Now I want to omit most common words from the file. I have written 2 program for this..... More

Print this item

  installing 3rd party ttk themes
Posted by: twrackers - Feb-19-2019, 04:38 AM - Forum: GUI - Replies (5)

What steps do I follow to add 3rd party ttk themes under Python 3? I'm working on a Raspberry Pi 3 running Raspbian Stretch. I've been digging for t..... More

Print this item

  sqlite: INSERT using a variable for table name
Posted by: DT2000 - Feb-19-2019, 03:03 AM - Forum: General Coding Help - Replies (3)

I am trying to figure out how to use a variable instead of the actual table name in the database statement when using INSERT.
I am using a MenuOption..... More

Print this item

  Nested Data structure question
Posted by: arjunfen - Feb-19-2019, 01:41 AM - Forum: General Coding Help - Replies (7)

Hello Everyone,

Newbie to this forum - so, please excuse me if this question has been answered earlier - please redirect me to the right place, if ..... More

Print this item

  coding burn out?
Posted by: metulburr - Feb-19-2019, 12:14 AM - Forum: Bar - Replies (3)

I am wondering from those that program 10+ years about burning out on coding?

After about 10 years of being glued to the computer i find myself wa..... More

Print this item

  converting decimal to binary
Posted by: missus_brown - Feb-18-2019, 11:50 PM - Forum: Homework - Replies (1)

I'm working on an assignment that converts decimal to binary. For each loop it's supposed to print the working number and the remainder (0 for even, ..... More

Print this item

  How to import win32api and win32con
Posted by: SheeppOSU - Feb-18-2019, 11:13 PM - Forum: General Coding Help - Replies (2)

So I'm trying to import win32api and win32con. So I was researching and I found that I needed pywin32 to do this. So I used pip and installed it but p..... More

Print this item

  Not entirely sure what I did wrong here.
Posted by: BalCalistan - Feb-18-2019, 09:25 PM - Forum: General Coding Help - Replies (1)

First of all, I am very new so I apologize if this is a stupid question or if it requires a simple fix.

My goal was to create a function that retur..... More

Print this item

  looks like i need to rename something
Posted by: Skaperen - Feb-18-2019, 08:47 PM - Forum: News and Discussions - No Replies

this is the name of a set of scripts in bash that i started to convert to python. i did o.py (the subject of another post) and i.py. t..... More

Print this item

  newb selfie
Posted by: PatM - Feb-18-2019, 08:18 PM - Forum: General Coding Help - Replies (5)

I'm trying to get a grasp on Python classes and want to clarify something.

If I use a variable name like "count" inside a class and also have a "co..... More

Print this item

  How to format text to modify itself for different console sizes.
Posted by: FWendeburg - Feb-18-2019, 06:43 PM - Forum: General Coding Help - No Replies

Hi, i'm making a program and for what it would be the help command i need to display info about each command. The thing is that the text is too long a..... More

Print this item

  Index Error
Posted by: ErnestTBass - Feb-18-2019, 04:54 PM - Forum: General Coding Help - Replies (5)

I am trying to run a simple Python 3 program. I am getting at the moment an index error The code is as shown.


[code]
import numpy as np
import ..... More

Print this item

  Want to add 'pgzero' library
Posted by: Metgeneer - Feb-18-2019, 04:37 PM - Forum: Game Development - Replies (1)

So I downloaded the latest version of python from www.python.org. When I went into command to add the pygame zero library, I got an error. So I uninst..... More

Print this item

  New to MySQL, can't work out why code doesn't work
Posted by: kintarowonders - Feb-18-2019, 03:39 PM - Forum: General Coding Help - Replies (6)

I'm creating a script called rootrun, it runs things as root that were put in a MySQL database but only if they match regular expressions in the datab..... More

Print this item

  Comms for multiple nodes.
Posted by: MuntyScruntfundle - Feb-18-2019, 02:15 PM - Forum: General Coding Help - Replies (1)

I need a socket server/client app which is a little unusual and I'm struggling to get my head around how it would work.

I have 128 nodes, all mini ..... More

Print this item

  Script optimisation and style help
Posted by: TheFluffyOne - Feb-18-2019, 02:15 PM - Forum: Code sharing - Replies (4)

As a long-time Perl coder, I've picked up loads of optimisations and style tips that make scripts easier to understand, shorter, and more efficient.
..... More

Print this item

  Why do I get "none"
Posted by: el_bueno - Feb-18-2019, 01:50 PM - Forum: General Coding Help - Replies (2)

Hello!

I tried this code

print(print('Hello'))

and here's what I got
Hello
None

Why do I get "..... More

Print this item

  python hmac gave different result than php hash_hmac
Posted by: nadavvin - Feb-18-2019, 01:46 PM - Forum: General Coding Help - Replies (2)

on python:
[python]import hashlib
import hmac

hmac.new(b'abc', b'skey', hashlib.sha256).hexdigest()

return: '24fd94ffa1f3e4c62376205b715a9193b..... More

Print this item

  Qt Designer - Making a Font with a border
Posted by: jimmyvegas29 - Feb-18-2019, 01:31 PM - Forum: GUI - Replies (4)

I would have thought this would have been straight forward, but that has proven to be untrue. Im trying to make a Qlabel with text, and i want the tex..... More

Print this item

  Strange behaviour while splitting string?
Posted by: naknak12 - Feb-18-2019, 01:23 PM - Forum: General Coding Help - Replies (2)

Can somebody explain why this is happening? I'm only getting this while executing this in python2.7.
See code below.

[python]

data = "ëeêfdsf"..... More

Print this item

  Seniors, please answer this
Posted by: nadaa - Feb-18-2019, 11:11 AM - Forum: News and Discussions - Replies (6)

Hi,
I got the following questions in one of the python interviews, I answered them but they told me that they need experienced developers. I wonder h..... More

Print this item

  Looking for an up to date example to query mysql
Posted by: UtiliseIT - Feb-18-2019, 10:42 AM - Forum: General Coding Help - Replies (5)

Hi,

My use case is to query a MySQL database as part of a (AWS) Lambda function that returns results in json format via an api. Queries may be sele..... More

Print this item

  Efficient way of iterating a list of records
Posted by: anguis - Feb-18-2019, 10:26 AM - Forum: General Coding Help - Replies (4)

Hi

First post for me so pls be gentle Smile

There's a lot of pretext here for a fairly simple question but I thought it better to explain t..... More

Print this item

Exclamation Error: There is no current event loop in thread 'MainThread'
Posted by: AlekseyPython - Feb-18-2019, 08:32 AM - Forum: General Coding Help - Replies (5)

Python 3.7.2

In my processing, the main function is wrapped by error interceptors and the interception is performed correctly:
[python]
try:
..... More

Print this item

  strange effect from duplicating a file descriptor
Posted by: Skaperen - Feb-18-2019, 08:23 AM - Forum: General Coding Help - Replies (1)

many of my programs, when run with redirected I/O, and during a special part of running (the last phase) need access to the original standard file des..... More

Print this item

  Help w/ variables and destroying buttons
Posted by: SheeppOSU - Feb-18-2019, 06:48 AM - Forum: Game Development - Replies (5)

Good Day, i'm making a game for python. I have a loading screen and then I have a lobby where you choose the character. When a character is picked it'..... More

Print this item

  Why isn't ImageGrab.save working
Posted by: SheeppOSU - Feb-18-2019, 06:39 AM - Forum: General Coding Help - No Replies

So I just started on a python project. I'm using ImageGrab to save a screenshot of the screen so that it can play a game. Anyways, I can't figure out ..... More

Print this item

  Socket Programming Help
Posted by: Djivan - Feb-18-2019, 06:37 AM - Forum: Homework - Replies (3)

Hello can someone help me with this task, I am currently learning python but can not solve that kind of problem which is given at the lesson as hw.
..... More

Print this item

  deleting item from dictionary
Posted by: Skaperen - Feb-18-2019, 05:50 AM - Forum: General Coding Help - Replies (6)

i have item in a dictionary that needs to be deleted. which way is more pythonic?[python] del mydict['deleteme']
mydict.pop('deleteme')[/pyth..... More

Print this item

  Adding Variable
Posted by: kevinwoo00 - Feb-18-2019, 03:51 AM - Forum: Homework - Replies (4)

Hey I have this homework problem set that I feel like should be very simple but I am stuck:

Write a function add(vals1, vals2) that takes as inputs..... More

Print this item

  Does python 3.7.2 work w/ PIL 5.4.1
Posted by: SheeppOSU - Feb-18-2019, 03:07 AM - Forum: Game Development - Replies (2)

My question was explained in the title but I'll go a bit more in depth. So i downloaded pillow via the cmd using pip by typing "pip install Pillow". B..... More

Print this item

  passing data to messagebox
Posted by: kmusawi - Feb-18-2019, 01:51 AM - Forum: GUI - No Replies

I have 2 python scripts performing messaging over socket connection. It works fine via CLI however I am now trying to display the receiver end data me..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Webscrapping sport bettin... 1 hour ago KoinKoin Williamcaurb Web Scraping ...
  Unable to resolve FileNot... 3 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 4 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... 7 hours ago tester_V snippsat General Codin...
  Select Python comment (#)... Yesterday, 18:39 SpongeB0B tester_V General Codin...
  My goal to be hired worki... 09-27, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
Most views
  The best Prog... 577304
  Tutorial Requ... 500529
  Web Scraping ... 440977
  Newbie with P... 385009
  New Users Int... 369461
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Today
sophielane Today
Oscar0057 Today
Cromulent Today
PhamMaria Today

User Panel Messages

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