Module import question

2020-08-08 Thread Gabor Urban
Hi guys, I have a quite simple question but I could not find the correct answer. I have twoo modules A and B. A imports B. If I import A in a script, Will be B imported automatically? I guess not, but fő not know exactly. Thanks for your answer ín advance, Gábor -- https://mail.python.org/mail

Re: importlib: import X as Y; from A import B

2020-08-08 Thread Chris Angelico
On Sun, Aug 9, 2020 at 1:25 PM Jason Friedman wrote: > > I have some code I'm going to share with my team, many of whom are not yet > familiar with Python. They may not have 3rd-party libraries such as pandas > or selenium installed. Yes I can instruct them how to install, but the path > of least

Re: importlib: import X as Y; from A import B

2020-08-08 Thread dn via Python-list
On 09/08/2020 15:23, Jason Friedman wrote: I have some code I'm going to share with my team, many of whom are not yet familiar with Python. They may not have 3rd-party libraries such as pandas or selenium installed. Yes I can instruct them how to install, but the path of least resistance is to ha

Mischief Managed: Save-to-file code not quite working completely

2020-08-08 Thread Steve
A simple solution is to know better how the operation works. (-: I was thinking that the operation would search for the keyword (MSN) and replace the line. Instead of passing the key word, I passed the entire line to be replaced and it's correction.. def ReplaceLine(file,searchExp,replaceExp):

importlib: import X as Y; from A import B

2020-08-08 Thread Jason Friedman
I have some code I'm going to share with my team, many of whom are not yet familiar with Python. They may not have 3rd-party libraries such as pandas or selenium installed. Yes I can instruct them how to install, but the path of least resistance is to have my code to check for missing dependencies

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread Richard Damon
On 8/8/20 8:03 PM, sammy.jackson...@gmail.com wrote: > If i use place holders i.e. {0} and {1} where {0} is the name and {1} is the > dataframe i get an error for the following line of code:- > .format((Name,Body).to_html()) which states 'tuple' object has no attribute > 'to_html'. I would do it

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread sammy . jackson987
On Saturday, August 8, 2020 at 5:03:07 PM UTC+1, MRAB wrote: > On 2020-08-08 15:58, sammy.jackson...@gmail.com wrote: > > On Saturday, August 8, 2020 at 3:46:04 PM UTC+1, Richard Damon wrote: > >> All the text that you want the user to see needs to be in the of > >> the message. is for metadata a

Re: Save-to-file code not quite working completely

2020-08-08 Thread dn via Python-list
On 09/08/2020 08:51, Steve wrote: I have a file containing specifications. My .py program can read and manipulate the data but I cannot seem to get it to update the original file properly. The code is simple and works except that the original line remains in the file after the new updated one h

Re: Save-to-file code not quite working completely

2020-08-08 Thread MRAB
On 2020-08-08 21:51, Steve wrote: I have a file containing specifications. My .py program can read and manipulate the data but I cannot seem to get it to update the original file properly. The code is simple and works except that the original line remains in the file after the new updated one h

Save-to-file code not quite working completely

2020-08-08 Thread Steve
I have a file containing specifications. My .py program can read and manipulate the data but I cannot seem to get it to update the original file properly. The code is simple and works except that the original line remains in the file after the new updated one has been added. My code: ==

Re: Any ideas for a new language inspired to Python?

2020-08-08 Thread Grant Edwards
On 2020-08-07, Marco Sulla wrote: > My core ideas are: > > 1. Statically compiled (of course...). So if you write: > > var a = 1 > > the variable `a` is an integer and it's value can't be changed to > anything that is not an integer That's "statically typed". It has nothing to do with whether i

Re: Any ideas for a new language inspired to Python?

2020-08-08 Thread Marco Sulla
On Sat, 8 Aug 2020 at 14:10, Barry wrote: > >> On 7 Aug 2020, at 23:28, Marco Sulla wrote: > > My idea seems to be very simple (so probably it's not simple at all): > > a language similar to Python, but statically compiled. > > Have a look at Apple’s Swift. It reminds me of python as I read it.

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread MRAB
On 2020-08-08 15:58, sammy.jackson...@gmail.com wrote: On Saturday, August 8, 2020 at 3:46:04 PM UTC+1, Richard Damon wrote: All the text that you want the user to see needs to be in the of the message. is for metadata and stuff to setup some formatting. You might want to study up a bit on HT

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread Richard Damon
On 8/8/20 10:58 AM, sammy.jackson...@gmail.com wrote: > Thank you Richard for your response. > > I have moved all the text i want the user to see into the body of the email. > > I still cannot get my email to display the name. > > Name = "Tim" > > How would i include this variable in my HTML/Python

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread sammy . jackson987
On Saturday, August 8, 2020 at 3:46:04 PM UTC+1, Richard Damon wrote: > All the text that you want the user to see needs to be in the of > the message. is for metadata and stuff to setup some formatting. > > You might want to study up a bit on HTML formatting too. Depending on > what the data fr

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread Richard Damon
All the text that you want the user to see needs to be in the of the message. is for metadata and stuff to setup some formatting. You might want to study up a bit on HTML formatting too. Depending on what the data frame is like, you may need to enclose it in some sort of container, like a On 8

Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread sammy . jackson987
Hello all I was hoping someone could help me with the following coding problem. I am trying to send an email where the body of the email is taken from a data frame, which i have managed to do. However i want to start the email by saying Hi Name, where Name is a variable that contains the perso

Re: Encountering fatal error x80070643 while installing Python

2020-08-08 Thread MANAN AGGARWAL
On Friday, November 18, 2016 at 6:58:23 PM UTC+5:30, Irene Venditti wrote: > Hi everybody, > > > > I've got a problem with the installation of Python. I am a translator and > currently I'm translating a book on programming Minecraft with Python, from > English to Dutch. > > > > My compute

Re: Any ideas for a new language inspired to Python?

2020-08-08 Thread Barry
>> On 7 Aug 2020, at 23:28, Marco Sulla wrote: > Let me first say that I don't know if my post is on topic with the > mailing list. If so, please inform me. > > My idea seems to be very simple (so probably it's not simple at all): > a language similar to Python, but statically compiled. > > (