How to get insight in the relations between tracebacks of exceptions in an exception-chain

2024-04-04 Thread Klaas van Schelven via Python-list
tion. However, it does leave people that want to analyze the `OriginalException` somewhat mystified: what led up to it? A programmer that wants to understand what led up to _t1_ would need to [mentally] copy all the frames above the point _t2_ to the first stacktrace to get a complete view. Howe

Re: Why do I always get an exception raised in this __init__()?

2023-09-03 Thread Chris Green via Python-list
Alan Gauld wrote: > On 31/08/2023 22:15, Chris Green via Python-list wrote: > > > class Gpiopin: > > > > def __init__(self, pin): > > # > > # > > # scan through the GPIO chips to find the line/pin we want > > # > > for

Re: Why do I always get an exception raised in this __init__()?

2023-09-01 Thread Alan Gauld via Python-list
On 31/08/2023 22:15, Chris Green via Python-list wrote: > class Gpiopin: > > def __init__(self, pin): > # > # > # scan through the GPIO chips to find the line/pin we want > # > for c in ['gpiochip0', 'gpiochip1', 'gpioch

Re: Why do I always get an exception raised in this __init__()?

2023-08-31 Thread Larry Martell via Python-list
On Thu, Aug 31, 2023 at 3:19 PM Chris Green via Python-list wrote: > > I'm obviously doing something very silly here but at the moment I > can't see what. > > Here's the code:- > > #!/usr/bin/python3 > # > # > # GPIO > # > import gpiod > # > # > # Simple wrapper

Why do I always get an exception raised in this __init__()?

2023-08-31 Thread Chris Green via Python-list
I'm obviously doing something very silly here but at the moment I can't see what. Here's the code:- #!/usr/bin/python3 # # # GPIO # import gpiod # # # Simple wrapper class for gpiod to make set and clearing outputs easier # class Gpiopin:

Re: Why do I always get an exception raised in this __init__()?

2023-08-31 Thread Chris Green via Python-list
Chris Green wrote: [snip code and question] Sorry folks, it was a caching problem, I wasn't running the code I thought I was running! When I made sure I had cleared everything out and tried again it all worked as I expected. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python

Re: Hello I want help get rid of that message and help install Python properly and thank you

2023-03-22 Thread Igor Korot
Hi, On Wed, Mar 22, 2023 at 11:37 AM Mohammed nour Koujan wrote: > > > -- What message? Please don't post screenshots - copy and paste the errors from your machine... Thank you. > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Hello I want help get rid of that message and help install Python properly and thank you

2023-03-22 Thread Mohammed nour Koujan
-- https://mail.python.org/mailman/listinfo/python-list

Re: How to get get_body() to work? (about email)

2023-03-20 Thread Jon Ribbens via Python-list
On 2023-03-19, Greg Ewing wrote: > On 20/03/23 7:07 am, Jon Ribbens wrote: >> Ah, apparently it got removed in Python 3, which is a bit odd as the >> last I heard it was added in Python 2.2 in order to achieve consistency >> with other types. > > As far as I remember, the file type came into exist

Re: How to get get_body() to work? (about email)

2023-03-20 Thread Jon Ribbens via Python-list
On 2023-03-19, Stefan Ram wrote: > Jon Ribbens writes: >>(Also, I too find it annoying to have to avoid, but calling a local >>variable 'file' is somewhat suspect since it shadows the builtin.) > > Thanks for your remarks, but I'm not aware > of such a predefined name "file"! Ah, apparently

Re: How to get get_body() to work? (about email)

2023-03-20 Thread Jon Ribbens via Python-list
On 2023-03-19, Stefan Ram wrote: > Peng Yu writes: >>But when I try the following code, get_body() is not found. How to get >>get_body() to work? > > Did you know that this post of mine here was posted to > Usenet with a Python script I wrote? > > That Python

Re: How to get get_body() to work? (about email)

2023-03-19 Thread Greg Ewing via Python-list
On 20/03/23 7:07 am, Jon Ribbens wrote: Ah, apparently it got removed in Python 3, which is a bit odd as the last I heard it was added in Python 2.2 in order to achieve consistency with other types. As far as I remember, the file type came into existence with type/class unification, and "open"

Re: How to get get_body() to work? (about email)

2023-03-19 Thread Thomas Passin
parts(), and walk()." But when I try the following code, get_body() is not found. How to get get_body() to work? $ python3 -c 'import email, sys; msg = email.message_from_string(sys.stdin.read()); print(msg.get_body())' <<< some_text Traceback (most recent call last): File &

How to get get_body() to work? (about email)

2023-03-19 Thread Peng Yu
following code, get_body() is not found. How to get get_body() to work? $ python3 -c 'import email, sys; msg = email.message_from_string(sys.stdin.read()); print(msg.get_body())' <<< some_text Traceback (most recent call last): File "", line 1, in AttributeE

Re: Subtracting dates to get hours and minutes

2022-12-15 Thread Thomas Passin
ll show if you can get what you want, or if not, what more information you need. Look through the rest of the documentation of (in this case) the datetime module and see if any of the other functionality looks like it will produce what you want. It is important to understand clearly what your

Re: Subtracting dates to get hours and minutes

2022-12-15 Thread MRAB
On 2022-12-15 22:49, Gronicus@SGA.Ninja wrote: Yes, it works like a charm. On the tupility of it all. Special thanks for the explanation too….. (Originally asked but I found the errors. All is working) Now that the code no longer produces the errors, I see that the year and month not incl

Re: Subtracting dates to get hours and minutes

2022-12-15 Thread Thomas Passin
. You need to convert the string into the correct integers, because is the datetime function expects to get integers, not strings.  It isn't going to work with a string that looks like a tuple when it is printed. Here is one way you could do this.  From the input file, extract the strin

RE: Subtracting dates to get hours and minutes

2022-12-15 Thread Gronicus
? From: anthony.flury Sent: Thursday, December 15, 2022 1:47 PM To: Gronicus@SGA.Ninja Subject: RE: Subtracting dates to get hours and minutes What is likely happening is that when you read the data from the file you are not reading a tuple, you are reading a 26 charcter string. You have to

Re: Subtracting dates to get hours and minutes

2022-12-15 Thread Weatherby,Gerard
, December 15, 2022 at 5:02 PM To: 'anthony.flury' , python-list@python.org Subject: RE: Subtracting dates to get hours and minutes *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** Yes, it works like a charm. On the tupility

RE: Subtracting dates to get hours and minutes

2022-12-15 Thread Gronicus
PM To: Gronicus@SGA.Ninja Subject: RE: Subtracting dates to get hours and minutes What is likely happening is that when you read the data from the file you are not reading a tuple, you are reading a 26 charcter string. You have to convert that string into a tuple - the easiest way will be

Re: Subtracting dates to get hours and minutes

2022-12-15 Thread Thomas Passin
string. Your example contains 26 characters, which matches the error message, so that's probably what is going on. You need to convert the string into the correct integers, because is the datetime function expects to get integers, not strings. It isn't going to work with a strin

Re: Subtracting dates to get hours and minutes

2022-12-15 Thread MRAB
On 2022-12-15 18:14, Gronicus@SGA.Ninja wrote: So far so good , I can now use a variable in datetime.datetime but it only works if I hard-code the time/date information. Now I want to have the code read from a file but I get: TypeError: function takes at most 9 arguments (26 given) I figure

RE: Subtracting dates to get hours and minutes

2022-12-15 Thread Gronicus
So far so good , I can now use a variable in datetime.datetime but it only works if I hard-code the time/date information. Now I want to have the code read from a file but I get: TypeError: function takes at most 9 arguments (26 given) I figure that the structure in the file is incorrect. What

Re: How to get the needed version of a dependency

2022-12-14 Thread Cecil Westerhof via Python-list
DFS writes: > On 12/14/2022 3:55 AM, Cecil Westerhof wrote: >> If I want to know the dependencies for requests I use: >> pip show requests >> And one of the lines I get is: >> Requires: certifi, charset-normalizer, idna, urllib3 >> But I want (in t

Re: Subtracting dates to get hours and minutes

2022-12-14 Thread Thomas Passin
, December 13, 2022 11:20 PM To: python-list@python.org Subject: Re: Subtracting dates to get hours and minutes Your problem is that datetime.datetime does not accept a tuple as an argument. It expects an integer value for the first argument, but you supplied a tuple. In Python, you can use a sequ

Re: How to get the needed version of a dependency

2022-12-14 Thread DFS
On 12/14/2022 3:55 AM, Cecil Westerhof wrote: If I want to know the dependencies for requests I use: pip show requests And one of the lines I get is: Requires: certifi, charset-normalizer, idna, urllib3 But I want (in this case) to know with version of charset-normalizer requests

How to get the needed version of a dependency

2022-12-14 Thread Cecil Westerhof via Python-list
If I want to know the dependencies for requests I use: pip show requests And one of the lines I get is: Requires: certifi, charset-normalizer, idna, urllib3 But I want (in this case) to know with version of charset-normalizer requests needs. How do I get that? -- Cecil Westerhof Senior

RE: Subtracting dates to get hours and minutes

2022-12-13 Thread Gronicus
assin Sent: Tuesday, December 13, 2022 11:20 PM To: python-list@python.org Subject: Re: Subtracting dates to get hours and minutes Your problem is that datetime.datetime does not accept a tuple as an argument. It expects an integer value for the first argument, but you supplied a tuple. In Python, you

Re: Subtracting dates to get hours and minutes

2022-12-13 Thread Thomas Passin
Your problem is that datetime.datetime does not accept a tuple as an argument. It expects an integer value for the first argument, but you supplied a tuple. In Python, you can use a sequence (e.g., tuple or list) the way you want by prefixing it with an asterisk. This causes the sequence of

RE: Subtracting dates to get hours and minutes

2022-12-13 Thread Gronicus
As is, Test A works. Comment out Test A and uncomment Test B it fails. In Test B, I move the data into a variable resulting with the report: "TypeError: an integer is required (got type tuple) How do I fix this? #-

Re: Subtracting dates to get hours and minutes

2022-12-12 Thread Weatherby,Gerard
behalf of Marc Lucke Date: Monday, December 12, 2022 at 11:37 AM To: python-list@python.org Subject: Re: Subtracting dates to get hours and minutes *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** my approach would be to convert your

Re: Subtracting dates to get hours and minutes

2022-12-12 Thread Marc Lucke
my approach would be to convert your two date/times to seconds from epoch - e.g. https://www.geeksforgeeks.org/convert-python-datetime-to-epoch/ - then subtract the number, divide the resultant by 3600 (hours) & get the modulus for minutes.  There's probably a standard function - it s

RE: Subtracting dates to get hours and minutes

2022-12-12 Thread Mike Dewhirst
you.M--(Unsigned mail from my phone) Original message From: Steve GS Date: 12/12/22 17:34 (GMT+10:00) To: python-list@python.org Subject: Subtracting dates to get hours and minutes How do I subtract two time/dates and calculate the hours and minutesbetween?Steve-- https

Subtracting dates to get hours and minutes

2022-12-11 Thread Steve GS
How do I subtract two time/dates and calculate the hours and minutes between? Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Chris Angelico
On Thu, 22 Sept 2022 at 23:46, Richard Moseley wrote: > > According to documentation syslog.setlogmask returns the current mask so > save the value to reset later on. > > Oldval = syslog.setlogmask(newmask) > > This sets oldval to original mask. This on its own suggests an odd technique that shou

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Dennis Lee Bieber
On Thu, 22 Sep 2022 13:28:57 +, c.bu...@posteo.jp declaimed the following: >I would like to get the current `LOG_MASK`, which is kind of a logging >level. According to the docu it seems that `syslog` doesn't have a >mechanism for that. > There is a function .

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Richard Moseley
> I'm aware that there is a `logging` package that is more _modern_ then > [`syslog`](https://docs.python.org/3/library/syslog.html). But I have > old code here to deal with that does use `syslog`. So that question is > specific to `syslog` and not to `logging`. > > I woul

How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread c . buhtz
yslog` and not to `logging`. I would like to get the current `LOG_MASK`, which is kind of a logging level. According to the docu it seems that `syslog` doesn't have a mechanism for that. Does someone has an idea? The docu also tells me that `syslog` does let pass all messages by default

Re: Can't get iterator in the C API

2022-02-09 Thread Jen Kris via Python-list
; where gutenberg.fileids is, of course, iterable. >> >> I use the following C API code to import the module and get pointers: >> >> int64_t Call_PyModule() >> { >>     PyObject *pModule, *pName, *pSubMod, *pFidMod, *pFidSeqIter,*pSentMod; >> >>     pN

Re: Can't get iterator in the C API

2022-02-08 Thread MRAB
()):     sentences = gutenberg.sents(fileid)     etc where gutenberg.fileids is, of course, iterable. I use the following C API code to import the module and get pointers: int64_t Call_PyModule() {     PyObject *pModule, *pName, *pSubMod, *pFidMod, *pFidSeqIter,*pSentMod;     pName

Can't get iterator in the C API

2022-02-08 Thread Jen Kris via Python-list
)     etc where gutenberg.fileids is, of course, iterable.  I use the following C API code to import the module and get pointers: int64_t Call_PyModule() {     PyObject *pModule, *pName, *pSubMod, *pFidMod, *pFidSeqIter,*pSentMod;     pName = PyUnicode_FromString("nltk.corpus");  

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread Dennis Lee Bieber
On Mon, 31 Jan 2022 01:32:15 -0800 (PST), NArshad declaimed the following: >What about CGI? >Do you know any Library Management System based on CGI just like the one on >Django? Pure CGI is 30 year old technology... https://en.wikipedia.org/wiki/Common_Gateway_Interface To use

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread Chris Angelico
On Tue, 1 Feb 2022 at 02:38, NArshad wrote: > > What about CGI? > Do you know any Library Management System based on CGI just like the one on > Django? > Have you done any research, or are you just picking up a new acronym to see if you can suck some more volunteer time out of this list? ChrisA

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread NArshad
What about CGI? Do you know any Library Management System based on CGI just like the one on Django? -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-29 Thread Dennis Lee Bieber
not sure how I stumbled upon it... I think the older ActiveState Python I have installed was one of those "include everything that doesn't cause a conflict" configurations, with tons of 3rd-party packages... And I just saw the name in a package list. I had conside

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Cousin Stanley
Dennis Lee Bieber wrote: > Ignoring the code spam I presume > I'm an sqlite user myself and was glad to see the code you posted and have a couple of tiny example book/author sql3 databases but nothing resembling an actual library check in/out program I've never used PySi

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Dennis Lee Bieber
receive the book -- I treat the latter as the checkout stage]; admin users get: checkout for client, checkin for client, expire stale reservations, list overdue, grant admin privilege, add book, delete book). C:\Users\Wulfraed\Documents\_Hg-Repositories\Python Progs>pygount -s py -f summar

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Cousin Stanley
Dennis Lee Bieber wrote: > > How would you do this assignment on paper ? > Your patience and willingness to help and guide someone else with such a complete and understanable post is hihgly commendable. Thanks -- Stanley C. Kitching Human Being Phoenix, Arizona -- htt

Re: What to write or search on github to get the code for what is written below:

2022-01-24 Thread NArshad
;fine and it can be >changed if your project scales up to millions of books and multiple people >searching at the same >time. > What you have written is difficult to find on google search and others. That's why writing all this to get something for search. -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-24 Thread Dennis Lee Bieber
's done". >Now the problem is what to do next. If I had known, I must have submitted the >whole project at my earliest convenience without coming over here in google >groups. > How would you do this assignment on paper? Print out your spreadsheet and get a larg

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
ple is something I did back around 1990: 18 months consisting of ~600 lines F77, ~2000 lines of C, and ~2500 lines of DECWindow UIL definition; along with learning both DECWindow and GKS within it -- so, yes, the overall total is about 2 lines per day, but I had to develop/document requirements, presen

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Chris Angelico
On Sun, 23 Jan 2022 at 09:15, Dennis Lee Bieber wrote: > A web > application has every action as a distinct connection and needs identifying > tokens [cookies] to let the logic know what was done previously > Usually. Fortunately, we have SOME features that can make life easier, but in general, y

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
to forget the web form and multi-user problems and write a text-based console program that can be run from a command line shell. WHEN you get that working you can consider keeping the logic that interfaces with the data store, and replace the "presentation" stuff with HTML generation and

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Avi Gross via Python-list
, or perhaps a lower case version, back to your server that does the search. Does that make sense? If not, stop reading as nothing else will. So, back on the server side, you get a single string of text that might look like "Great Expectations" and you want to find out if that matches a

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Chris Angelico
On Sun, 23 Jan 2022 at 07:47, Dennis Lee Bieber wrote: > If you are doing a web application, how are you going to host it? Who > is responsible for managing the web server? Domain name? Firewalls? > Certificates if you need HTTPS rather than plain insecure HTTP. > > I have a Raspbe

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
web server means you have to be able to handle (near) simultaneous requests from multiple users and be able to keep those interactions distinct. That is going to require you to implement some sort of access control for a spreadsheet, since spreadsheets are single-user entities (you might get away w

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread NArshad
The user is going to enter the book name as the input of an HTML form on a website and I have to check whether the book is present or not in the Excel table. openpyxl preferred pandas is also fine anything left. Case sensitivity is not required. I tried to find code or tutorial on google searc

Re: What to write or search on github to get the code for what is written below:

2022-01-20 Thread NArshad
- I will try to follow all that you people are saying, but it will take time or next time. The chance of concurrency is very less. Kindly don't write big descriptions. - The weblink Avi Gross has given is very useful. -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Avi Gross via Python-list
think this group has already spent way too much time on whatever this issue is and provided lots of useful advice which apparently does not get taken. So don't pull me in again. I have moved on. -Original Message- From: Dennis Lee Bieber To: python-list@python.org Sent: Tue, Jan 18,

Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Dennis Lee Bieber
o/~ talking to myself in public o/~ On Mon, 17 Jan 2022 15:39:25 -0500, Dennis Lee Bieber declaimed the following: > In one respect, given the limited functionality stated, one gets the >impression of a class GROUP assignment, in which the individual functions >w

Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Dennis Lee Bieber
on.org/mailman/listinfo/python-list"; >do? > >Can I use this for the discussions which I require? It is most likely the same forum... The Python mailing list (which does get spam filtered, unlike the Usenet newsgroup, so doesn't see as much junk injected via

Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread NArshad
Avi Gross: What does the website "https://mail.python.org/mailman/listinfo/python-list"; do? Can I use this for the discussions which I require? -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Chris Angelico
On Tue, Jan 18, 2022 at 7:44 AM Dennis Lee Bieber wrote: > Heroku-Specific note: a recent web-page I encountered searching for > information for a different question indicates that Heroku does not support > SQLite3 and, by extension, ANY file-based dynamic data storage (so, no > Excel files either

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Dennis Lee Bieber
On Mon, 17 Jan 2022 01:55:15 -0800 (PST), NArshad declaimed the following: >This is due to the time factor And that opens another can of worms... Before this "assignment" was given to you, surely someone made some sort of estimate of how long it would take to produce, taking into accoun

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Avi Gross via Python-list
working set of software first. Good luck with that.  -Original Message- From: NArshad To: python-list@python.org Sent: Mon, Jan 17, 2022 4:55 am Subject: Re: What to write or search on github to get the code for what is written below: Avi Gross: -“They just were hoping someone would post

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Dennis Lee Bieber
On Tue, 18 Jan 2022 02:51:22 +1100, Chris Angelico declaimed the following: > >I strongly encourage everyone to stop helping the OP until there's >some code to help with. > Well, we did squeeze about four lines of code from the OP -- though still incomplete (no import statements so we hav

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Chris Angelico
On Tue, Jan 18, 2022 at 2:46 AM NArshad wrote: > > Avi Gross: > > -“They just were hoping someone would post complete code and they could then > move on without learning anything.” > > This is due to the time factor Then pay someone to write it. There are plenty of contractors out there. You can

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread NArshad
Avi Gross: -“They just were hoping someone would post complete code and they could then move on without learning anything.” This is due to the time factor -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-16 Thread Dennis Lee Bieber
ue} } >print (x) > >Only the contents of the first column and the column number is required in the >dictionary You won't get that with .to_dict() -- it uses the column names for the major grouping, and then uses the row names (which are already g

Re: What to write or search on github to get the code for what is written below:

2022-01-16 Thread Mats Wichmann
ot;something does > not work." > > Yes, the topic was raised on a Python list but I did not get the impression > the person asking necessarily knew a lot about Python or maybe other > languages. I may well be wrong. They seem to have been handed something to > work on and m

Re: What to write or search on github to get the code for what is written below:

2022-01-15 Thread Cameron Simpson
the column number is required >in the dictionary The code above _must_ produce some output, even if it is very short, or an error traceback. Is "x" an empty dictionary? Are you getting an exception? What is in ABC.xlsx, at least in part? What modules are you importing in order t

Re: What to write or search on github to get the code for what is written below:

2022-01-15 Thread Avi Gross via Python-list
list but I did not get the impression the person asking necessarily knew a lot about Python or maybe other languages. I may well be wrong. They seem to have been handed something to work on and maybe are searching for some way to do it. You can do what was asked in plenty of languages, some

Re: What to write or search on github to get the code for what is written below:

2022-01-15 Thread Mats Wichmann
On 1/13/22 16:08, Avi Gross via Python-list wrote: > > I am not replying to anything below so I have removed it. > Instead, someone suggested Python which indeed, with lots of work, can open > just about ANY nonsensical file and diddle around and rewrite it, but WHY? well, the topic *was* rais

Re: What to write or search on github to get the code for what is written below:

2022-01-15 Thread NArshad
What Dennis Lee is saying I will see to it later. Right now what mrabarrnett is saying is of use. Why does the code written below is not giving any output? xls = ExcelFile('ABC.xlsx') df = xls.parse(xls.sheet_names[0], index_col=1) x=df.to_dict() print (x) Only the contents o

Re: What to write or search on github to get the code for what is written below:

2022-01-14 Thread Dennis Lee Bieber
On Thu, 13 Jan 2022 23:08:19 + (UTC), Avi Gross declaimed the following: >So the suggestions to copy the data ONCE into something else (a CSV, database, >whatever) that can be used externally are reasonable but seem to be resisted. >I would guess some of the "missing" functionality others w

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Greg Ewing
On 14/01/22 12:23 pm, dn wrote: On 14/01/2022 09.48, Dennis Lee Bieber wrote: On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber declaimed the following: Talking to myself in public again... Bad habit... Recommend that you not start any arguments then - they will be unwinnable!

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread dn via Python-list
On 14/01/2022 09.48, Dennis Lee Bieber wrote: > On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber > declaimed the following: > > Talking to myself in public again... Bad habit... Recommend that you not start any arguments then - they will be unwinnable! -- Regards, =dn -- https://ma

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Avi Gross via Python-list
the right modules and use them carefully, it seems the hard way to go. Sure, you can in theory do it but the amount of learning and work involved seems excessive  for what you get. And when you are done with what was requested here, you probably need to add other features that will again be p

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Fri, 14 Jan 2022 08:24:43 +1100, Chris Angelico declaimed the following: >On Fri, Jan 14, 2022 at 7:56 AM Dennis Lee Bieber >wrote: >> >> On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber >> declaimed the following: >> >> Talking to myself in public again... Bad habit... > >Not

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Chris Angelico
On Fri, Jan 14, 2022 at 7:56 AM Dennis Lee Bieber wrote: > > On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber > declaimed the following: > > Talking to myself in public again... Bad habit... Not as bad as singing choruses in public, which - or so I'm told, by a mad girl in opera - i

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber declaimed the following: Talking to myself in public again... Bad habit... > As you've described this system, the only thing your application will >do is record "check-outs" by tracking available copies of books, and the >name (

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Thu, 13 Jan 2022 10:44:01 -0800 (PST), NArshad declaimed the following: Please arrange to use some client that does proper quote attribution. It gets difficult to read these when you have snippets from multiple posts with no attribution of who wrote the snippet, and when it was posted,

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread NArshad
- “if you are deploying to something like Heroku for the application -- the Excel file will have to be deployed also, and no one except your application will be able to see it there. Under this situation, there is no reason/excuse to keep the data in the very inefficient format you've defined i

Re: What to write or search on github to get the code for what is written below:

2022-01-12 Thread MRAB
On 2022-01-11 06:31, NArshad wrote: -“How are the relevant cells identified in the spreadsheet?” The column headings are: BOOK_NAME BOOK_AUTHOR BOOK_ISBN TOTAL_COPIES COPIES_LEFT BORROWER’S_NAME ISSUE_DATE RETURN_DATE -“It's often the case that the cells on the first row contain text as column

Re: What to write or search on github to get the code for what is written below:

2022-01-12 Thread Dennis Lee Bieber
add-ons that can be installed using PIP. As Linux, none of the Windows specific modules will be available (no Excel ODBC, no use of pythonwin extensions calling directly into the Excel DLLs). Who is going to be using the Excel file? and how are they going to get to it? Your Heroku contai

Re: What to write or search on github to get the code for what is written below:

2022-01-12 Thread NArshad
-“How are the relevant cells identified in the spreadsheet?” The column headings are: BOOK_NAME BOOK_AUTHOR BOOK_ISBN TOTAL_COPIES COPIES_LEFT BORROWER’S_NAME ISSUE_DATE RETURN_DATE -“It's often the case that the cells on the first row contain text as column labels.” These I have written above

Re: What to write or search on github to get the code for what is written below:

2022-01-12 Thread Dennis Lee Bieber
*** Apologies for the repost. Since Gmane made the list a read-only group, I finally broke down and reinstated Giganews comp.lang.python. Unfortunately I'd missed that this came back with X-NoArchive active and Google doesn't even let such messages show up for a day -- so the OP hasn't see

Re: What to write or search on github to get the code for what is written below:

2022-01-10 Thread MRAB
On 2022-01-10 16:39, NArshad wrote: Using openpyxl is pretty straightforward: from openpyxl import load_workbook wb = load_workbook(spreadsheet_path) sheet = wb.active # Reading the values in cells: print('Cell A1 contains', sheet['A1'].value) print('Cell A2 contains', sheet['A2'].value) prin

Re: What to write or search on github to get the code for what is written below:

2022-01-10 Thread NArshad
Using openpyxl is pretty straightforward: from openpyxl import load_workbook wb = load_workbook(spreadsheet_path) sheet = wb.active # Reading the values in cells: print('Cell A1 contains', sheet['A1'].value) print('Cell A2 contains', sheet['A2'].value) print('Cell B1 contains', sheet['B1'].valu

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread Cameron Simpson
On 09Jan2022 13:08, Dennis Lee Bieber wrote: >>Only the four functions that I have written below I have to make and >>that’s it. All the input will be entered by the user on a website: >>1. First, I have to check in the Excel sheet or table whether the book user >>has entered is present in the b

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread Avi Gross via Python-list
. Others ahve mentioned that. It does not matter where the data is as in all cases you need ways to guarantee the data will not get messed up But consider the simple case. Your program starts and runs ALONE. It initializes and reads in the data needed and stores it IN MEMORY. It might be in one or

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread Peter J. Holzer
On 2022-01-09 13:08:51 -0500, Dennis Lee Bieber wrote: > there are multiple ways to have Python access Excel -- from simple > read and write modules xlrd/xlwt, (which is out-dated; xlrd does not > work with .xlsx format, only the older .xls format). This is not true. xlrd has supported .xlsx since

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread MRAB
On 2022-01-09 07:04, NArshad wrote: On Friday, 7 January 2022 at 02:59:17 UTC+5, alister wrote: On Thu, 6 Jan 2022 10:55:30 -0800 (PST), NArshad wrote: > All this is going to be in python’s flask and HTML only > > 1. First, I have to check in the Excel sheet or table whether the book > user

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread NArshad
-Whose time?? My time I do not have not time to switch to a database but if necessary I can use the database to make changes in Excel column entries. -No changes?? I cannot change the column names. -“maybe the point is that at any time one has to be able to re-export to the original excel

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread alister via Python-list
On Sun, 9 Jan 2022 08:53:58 -0800 (PST), NArshad wrote: > -Whose time?? > My time I do not have not time to switch to a database but if necessary > I can use the database to make changes in Excel column entries. > > -No changes?? > > I cannot change the column names. > > > -“maybe the point is

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread alister via Python-list
On Sat, 8 Jan 2022 23:04:20 -0800 (PST), NArshad wrote: > On Friday, 7 January 2022 at 02:59:17 UTC+5, alister wrote: >> On Thu, 6 Jan 2022 10:55:30 -0800 (PST), NArshad wrote: >> >> > All this is going to be in python’s flask and HTML only >> > >> > 1. First, I have to check in the Excel sheet

Re: What to write or search on github to get the code for what is written below:

2022-01-09 Thread NArshad
On Friday, 7 January 2022 at 02:59:17 UTC+5, alister wrote: > On Thu, 6 Jan 2022 10:55:30 -0800 (PST), NArshad wrote: > > > All this is going to be in python’s flask and HTML only > > > > 1. First, I have to check in the Excel sheet or table whether the book > > user has entered is present in

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread Avi Gross via Python-list
ost of the work and is just stuck somewhere, I, personally, feel no need to offer any guidance.  -Original Message- From: Chris Angelico To: python-list@python.org Sent: Fri, Jan 7, 2022 2:57 pm Subject: Re: What to write or search on github to get the code for what is written below: O

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread MRAB
On 2022-01-06 18:55, NArshad wrote: All this is going to be in python’s flask and HTML only 1. First, I have to check in the Excel sheet or table whether the book user has entered is present in the book bank or not. 2. If a book is present and the quantity of the required book is greater than

Re: What to write or search on github to get the code for what is written below:

2022-01-07 Thread Chris Angelico
On Sat, Jan 8, 2022 at 6:50 AM NArshad wrote: > - All functions mentioned above are to be deployed on the website > pythonhow.com so make according to > https://pythonhow.com/python-tutorial/flask/web-development-with-python-and-flask/ > > - Do you know any other websites to deploy a python web

  1   2   3   4   5   6   7   8   9   10   >