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,592
» Latest member: bowens1983
» Forum threads: 38,638
» Forum posts: 175,048

Full Statistics

Online Users
There are currently 405 online users.
» 0 Member(s) | 400 Guest(s)
Bing, Google, Yandex, Baidu, Mojeek

Latest Threads
Python Install Mager Help
Forum: News and Discussions
Last Post: bowens1983
3 hours ago
» Replies: 0
» Views: 29
[SOLVED] Let user search ...
Forum: GUI
Last Post: Winfried
9 hours ago
» Replies: 2
» Views: 105
Comparing two columns wit...
Forum: General Coding Help
Last Post: Stonsuld
Today, 07:09 AM
» Replies: 2
» Views: 1,427
Convert any Python expres...
Forum: General Coding Help
Last Post: DeaD_EyE
Today, 07:06 AM
» Replies: 2
» Views: 251
Using EventSource in Pyth...
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:45 AM
» Replies: 1
» Views: 130
need help with tracking a...
Forum: General Coding Help
Last Post: gqdeep01
Yesterday, 02:14 AM
» Replies: 0
» Views: 101
A penny doubled every day...
Forum: Homework
Last Post: DeaD_EyE
Jun-21-2025, 05:26 PM
» Replies: 5
» Views: 241
I have a question
Forum: General Coding Help
Last Post: noisefloor
Jun-21-2025, 09:26 AM
» Replies: 2
» Views: 228
Problème d'exécutable
Forum: General Coding Help
Last Post: noisefloor
Jun-21-2025, 09:22 AM
» Replies: 1
» Views: 212
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Jun-20-2025, 07:21 PM
» Replies: 11
» Views: 593

 
  Getting Import error in Python program
Posted by: atinesh922 - Feb-23-2017, 04:30 AM - Forum: General Coding Help - Replies (5)

On running main.py. I'm getting the following error

Quote:ModuleNotFoundError: No module named 'dir2'

Python files

[b]mai..... More

Print this item

  self vs some other name
Posted by: Skaperen - Feb-23-2017, 03:22 AM - Forum: General Coding Help - Replies (7)

is there anyone that regularly uses other names or one other name, in place of self, when coding methods of a class?

Print this item

  Python 3 mysql export to csv
Posted by: elliott0184 - Feb-22-2017, 11:01 PM - Forum: General Coding Help - Replies (3)

Hi there,
I have been creating an attendance system (Clocking in and out machine) for the company i work for. I have been storing all the data in a m..... More

Print this item

  Simple tictactoe with error
Posted by: mut4ntch1ck - Feb-22-2017, 10:44 PM - Forum: General Coding Help - Replies (2)

Hi. Kind of a novice at this. Trying to finish up a tictactoe program. I know there were better ways to go about some things, but I was trying to just..... More

Print this item

  Script has stopped working
Posted by: NickBurrett - Feb-22-2017, 05:57 PM - Forum: General Coding Help - Replies (2)

Hello

Can anyone tell me why my script has stopped working?
[error]Last login: Wed Feb 22 17:10:02 on console

Nicks-Mac-Mini:~ nickburrett$ py..... More

Print this item

  selenium screenshot
Posted by: hai001 - Feb-22-2017, 12:56 PM - Forum: Web Scraping & Web Development - Replies (18)

Hello Everyone,

Can you share code for auto opening 6 websites and take screen shots of each website at particular area. Screen shot of the area an..... More

Print this item

  Multi line strings and Ascii art
Posted by: YevesDraco - Feb-22-2017, 12:25 PM - Forum: General Coding Help - No Replies

Hi!
I am programing an RPG at the moment and at several points I use Ascii art.

There is a simple way to print several lines of Ascii art by using..... More

Print this item

  Correct way to change bytes in a file?
Posted by: Raptor88 - Feb-22-2017, 10:49 AM - Forum: General Coding Help - Replies (16)

I'm a beginner working on my first Python program.  Using Python 3.6.

I don't understand what is actually stored in memory for the following two sc..... More

Print this item

  [ANN] New Slack Group Dedicated to learning Python
Posted by: joe_anonimist - Feb-22-2017, 07:20 AM - Forum: News and Discussions - Replies (4)

Hello all!

Me and a few other Python enthusiasts started a Slack group dedicated to learning Python. All of us know the basics of Python and our g..... More

Print this item

  Help... python decorator
Posted by: alfredocabrera - Feb-22-2017, 07:16 AM - Forum: General Coding Help - No Replies

I have a python function and a decorator that works just fine and it looks like this:
[python]
def fun_cache(function):
   memo = {}
   def wrap..... More

Print this item

  python decorator
Posted by: alfredocabrera - Feb-22-2017, 07:04 AM - Forum: Homework - No Replies

[color=#222222][size=small][font=Arial, Helvetica, sans-serif]I have a python function and a decorator that works just fine and it looks like this:[/f..... More

Print this item

  PEMDAS Violation
Posted by: Amitoj25 - Feb-22-2017, 06:58 AM - Forum: General Coding Help - Replies (2)

Sir can u help me with this code

print 500/11*2%8
print 500%11*2/8
Here the output is 2 & 1 respectively

it is violating PE..... More

Print this item

  Help with my first program
Posted by: CadWizard - Feb-21-2017, 09:10 PM - Forum: General Coding Help - Replies (3)

Hi everybody, I have just started learning Python and have just jumped straight in and given it a go as thats what most people recommend.

At work (..... More

Print this item

  Code help
Posted by: YevesDraco - Feb-21-2017, 08:47 PM - Forum: General Coding Help - Replies (7)

Hi.
I am programing an RPG and I have run into a simple yet strange problem (At least to me)

When the user is asked to wake up or not, I used this..... More

Print this item

  pandas.read_excel and skiprows
Posted by: metalray - Feb-21-2017, 04:24 PM - Forum: Homework - Replies (3)

Hi Pandas Experts,
I used the pandas (pd) skiprow attribute to set the first 18 rows to be skipped.
Those are just headings and descriptions.
Howev..... More

Print this item

  I don't even know problem
Posted by: cptyozgat - Feb-21-2017, 04:24 PM - Forum: General Coding Help - Replies (3)

Hey guys;
I just want to click on on-screen board with mouse manupilation. I tried PyAutoGui and PyMouse couln't get any ruselt also Java too but it ..... More

Print this item

  Regex: Remove all match plus one char before all
Posted by: Alfalfa - Feb-21-2017, 03:35 PM - Forum: General Coding Help - Replies (34)

Hello,
I made this script to find all "|BS|" blocks in a string, and simulate a backspace, as if the string would be typed in a linetext input field. ..... More

Print this item

  penjee . com and non-pythonic code
Posted by: buran - Feb-21-2017, 02:27 PM - Forum: News and Discussions - Replies (15)

Today I saw a post in Facebook showing visualisation from https://panjee.com on separating odd and even numbers from a list. The code goes like this:..... More

Print this item

  Combining 2 scripts
Posted by: wpothers - Feb-21-2017, 11:22 AM - Forum: Web Scraping & Web Development - Replies (5)

I am creating a display with my friend to display some information on a screen. He is coding the information (like a clock, and newsfeed and stuff lik..... More

Print this item

  Music Notation
Posted by: Larz60+ - Feb-21-2017, 11:22 AM - Forum: Code sharing - Replies (14)

Just curious if anyone used music notation (such as lilypond) software.
I have an application that takes any scale from around the world, categorized..... More


Attached Files

Thumbnail(s)
   
Print this item

  pandas series to list
Posted by: metalray - Feb-21-2017, 10:24 AM - Forum: Homework - Replies (5)

Dear Pandas Experts,
I signed up for an online training for python and one of the problems I have is that I got a series but should make a list out o..... More

Print this item

  gotcha
Posted by: Skaperen - Feb-21-2017, 09:14 AM - Forum: General Coding Help - Replies (9)

Python Gotchas is closed, so i can't add this there ...

[icode]isinstance(False,int)..... More

Print this item

  printing patterns and stars?
Posted by: msa969 - Feb-21-2017, 08:04 AM - Forum: News and Discussions - Replies (5)

I am a newbie to python and using python 3.
I wish to learn patterns and printing e.g stars etc. I want to start basic patterns first
eg.
*
**
**..... More

Print this item

  Python v COBOL
Posted by: Skaperen - Feb-21-2017, 06:34 AM - Forum: News and Discussions - Replies (21)

what would we need to do to python to make a suitable basis for tossing out COBOL besides cleaning the sticky sugar out of their shift keys and making..... More

Print this item

  caching attribute reference
Posted by: Skaperen - Feb-21-2017, 06:24 AM - Forum: General Coding Help - Replies (23)

in a class method, i need to access an instance attribute, such as self.foo and use that value many times.  is there any expected perfo..... More

Print this item

  pygtk3, how to change application theme ?
Posted by: harun2525 - Feb-21-2017, 03:55 AM - Forum: GUI - Replies (7)

hello, i sarched on net but i couldn't  find any useful info, how can i do this ?

Print this item

  Trying to convert a script from "2to3"
Posted by: JohnathanMonkey - Feb-21-2017, 01:24 AM - Forum: General Coding Help - Replies (15)

I cannot for the life of me get 2to3 work for me and I was wondering if anyone would be gracious enough to help me out with it. I would sincerely appr..... More

Print this item

  Creating a colored Contour Plot
Posted by: Metwx87 - Feb-21-2017, 12:30 AM - Forum: Homework - Replies (3)

This is a homework problem
[size=medium]1.[font=crocodoc-a4WIo1-inv-f10] WCT is a function of two variables (T an..... More

Print this item

  Copy folders to newly created folder and append
Posted by: Filthy_McNasty - Feb-20-2017, 06:22 PM - Forum: General Coding Help - Replies (5)

This is the first part that works , basically created 3 new mandatory folders (1,2,3) in the main TEST directory and if user wants to add any new one ..... More

Print this item

  I'm Stuck
Posted by: 13owatts - Feb-20-2017, 05:55 PM - Forum: General Coding Help - Replies (14)

Hi, I was wondering if anyone could help me with this code. When I enter any word (Thing, in this example) it comes up with this error:


[output][..... More

Print this item

  Unexpected argument
Posted by: jstockton - Feb-20-2017, 05:53 PM - Forum: General Coding Help - Replies (10)

I'm trying to use a SQL class that I found and am having issues with getting it to work and am wondering if anyone has suggestions.  

Here is the c..... More

Print this item

  exclude hyphen
Posted by: baolevani - Feb-20-2017, 05:27 PM - Forum: News and Discussions - Replies (1)

Hi,

I need some help with formatting.

I am exporting data in cvs file and need to exclude hyphen and add zero in front, for example "5-" should ..... More

Print this item

  dxfgrabber
Posted by: elhetch - Feb-20-2017, 12:29 PM - Forum: General Coding Help - Replies (7)

Hello,
 i am not sure why the below code doesnot return the layers as expected.

[python]
import dxfgrabber

test = dxfgrabber.readfile("test.dx..... More

Print this item

  Fast method of searching a string in a multi-dimension array?
Posted by: draems - Feb-20-2017, 11:49 AM - Forum: General Coding Help - Replies (6)

Good day. Anyone, please suggest a quicker method to search a string in a multi-dimension array. Given the example below, I want to check if the word ..... More

Print this item

  Issue about conversion
Posted by: akshay_jain - Feb-20-2017, 07:47 AM - Forum: General Coding Help - Replies (1)

Hi,
How does rounding off happens in python if i am converting from very large string to double??

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python Install Mager Help 3 hours ago bowens1983 bowens1983 News and Disc...
  [WxPython] [SOLVED] Let u... 9 hours ago Winfried Winfried GUI
  Comparing two columns wit... Today, 07:09 doug2019 Stonsuld General Codin...
  Convert any Python expres... Today, 07:06 voidtrance DeaD_EyE General Codin...
  Using EventSource in Pyth... Yesterday, 08:45 rbadis snippsat Web Scraping ...
  need help with tracking a... Yesterday, 02:14 gqdeep01 gqdeep01 General Codin...
  A penny doubled every day... 06-21, 17:26 esoyboy DeaD_EyE Homework
  I have a question 06-21, 09:26 Clictithe noisefloor General Codin...
  Problème d'exécutable 06-21, 09:22 Zauf noisefloor General Codin...
  How do select this table ... 06-20, 19:21 MarkMan snippsat Web Scraping ...
  [split] Simple webbot for... 06-20, 04:55 AB073 Plyth Code Review
Most views
  The best Prog... 572304
  Tutorial Requ... 484841
  Web Scraping ... 436842
  Newbie with P... 379669
  Thread remain... 351228
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 6839
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
as1221 3
Newest members
bowens1983 Today
Vasil Today
sakshi Today
Stonsuld Today
Dhivya Today

User Panel Messages

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