Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,792

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 27 Guest(s)
Google, Bing, Apple

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
6 hours ago
» Replies: 1
» Views: 92
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 141
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 124
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 124
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,252
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,377
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,577
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 201
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,208
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,458

 
  this is inconsitent with documentation
Posted by: Skaperen - Jan-16-2017, 05:49 AM - Forum: General Coding Help - Replies (4)

the strftime() method has a single common documentation for the two modules (datetime and time) it is found in, but ...
[output]lt1/forums /home/foru..... More

Print this item

  Python code with serial port and global undefined
Posted by: marciokoko - Jan-16-2017, 12:43 AM - Forum: General Coding Help - Replies (13)

I have the following code and I got this error after adding a few ser.close() lines (identified with *** down below):

[quote]
[color=#222222][size..... More

Print this item

  how do I print cost variable on GUI?
Posted by: Doug - Jan-15-2017, 10:30 PM - Forum: GUI - Replies (4)

how do I print cost variable on GUI? it says: cost is not defined. Thank you!

from tkinter import *

class Application(Frame):

    def __init_..... More

Print this item

  program doesn't run.
Posted by: Doug - Jan-15-2017, 07:27 PM - Forum: GUI - Replies (2)

Was watching a tutorial on youtube on how to use OOP in building GUI, but can not run identical code myself.
Error: "in line 27 app = Application() T..... More

Print this item

  HTML5?
Posted by: melakorolo - Jan-15-2017, 07:10 PM - Forum: Bar - Replies (3)

Anyone here worked with HTML5 much yet?

Print this item

  Invalid syntax: string index out of range
Posted by: darkreaper1959 - Jan-15-2017, 06:07 PM - Forum: Homework - Replies (6)

[python]
import time
import sys

# introduction to  the game

print("You are playing the guessing game! To win you must guess the word, within t..... More

Print this item

  Access google sheets like a csv file
Posted by: perttybug - Jan-15-2017, 05:33 PM - Forum: Code sharing - Replies (5)

Hello all,

    I wrote a python library for accessing google sheets based on google's new sheet api v4, named pygsheets.

    Its well documented..... More

Print this item

  New line in pdf?
Posted by: panoss - Jan-15-2017, 07:11 AM - Forum: General Coding Help - Replies (10)

I 'm using reportlab for pdf creation..
My problem is new line, I tried \n and <br/> but failed.
What do you suggest?

Print this item

  pass after a loop is a syntax error???
Posted by: Skaperen - Jan-15-2017, 06:33 AM - Forum: General Coding Help - Replies (5)

i don't believe this should be an error
[output]lt1/forums /home/forums 3> py3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] ..... More

Print this item

  terminal/console geometry
Posted by: Skaperen - Jan-15-2017, 03:34 AM - Forum: General Coding Help - Replies (12)

on linux/unix/posix i can do this:

rows, columns = subprocess.check_output(['stty', 'size']).split()
to get terminal geometry
i..... More

Print this item

  self in functions
Posted by: marciokoko - Jan-15-2017, 02:01 AM - Forum: General Coding Help - Replies (3)

I created a class:

[python]
class AIHome:

def __init__(self):
     self.fetchUpdate();

def fetchUpdate(self):
     self.relayToggle()

d..... More

Print this item

  I don't understand this result
Posted by: Ponomarenko Pavlo - Jan-14-2017, 05:52 PM - Forum: General Coding Help - Replies (3)

>>> f = [].extend(['spam', 32, 44])
>>> type(f)
         <class 'NoneType'>

Print this item

  Function problem
Posted by: garretmorion - Jan-14-2017, 05:17 PM - Forum: Homework - Replies (9)

[color=#242729][size=small][font=Arial,]'m relatively new to python and the only other experience I've had is C++. Whenever I define a function in Pyt..... More

Print this item

  file descriptors
Posted by: Skaperen - Jan-14-2017, 10:13 AM - Forum: General Coding Help - Replies (7)

this will be run in linux.  i have a function that reads from and writes to file descriptors ... the things that are used by os.read() and os.w..... More

Print this item

  Conver to List
Posted by: landlord1984 - Jan-14-2017, 03:27 AM - Forum: General Coding Help - Replies (1)

I am playing to convert a tuple to a list. I thought using list() is simple, but not...What's wrong?


[python]aTuple = (123, 'xyz', 'zara', 'abc')..... More

Print this item

  Create a new list by comparing values in a list and string
Posted by: DBS - Jan-14-2017, 01:37 AM - Forum: General Coding Help - Replies (2)

Hello,

I have elements in a predefined list and a query string.  I would like to check if the query_str has any values in predefined list and if so..... More

Print this item

  How can I make a sentinel value NOT be initialized in a class/method - OOP?
Posted by: netrate - Jan-13-2017, 10:23 PM - Forum: General Coding Help - Replies (2)

I am testing out some basic Object Oriented Programming in Python.  The basics:

  • User enters a name
  • While loop with a sentinel value ..... More

Print this item

  Remove files from a directory
Posted by: pyth0nus3r - Jan-13-2017, 07:39 PM - Forum: General Coding Help - Replies (3)

Hello
Below is an example from a book called Automating the boring stuff with Python.
This code is supposed to deletes all files that end with .txt ..... More

Print this item

  Preparing ground in a designed device
Posted by: Prometheus - Jan-13-2017, 06:03 PM - Forum: General Coding Help - Replies (7)

Hi everyone. 

I am supporting a team creating a concept for a tactile matrix touch pad meant for blind people. 

Could you please offer some guid..... More

Print this item

  Windows: Put File automatically under Cursor for Drag & Drop
Posted by: sym - Jan-13-2017, 02:38 PM - Forum: General Coding Help - Replies (1)

Hello, I'm stuck on the following problem and can't seem to find a solution for it. Does anyone know if this is possible?

On Windows I have the dir..... More

Print this item

  Splitting A String In Python
Posted by: Saif133 - Jan-13-2017, 01:54 PM - Forum: Homework - Replies (6)

Implement a function that, given a feedback
and the size  of the screen, splits the feedback
into lines so that:

Print this item

  Error: python.exe application error
Posted by: panoss - Jan-13-2017, 12:18 PM - Forum: General Coding Help - Replies (5)

I run my application through PyCharm.
I get an error on closing my application:
'python.exe application error the instruction at "0x6703e506"..... More

Print this item

  matrix from matrix python numpy array
Posted by: shei7141 - Jan-13-2017, 11:36 AM - Forum: General Coding Help - Replies (1)

Hi all,

I have just started python coding Cool  and have ran into my first brick wall Wall  .  Can some one please assist me with the follo..... More

Print this item

  decimal
Posted by: Skaperen - Jan-13-2017, 07:09 AM - Forum: Bar - Replies (2)

you can convert float to decimal but you can't divide a decimal by a float.  anyone know why that is?

Print this item

  Open previous csv file to read value under column for comparison
Posted by: DBS - Jan-13-2017, 05:36 AM - Forum: General Coding Help - Replies (3)

Hello,

I  need to check the value under the columns of two csv files (the current open file and the csv file written immediately before it) and if ..... More

Print this item

  What is an Encryption And Decryption
Posted by: Lamon112 - Jan-13-2017, 02:30 AM - Forum: General Coding Help - Replies (8)

Hi guys so i got this one task that I should make an Encryption And Decryption in python so im curious what does that actually mean.
Thanks for your ..... More

Print this item

  win32 package: self-modifying source code???
Posted by: Orthoducks - Jan-12-2017, 09:56 PM - Forum: General Coding Help - Replies (3)

I'm trying to use win32 to edit Microsoft Word documents in Python code. So far I've got this, gleaned from various examples on the web:
[python]impo..... More

Print this item

  Best software for creating charts????
Posted by: birdieman - Jan-12-2017, 09:15 PM - Forum: General Coding Help - Replies (9)

I am still new to Python, so my wording of the question may not be quite right.  I will need to produce charts (nothing very fancy, primarily stacked ..... More

Print this item

  List files with a specific extension
Posted by: pyth0nus3r - Jan-12-2017, 06:57 PM - Forum: General Coding Help - Replies (8)

Hello
I wanted to know if it is possible to list a particular type of file (let's say .mp4) from a directory recursively.
I can list all files recur..... More

Print this item

  Tasks for Python
Posted by: Lamon112 - Jan-12-2017, 04:49 PM - Forum: General Coding Help - Replies (2)

Hello im new at python and i just finished learning wirting appending and reading from files.I learned about if,for,while,elif,else commands and i kno..... More

Print this item

  Array to construct matrix
Posted by: Felipe - Jan-12-2017, 03:28 PM - Forum: Data Science - Replies (1)

Hi guys,

I have 3 arrays with 10 elements which I used numpy to create:

Array 1    Array 2    Array 3
    1              2..... More

Print this item

  Crawling tweets with scrapy
Posted by: R3turnz - Jan-12-2017, 12:24 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,
I want to crawl all tweets of a specific user because the twitter api does not allow this behavior.
I thinks twitter loads the tweets if you ..... More

Print this item

  How to run C++ code
Posted by: sajley - Jan-12-2017, 10:56 AM - Forum: General Coding Help - Replies (8)

hi guys

how i can run C++ code in python ?     Think

Print this item

  tutorial series python directx
Posted by: hsunteik - Jan-12-2017, 08:22 AM - Forum: General Coding Help - Replies (2)

1)I need a tutorial series(YouTube or  tutorial only)for directx in python but I can't really find it ,can I have it?
2)for you,is opengl or directx ..... More

Print this item

  Only one of two lines print/syntax error
Posted by: naysjp - Jan-12-2017, 06:47 AM - Forum: General Coding Help - Replies (2)

I searched the internet for syntax errors but I just get a general definition of what a syntax error could be. I am new to Python and teaching myself ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 6 hours ago tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578718
  Tutorial Requ... 509366
  Web Scraping ... 441863
  Newbie with P... 385820
  New Users Int... 375252
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lary_p Yesterday
Cristiano 11-08
Alfredd 11-08
clayote 11-08
yutaozhou 11-07

User Panel Messages

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