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,629
» Latest member: karsonFergosn
» Forum threads: 38,638
» Forum posts: 175,072

Full Statistics

Online Users
There are currently 394 online users.
» 0 Member(s) | 391 Guest(s)
Google, Bing, Baidu

Latest Threads
replace or remove text fr...
Forum: General Coding Help
Last Post: deanhystad
53 minutes ago
» Replies: 5
» Views: 131
How to put my game loop i...
Forum: Game Development
Last Post: Thatedge
7 hours ago
» Replies: 10
» Views: 3,085
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: Thatedge
7 hours ago
» Replies: 2
» Views: 1,885
Unable to install pygame ...
Forum: Game Development
Last Post: Plyth
Today, 03:54 AM
» Replies: 3
» Views: 2,109
List[] in Python needs so...
Forum: Game Development
Last Post: DeaD_EyE
Yesterday, 01:32 PM
» Replies: 3
» Views: 381
Web scraping confusion
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
Yesterday, 11:05 AM
» Replies: 4
» Views: 1,868
Problem Converting Tradin...
Forum: General Coding Help
Last Post: wallneradam
Yesterday, 07:29 AM
» Replies: 2
» Views: 2,810
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Jun-26-2025, 08:17 PM
» Replies: 2
» Views: 3,077
can't use pyrepl: bad mag...
Forum: News and Discussions
Last Post: Plyth
Jun-26-2025, 05:53 AM
» Replies: 2
» Views: 256
Setting AST node lineno c...
Forum: General Coding Help
Last Post: voidtrance
Jun-24-2025, 02:10 PM
» Replies: 5
» Views: 523

 
  accessing variables from a decorator
Posted by: ashwin - Jun-30-2017, 11:50 AM - Forum: General Coding Help - Replies (1)

I have code similar to this
[python]def my_function_decorator(f):
def wrap(*args, **kwargs):
my_count_variable = 1
return f(*args, **kwargs)
ret..... More

Print this item

  pip - how to use it?
Posted by: amgp - Jun-30-2017, 06:05 AM - Forum: Game Development - Replies (9)

Purchased a book on Python Game Programming and got stuck after chapter 1.
At the start of chapter 2 i was told to type in: $pip --version and also $..... More

Print this item

  Annotations
Posted by: nilamo - Jun-30-2017, 03:09 AM - Forum: Fundamentals - No Replies

I think annotations are a little special, so I want to try to organize this a little differently than how a tutorial is normally structured.  That is ..... More

Print this item

  SSH Botnet??
Posted by: Kaos_Method - Jun-29-2017, 06:17 PM - Forum: General Coding Help - Replies (2)

Hey everyone!

I'm new here, first post! I've put quite a fair amount of time into Python now, and I'm really enjoying it. I'm a CS major, and I've..... More

Print this item

  Merge Predictions with whole data set
Posted by: mayanksrivastava - Jun-29-2017, 11:39 AM - Forum: Data Science - No Replies

A very basic question. We have dataset with experience and salary

now i wanted to merge my predictions and create an output with experience and th..... More

Print this item

  urllib2.urlopen() user agent header
Posted by: Skaperen - Jun-29-2017, 02:47 AM - Forum: Web Scraping & Web Development - Replies (8)

urllib2.urlopen() sends a user agent HTTP header in the request that identifies the library.  what i want to do is send the request [i]without any use..... More

Print this item

  How to trigger a function by clicking the left mouse click?
Posted by: HelloBoyz - Jun-29-2017, 02:02 AM - Forum: General Coding Help - Replies (1)

I want to start off by saying that I am new to Python so I am sorry if this question is going to sound stupid to you.

I am just looking for an easy..... More

Print this item

  need a little with python3.5 oprnibg other program
Posted by: Blue Dog - Jun-28-2017, 09:29 PM - Forum: General Coding Help - Replies (2)

Hi,
  Sorry no code, been looking for some type of code to open and run other programs on win 7.
I made a very nice control program that does what e..... More

Print this item

  Interesting new features in python3
Posted by: Kebap - Jun-28-2017, 07:49 PM - Forum: News and Discussions - Replies (8)

I love that PEP 498: Formatted string literals are coming in python 3.6 !

[python]
>>> import..... More

Print this item

  How to append arrays within a class
Posted by: shaynehansen - Jun-28-2017, 06:51 PM - Forum: Data Science - Replies (3)

Essentially the class will act as a dictionary.

I need to append the string 'Time' to the self._keys list.
Also, I have a (32768, 1233) self._arr..... More

Print this item

  While loop within a Function (2.7)
Posted by: tuffgong - Jun-28-2017, 03:44 PM - Forum: Homework - Replies (3)

Good Morning. I have some beginner/intermediate coding experience and decided to learn a new language. I am working through a book that teaches Python..... More

Print this item

  Directory help
Posted by: Hannakk - Jun-28-2017, 02:58 PM - Forum: General Coding Help - Replies (3)

From what I understand {} creates an empty directory, like these three:

energies = {}
hour_energies = {}
annual_energy = {}
..... More

Print this item

  Write only data not >> () << parentheses
Posted by: zinho - Jun-28-2017, 02:00 PM - Forum: General Coding Help - Replies (2)

I need save data in csv file, but only data.

Look in quote below, how data is save in file.

[python]from itertools import combinations

jogado..... More

Print this item

  Multi windows in tkinter buttons not responding correctly
Posted by: curtjohn86 - Jun-28-2017, 01:36 PM - Forum: GUI - Replies (13)

My apologies I am new to forums and new to coding, I am sure I'm doing everything completely backwards.

I am trying to use my RPI 3b for home autom..... More

Print this item

  Zip on single element in nested sequence.
Posted by: rhubarbpieguy - Jun-28-2017, 12:23 PM - Forum: General Coding Help - Replies (14)

How do I create the list c=[2,3,4] from the list a=[[1,2,3],[2,3,4],[3,4,5]]? In other words, how do I create a list from element [1] of a list contai..... More

Print this item

  Back-end & 3D developer - full-time - AirShaper
Posted by: wouterremmerie - Jun-28-2017, 11:19 AM - Forum: Jobs - No Replies

At AirShaper (www.airshaper.com), we are developing an online aerodynamics platform. It allows
people with no knowledge on CFD to optimize their aero..... More

Print this item

  import/use data from text files
Posted by: MichealPeterson - Jun-28-2017, 08:33 AM - Forum: Data Science - Replies (1)

Hey all. This is my first post. I have heard how awesome the Python community is and I am dying to find out.
I have been stuck on this for about a we..... More

Print this item

  Animation with polygon points not working
Posted by: cbmanjoe - Jun-27-2017, 09:44 PM - Forum: General Coding Help - Replies (1)

I created a sin equation that I want to use to translate a point on a polygon, but it isn't doing anything. I used print statements for both my equati..... More

Print this item

  Django startapp problem
Posted by: nengkya - Jun-27-2017, 07:28 PM - Forum: Web Scraping & Web Development - Replies (4)

Can somebody give me a tutorial about creating startapp in django ? I've been following these tutors :

1. https://docs.djangoproject.com/en/1.11/i..... More

Print this item

  why is my pen not drawing?
Posted by: swaginator - Jun-27-2017, 04:22 PM - Forum: General Coding Help - Replies (3)

This is my code in turtle graphics for chess. In the input class, I want the square that I click on the board to light up blue. It seems that I am una..... More

Print this item

  How to stop a tkinter function, without closing the window?
Posted by: keakins - Jun-27-2017, 03:34 PM - Forum: GUI - Replies (5)

So, I feel like this should be kind of a simple thing to do.  Yet, I am having so much troubel with it.  I have tinkered around with the after method,..... More

Print this item

  Touchscreen and ADS1x15 Interference
Posted by: Raudert - Jun-27-2017, 01:24 PM - Forum: News and Discussions - No Replies

Hello,

I noticed that if I attach a touch screen pointing device via USB and HDMI, the ADS1x15 ADC I am using gets overridden as if it is not connec..... More

Print this item

  Programming Code
Posted by: Poonam - Jun-27-2017, 08:21 AM - Forum: General Coding Help - Replies (4)

Hello Every one,
There is program please help if I have done any thing wrong

To implement following memory game :--
Computer makes 20 boxes,numbe..... More

Print this item

  [Errno11004] Get addrinfo failed with urlopen
Posted by: prashanth0988 - Jun-27-2017, 06:28 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello All,

I'm new to python development and using python version Python 2.7.13 , basically im trying to open a url but I get an error. Plea..... More

Print this item

  "Python launcher" required to run *.py scripts on Windows?
Posted by: pstein - Jun-27-2017, 05:43 AM - Forum: General Coding Help - Replies (3)

As I observed v3.6.1 installs (on Windows 7) in addition to the core python engine a second program "Python Launcher".

As far as I read this compon..... More

Print this item

  Help with code to access USB port
Posted by: donmerch - Jun-27-2017, 02:48 AM - Forum: General Coding Help - Replies (2)

So I have 2 different Maxbotix USB sensors connected to a USB hub. They enumerate as /dev/ttyUSB0 and /dev/ttyUSB1. I'm trying to cycle through both s..... More

Print this item

  How to build this code ??
Posted by: aquila - Jun-26-2017, 11:38 PM - Forum: General Coding Help - Replies (11)

I would like some HELP!!

I want to make a simple noob function before put into my django project.

[b]I want a function that provides the lamp power ..... More

Print this item

  Python telnet script for IP list
Posted by: mangesh - Jun-26-2017, 09:08 PM - Forum: Networking - Replies (1)

Hi,

I am looking for a Python script that can telnet a list of IP address in a saved file say "iplist.txt" and run a set of commands say "commands...... More

Print this item

  Delete files inside Folder and subfolders
Posted by: zinho - Jun-26-2017, 07:32 PM - Forum: General Coding Help - Replies (5)

Hi.

I want delete only files inside MainFolder and subfolder, but not delete folders.
[Image: kJoqnk]

I try sominth like below..... More

Print this item

  Import error even though module is installed
Posted by: datafix - Jun-26-2017, 06:25 PM - Forum: Web Scraping & Web Development - Replies (8)

Cant post my code because I'm new and it has links?


[python]
from bs4 import BeautifulSoup
from urllib.request import urlopen

url = "http://..... More

Print this item

  These simple equations comes up as an error
Posted by: M3RCY - Jun-26-2017, 06:11 PM - Forum: General Coding Help - Replies (4)

I dont know what is going wrong and I would like to fix this.

[python]
DB = input()

x = "float(DB)/10"
y = "float(x)+11"
z = "float(y)/100"
..... More

Print this item

  FCC API: addressing unexpected error
Posted by: kiton - Jun-26-2017, 05:53 PM - Forum: Data Science - Replies (8)

Hello!

My goal is to convert a number of latitudes and longitudes to Federal Information Processing Standard (FIPS) codes. To do so, I am using the f..... More

Print this item

  dictionary construction help
Posted by: shaynehansen - Jun-26-2017, 04:15 PM - Forum: Data Science - Replies (1)

I'm trying to assign my values to my keys. The issue is the 2D array, it is only reading in by rows, and I need it to by columns. I want to be able to..... More

Print this item

  Syntax error for simple script
Posted by: pstein - Jun-26-2017, 03:05 PM - Forum: General Coding Help - Replies (2)

Sorry for this newbie question:

I installed Python v3.6.1 on win 7. Afterwards I tried to execute the following simple python script
from webpage ..... More

Print this item

  how to run a file in powershell with python
Posted by: RomanEmpire - Jun-26-2017, 02:53 PM - Forum: General Coding Help - Replies (6)

I'm trying to run my hello world in python and im using powershell as my terminal and notepad++ as my register and I keep seeing this error message
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  replace or remove text fr... 53 minutes ago Curbie deanhystad General Codin...
  How to put my game loop i... 7 hours ago temlotresid6 Thatedge Game Developm...
  2D-Cube-Tic-Tac-Toe 7 hours ago freethrownucleus Thatedge Game Developm...
  Unable to install pygame ... Today, 03:54 garthE Plyth Game Developm...
  List[] in Python needs so... Yesterday, 13:32 Codingdesigner12 DeaD_EyE Game Developm...
  Web scraping confusion Yesterday, 11:05 keifin AlluminumFoil Web Scraping ...
  Problem Converting Tradin... Yesterday, 07:29 kralxs wallneradam General Codin...
  [PyQt] PyQT5 Thread crash... 06-26, 20:17 Suresh Axel_Erfurt GUI
  can't use pyrepl: bad mag... 06-26, 05:53 eliastw85 Plyth News and Disc...
  Setting AST node lineno c... 06-24, 14:10 voidtrance voidtrance General Codin...
  [WxPython] [SOLVED] Let u... 06-24, 14:04 Winfried deanhystad GUI
Most views
  The best Prog... 572355
  Tutorial Requ... 485045
  Web Scraping ... 436890
  Newbie with P... 379721
  Thread remain... 351241
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+ 12067
buran 8173
snippsat 7340
deanhystad 6841
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
karsonFergosn Today
t3stocks Today
TheJeffah Yesterday
ChauHaiCim9904 Yesterday
barrelmarble Yesterday

User Panel Messages

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