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,941
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,517

Full Statistics

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

Latest Threads
A coding beginner needs h...
Forum: General Coding Help
Last Post: paul18fr
1 hour ago
» Replies: 1
» Views: 119
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 8
» Views: 284
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,478
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 879
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,703
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,227
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,753
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,551
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,655
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,841

 
  need help what is the error here
Posted by: m123 - Mar-22-2018, 02:22 AM - Forum: General Coding Help - Replies (2)

i am trying to find the cube root and print
[python]
cube=-64
for i in range(abs(cube)+1):
if i**3 >=abs(cube):
break
if i**3 !=abs(cube):..... More

Print this item

  converting to Python
Posted by: Skaperen - Mar-22-2018, 01:14 AM - Forum: News and Discussions - Replies (4)

many years ago i wrote a semi-complex very critical bash script named "clean" that makes heavy use of the "find" command to select certain files and r..... More

Print this item

  Running two scripts
Posted by: arka7886 - Mar-21-2018, 10:21 PM - Forum: Data Science - Replies (5)

Hi all,
I have two scripts, say script1.py and script2.py. In script1 I calculate a lot of parameters and matrices, and it takes time, say 30 mins to..... More

Print this item

  I need some feedback on this program
Posted by: tannishpage - Mar-21-2018, 09:36 PM - Forum: Code sharing - Replies (3)

So about a year ago, I started development on an FTP client. It started out as a simple thing, but I've been developing on it for 1 year on and off an..... More

Print this item

  Mastering bitcoin
Posted by: Larz60+ - Mar-21-2018, 09:25 PM - Forum: News and Discussions - Replies (3)

This book may or may not have any python in it, but I see a lot of folks discussing
bitcoin quite often. Here's a free book offered by O'Reilly: http..... More

Print this item

  Setup Notepad++ for python
Posted by: LavaCreeperKing - Mar-21-2018, 08:53 PM - Forum: General Coding Help - Replies (8)

I don't like the default python editor. In order to edit more than one file you have to have a bunch of windows open, and I want to have an editor tha..... More

Print this item

  I am unable to install NumPy in Python3.7.0 and I don't know why.
Posted by: kanika97_scs - Mar-21-2018, 08:30 PM - Forum: Data Science - Replies (4)

This is the error message displayed.

numpy\random\mtrand\mtrand.c(45472): error C2039: 'exc_type': is not a member of '_ts'
c:\python37\includ..... More

Print this item

  Python environment variables
Posted by: Nuttall - Mar-21-2018, 06:35 PM - Forum: General Coding Help - Replies (2)

Please can someone advise me.
I am using python on a linux box and have tried setting environment variables such as PYTHONSTARTUP in my .bashrc file ..... More

Print this item

  if statement always testing as true?
Posted by: Bawhs - Mar-21-2018, 05:55 PM - Forum: Homework - Replies (6)

Hello, I've been tasked with creating a simple choice based text game revolving around a general theme, which I choose to be Greek mythology. For the ..... More

Print this item

  Py to Exe problem
Posted by: mariolopes - Mar-21-2018, 04:19 PM - Forum: General Coding Help - Replies (6)

Hi
I have one python file who extracts data from internet and writes it to a excel file. Works fine, but I need to create a exe file from python and ..... More

Print this item

  How refresh package description
Posted by: CBlaha - Mar-21-2018, 03:50 PM - Forum: News and Discussions - Replies (2)

I'm one of the authors of the package https://pypi.python.org/pypi/ibmdbpy

I need to change the contents of the landing page that is displayed for ..... More

Print this item

  Hi all any help with this python code please
Posted by: BooohWhooo2018 - Mar-21-2018, 03:35 PM - Forum: General Coding Help - Replies (3)

Hi all hope every one is very well, its been a very long time since i done any programming over 10
years ago atleast, im looking to make a applicati..... More

Print this item

  execute a SQL stored proc within PYTHON
Posted by: PYTHONDUDE - Mar-21-2018, 03:26 PM - Forum: General Coding Help - Replies (3)

I am trying to execute a stored proc using the following i keep getting a error?
am I using the correct syntax to call the sql stored proc




impor..... More

Print this item

  Display List for User Input
Posted by: anelliaf - Mar-21-2018, 02:00 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to display a list of databases to a user and have them make a selection based on number. Once the selection is made, I'd like to..... More

Print this item

  Launch pdf and close on delete window event
Posted by: ashtona - Mar-21-2018, 12:50 PM - Forum: GUI - Replies (6)

Hello I'm currently working on a GUI tool in python that launches PDF files from an SQL server. Right now I write the binary to a file and then launch..... More

Print this item

  plotting 2 different set of data in a single plot with shared axes.
Posted by: upasana - Mar-21-2018, 12:19 PM - Forum: General Coding Help - Replies (4)

Hi..
I have 2 different sets of data like, x1=[1,2,3,4,5],y1=[some corresponding data] and x2=[6,7,8,9,10],y2=[some corresponding data].
How can i p..... More

Print this item

  API in Python
Posted by: ptre - Mar-21-2018, 11:51 AM - Forum: General Coding Help - Replies (3)

Hello all,

I am starting with Python (previously i coded some in VBA) and I have a question about API. Is there any good book about that?

I need..... More

Print this item

  how to draw simple line in wxPython?
Posted by: Sebastian_Adil - Mar-21-2018, 11:46 AM - Forum: GUI - Replies (6)

Hy
I am new in wxPython and I want a simple example to draw a simple line, and if it is possible by using functional style.

Thanks for your help

Print this item

  Beginners question
Posted by: Youmanity - Mar-21-2018, 11:40 AM - Forum: Game Development - Replies (4)

Hi. I am a guy with a Java background learning Python. I wrote a small text-based game. I created a __main__ class and a class called CharacterCreatio..... More

Print this item

  hash v2 and v3 help
Posted by: Normalitie - Mar-21-2018, 11:37 AM - Forum: General Coding Help - Replies (7)

Hi there - first post from a Python noob.

I'm trying to understand why some code in Python 2.7 works, yet when I try to port it across to Python 3...... More

Print this item

  Output not printing when execute scripts in threads
Posted by: anna - Mar-21-2018, 11:27 AM - Forum: General Coding Help - Replies (1)

[python]#!/usr/bin/python
import threading
import sys
import os
import unidecode
import telnetlib
import time
import re
import datetime
from ..... More

Print this item

  general coding error
Posted by: karai - Mar-21-2018, 06:18 AM - Forum: General Coding Help - Replies (1)

I'm beginner of Python and has tried finance analytic with the book 'python for Finance'.
The following codes from the book output a syntax error:inv..... More

Print this item

  embedding Python script in shell scripts
Posted by: Skaperen - Mar-21-2018, 06:14 AM - Forum: News and Discussions - Replies (5)

i'm starting to think through how to embed a Python script inside a shell script. the first issue that comes to mind is keep the data input and code ..... More

Print this item

  Helpful exercises
Posted by: NikonNorm - Mar-21-2018, 05:21 AM - Forum: General Coding Help - Replies (4)

I'm curious if anyone knows of any site or book or whatever that gives you "exercises", ideas of problems that can be solved with a computer program w..... More

Print this item

  Escaping whitespace and parenthesis in filenames
Posted by: jehoshua - Mar-21-2018, 04:58 AM - Forum: General Coding Help - Replies (2)

I need to write a small script that creates 'ffmpeg' code and therefore need to escape whitespaces and parenthesis in the filenames.

Have looked at..... More

Print this item

  Trypng to use pygame mixer
Posted by: Larz60+ - Mar-21-2018, 02:58 AM - Forum: General Coding Help - Replies (4)

I'm trying to use PyGame mixer to play mp3 files, because it can be used without an api
to an online player, or without making a system call, (let me..... More

Print this item

  cli arguments parser
Posted by: Skaperen - Mar-21-2018, 01:41 AM - Forum: News and Discussions - No Replies

there already exits a cli arguments parser. but it looks like a copy of the Posix one, which is a rendition of the old Unix one. worthless for me. ..... More

Print this item

  GUI for youtube-dl (PyQt5)
Posted by: Axel_Erfurt - Mar-20-2018, 11:07 PM - Forum: Code sharing - Replies (4)

PyQt5

[Image: 37687008-2e107b86-2c9a-11e8-86a7-bc255857c989.png]

[python]
#!/usr/bin/python..... More

Print this item

  Function for clicking a button within a browser
Posted by: NikonNorm - Mar-20-2018, 08:33 PM - Forum: General Coding Help - Replies (6)

I'm wondering if anyone show me how one would write a function that clicks a button within a flash game that's in a browser.

Thanks for any tips yo..... More

Print this item

  Search for string values in
Posted by: begood321 - Mar-20-2018, 07:46 PM - Forum: General Coding Help - Replies (7)

	
arr2 = [x for x in arr if re.search('MINS', str(x), flags=0)]
for item in arr2:
		print(item)

Print this item

  delete line from a text file
Posted by: thesisonews - Mar-20-2018, 06:59 PM - Forum: General Coding Help - Replies (2)

i been trying for hours, no luck

the function ask the user what name he want to delete from the text file

[python]def Delete_con():
with..... More

Print this item

  error with python and atom editor
Posted by: josebogota - Mar-20-2018, 06:39 PM - Forum: General Coding Help - Replies (1)

hi all, friends for you this code should work in 3.6.4? with the atom editor
name = input ('please give your name')
print ('welcome', name)

it ha..... More

Print this item

  error: INCLUDE environment variable is empty
Posted by: xwchen - Mar-20-2018, 04:08 PM - Forum: Data Science - Replies (4)

Hi,
I am new to Python.
I used python2.7 to install biom-format package. The scripts and results are shown below. It is very grateful if you have an..... More

Print this item

  Class/object
Posted by: liewchaochein - Mar-20-2018, 03:17 PM - Forum: General Coding Help - Replies (2)

[python]
class Engine(object):
def __init__(self, scene_map):
print "Inside Engine.scene_map"
print "scene_map: %r" %scene_map
self.scene_..... More

Print this item

  Whois not working
Posted by: mariolopes - Mar-20-2018, 03:09 PM - Forum: General Coding Help - Replies (3)

Hi
I want to get various informations about one web site (how old he is etc...). I'm using PyCharm and the following code:
[python]
import whois
d..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A coding beginner needs h... 1 hour ago Littlefish paul18fr General Codin...
  Using a For Loop to subtr... 5 hours ago Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576553
  Tutorial Requ... 498521
  Web Scraping ... 440427
  Newbie with P... 384329
  New Users Int... 367517
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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