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,964
» Latest member: Edzed4431
» Forum threads: 38,730
» Forum posts: 175,545

Full Statistics

Online Users
There are currently 44 online users.
» 1 Member(s) | 38 Guest(s)
Bing, AOL, Applebot, Google, deanhystad

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: tester_V
2 hours ago
» Replies: 2
» Views: 37
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
7 hours ago
» Replies: 1
» Views: 461
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:49 PM
» Replies: 4
» Views: 2,000
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,561
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 463
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 919
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 949
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,214
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,831
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,868

 
  pdb says "SyntaxError: unexpected EOF" on comment
Posted by: pwannh - Nov-29-2018, 04:00 PM - Forum: General Coding Help - Replies (1)

I have seen several examples of .pdbrc files containing comment lines starting with '#'. When I try to do the same, I get this error message:
*** Syn..... More

Print this item

  how do i make a compiler?
Posted by: lol - Nov-29-2018, 03:39 PM - Forum: General Coding Help - Replies (2)

so yeeterday i watched this pyhton playlist https://www.youtube.com/watch?v=RjScQkED...TEt4gUrzeO and i think Im good e..... More

Print this item

  Thread/Signal
Posted by: LittleGrim13 - Nov-29-2018, 02:14 PM - Forum: GUI - Replies (2)

Hey All

I m trying to update a textbox with signals from a thread. But I am unable to wrap my head around the business of signals.

Here is what ..... More

Print this item

  Code Wireless Temperature sensor and send sensor readings to google sheet
Posted by: jenkins43 - Nov-29-2018, 12:44 PM - Forum: General Coding Help - No Replies

I want to code the Wireless Temperature Sensor in python..... More

Print this item

  Date format conversion "/Date(158889600000)/"
Posted by: lbitten - Nov-29-2018, 12:22 PM - Forum: General Coding Help - Replies (2)

From a JSON file, I'm getting this type of date "/Date(158889600000)/" and I would like to convert this string to a date type.
Does anyone kno..... More

Print this item

  help with assignment 2
Posted by: Mof44 - Nov-29-2018, 11:14 AM - Forum: Homework - Replies (4)

Hi,

I have to write a program:
1. User enters the upper and lower range.
2. The code generates a random number, divisible by x and y.
I have to..... More

Print this item

  Is it possible to recombine values in python?
Posted by: synthex - Nov-29-2018, 10:42 AM - Forum: Data Science - Replies (6)

If i post in wrong branch, please let me know.
I was advised to submit this question on python forum, when i asked it in SQL MSDN forum
https://soci..... More

Print this item

  Cross word puzzle solve using python constraint library
Posted by: aliyark145 - Nov-29-2018, 09:33 AM - Forum: Homework - Replies (1)

[Image: open?id=1GAH82jPFC-OSY-HPY9VZixf7Tjn_YPe3]
[python]
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a tempor..... More

Print this item

  Prediction Herobots - The 1st Biannual International AI Challenge For Students
Posted by: predictionherobots - Nov-29-2018, 06:24 AM - Forum: News and Discussions - No Replies

CosmicBC is holding a biannual international AI challenge to develop blockchain-based AI algorithms for classification, regression and prediction of c..... More

Print this item

  about List question
Posted by: longmail - Nov-29-2018, 04:58 AM - Forum: General Coding Help - Replies (2)

The last line I expected is [[1], [0], [0], [0]],
But as below the result is [[1], [0], [1], [0]],
Is This OK?
[python]
>>> a=[0,0]
>>> a
[0, ..... More

Print this item

  defining a function to see if a list is sorted
Posted by: Siylo - Nov-29-2018, 02:06 AM - Forum: Homework - Replies (14)

I am trying to define a function called isSorted that should take a list as an argument an return True if it is sorted and False if it is not sorted. ..... More

Print this item

  a class to memory map a disk
Posted by: Skaperen - Nov-29-2018, 02:05 AM - Forum: News and Discussions - Replies (4)

i have fuzzy memory of a class that would let me expose each sector of a disk. what i want to do is write a program to update selected bytes of a dri..... More

Print this item

  shutils.get_terminal_size()
Posted by: Skaperen - Nov-28-2018, 10:01 PM - Forum: News and Discussions - Replies (11)

a while back someone suggested using shutil.get_terminal_size() instead of doing syscalls to get the terminal size info. my objection at the time was..... More

Print this item

  Program: Foot Bones Quiz
Posted by: silverdog - Nov-28-2018, 09:23 PM - Forum: Homework - Replies (2)

[quote]Program: Foot Bones Quiz
Create a function that will iterate through foot_bones looking for a match of a string argument
Call the functio..... More

Print this item

  Fatal Python error: initfsencoding: unable to load the file system codec
Posted by: gauravbhardwajee - Nov-28-2018, 08:18 PM - Forum: Data Science - Replies (12)

Good Day Everyone

I am very new to Python programming and created program to compare two csv files and produce a result in Excel. The program worke..... More

Print this item

  tar module - how usable is it?
Posted by: Skaperen - Nov-28-2018, 07:46 PM - Forum: News and Discussions - Replies (4)

i am wondering how usable the tar module is. i have a use case where i need to archive files in sorted order. i already have a generator that iterate..... More

Print this item

  Python csv loading help
Posted by: mulltr66 - Nov-28-2018, 07:42 PM - Forum: Homework - Replies (1)

Hello,

I'm just starting out learning python and wanted to see if someone could help me out with loading my csv data.

I have the following infor..... More

Print this item

  Python version compatability
Posted by: saisankalpj - Nov-28-2018, 06:45 PM - Forum: General Coding Help - Replies (5)

Can we make a python code compatable with python version 2.7 and 3.3.right now my code is in 3.3

Print this item

  Display image in tkinter
Posted by: dan789 - Nov-28-2018, 06:15 PM - Forum: GUI - Replies (9)

Hi all, I have a problem with displaying my image in tkinter. I´m creating a class, which creates a canvas and put an image from my file there. This i..... More

Print this item

  Editing excel documents
Posted by: chizz1996 - Nov-28-2018, 03:09 PM - Forum: Homework - Replies (1)

Hi all (if the following thread doesn't comply with the rules let me know and I am happy to change it),

I'm currently tasked with analysing some scho..... More

Print this item

  Working with rain time series
Posted by: dmildem - Nov-28-2018, 02:29 PM - Forum: General Coding Help - Replies (3)

I have rain data with 15 minutes interval, like this:

[yyyy mm dd hh mm rain_value]
2017 1 1 0 0 0.2
2017 1 1 0 15 0.4
2017 1 1 0 30 2.1
2017 ..... More

Print this item

  PyQT5 - connect to mouseMoveEvent
Posted by: kainev - Nov-28-2018, 02:14 PM - Forum: GUI - No Replies

Hi,

I have class which inherits from QGraphicsRectItem which is being displayed in a graphics scene/view. It's just a rectangle that can be moved b..... More

Print this item

  installing PythonOCC and ifcOpenShell
Posted by: IrinaZab - Nov-28-2018, 01:11 PM - Forum: General Coding Help - Replies (1)

hello,
I need to download PythonOCC and ifcOpenShell. It demands lots of pre requirements programmm, that I downloaded from the internet but have no..... More

Print this item

  pygame.surface
Posted by: Graham - Nov-28-2018, 12:52 PM - Forum: Game Development - Replies (10)

The idea is that stars fall from top of screen to bottom.
I have this
[python]starPosX = [50,100,200,300,400]
starPosY = [-10,-20,-40,-500]
imagel..... More

Print this item

  Problems using Wxpython
Posted by: Carles - Nov-28-2018, 12:16 PM - Forum: GUI - Replies (1)

Hi,
I'm using an old aplication that's was build use Python 2.7.9, and wxpython 2.8.12.1.

Then, my problem is in Windows 10 Pro Wall , when e..... More

Print this item

  Travis issue
Posted by: saisankalpj - Nov-28-2018, 10:29 AM - Forum: General Coding Help - Replies (1)

while running Travis CI,for MAC I am getting Error like -
Unable to download 2.7 archive. The archive may not exist. Please consider a different vers..... More

Print this item

  Save and Close and Excel sheet with pre defined name
Posted by: Vinci141 - Nov-28-2018, 04:38 AM - Forum: General Coding Help - Replies (1)

Hello,

I have an automation in progress with following steps and their current status.

Read outlook email (specific to my requirement)<Done>
Do..... More

Print this item

  Saving Values Changed in a database
Posted by: themick789 - Nov-28-2018, 03:56 AM - Forum: General Coding Help - Replies (1)

Hey everybody, I'm fairly new to Python (and coding in general) and I have a question:

Is there a way that I can save any changes I made to a csv d..... More

Print this item

  Changing "import numpy as np" to "from numpy import"
Posted by: ClintWestwood - Nov-28-2018, 03:18 AM - Forum: Homework - Replies (4)

Hello. I'm new to this website and need to help. I'm trying to change code that loads the python library by "import numpy as np" to loading the librar..... More

Print this item

  Directory path EOF
Posted by: Graham - Nov-27-2018, 11:33 PM - Forum: General Coding Help - Replies (8)

I just want to get a list of images in a directory trying this
[python]from PIL import Image
import os, os.path

imgs = []
path = "C:\Users\me\pi..... More

Print this item

  Decimal to binary weighted number converter
Posted by: hobbyprogrammer - Nov-27-2018, 11:21 PM - Forum: Code sharing - Replies (1)

Hi, I'm Learning more about lists and loops, to be able to make my own
projects as a hobby. My code is very amaturish, I'm not a coder by
professio..... More

Print this item

  MIT Interview with Guido
Posted by: Larz60+ - Nov-27-2018, 08:39 PM - Forum: News and Discussions - Replies (3)

If interested, dated Nov 22
https://www.youtube.com/watch?v=ghwaIiE3Nd8

Print this item

  Read binary from file
Posted by: nextor - Nov-27-2018, 08:08 PM - Forum: General Coding Help - Replies (6)

I have some trouble reading binary file



[python]with open('myfile', 'rb') as fl:
b = fl.read( 1 )
for x in range( 0,4):
tu..... More

Print this item

  MemoryError
Posted by: mitmoot - Nov-27-2018, 07:49 PM - Forum: General Coding Help - Replies (5)

First of all Hello guys,

I am quit definitely a newbie in the world of python programming.

I use to do R programming but not really objec..... More

Print this item

  Python List with Total and Average
Posted by: mcnhscc39 - Nov-27-2018, 07:13 PM - Forum: Homework - Replies (3)

This is not homework. I was practicing python lists and wanted to total and average the simple list that I wrote. The code runs with no errors but i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 2 hours ago tester_V tester_V General Codin...
  My goal to be hired worki... 7 hours ago GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... Yesterday, 18:49 arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
Most views
  The best Prog... 577192
  Tutorial Requ... 500178
  Web Scraping ... 440894
  Newbie with P... 384906
  New Users Int... 369177
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+ 12089
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Edzed4431 Yesterday
chaoh1911 Yesterday
KaydenJonah098 Yesterday
carlbidwell Yesterday
llarkin6 09-26

User Panel Messages

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