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,587
» Latest member: ShaneCar
» Forum threads: 38,638
» Forum posts: 175,042

Full Statistics

Online Users
There are currently 525 online users.
» 0 Member(s) | 521 Guest(s)
Bing, Baidu, Yandex

Latest Threads
LhaneCar
Forum: General Coding Help
Last Post: ShaneCar
1 hour ago
» Replies: 0
» Views: 40
Shaneurirl
Forum: General Coding Help
Last Post: StephenCHume
2 hours ago
» Replies: 0
» Views: 41
StephenKIT
Forum: General Coding Help
Last Post: FobertCom
3 hours ago
» Replies: 0
» Views: 46
A penny doubled every day...
Forum: Homework
Last Post: DeaD_EyE
8 hours ago
» Replies: 5
» Views: 171
Using EventSource in Pyth...
Forum: Web Scraping & Web Development
Last Post: rbadis
Yesterday, 12:34 PM
» Replies: 0
» Views: 72
I have a question
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 09:26 AM
» Replies: 2
» Views: 183
Problème d'exécutable
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 09:22 AM
» Replies: 1
» Views: 157
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Jun-20-2025, 07:21 PM
» Replies: 11
» Views: 473
[split] Simple webbot for...
Forum: Code Review
Last Post: Plyth
Jun-20-2025, 04:55 AM
» Replies: 3
» Views: 129
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Pedroski55
Jun-20-2025, 12:07 AM
» Replies: 3
» Views: 205

 
  Mouse.get_pressed() Overlapping Buttons
Posted by: KHendrikson - Dec-28-2016, 09:04 AM - Forum: Game Development - Replies (5)

Hi there.

I'm having trouble creating various menus with Pygame, since some of the menu buttons, although on different menu screens, share the same..... More

Print this item

  Wiindows 10 is Linux?
Posted by: wavic - Dec-28-2016, 07:15 AM - Forum: Bar - Replies (2)

Have you guys seen this? I'll not be surprised if it's true  Big Grin

Print this item

  modulo and order of operations
Posted by: freakbot - Dec-28-2016, 04:29 AM - Forum: General Coding Help - Replies (4)

I'm using 2.7.X
Working with the following:

print 100 - 25 * 3 % 4
When i run this i get 97 as the answer.

It seems like it I s..... More

Print this item

  empty lines
Posted by: Skaperen - Dec-28-2016, 03:17 AM - Forum: Board - Replies (10)

i am periodically and recently frequently seeing empty lines added to my posts. they are usually added to inserted code, but i have also seen them in ..... More

Print this item

  Python 3.5.2-bit install SNAFU
Posted by: Orthoducks - Dec-28-2016, 01:00 AM - Forum: General Coding Help - Replies (7)

My current "production" version of Python is the 64-bit version of release 2.7 under Windows 7. I'm trying to install the 64-bit version of release 3...... More

Print this item

  Change type of elements in a list by column
Posted by: tkj80 - Dec-28-2016, 12:04 AM - Forum: General Coding Help - Replies (7)

Hi,

say I have the following list:

myList = [['john', '1', '2:00pm'], ['becky', '2', '3:15pm'], ['tom', '3', '3:20pm']]

the type of every ele..... More

Print this item

  calling an object variable in a dictionary
Posted by: sunhear - Dec-27-2016, 09:50 PM - Forum: General Coding Help - Replies (3)

my code in python 2.7 is:
[python]
class char(object):
    'chactors'
 
    #Create instances of object 
    def __init__(self,name,d):
       ..... More

Print this item

  printing to a printer vs the screen
Posted by: birdieman - Dec-27-2016, 05:33 PM - Forum: General Coding Help - Replies (4)

As a beginner, I have searched this forum (though I may not be doing it right) and the internet to find out how to print to my printer vs a print comm..... More

Print this item

  Are there Bokeh users on this forum?
Posted by: sixteenornumber - Dec-27-2016, 03:08 PM - Forum: GUI - Replies (4)

Does anyone on this forum use Bokeh?

Print this item

  completed module: validip.py
Posted by: Skaperen - Dec-27-2016, 10:14 AM - Forum: Code sharing - Replies (8)

this module is also usable as a command to check if an IP address is valid.  given just one IP address, it is silent but sets the exit c..... More

Print this item

  Problems with moving from 3.5 to 3.6
Posted by: Hellerick - Dec-27-2016, 09:35 AM - Forum: Web Scraping & Web Development - Replies (7)

So I have Ubuntu and I wanted to try Python 3.6, so I installed it using "apt altinstall" command.

After playing around with it, I decided to see h..... More

Print this item

  why is this variable not printing out properly?
Posted by: dursland - Dec-27-2016, 07:00 AM - Forum: General Coding Help - Replies (11)

Using python3 and am new - learning via introtopython.org and I'm having a problem.

[code]var1 = (2+2)

print('The result of all calculations is ..... More

Print this item

  reading from two or more pipes
Posted by: Skaperen - Dec-27-2016, 04:50 AM - Forum: General Coding Help - Replies (2)

i got some example code online that showed me how to read from a pipe without using .communicate() which waits for the child process to exit, which ma..... More

Print this item

  rounding locale.currency
Posted by: birdieman - Dec-27-2016, 01:13 AM - Forum: General Coding Help - Replies (8)

I am new to python and barely know anything, but learned how to import "locale.currency" (from a suggestion to one of my other threads) to deal with f..... More

Print this item

  Python 3.6.0 PyLauncher Installation on Windows 10
Posted by: twv - Dec-26-2016, 07:13 PM - Forum: General Coding Help - Replies (6)

I just installed 3.6.0 (64-bit) on Win 10. I don't install to the default location, but to C:/Apps/Python36. Double-clicking on a .py or .pyw script r..... More

Print this item

  datetime unexpected result
Posted by: PickyBiker - Dec-26-2016, 05:49 PM - Forum: General Coding Help - Replies (10)

I am getting the UTC time from the following in my code and I thought it would bring back the local hour. 
At a Python prompt [color=#000000][size=sm..... More

Print this item

  What can I do with _winreg ?
Posted by: sixteenornumber - Dec-26-2016, 02:35 PM - Forum: General Coding Help - Replies (2)

I came across the module _winreg in 2.7.13 docs this morning.  I'm not very familiar with the windows registry.  How could this module be useful in ..... More

Print this item

  how to recreate akinator in python?
Posted by: hsunteik - Dec-26-2016, 08:33 AM - Forum: General Coding Help - Replies (8)

akinator is a mind reading app that guesses your character after asking 10 to 30 questions(90 to 99% accurate)

But how does it work?

besides that,i ..... More

Print this item

  Django Templates
Posted by: zero_shubh0 - Dec-26-2016, 07:09 AM - Forum: Web Scraping & Web Development - Replies (1)

http://imgur.com/a/xSyl0
..... More

Print this item

  filetostr - convert a file to a string in python code
Posted by: Skaperen - Dec-26-2016, 05:45 AM - Forum: Code sharing - Replies (1)

the script/program/command converts a file to a string ready to insert into python code.  it supports specified indentation, maximum code width and an..... More

Print this item

  splitting a string by 2 characters
Posted by: Skaperen - Dec-26-2016, 05:25 AM - Forum: General Coding Help - Replies (8)

i want to split a string at each place where 2 different characters might appear.

'some text<some tag>more text'.split2('<','>')

--> [u][..... More

Print this item

  Develop on Mac and run on Raspberry Pi?
Posted by: Triton318 - Dec-26-2016, 12:41 AM - Forum: General Coding Help - Replies (1)

Hello. I'm new to Python and basically new to programming. (I did some JavaScript, Cold Fusion, and basic SQL many years ago.)

I am going to be buy..... More

Print this item

  Python .json problem with UTF-8 file
Posted by: PickyBiker - Dec-25-2016, 10:53 PM - Forum: General Coding Help - Replies (5)

When my program tries to deserialize a .json file, it chokes on the UTF-8 designation (EF BB BF) at the beginning of the .json file. 
The error is: "..... More

Print this item

  ISO working example of opening a Microsoft Word document through PyWin32
Posted by: Orthoducks - Dec-25-2016, 09:45 PM - Forum: General Coding Help - Replies (1)

I want to write a Python application that uses the PyWin32 library to manipulate Microsoft Word documents. Does anyone know a working example of that?..... More

Print this item

  Python 3.5 Instantiate and manipulate object with multiprocessing
Posted by: jipete - Dec-25-2016, 04:41 PM - Forum: General Coding Help - Replies (1)

Hello, I am looking for a solution to be able to instantiate an object that will exploit another heart of cpu all by manipulating it from another proc..... More

Print this item

  No new computer for Christmas?
Posted by: sparkz_alot - Dec-25-2016, 02:14 PM - Forum: Bar - Replies (6)

If you are like me, and Santa didn't bring you a new computer, here is an almost next best thing from the folks at Raspberry Pi.

..... More

Print this item

  python 3.5 windows 10 how to run exe
Posted by: jipete - Dec-25-2016, 12:37 PM - Forum: General Coding Help - Replies (2)

Hello, I would like to make a script in python that clones VMWare virtual machines by running the executable vmrun.exe, but I do not know how to do, I..... More

Print this item

  help pleeeease
Posted by: ali - Dec-24-2016, 01:04 PM - Forum: Homework - Replies (6)

i have this python 2 banking system project using oop.

it was in two parts the first one was functional python but the second one is in oop, i coul..... More

Print this item

  BASIC to python3: using lists like arrays
Posted by: nigeljbm - Dec-24-2016, 10:44 AM - Forum: General Coding Help - Replies (2)

New to python - just installed python3/ktinter in ubuntu/lubuntu system.

Been through a lot of tutorials etc but none of them explain in practical ..... More

Print this item

  getting current filename of a text editor file for printing file name?
Posted by: hsunteik - Dec-24-2016, 10:26 AM - Forum: General Coding Help - Replies (3)

from sys import *

def open_file(filename)
      print(filename)

def run():
     open_file(?)
what should i write int..... More

Print this item

  must the if statement in the following tutorial be nested?
Posted by: hsunteik - Dec-24-2016, 10:15 AM - Forum: General Coding Help - Replies (3)

in this tutorial series on creating a programming language:
https://www.youtube.com/watch?v=pWAxiKdJF0c  (the first episode in the video tutorial ser..... More

Print this item

  how to treat two token as one token(lexer)?
Posted by: hsunteik - Dec-24-2016, 09:53 AM - Forum: General Coding Help - Replies (1)

lets say i have two type of token (the # token and the = token)
when each token is found the position variable will increase by one,but when theres s..... More

Print this item

  init vs_init_ while defining method/function?
Posted by: hsunteik - Dec-24-2016, 08:20 AM - Forum: General Coding Help - Replies (1)

while defining method,what is the difference in
this:

def init(...........):

      ................................
 
..... More

Print this item

  another project - this one is a function
Posted by: Skaperen - Dec-24-2016, 06:49 AM - Forum: Bar - No Replies

i will name this pcall() or pipeline() or callpipe() or something along those lines.

it will use one positional argument, a list of lists, where ea..... More

Print this item

  another project
Posted by: Skaperen - Dec-24-2016, 04:28 AM - Forum: Bar - Replies (3)

i don't have a clue if this is a small project or a large project.  i suspect it is a massively huge monstrosity.

i want to create a stack oriented..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhaneCar 1 hour ago ShaneCar ShaneCar General Codin...
  Shaneurirl 2 hours ago StephenCHume StephenCHume General Codin...
  StephenKIT 3 hours ago FobertCom FobertCom General Codin...
  A penny doubled every day... 8 hours ago esoyboy DeaD_EyE Homework
  Using EventSource in Pyth... Yesterday, 12:34 rbadis rbadis Web Scraping ...
  I have a question Yesterday, 09:26 Clictithe noisefloor General Codin...
  Problème d'exécutable Yesterday, 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
  Dynamic Module Import Err... 06-20, 00:07 DaddyMAN Pedroski55 General Codin...
  What Are the Most Overloo... 06-19, 03:37 shreyapatel Plyth News and Disc...
Most views
  The best Prog... 572292
  Tutorial Requ... 484788
  Web Scraping ... 436830
  Newbie with P... 379647
  Thread remain... 351226
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+ 12066
buran 8173
snippsat 7339
deanhystad 6839
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
ShaneCar Today
StephenCHume Yesterday
FobertCom Yesterday
woefdram Yesterday
Yorrana Yesterday

User Panel Messages

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