All,
I think I am asking for the impossible here. But I will ask anyway.
I am using flask_sqlalchemy to build the tables and perform the queries,
updates and insertions. I have multiple tables with the same structure with
different names. A table called accounts which stores t
All,
Python 3.6 under windows 10 - I am using flask_sqlalchemy and finding it
quite good with taking a lot of the heavy lifting of writing SQL statements.
I have a question in relation to SQL relationships and how would this be
done using SQL or flask_sqlalchemy or sqlalchemy.
I have thre
All,
Thanks to the starting point from Allan's chapter on web ffframeworks. I
have now build quite a nice little app showing a bunch of records from a
sqlite database in tables. The issue I am having is with flask_wtf and
forms. I have a Selector HTML which I want to grab the selected item from
Matt,
I would suggest you look at the links in the signature for this mailer for
some good tutorials on OOPS. Datacamp also has some good tutorials.
-Original Message-
From: Tutor On Behalf Of
Matthew Zand
Sent: Monday, 15 July 2019 1:54 AM
To: Tutor@python.org
Subject: [Tutor] Blockchai
All,
I am currently not sure where to start with my query.
I have a SQLite3 database which currently is being accessed by python code.
I am seeking a simple python module which would support a local web app in
order to update and insert rows, and run reports . This web app I am
creating
Hi all.
In C, you can use pointers to reference variables, arrays, ETC. In python, I
do not recall anything specifically that refers to such a capability. What I
want to do is:
I want to create different data structures such as dictionaries which
contain specific list elements based upo
Hello All,
I am back!!! I forget which movie that comes from.
Anyway, my issue is I am getting the same node being added to the parent node
of my tree below. I have traced the code and do not understand why. This occurs
when the loop which calls the addNode function has only looped once.
All,
General computer science question for data structures.
When would you use the below structures and why? If you can provide a real
life example on when they would be used in a program This would be great. I
am not after code, just explanation.
Link lists
Double link-lists
Binary tre
Allan,
Once again, thanks for the help. I need to read more on OOPS it is all new
and that was my first attempt. I looked at nesting Dictionaries and it got
quite complex fast with the length of the strings and the path as you have
outlined. I have parked that structure style for now.
All these a
All,
Windows 10, python 3.6.
I am trying to create a data structure. I might be using the wrong term here,
but I am calling it a hierarchical tree. The properties of the tree I am trying
to create is:
* A single root node
* A node can only have a single parent.
* A pare
Allan,
I think I understand, but that type of maths I have not touched in 40 years.
Thus why I am not getting the concept. 😊 It was an open question as I had no
clue what it was and I should have asked. Lets park the question for now and I
will read the references. As I am not sure if this will
All,
I have reviewed the collection module and do not understand mappings. I have
seen this in other languages and have never got the concept. Can someone
explain this at a very high level.
___
Tutor maillist - Tutor@python.org
To unsubs
Thanks, so much to learn.
-Original Message-
From: Tutor On Behalf Of
Alan Gauld via Tutor
Sent: Friday, 21 June 2019 2:26 AM
To: tutor@python.org
Subject: Re: [Tutor] word printing issue
On 20/06/2019 11:44, mhysnm1...@gmail.com wrote:
> I have a list of strings that I want to break th
All,
I have a list of strings that I want to break them into separate words, and
a combination of words then store them into a list. Example below of a
string:
"Hello Python team".
The data structure:
[ ['Hello'],
['Hello', 'Python'],
['Hello', 'Python', 'team'],
]'Python'],
]'P
Allan,
I will respond to your reply in the other thread. As I want to respond to
everyone in one email. Thanks for the clarification on the questions or
information I did not provide. 101 troubleshooting assistance. Do not assume
others know what you know. 😊
-Original Message-
Fr
This is a follow-up on my previous question for removing elements. Below is
the code I am currently using. I am removing the elements at the end of the
outer loop. The data structure goes along this:
[
['123123',[2019-2-18', 'transaction text', 'amount'],
v ['123123',[2019-2-18', 'transac
All,
In C, Perl and other languages. While only uses a conditional statement and
for uses an iteration. In python while and for seems to be the same and I
cannot see the difference. Python does not have an until (do while) where
the test is done at the end of the loop. Permitting a once through
All,
I am not sure how to tackle this issue. I am using Windows 10 and Python 3.6
from Activestate.
I have a list of x number of elements. Some of the elements are have similar
words in them. For example:
Dog food Pal
Dog Food Pal qx1323
Cat food kitty
Absolute cleaning inv123
Abs
Hello all,
Windows 10 OS, Python 3.6
I have a couple of queries in relation to extracting content using regular
expressions. I understand the pattern chars (.?*+), Meta-chars \d, \D, \W,
\W and so on. The class structure [.]. The group I believe I understand (.).
The repeat feature {m,n}.
Mike, Allan and Matt,
Thanks for the information and help. I will check out Mike's code and have a
play. Allan you provided some good resources and based upon what Matt stated
before and using Easegui. This is not a path I can use. Thanks for the help
anyway.
Matt, a shame. I am not sure what can
Allan,
That is what I have done before I went to bed. Installed ActiveState and
using Python 3.6 as that is the release build they have up on their site.
-Original Message-
From: Tutor On Behalf Of
Alan Gauld via Tutor
Sent: Sunday, 2 June 2019 5:01 AM
To: tutor@python.org
Subject: R
As I thought. Easygui is not accessible at all with a screen reader due to
the underlying graphic library. Win32 could work if I could load it. Since
then I could use standard windows objects.
Note, I didn't see anything in the quick scan I did ion the API.
Very frustrating and disappointing.
Allen,
As I am using Python 3.7 under windows. I have tried to use the win32gui,
and Tkinter. Both generate the below errors and I cannot identify a module
release to support the version of Python I am using.
C:\Users\mhysn>pip install Tkinter
graphic 948 Collecting Tkinter
ERROR: Could not
Hello all,
Python 3.7, windows 10.
I have no clue on how to achieve what I want to do and the code I have
creates an hash. As shown below:
for row in description:
text = description_rejex(row) # applies a regular expression test
function to remove text. Returns a list.
if text
All,
Below I am just providing the example of what I want to achieve, not the
original strings that I will be using the regular expression against.
The original strings could have:
"Hello world"
"hello World everyone"
"hello everyone"
"hello world and friends"
I have a string
Mark and all,
Thanks for the link to the different dictionaries. The book which was
recommended I have already got and read which doesn't answer my question.
The structure of the CSV file is:
Account no, date, transaction description (what I am trying to build unique
keys from), credit, debit, se
All,
I have a list of strings which has been downloaded from my bank. I am trying
to build a program to find the unique string patterns which I want to use
with a dictionary. So I can group the different transactions together. Below
are example unique strings which I have manually extracted fro
Everyone,
Thanks for the pointers.
From: George Fischhof
Sent: Saturday, 2 February 2019 2:42 AM
To: mhysnm1...@gmail.com
Cc: tutor@python.org
Subject: Re: [Tutor] How to get Selenium to wait for page load
mailto:mhysnm1...@gmail.com> > ezt Ãrta (idÅ‘pont: 2019.
jan. 31., Cs 12:07
Hi all,
I have found an excellent article on identifying stale elements. The issue
is when I try and use their example code. I get a failure where for_wait is
not defined.
http://www.obeythetestinggoat.com/how-to-get-selenium-to-wait-for-page-load-
after-a-click.html
Traceback (most recent
Peter,
I am aware that I am avoiding functions that can make my life easier. But I
want to learn some of this data structure navigation concepts to improve my
skills in programming. What you have provided I will review in depth and
have a play with.
A big thanks.
-Original Message-
From
Marco,
Thanks. The reason for learning selenium is for the automation. As I want to
test web sites for keyboard and mouse interaction and record the results. That
at least is the long term goal. In the short term, I will have a look at your
suggestion.
From: Marco Mistroni
Sent: Sun
All,
Goal of new project.
I want to scrape all my books from Audible.com that I have purchased.
Eventually I want to export this as a CSV file or maybe Json. I have not got
that far yet. The reasoning behind this is to learn selenium for my work
and get the list of books I have purchased. Ki
All,
I have addressed the issue. When I open the file, I am using newline='' as
one of the parameters.
with open ('books-list.csv', 'w', newline='', encode='utf-8') as wf:
I added the UTF-8 as I discovered after sending my original email I was not
importing all the books. I discovered
All,
Thanks in advance for any assistance. This is a follow up msg from my iTunes
import issue with the xml. I have managed to successfully import the data
from the XML with Peter's and Alan's help. I have moved the information into
a list and only extracting the data I want. Now I am trying to
Peter and Alan,
Peter, Thanks for the information. The library did the trick and I can get
access to the XML content.
Alan, thanks for the explanation of the tree structure. I was aware of this
already for HTML and XML. Just didn't understand the terminology used from the
XML library. The tuto
All,
I am trying to import ITunes XML files. I have been doing some reading and I am
somewhat confused with some XML terminology.
What is:
Tag – I think it is the in the itunes library file.
Text = The text between the
Attrib -- don’t know.
If I am correct in my thinking. If y
Peter,
Thanks for the code for a custom key. That will come in handy later down the
track.
-Original Message-
From: Tutor On Behalf Of
Peter Otten
Sent: Sunday, 13 January 2019 10:00 PM
To: tutor@python.org
Subject: Re: [Tutor] Debugging a sort error.
mhysnm1...@gmail.com wrote:
> Issu
All,
Once again thanks for all the suggestions. It was the input data after all. As
I am importing three sheets into python. One of the sheets had one less column.
Thus how I ended up with float points. The testing for the string helped here
greatly. Now things are correct again.
On and forwa
Everyone,
I did find out the issue. When looking at the output in a spreadsheet. I was
inserting floats into the description dictionary from the code I was using to
extract the data. Thus I have gone back to the drawing board. Rather than
extracting by columns which became difficult to achieve
Hello everyone.
I am hoping someone can help with the below error using Python3.5 in the
Windows 10 bash environment. I found the below link which I am not sure if
this is related to the issue or not. As I don't fully understand the answer.
https://github.com/SethMMorton/natsort/issues/7
I
All,
I am currently writing a Python program to identify common text patterns in a
excel spreadsheet which I have imported using openpyxl. All the descriptions of
the transactions are in a single column. I am trying to work out the easiest
method of identifying the same pattern of text in th
41 matches
Mail list logo