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,626
» Latest member: ChauHaiCim9904
» Forum threads: 38,637
» Forum posts: 175,062

Full Statistics

Online Users
There are currently 338 online users.
» 1 Member(s) | 327 Guest(s)
Applebot, Bing, Google, Baidu, Mojeek, Facebook, buran

Latest Threads
Web scraping confusion
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
1 hour ago
» Replies: 4
» Views: 1,835
Problem Converting Tradin...
Forum: General Coding Help
Last Post: wallneradam
5 hours ago
» Replies: 2
» Views: 2,742
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: barrelmarble
5 hours ago
» Replies: 1
» Views: 1,858
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Yesterday, 08:17 PM
» Replies: 2
» Views: 3,060
List[] in Python needs so...
Forum: Game Development
Last Post: miajones
Yesterday, 11:14 AM
» Replies: 2
» Views: 354
Unable to install pygame ...
Forum: Game Development
Last Post: Thatedge
Yesterday, 08:09 AM
» Replies: 2
» Views: 2,077
can't use pyrepl: bad mag...
Forum: News and Discussions
Last Post: Plyth
Yesterday, 05:53 AM
» Replies: 2
» Views: 240
Setting AST node lineno c...
Forum: General Coding Help
Last Post: voidtrance
Jun-24-2025, 02:10 PM
» Replies: 5
» Views: 497
[SOLVED] Let user search ...
Forum: GUI
Last Post: deanhystad
Jun-24-2025, 02:04 PM
» Replies: 3
» Views: 198
color names
Forum: General Coding Help
Last Post: DeaD_EyE
Jun-24-2025, 08:10 AM
» Replies: 9
» Views: 199,392

 
  Please help me to convert a function from vb to python
Posted by: Bokka - May-18-2017, 02:07 PM - Forum: General Coding Help - Replies (15)

Hello everyone! So far I have always programmed with visual basic, but I happened to have to convert my code into python. I would need if somebody can..... More

Print this item

  Using Python to add text lines in a gcode file
Posted by: Johnlab - May-18-2017, 01:25 PM - Forum: General Coding Help - Replies (3)

I have been building a 3D printer and would like to create a post-processing plugin for my slicer as the slicer doesn't provide a feature that I requi..... More

Print this item

  Question about classes
Posted by: cybercreature - May-18-2017, 12:04 PM - Forum: General Coding Help - Replies (2)

Hi, I have 2 classes and I want a method which is in the the 2nd class ('class2_method') to be able to access a class variable from the first class. H..... More

Print this item

  Making indices and rearrranging list
Posted by: reidybwoykeon - May-18-2017, 10:26 AM - Forum: Data Science - Replies (2)

Good day,

I'm fairly new to Python. I have generated a list and want to rearrange it. I want to know what's the best way to go about doing that — s..... More

Print this item

  Help resolving error with webpy app
Posted by: bill349 - May-18-2017, 08:08 AM - Forum: General Coding Help - Replies (1)

I'm trying to follow an online course and while the course content and tutorials are generally good, it's absolutely infuriating to follow because the..... More

Print this item

  TCp code explained
Posted by: zarnav - May-18-2017, 06:53 AM - Forum: Networking - Replies (2)

Hey guys,

I am new to this field and I would like to get some assistance in explaining this code's output.
Currently when I run it doesn't produce..... More

Print this item

  my new code
Posted by: Skaperen - May-18-2017, 06:11 AM - Forum: Bar - Replies (2)

i rewrote my columnizer module to correct some issues in the previous design.  this on is still not finished and goes into a loop. there must be s mis..... More

Print this item

  SOLVED QMessageBox: can't get QMessageBox.Yes to work
Posted by: Fred Barclay - May-18-2017, 06:07 AM - Forum: GUI - No Replies

G'day mates,
For a project, I need to return Gui notifications/questions to the user from several different modules. Rather than write an individual ..... More

Print this item

  100 days of python algorithms
Posted by: Larz60+ - May-18-2017, 04:50 AM - Forum: News and Discussions - No Replies

Check it out: https://www.oreilly.com/ideas/jupyter-di...5-may-2017
github code link: https://github.com/coells/100days

Print this item

  mutable_sequence.pop() documentation
Posted by: Skaperen - May-18-2017, 02:07 AM - Forum: News and Discussions - Replies (5)

the documentation for the .pop() method for mutable sequences says that the argument to be passed to it is a number in a list.  why i..... More

Print this item

  Create PDF with text from PNGs
Posted by: hugfer96 - May-18-2017, 12:52 AM - Forum: General Coding Help - Replies (1)

Hello. I need to make a PDF from four graphic plots, that are supposed to be displayed in  landscape orientation and in a 2x2 matrix (preferably, with..... More

Print this item

  Getting csrf token to log in
Posted by: spartanvfl - May-17-2017, 10:50 PM - Forum: Web Scraping & Web Development - Replies (4)

Running a load test on a web portal (Liferay) using Locust but cannot log in. I am posting the username and password, but need the csrf token. I can i..... More

Print this item

  Trouble displaying items from lists
Posted by: Liquid_Ocelot - May-17-2017, 10:42 PM - Forum: Homework - Replies (8)

So I am writing a code for an address book. I have a function that searches for a nickname of a person then prints their details if the nickname is in..... More

Print this item

  mportError: DLL load failed:
Posted by: jarthda - May-17-2017, 08:35 PM - Forum: General Coding Help - Replies (8)

Windows 7 Anaconda3 4.3.1

I've developed a script to insert files to into SQL. It worked fine for weeks and now I get the following: 



  File..... More

Print this item

  Need help to prove close File
Posted by: slice - May-17-2017, 05:38 PM - Forum: General Coding Help - Replies (4)

There is a task to open the file (not in the python), let it be txt or word or whatever, for this we use


[python]import os

os.startfile ('NEWS..... More

Print this item

  Python 3 dynamic import follies
Posted by: volcano63 - May-17-2017, 03:51 PM - Forum: General Coding Help - No Replies

Hi folks,

It looks that there's one issue of Python where dynamic seems an anathema - dynamic imports. For some reason, in 3.x it keeps [url=https:..... More

Print this item

  Problem with 'Clock' functionality
Posted by: panoss - May-17-2017, 03:23 PM - Forum: General Coding Help - Replies (2)

I 'm facing problems trying to embed 'clock' functionality in my application.

If you run the following code as is, you 'll see a window. Fine by no..... More

Print this item

  Printing strings.. help..
Posted by: zepel - May-17-2017, 03:00 PM - Forum: Homework - Replies (3)

My first defined function works, however I can't get my second defined function to work. I need my main function to access the upperCase function and ..... More

Print this item

  Trouble with global variables
Posted by: PickyBiker - May-17-2017, 02:01 PM - Forum: General Coding Help - Replies (8)

In the simple code below, schedule_last_update in the function check_schedule_file() is seen as a local variable and generates an error at line 15 cla..... More

Print this item

  Reversing word in strings yields unexpected result
Posted by: Dec - May-17-2017, 01:59 PM - Forum: General Coding Help - Replies (4)

Hello there, 
I'm recently learning python using python 3.6
I'm confused why the str.join seems not to work properly in my code
there are many exam..... More

Print this item

  sweep line algoritem
Posted by: reuven - May-17-2017, 12:54 PM - Forum: Homework - Replies (3)

hello
Does anyone have a code in the sweep line algorithm?

Thanks

Print this item

  Python is missing, for a reason
Posted by: Ofnuts - May-17-2017, 11:50 AM - Forum: Bar - Replies (5)

https://assets.toggl.com/images/toggl-ho...guages.jpg

Print this item

  python2 string formatting - old and new - different for unicode
Posted by: buran - May-16-2017, 09:10 PM - Forum: General Coding Help - Replies (1)

replying to another thread, I noticed something strange. following script, running python 2.7


[python]import forecastio

def main():
api_k..... More

Print this item

  'file' object has no attribute 'writeline'
Posted by: sarah_k - May-16-2017, 08:17 PM - Forum: General Coding Help - Replies (4)

Hi,  everybody.
I have a very large text file (1.3 terabytes). The first 8 lines of this file are meta-information. I want to remove these lines and ..... More

Print this item

  Someone help please ???
Posted by: TheSpalekUk - May-16-2017, 07:47 PM - Forum: General Coding Help - Replies (5)

I'm trying to make a lottery ticket simulator but i have one issue...
i want the program not to print only Names, but surnames as well right after th..... More

Print this item

  pynmea2
Posted by: kendias - May-16-2017, 07:14 PM - Forum: General Coding Help - Replies (18)

my question here:

I am trying to d'load pynmea2 but face the foll.: 
Is there a website to d'load it from? I could only find a link where I can co..... More

Print this item

  Walking the python call stack without leaks
Posted by: Larz60+ - May-16-2017, 05:28 PM - Forum: Code sharing - No Replies

If you ever wondered how the call traceback works, you need to know how the python code stack
is structured.

Each frame in the python call stack i..... More

Print this item

  Noob question about python and Maxplus
Posted by: Strator - May-16-2017, 05:07 PM - Forum: General Coding Help - No Replies

Hi guys :)

I hope I'm the right place to ask my question! Sorry i'm VERY noob at this so be gentle :p

I try to do a tool in python. So I managed..... More

Print this item

  IndexEroor : index out of range
Posted by: adithyakrish - May-16-2017, 04:55 PM - Forum: Data Science - Replies (7)

This is the error I get when I try running a certain program. The fun part is the program runs successfully in Windows but displays this error in Ubun..... More

Print this item

  Encryption service
Posted by: ahoneycutt - May-16-2017, 04:21 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

I have recently made an encryption service in django and am interested in having some people try it out. I'm testing to see how usable this ..... More

Print this item

  sqlite3 insert issue
Posted by: gohanzdad - May-16-2017, 04:19 PM - Forum: General Coding Help - Replies (1)

I am playing around with the sqlite3 module in preparation for a project I'm going to be working on.  I've used pymysql before without issues, but for..... More

Print this item

  How do you make my code continue going ?
Posted by: TheSpalekUk - May-16-2017, 03:35 PM - Forum: General Coding Help - Replies (2)

Hello! i just coded a rock paper scissors game but i have one issue...
The whole code is completely okay but when i input Rock paper or Scissors in i..... More

Print this item

  Automatically updated graph in jupyter notebook using qt5
Posted by: capponero - May-16-2017, 03:08 PM - Forum: Data Science - No Replies

Hey guys,

how to do this in jupyter notebook:

[python]

%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
 
m = 100..... More

Print this item

  Recursive function
Posted by: janek30 - May-16-2017, 02:51 PM - Forum: Homework - Replies (1)

How to change this code to recursive code...

[python]def search(myList, number):
    for i in myList:
        if i[0] == number:
            ret..... More

Print this item

  error no 2: no such file
Posted by: panoss - May-16-2017, 12:10 PM - Forum: General Coding Help - Replies (4)

I 've made an exe with Pyinstaller.
But when I try to run it, I get an error: error no 2: no such file or directory: 'betws.ui'
This is the name of ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Web scraping confusion 1 hour ago keifin AlluminumFoil Web Scraping ...
  Problem Converting Tradin... 5 hours ago kralxs wallneradam General Codin...
  2D-Cube-Tic-Tac-Toe 5 hours ago freethrownucleus barrelmarble Game Developm...
  [PyQt] PyQT5 Thread crash... Yesterday, 20:17 Suresh Axel_Erfurt GUI
  List[] in Python needs so... Yesterday, 11:14 Codingdesigner12 miajones Game Developm...
  Unable to install pygame ... Yesterday, 08:09 garthE Thatedge Game Developm...
  can't use pyrepl: bad mag... Yesterday, 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
  color names 06-24, 08:10 jimrinaldo DeaD_EyE General Codin...
  Python Install Mager Help 06-24, 04:43 bowens1983 DeaD_EyE News and Disc...
Most views
  The best Prog... 572349
  Tutorial Requ... 485012
  Web Scraping ... 436874
  Newbie with P... 379712
  Thread remain... 351239
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 6840
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ChauHaiCim9904 Today
barrelmarble Today
wallneradam Today
spokedge Today
avilla Today

User Panel Messages

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