Re: [Tutor] How to write database-agnostic python code? (Is this even possible?)

2017-09-15 Thread boB Stepp
On Wed, Sep 13, 2017 at 11:33 PM, Mark Lawrence via Tutor wrote: > SQLAlchemy isn't the only Python ORM of course. There is a useful little > article about ORMs and their availability here > https://www.fullstackpython.com/object-relational-mappers-orms.html. A more >

Re: [Tutor] How to write database-agnostic python code? (Is this even possible?)

2017-09-15 Thread boB Stepp
On Thu, Sep 14, 2017 at 2:06 AM, Peter Otten <__pete...@web.de> wrote: > That's the "Law of leaky abstractions", > https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/ Thanks for the link to this article. I really enjoyed reading it. In fact, so far every article I have read

Re: [Tutor] Python + Irc

2017-09-15 Thread Alan Gauld via Tutor
On 15/09/17 21:16, Fernando Gualberto wrote: > How i can integrate Python program with IRC to send Messages from program > to the IRC? If you google "python irc module" you should get several hits. Try looking at the documentation and pick the one that seems easiest for your needs. -- Alan G

Re: [Tutor] array input from keyboard

2017-09-15 Thread Alan Gauld via Tutor
On 15/09/17 21:50, Derek Smith wrote: > if nput1 == "file" : > nput2 = input("Please provide your input file? ") > nput2 = nput2.lower() Are you sure the filenames will always be lower case? > print (nput2) > fh = open(nput2,"r") You should wrap that in a try/except in case

[Tutor] array input from keyboard

2017-09-15 Thread Derek Smith
I need to accept input from the user then store in an array/list. This is my 1st python script. #!/usr/bin/env python # Derek Smith # 09/2017 # accept volumes for TSM for tape mgmt. import os import sys nput1 = "" nput2 = "" nput1 = input("\nIs your input 'file' based or 'cli' based? ") if

[Tutor] Python + Irc

2017-09-15 Thread Fernando Gualberto
How i can integrate Python program with IRC to send Messages from program to the IRC? -- *Fernando Gualberto Martins* ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python Help

2017-09-15 Thread Alan Gauld via Tutor
On 15/09/17 04:08, Pratyusha Thundena wrote: > How do check to see if string ‘garden’ contains a > vowel(a, e , i , o, u , or y) using a for loop? Hi, this sounds like homework and we won't do your homework for you, but we do give hints. How would you do this without a computer? There are (at

Re: [Tutor] Help

2017-09-15 Thread Abdur-Rahmaan Janhangeer
besides already written notes, i suggest use .split(".") floatNum = input("> ") parts = floatNum.split(".") whole = parts[0] deci = parts[1] Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 7 Sep 2017 21:51, "edmundo pierre via Tutor" wrote: >

Re: [Tutor] New to Python

2017-09-15 Thread Abdur-Rahmaan Janhangeer
1) valuable resources : sololearn tutorialspoint python3 top tip : concentrate on concepts good books for beginners there are many like .. dive into python 3 available free online .. automate the boring stuff available free online a good reference-like book: .. Learning Python .. Programming