Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why does Function behave differently in a class vs. outside a class?
Post: Why does Function behave differently in a class vs...

# Why does this function behave differently in a class vs. outside a class? class Test(): def add_person(element, lineage=[]): lineage.append(element) # AttributeError: 'str' object has ...
Leaf General Coding Help 4 3,734 Nov-30-2017, 09:54 AM
    Thread: Class Instances overriding class members and attributes.
Post: RE: Class Instances overriding class members and a...

Thank you for your detailed example. My long-version of the code looks similar to this but I broke it down piece by piece to work on playing and exploring different aspects of Python. My goal is to le...
Leaf General Coding Help 7 7,014 Nov-29-2017, 06:08 AM
    Thread: Class Instances overriding class members and attributes.
Post: RE: Class Instances overriding class members and a...

[UPDATE: SORRY I posted this before seeing the new comment/last reply I'm reading it now] Thank you Wavic*. Class Person accepts "data" as an argument. And add_person accepts "name" as an argument, ...
Leaf General Coding Help 7 7,014 Nov-28-2017, 01:15 PM
    Thread: Class Instances overriding class members and attributes.
Post: RE: Class Instances overriding class members and a...

Originally lineage was a list containing dicts but it still didn't solve the problem; so what I did was I changed it to dicts temporarily during my troubleshooting.I plan to change it back later, it's...
Leaf General Coding Help 7 7,014 Nov-27-2017, 10:42 PM
    Thread: Class Instances overriding class members and attributes.
Post: Class Instances overriding class members and attri...

I'm trying to add each person to a list or dictionary. In this case it's a dictionary, but the same thing happens whether I reformat it to be a list that gets appended. I'm struggling to describe what...
Leaf General Coding Help 7 7,014 Nov-27-2017, 09:31 PM
    Thread: Highcharts: JS to Python
Post: RE: Highcharts: JS to Python

Thank you so much for your detailed answer, it has helped bring clarity. I have one more question (for clarification): When you say Highcharts is a Javascript library you are talking about this as w...
Leaf General Coding Help 5 11,433 Nov-03-2017, 02:13 PM
    Thread: Highcharts: JS to Python
Post: RE: Highcharts: JS to Python

Thank you for your in depth response; my response may be a misunderstanding of your response to please forgive me if I am wrong. My question was not about how to have Highcharts JS interact with Flask...
Leaf General Coding Help 5 11,433 Nov-03-2017, 10:47 AM
    Thread: Visually Impaired using Python
Post: RE: Visually Impaired using Python

What text-to-speech software are you using? MAC has a really good text-to-speech software built in, Windows does not, JAWS cost money but if I recall from my time working with visually impaired indivi...
Leaf News and Discussions 5 5,669 Nov-02-2017, 03:18 AM
    Thread: Highcharts: JS to Python
Post: Highcharts: JS to Python

I have a few questions 1. is related to visualizing data with highcharts, and the other is related to 2. extracting data from JSON (is it a default dictionary?) into and appending the data within that...
Leaf General Coding Help 5 11,433 Nov-01-2017, 10:46 PM
    Thread: Flask Flash Messages Blank
Post: RE: Flask Flash Messages Blank

Wow, something so simple; that fixed the problem; thank you so much!
Leaf Web Scraping & Web Development 2 5,778 Oct-16-2017, 10:19 PM
    Thread: Flask Flash Messages Blank
Post: Flask Flash Messages Blank

View.py @site.route('/dashboard/') def dashboard(): flash("flash test!!!!") flash("fladfasdfsaassh test!!!!") flash("asdfas asfsafs!!!!") return render_template("dashboard.html")dashbo...
Leaf Web Scraping & Web Development 2 5,778 Oct-16-2017, 08:13 PM

User Panel Messages

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