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,640
» Latest member: holeioonline
» Forum threads: 38,641
» Forum posts: 175,092

Full Statistics

Online Users
There are currently 297 online users.
» 0 Member(s) | 292 Guest(s)
Baidu, Bing, Google, AOL, Yandex

Latest Threads
How to retain Annotation ...
Forum: Code Review
Last Post: holeioonline
2 hours ago
» Replies: 2
» Views: 861
Trading Bot written in Py...
Forum: News and Discussions
Last Post: LoriBrown
3 hours ago
» Replies: 4
» Views: 95,141
replace or remove text fr...
Forum: General Coding Help
Last Post: Curbie
Yesterday, 06:53 PM
» Replies: 13
» Views: 428
locating a pushbutton py ...
Forum: GUI
Last Post: deanhystad
Yesterday, 06:47 PM
» Replies: 2
» Views: 94
Difference and meaning in...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 03:41 PM
» Replies: 4
» Views: 135
While loop is terminating...
Forum: Homework
Last Post: Gribouillis
Yesterday, 06:19 AM
» Replies: 1
» Views: 108
How to put my game loop i...
Forum: Game Development
Last Post: Thatedge
Jun-28-2025, 08:36 AM
» Replies: 10
» Views: 3,125
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: Thatedge
Jun-28-2025, 08:35 AM
» Replies: 2
» Views: 1,904
Unable to install pygame ...
Forum: Game Development
Last Post: Plyth
Jun-28-2025, 03:54 AM
» Replies: 3
» Views: 2,132
List[] in Python needs so...
Forum: Game Development
Last Post: DeaD_EyE
Jun-27-2025, 01:32 PM
» Replies: 3
» Views: 390

 
  Can anyone explain the code?
Posted by: MPython - Aug-16-2017, 05:15 PM - Forum: General Coding Help - Replies (3)

How it works?

[python]
def externa(x):
def interna(y):
return y**x
return interna
f1=externa(2)
print(f1(3)) #----> 9
print(..... More

Print this item

  YANQ: Yet Another Newbie Question !
Posted by: webdef - Aug-16-2017, 03:51 PM - Forum: General Coding Help - Replies (3)

Here is the code I try to improve:

[python] def getEventFromId(self, service, eventid):
event = None
if self.epgcache is not None and eventid..... More

Print this item

  Need help with getting this voting eligiblity code to work
Posted by: Beastly - Aug-16-2017, 03:42 PM - Forum: Homework - Replies (1)

Struggling with how I can get the voting eligibility part at the end to work

import re

while True:
spefic_date = input('Enter todays date (..... More

Print this item

  Finding largest value in a for loop
Posted by: mingchew - Aug-16-2017, 11:28 AM - Forum: General Coding Help - Replies (1)

The Receiver PC receive multiple TOS value.
I just want to capture the largest value.
why the code below doesn't work.

list
largest=0

for Tru..... More

Print this item

  Promise
Posted by: nilamo - Aug-16-2017, 04:09 AM - Forum: Code sharing - Replies (2)

Earlier today, I had the opportunity (lol) to write a javascript fallback function for Promises for browsers which don't support Promises.  Which... i..... More

Print this item

  How to Use Gtk.Textview
Posted by: navinandrewprince - Aug-16-2017, 03:45 AM - Forum: GUI - No Replies

Hi I have developed a Python automation tool for Test Cases Automation purpose.
Right now I am in process of developing a GUI for it and have complet..... More

Print this item

  PySFTP ChDir Error490
Posted by: whoknows - Aug-16-2017, 01:34 AM - Forum: General Coding Help - Replies (2)

Hello. I am trying to figure out why I keep getting this error where I try to change the directory (see code below)
OverflowError: mode out of range..... More

Print this item

  Password Saver Program
Posted by: suitec - Aug-16-2017, 01:02 AM - Forum: Homework - Replies (3)

I have an assignment to write code for Choice 2, to 1. create a loop that goes through each item in the password list; 2. Check if the name is found; ..... More

Print this item

  how to convert string soup to raw string ?
Posted by: Fran_3 - Aug-15-2017, 10:30 PM - Forum: Web Scraping & Web Development - Replies (8)

I have a webpage in the variable soup

I try to search it with a regx but get an error
TypeError: expected string or bytes-like object

If I set ..... More

Print this item

  Help installing QtOpenGL via pyenv
Posted by: Yoshimaster96 - Aug-15-2017, 10:20 PM - Forum: News and Discussions - Replies (2)

Upon entering the command:
python configure-ng.py

It states that the following modules will be installed:
[output]These PyQt4 mo..... More

Print this item

  Error while writing a code for feature scaling
Posted by: prateek - Aug-15-2017, 08:50 PM - Forum: General Coding Help - Replies (1)

Hi, I am trying to write a code for doing feature scaling but getting an error. Please help me out with this.

def featureScaling(arr):
ndata =..... More

Print this item

  how to copy all files to my tmp folder?
Posted by: terry_arman2 - Aug-15-2017, 07:40 PM - Forum: General Coding Help - Replies (1)

Hi, how can i copy all files with extension ".txt " and ".pdf"?
theres a problem in my code at the time i want to copy certain files, only copy just ..... More

Print this item

  Game not letting player 1 win straight away
Posted by: mzmingle - Aug-15-2017, 04:28 PM - Forum: General Coding Help - Replies (6)

I'm making a two player noughts and crosses game, and when player one wins, it asks player two to make a move before ending the game. I don't know how..... More

Print this item

  Storing float as integer in a database
Posted by: Ageir - Aug-15-2017, 04:25 PM - Forum: General Coding Help - Replies (6)

Hi! I'm rather new to programming in Python and trying to figure out how to store my sensor data from my RPi in a database. For example I have tempera..... More

Print this item

  unable to replcae a pattern using method re.sub()
Posted by: Jeevananda - Aug-15-2017, 03:06 PM - Forum: Web Scraping & Web Development - Replies (4)

my question here
I am unable to replace a pattern using the method re.sub()
[python]
import re

#initialize string

x='<?xml version="1.0" enco..... More

Print this item

  I need help
Posted by: 777CAIN - Aug-15-2017, 02:39 PM - Forum: General Coding Help - Replies (14)

Is it possible to get a user to type in something like Apples and it comes back with a number eg

I type apple it comes back as 6?

If so could so..... More

Print this item

  Search by keyword
Posted by: Stokes4 - Aug-15-2017, 01:51 PM - Forum: General Coding Help - Replies (2)

I'm making an ai in python 2.7.13 and I looked around but can't figure out how to get it to search google by keyword. Ex: instead of typing "google" t..... More

Print this item

  OpenCV contrib Python
Posted by: peta - Aug-15-2017, 01:33 PM - Forum: General Coding Help - Replies (4)

Hello,

I want to learn programming (python) by realising different structured light 3D scanning methods. For this I wanted to try the structured_li..... More

Print this item

  PythonWin.exe
Posted by: cartogal - Aug-15-2017, 12:39 PM - Forum: General Coding Help - Replies (5)

I just had Python 2.7 and pythonWin 2.7 downloaded on my companies server, we use Citrix. I can't find the PythonWin.exe file. My coworker has a sta..... More

Print this item

  Unsolved import App .Unable to import Kivy
Posted by: bharath1991 - Aug-15-2017, 11:40 AM - Forum: GUI - Replies (2)

How do i use the module which is installed using Pip. I am not able to add as egg whereas there is no option to add an wheel. I have installed kivi us..... More

Print this item

  User input numpy array with color mapping & mouse click events
Posted by: imakeathepi - Aug-15-2017, 10:33 AM - Forum: Homework - No Replies

Hello Members!

I am new to the forum and looking for some help with a project related coding question.

I am tasked with making a 2d numpy array..... More

Print this item

  PyInstaller subprocess.checkout error
Posted by: aftab_s81 - Aug-15-2017, 07:57 AM - Forum: GUI - Replies (1)

I am developing a GUI app in Python, the code works fine in PyCharm IDE. Now I want to convert into an exe for distribution.

My code works fine until..... More

Print this item

  Order of Operation for creating organizational database software
Posted by: Mike_Marino - Aug-15-2017, 12:28 AM - Forum: General Coding Help - Replies (5)

Hello! I’m a music composer and am looking to try to build an organizational database to keep better (and more in-depth) track of the music I create...... More

Print this item

  Multiprocessing
Posted by: ian - Aug-14-2017, 10:02 PM - Forum: General Coding Help - Replies (1)

I have a function self.load_dataframe(0). when it is called from in its Frame parent, it will freeze the Frame until it returns value to self.df. I tr..... More

Print this item

  Anti Vowel
Posted by: OmarBrikaa - Aug-14-2017, 07:05 PM - Forum: General Coding Help - Replies (2)

What is wrong with this code? It should return the text without vowels.

[python]def anti_vowel(text):
new = list(text)
for letter in new:
..... More

Print this item

  stepper motor with raspberry pi
Posted by: bowen73 - Aug-14-2017, 06:56 PM - Forum: General Coding Help - Replies (3)

I’ve had my 1st stepper hat delivered and all is working fine and have it turning a bipolar stepper motor, but need help getting more from the demo sc..... More

Print this item

  Copy info of 2 files with share information
Posted by: AngelRuizM - Aug-14-2017, 06:11 PM - Forum: General Coding Help - Replies (1)

Hi,

I´m really new using Python. But I have to solve a problem to make the analysis of my scientific data.

I have two excel files with differen..... More

Print this item

  Reporting tool for ticket's SLA
Posted by: vstanchev - Aug-14-2017, 04:32 PM - Forum: General Coding Help - No Replies

Hello All,

My company is using request tracker for its ticketing solutions.

There is also a reporting tool written in python that is really simp..... More

Print this item

  ffplay missing for srtreaming over gopro sessione
Posted by: mainieri13 - Aug-14-2017, 02:18 PM - Forum: General Coding Help - Replies (1)

Launching a script which get directly streaming the gopro on Pc when used on android it returns error (Qpython platform) when arrives to the ffplay co..... More

Print this item

  Perl 6 regexes
Posted by: nilamo - Aug-14-2017, 01:46 PM - Forum: News and Discussions - No Replies

This review of Perl 6 was posted yesterday: http://www.evanmiller.org/a-review-of-perl-6.html

I just wanted to highlight a few things, and how incr..... More

Print this item

  Puzzled by classes
Posted by: Barrowman - Aug-14-2017, 12:58 PM - Forum: GUI - Replies (3)

I have been learning to create GUI's using tkinter for some time and have created around 12 which I am happy with.
I have not used classes but see mor..... More

Print this item

  Can't link .kw file with main.py
Posted by: Allpha - Aug-14-2017, 09:07 AM - Forum: GUI - Replies (2)

Hello I started to learn kivy gui for puthon 3 and I have a problem, I can't link.kw file with main.py.
I don't now how to upload there photos, but I..... More

Print this item

  newbie here - need help with building very basic http server
Posted by: BenSalem - Aug-14-2017, 08:06 AM - Forum: Networking - No Replies

*** Link removed ***

Print this item

  Need Help with Simple Text Reformatting Problem
Posted by: MattTuck - Aug-14-2017, 06:05 AM - Forum: Web Scraping & Web Development - Replies (5)

[b]So, I'm trying to reformat a text from Shakespear's plays so that, every monologue is only one line long.

For example, this is what I am given:..... More

Print this item

  Profile correction cut-line under name wrong
Posted by: Fran_3 - Aug-14-2017, 12:41 AM - Forum: Board - Replies (2)

On my profile under my name Fran_3 is a line that says "programmer named tim"
How do I change this to programmer named Fran?
I have no idea who "tim..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to retain Annotation ... 2 hours ago srikrishnan holeioonline Code Review
  Trading Bot written in Py... 3 hours ago Pizzlew LoriBrown News and Disc...
  replace or remove text fr... Yesterday, 18:53 Curbie Curbie General Codin...
  [PyQt] locating a pushbut... Yesterday, 18:47 arbiel deanhystad GUI
  Difference and meaning in... Yesterday, 15:41 Udbytossen Gribouillis General Codin...
  While loop is terminating... Yesterday, 06:19 jumpsworthnow Gribouillis Homework
  How to put my game loop i... 06-28, 08:36 temlotresid6 Thatedge Game Developm...
  2D-Cube-Tic-Tac-Toe 06-28, 08:35 freethrownucleus Thatedge Game Developm...
  Unable to install pygame ... 06-28, 03:54 garthE Plyth Game Developm...
  List[] in Python needs so... 06-27, 13:32 Codingdesigner12 DeaD_EyE Game Developm...
  Web scraping confusion 06-27, 11:05 keifin AlluminumFoil Web Scraping ...
Most views
  The best Prog... 572365
  Tutorial Requ... 485110
  Web Scraping ... 436898
  Newbie with P... 379734
  Thread remain... 351242
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+ 12068
buran 8173
snippsat 7341
deanhystad 6844
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
holeioonline Today
marcustessy Yesterday
dmac6809 Yesterday
racheldavis66 Yesterday
ankaoutdoor Yesterday

User Panel Messages

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