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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,458
» Latest member: gusbeginner
» Forum threads: 37,268
» Forum posts: 169,399

Full Statistics

Online Users
There are currently 388 online users.
» 0 Member(s) | 382 Guest(s)
Google, Applebot, Yandex, AOL

Latest Threads
view option in Django
Forum: Web Scraping & Web Development
Last Post: SULMAN
1 hour ago
» Replies: 1
» Views: 105
Elegant way to apply each...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 5
» Views: 226
Sorting Steps
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 12
» Views: 375
reading a file like the u...
Forum: News and Discussions
Last Post: perfringo
4 hours ago
» Replies: 1
» Views: 59
OCR question
Forum: Bar
Last Post: DPaul
6 hours ago
» Replies: 0
» Views: 42
m3u8 using build-in brows...
Forum: Web Scraping & Web Development
Last Post: kucingkembar
Today, 01:47 AM
» Replies: 3
» Views: 125
write code that resides i...
Forum: General Coding Help
Last Post: franklin97355
Today, 12:03 AM
» Replies: 0
» Views: 64
I don't know what is wron...
Forum: General Coding Help
Last Post: menator01
Yesterday, 06:46 PM
» Replies: 2
» Views: 161
encrypt data in json file...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 05:16 PM
» Replies: 1
» Views: 72
A Programmer Named Tim
Forum: Board
Last Post: Gribouillis
Yesterday, 04:38 PM
» Replies: 3
» Views: 171

 
  Creating barriers/boundaries help for Pygame
Posted by: bluewing101 - Mar-19-2020, 05:20 PM - Forum: Game Development - Replies (1)

In my code, I have been trying to create barriers so the character doesn't go outside the pygame window
Here is the code:
[python]
import pygame
f..... More

Print this item

  OSError: [Errno 26] Text file busy: '/var/tmp/tmp5qbeydbp
Posted by: batchenr - Mar-19-2020, 05:11 PM - Forum: General Coding Help - Replies (1)

Hey,

Im using python3 and i have this code :
[python]
import tempfile
temp_file = tempfile.mkstemp(dir="/var/tm..... More

Print this item

Question configparser.NoSectionError (Python 3.7)
Posted by: alpho - Mar-19-2020, 04:50 PM - Forum: General Coding Help - Replies (2)

Hello. When my script is restarting I often times will have these configuration errors.

Importing:

import configparser
Absolut..... More

Print this item

  TensorFlow install issues
Posted by: Pavel_47 - Mar-19-2020, 01:44 PM - Forum: Data Science - Replies (2)

Hello,

I had a lot of troubles while trying to make work TensorFlow with GPU support.
I plan to reinstall all the necessary tools.
If my vision i..... More

Print this item

  adding elements to a list that are more than a specific number
Posted by: Olavv - Mar-19-2020, 01:39 PM - Forum: General Coding Help - Replies (2)

How do I add elements from a list to another list that are more than a specific number?

I've tried this:
list1=[2, 5, 3]
list2=[]
if number in l..... More

Print this item

  Row Count
Posted by: phillyfa - Mar-19-2020, 01:23 PM - Forum: General Coding Help - Replies (3)

Hello,

I'm trying to count the number of records returned by a SQL query. The program writes to a .csv file, but I would like to output to a logfi..... More

Print this item

  Senior Python Developer, 6h/day, remote
Posted by: agatagasiorowska - Mar-19-2020, 01:05 PM - Forum: Jobs - Replies (1)

?️‍♂️ Senior Python Developer, 6h/day, remote
? Salary in PLN (B2B): 155-195 PLN / h (so 18600-23400 PLN assuming 120h/Month (20 days ..... More

Print this item

  Python 2.7 passing variables from functions
Posted by: zetto33 - Mar-19-2020, 12:50 PM - Forum: General Coding Help - Replies (1)

Hi, this is my first thread. I am beginning with Python, and I did not fully understand how can I transfer variables in between classes, nor outside c..... More

Print this item

  Object not Subscriptable
Posted by: AgileAVS - Mar-19-2020, 11:06 AM - Forum: Web Scraping & Web Development - Replies (2)

Help post:
How do you select the second or third element with the same class name while using selenium?
For instance,
Trial=browser.find_element..... More

Print this item

  Code to create a hanging rope
Posted by: Jeibros - Mar-19-2020, 10:43 AM - Forum: Game Development - Replies (4)

I am trying to simulate the physics of a 2D hanging rope, consistent of a series of n-links. It could be a series of four pendulums. I just want some ..... More

Print this item

  Need help to make an empty list with possibility to add
Posted by: Arnsol - Mar-19-2020, 10:33 AM - Forum: General Coding Help - Replies (1)

Question:
Add a trait "emner" to the class Student. This should be a list of topics, and represent topics that the student takes or have taken. The ..... More

Print this item

  Book 'Python in high school'
Posted by: arnbod - Mar-19-2020, 07:10 AM - Forum: News and Discussions - Replies (3)

I would like to promote the release of my book "Python in high school - Algorithms and mathematics".
It is a step-by-step explanation of programming..... More

Print this item

  Pass results of expression to another expression
Posted by: cmdr_eggplant - Mar-18-2020, 10:44 PM - Forum: General Coding Help - Replies (2)

I am attempting to pass the results of an expression to another expression. Here is an example of the code I am working with. For reference, this is f..... More

Print this item

  PyQt5 Help - Absolute Beginner!
Posted by: mnash48 - Mar-18-2020, 09:52 PM - Forum: GUI - Replies (2)

Absolute beginner here, have no idea what I am doing wrong. All I want to do here is have the pushButton in PyQt5 to change to "Working..." and Red wh..... More

Print this item

  proper use of 'end' in a 'with' statement
Posted by: ccrider27 - Mar-18-2020, 09:44 PM - Forum: General Coding Help - Replies (1)

Python newbie here.

Code snippet:

>>> with open('todos.txt') as tasks:
	for chore in tasks:
		print(chore, end=' ')
Synta..... More

Print this item

  task queue
Posted by: Valon1981 - Mar-18-2020, 09:29 PM - Forum: General Coding Help - Replies (8)

Hi,
I’d like to create a queue of tasks and share those tasks between two computers. I thought of just splitting the tasks evenly between the two com..... More

Print this item

  Help to find a string and read the next lines
Posted by: crlamaral - Mar-18-2020, 09:27 PM - Forum: General Coding Help - Replies (4)

Hello, I'm having trouble recognizing a specific line and reading two lines below it. I would like some help because I've tried many things and couldn..... More

Print this item

Question Formula / Algorithm help?
Posted by: alpho - Mar-18-2020, 06:16 PM - Forum: General Coding Help - No Replies

Hello,

I took on a project which is now 4,000+ lines of code and reaching completion. The last step of this project is to link the settings with th..... More

Print this item

  Rock, Paper, Scissors.. Help..hidden bug
Posted by: xxunknownxx - Mar-18-2020, 06:14 PM - Forum: General Coding Help - Replies (4)

everything running great but there is a bug that i cant find... there is not error coming back from this so basically i cant trace it back
--some ti..... More

Print this item

  Backtesting trading strategy
Posted by: Finpyth - Mar-18-2020, 05:37 PM - Forum: Data Science - Replies (1)

Hallo

This is my last question for my thesis.

I’m about to backtest my strategy, but ran into the problem that i have some price data from Eiko..... More

Print this item

  Sending data to php page
Posted by: ebolisa - Mar-18-2020, 05:34 PM - Forum: Web Scraping & Web Development - No Replies

Hi,

I'm trying to send data to a PHP page, but I get the error

[quote]TypeError: POST data should be bytes, an iterable of bytes, or a file obje..... More

Print this item

  Python - List from csv files
Posted by: Wscwt011 - Mar-18-2020, 05:26 PM - Forum: General Coding Help - Replies (1)

I have a csv file that contains a set of records which represent a list of x,y coordinates.

I want to know how to get them from the file and into a..... More

Print this item

  Deny backslash using regex
Posted by: JohnnyCoffee - Mar-18-2020, 05:25 PM - Forum: General Coding Help - Replies (1)

My backslash don't work ?
SyntaxError: EOL while scanning string literal

Exemple backslash :

[python]
v_char = "search?q=\"

o_rex = re.matc..... More

Print this item

  How can I copy and paste data from text file into an Excel sheet?
Posted by: IrishOrigi - Mar-18-2020, 04:34 PM - Forum: General Coding Help - Replies (14)

I am trying to automate a process that basically reads in values from text files into certain excel cells. I have a template in excel that will read d..... More

Print this item

  Unexplained Phenomenon with Objects
Posted by: RoastyGhosty - Mar-18-2020, 02:34 PM - Forum: General Coding Help - Replies (1)

Consider the following class:

class a:
  def __init__(self,T):
    self.T=T
Now, if I set
[python]
x=a(3)
y=a(4)
[/pyth..... More

Print this item

  reformatting data frame
Posted by: tkirkland - Mar-18-2020, 02:17 PM - Forum: Data Science - No Replies

I am trying to convert a pandas data frame with multiple rows and multiple columns to one with singles rows and multiple columns. The current format ..... More

Print this item

  Scraping a dynamic data-table in python through AJAX request
Posted by: filozofo - Mar-18-2020, 01:42 PM - Forum: Web Scraping & Web Development - Replies (1)

Ref to the stackoverflow thread:..... More

Print this item

  Store DataFrame in a dict within two for-loops
Posted by: Aukru - Mar-18-2020, 09:31 AM - Forum: Data Science - Replies (1)

[python]
dict_of_results = {}

data = pd.read_csv('data.csv', sep = ';', index_col = False)
# data.csv looks like the following, containing 2 obj..... More

Print this item

  Error in Python3.6:free() Corrupted unsorted chunks error
Posted by: sameer_k - Mar-18-2020, 09:20 AM - Forum: General Coding Help - Replies (2)

I have multiple python scripts which push data in many tables of MsSql database.

I am using pymssql python package to connect to database. I have ..... More

Print this item

  Can python read Marathi text files and summarize them?
Posted by: mcp111 - Mar-18-2020, 08:58 AM - Forum: Data Science - No Replies

Can python read Marathi text files and summarize them as per this article

https://medium.com/@umerfarooq_26378/tex...on-76c0a41..... More

Print this item

  The logic of a main routine
Posted by: john7 - Mar-18-2020, 08:53 AM - Forum: General Coding Help - Replies (6)

In C all my functions run in the main loop
[python]
void main(void)
{
Init();
while (1)
{
DoSomeStuff();
}
}
[/pytho..... More

Print this item

  ? Headers: Keep-It=Simple; And=Stupid; With=Auto-Completion. Support HTTP, IMAP.
Posted by: Ousret - Mar-18-2020, 08:13 AM - Forum: Code sharing - Replies (1)

Hi,

I have a opensource project to share with you guys Smile

It is about : [i]Don't screw up reading Headers, Keep It Simple, Stupid ! HT..... More

Print this item

  XML question
Posted by: DPaul - Mar-18-2020, 07:46 AM - Forum: News and Discussions - Replies (2)

Hi,

I'm just being curious Cool
When i program with an xml database, i can e.g. add a new "record",
and even add a new field to existing r..... More

Print this item

  Replacing sub array in Numpy array
Posted by: ThemePark - Mar-18-2020, 04:19 AM - Forum: Data Science - Replies (5)

I'm trying to replace a sub array in a Numpy array, with an array of the same shape, such that any changes are mirrored in both arrays. I've run the f..... More

Print this item

  A question about encoding
Posted by: Exsul1 - Mar-18-2020, 12:11 AM - Forum: GUI - Replies (1)

I had to add .encode('utf-8') to the end of a string containing vowels with macrons (ā and ē) to prevent my Kivy app fr..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  view option in Django 1 hour ago Sowmya SULMAN Web Scraping ...
  Elegant way to apply each... 3 hours ago sawtooth500 deanhystad General Codin...
  Sorting Steps 4 hours ago MoreMoney Pedroski55 General Codin...
  reading a file like the u... 4 hours ago Skaperen perfringo News and Disc...
  OCR question 6 hours ago DPaul DPaul Bar
  m3u8 using build-in brows... Today, 01:47 kucingkembar kucingkembar Web Scraping ...
  write code that resides i... Today, 00:03 franklin97355 franklin97355 General Codin...
  I don't know what is wron... Yesterday, 18:46 shereen menator01 General Codin...
  encrypt data in json file... Yesterday, 17:16 jacksfrustration deanhystad General Codin...
  A Programmer Named Tim Yesterday, 16:38 Angelical Gribouillis Board
  Numeric Enigma Machine Yesterday, 14:17 idev idev General Codin...
Most views
  The best Prog... 357709
  Web Scraping ... 257291
  Tutorial Requ... 256479
  New Users Int... 225404
  Newbie with P... 219557
Most reputation
buran 582
snippsat 499
Larz60+ 450
Gribouillis 329
deanhystad 311
Most replies
  New Users Int... 430
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11859
buran 8085
snippsat 7068
deanhystad 6120
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
gusbeginner Today
SULMAN Today
FaithMartinez Today
franklin97355 Yesterday
RobertCOOPS Yesterday

User Panel Messages

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