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,310
» Latest member: QABOB
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

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

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
11 minutes ago
» Replies: 11
» Views: 283
Python compiler
Forum: General Coding Help
Last Post: noisefloor
28 minutes ago
» Replies: 1
» Views: 58
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 87
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 41
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,115
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 201
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 729
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,836
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 201
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 163

 
  Can't read url when specifying more than a specific number of bytes
Posted by: deivid - Aug-08-2018, 03:02 AM - Forum: General Coding Help - Replies (3)

This works

[python]
from urllib.request import urlopen

data = urlopen("https://cinnamon-spices.linuxmint.com/json/applets.json").read(60000)
..... More

Print this item

  general conversion to int
Posted by: Skaperen - Aug-08-2018, 02:30 AM - Forum: General Coding Help - Replies (3)

how can i have a single simple expression convert an object to an int or raise an exception only if it cannot be converted to an int? valid objects i..... More

Print this item

  Whether to create a separate package for command line support
Posted by: porton - Aug-08-2018, 12:33 AM - Forum: General Coding Help - Replies (1)

I am writing some software which I call XML Boiler. I have xmlboiler.core for core functionality o..... More

Print this item

  sets are unhashable
Posted by: Skaperen - Aug-07-2018, 11:41 PM - Forum: News and Discussions - Replies (6)

why are sets unhashable?

Print this item

  A problem with using selenium
Posted by: Truman - Aug-07-2018, 11:36 PM - Forum: Web Scraping & Web Development - Replies (2)

from selenium import webdriver
browser = webdriver.Firefox()
print(type(browser))
browser.get('http://inventwithpython.com')
In..... More

Print this item

  How to retrieve all and only built-in functions from interactive interpreter
Posted by: perfringo - Aug-07-2018, 08:50 PM - Forum: General Coding Help - Replies (4)

Python documentation lists 69 built-in functions (compared to 3.6 the..... More

Print this item

  Obtain Geometric Information and name from a map-design website
Posted by: fyec - Aug-07-2018, 08:31 PM - Forum: General Coding Help - Replies (2)

There is a map-design website and this web-site's information was taken as snapshot by the 'web.archive.org'. Almost all information that I need can b..... More

Print this item

  Dictionary to .txt or .csv file
Posted by: stanthaman42 - Aug-07-2018, 05:05 PM - Forum: Homework - Replies (9)

I have been struggling with this code for some time. I have created a dictionary to be used within python but I want to be able to take that dictionar..... More


Attached Files

.py   PrimePerms.py (Size: 2.1 KB / Downloads: 449)
Print this item

  Using thread in the wxPython
Posted by: hildogjr - Aug-07-2018, 03:47 PM - Forum: GUI - Replies (8)

I am one of the developer of a python2/3 package available on https://github.com/hildogjr/KiCost/
I am developing a GUI on wxPython 4.0.3 to call the..... More

Print this item

  Python with LED light strip question.
Posted by: Ostromaj - Aug-07-2018, 02:22 PM - Forum: General Coding Help - Replies (5)

I recently took up a project to try to mimic a game I saw in my childhood science center. It was a game where you could hit a button and have to race ..... More

Print this item

  [Help] How to count Letter frequency in a text file?
Posted by: vanicci - Aug-07-2018, 12:38 PM - Forum: General Coding Help - Replies (6)

Hello,

I tried looking for "letter frequency" or "frequency distribution" within the forum but I couldn't find any old thread about ..... More


Attached Files

.txt   alice_in_wonderland.txt (Size: 169.53 KB / Downloads: 733)
Print this item

  Add a line after a specific line
Posted by: morgandebray - Aug-07-2018, 10:56 AM - Forum: General Coding Help - Replies (3)

Hi, I'm trying to add new line after a particular line.

[python]
for line in file :
if line.startswith('/22/'):
#ADD LINE AFTER T..... More

Print this item

  Cannot Import stylesheet BG?
Posted by: mekha - Aug-07-2018, 09:47 AM - Forum: GUI - Replies (1)

I merged my old code with new interface look, it has 4 tabs menu, and the 2nd tab is my old graph sound visualizer (https://python-forum.io/Thread-PyQ..... More

Print this item

  Problem in a python2 file
Posted by: sylas - Aug-07-2018, 09:36 AM - Forum: General Coding Help - Replies (15)

Hi all ! Because I installed "click" being in python2, I can import "click" only on python2. I cannot use 3.6 for this file. My problem appears at lin..... More

Print this item

  Troubles with instaling pocketsphinx
Posted by: Thais781 - Aug-07-2018, 08:07 AM - Forum: General Coding Help - Replies (1)

Hello,

First, sorry for my english, I am a french girl

I need to install textract and textract need to install pocketsphinx
So when I try to in..... More

Print this item

  i've got these very simple homework
Posted by: HakolYahol - Aug-07-2018, 07:43 AM - Forum: Homework - Replies (7)

my mind is not always the best so i hope you could help me with this:

[quote]
Write a program that simulates a fortune cookie. The program
should dis..... More

Print this item

  GUI properties defined (and changed) by variables in .py file
Posted by: j.crater - Aug-07-2018, 07:15 AM - Forum: GUI - Replies (2)

Hello all,
I am trying to make a basis for a MVC-sytle program, where GUI properties (in .kv file) would be stored and accessed from a separate .py f..... More

Print this item

  "Split" file and comparison with CSV
Posted by: morgandebray - Aug-07-2018, 06:57 AM - Forum: General Coding Help - Replies (14)

Hi, I'm very new to python and I need your help guys.

I want to know if it's possible to "split" file (with regex ?), read the line and make a com..... More

Print this item

  two's complment binary
Posted by: Skaperen - Aug-07-2018, 05:54 AM - Forum: General Coding Help - Replies (2)

d'rat ... the bin() function does not give the two's complement form of negative numbers. anyone know of something that does that?

Print this item

  [neural netrowks]How do i resume training once i have saved the model
Posted by: Prince_Bhatia - Aug-07-2018, 05:01 AM - Forum: Data Science - Replies (1)

I have a model that I've trained for 75 epochs. saved the model with model.save(). The code for training is

[python]from keras.preprocessing.image ..... More

Print this item

  Project: Opening all links within a web page
Posted by: Truman - Aug-07-2018, 12:33 AM - Forum: Web Scraping & Web Development - No Replies

I'm trying to write a code that opens all links that are on a web page in one tab for each.
[python]
import webbrowser
import bs4
import requests..... More

Print this item

  Reading Excel files and creating an output
Posted by: tms21 - Aug-06-2018, 08:51 PM - Forum: General Coding Help - Replies (1)

Hi.

I haven't used Python in a few years and even when I did it was at a very basic level.

I have numerous excel files (e.g. file a.xlsb, b.xls..... More

Print this item

  improved application becomes non-functional
Posted by: atlass218 - Aug-06-2018, 06:04 PM - Forum: GUI - Replies (1)

Hello;
For information I am beginner with regard to the programming with the language "PYTHON". I just created a simplified application for the momen..... More

Print this item

  Help - why is my print statement being ignored?
Posted by: dmhdz - Aug-06-2018, 05:18 PM - Forum: Homework - Replies (2)

Hi - I am new to Python and I am taking a beginners course that hasn't even started yet. A pre-assignment to practice is just not working. Getting f..... More

Print this item

  Writing chr(128) to text file returns errors.
Posted by: Qwert_Yuiop - Aug-06-2018, 03:49 PM - Forum: General Coding Help - Replies (5)

I am trying to write characters to a file.

My problem is that for for N=128, file.write(chr(N)) fails and returns error: `UnicodeEncodeError: 'c..... More

Print this item

  win32com Events not catching
Posted by: dageci - Aug-06-2018, 03:18 PM - Forum: General Coding Help - No Replies

Hello,
I have a custom COM component that fires events and that exposes objects.

This code opens this COM component and it connects to the databas..... More

Print this item

  File Read Issue
Posted by: Blade2021 - Aug-06-2018, 02:46 PM - Forum: General Coding Help - Replies (4)

I'm having issues getting the results i'm looking for (obviously...) I am trying to read a text file, then parse it looking for a string, If it sees..... More

Print this item

  Select Simple CSS question
Posted by: KirkmanJ - Aug-06-2018, 02:35 PM - Forum: General Coding Help - Replies (2)

I am hoping this will be really simple, and i am just missing the obvious.

[python]<select class='pets' type='text' name='pets' id='pets' placehol..... More

Print this item

  Need help with file renaming
Posted by: edlentz - Aug-06-2018, 02:23 PM - Forum: General Coding Help - Replies (3)

Hi all,

I need help and I don't know to do this. Here is what I need to do.

I have a file that I need to :
a. copy
b. rename it from a lis..... More

Print this item

  read from txt. file in certain manner
Posted by: SchroedingersLion - Aug-06-2018, 02:08 PM - Forum: Data Science - Replies (13)

Greetings,

I just found this website that summarizes how to read from a .txt file:
..... More

Print this item

  error
Posted by: lokchi2017 - Aug-06-2018, 01:46 PM - Forum: General Coding Help - Replies (3)

[python]import datetime

def inputYear(msg, errmsg, l, h):
done = 0
while (not done):
try:
ans = input(msg)
..... More

Print this item

  [PyQt]Find item or text in Qtablewidget
Posted by: maziio - Aug-06-2018, 01:37 PM - Forum: GUI - No Replies

Hi,
I need help with this :
def change(self):
[python]def change(self):
m = 2
cur = conn.cursor()
conn.text_factory = str
cur.e..... More

Print this item

Question [Help] Convert integer to Roman numerals? {Screenshot attached}
Posted by: vanicci - Aug-06-2018, 12:27 PM - Forum: General Coding Help - Replies (10)

[Help] Convert integer to Roman numerals? {Screenshot attached}

Hi,

Please see attached screenshot for the current exercise that I..... More

Print this item

  First post and looking for help
Posted by: coder2be - Aug-06-2018, 12:22 PM - Forum: General Coding Help - Replies (3)

Hi all

My first post here (complete novice) Smile

I have no python experience but wonder if it will be a good choice for what I would like ..... More

Print this item

  problem with lambda and list compression
Posted by: Prince_Bhatia - Aug-06-2018, 11:41 AM - Forum: General Coding Help - Replies (1)

hi,

i am trying to insert random colors from a list into another list, but facing a bit problem, as it is returning lambda store place where it is ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 11 minutes ago Lou noisefloor General Codin...
  Python compiler 28 minutes ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579503
  Tutorial Requ... 512898
  Web Scraping ... 442372
  Newbie with P... 386398
  New Users Int... 381748
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+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
QABOB Today
adityaN Today
NeoQuant Yesterday
Hosthubac Yesterday
ifdainstitute7 Yesterday

User Panel Messages

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