Re: Python3 - How do I import a class from another file

2019-12-13 Thread Greg Ewing
On 14/12/19 5:13 pm, boB Stepp wrote: is it true that CPython itself is free to implement these behaviors differently in its own future versions? Yes. That's why it's not a good idea to rely on them even if you only intend to run your code on CPython. -- Greg -- https://mail.python.org/mailman

Re: Python3 - How do I import a class from another file

2019-12-13 Thread boB Stepp
On Wed, Dec 11, 2019 at 6:51 PM Greg Ewing wrote: > > On 12/12/19 3:50 am, R.Wieser wrote: > > I was rather clear about what my used version of Python was-and-is. I have > > no idea why that was ignored. :-( > > I think we've all been talking at cross purposes for a while. > > What I meant to say

Re: 3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
That's my starting point au fait. Was asking for a 3rd party package. gmail from pypi has a nice api 👌 (filter etc seem awesome). Wondered if something similar exists. -- https://mail.python.org/mailman/listinfo/python-list

Re: 3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Wonder where the 2nd party went to. Thanks will look into it! -- https://mail.python.org/mailman/listinfo/python-list

Re: 3rd party mail package

2019-12-13 Thread Brian Oney via Python-list
How about a 1st party package in the stdlib? >From the hip: Take an example or two from the 'python 2 or 3 standard library >by example' book by a guy named Doug. Hth (really) -- https://mail.python.org/mailman/listinfo/python-list

3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, What is the best 3rd party package for reading mail? Got a gmail 0.6.x on pypi but it is highly inconsistent (and last commit 2013). Any recommendations? Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github

Re: Reading mail getting [, ...

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Can you please indicate where is the header in my code above? Thanks. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius > -- https://mail.python.org/mailman/listinfo/python-list

Re: Troubleshooting

2019-12-13 Thread Akkana Peck
Michael Torrie writes: > On 12/12/19 6:33 PM, Python wrote: > > What happened exactly? Did you download the official installer from > > python.org, then click on next, next, next, checking the box (if it's > > still there about updating PATH)? There is nothing more to do. > > I've seen github bug

Re: Implementing CURL command using libcurl in C/C++

2019-12-13 Thread Barry
> On 13 Dec 2019, at 08:53, Karthik Sharma wrote: > > The `CURL` command that I am using is shown below. > >curl -F 'file=@/home/karthik/Workspace/downloadfile.out' > http://127.0.0.1:5000/file-upload --verbose > > The response from the server is shown below. > >* Trying 127.0.0.

Re: More efficient/elegant branching

2019-12-13 Thread Antoon Pardon
On 9/12/19 12:27, Musbur wrote: > Hello, > > I have a function with a long if/elif chain that sets a couple of > variables according to a bunch of test expressions, similar to > function branch1() below. I never liked that approach much because it > is clumsy and repetetive, and pylint thinks so as

Re: Python3 - How do I import a class from another file

2019-12-13 Thread Antoon Pardon
On 11/12/19 14:42, R.Wieser wrote: > Michael, > >> It's a two-way street. It's hard to teach someone that won't be taught. > Whacking a student over the head because he doesn't understand has never > helped the student*. You were not whacked for not understanding. You were wacked for pretending

Re: Implementing CURL command using libcurl in C/C++

2019-12-13 Thread Bob Gailer
This list is for Python, not C/C++. On Dec 13, 2019 3:50 AM, "Karthik Sharma" wrote: > The `CURL` command that I am using is shown below. > > curl -F 'file=@/home/karthik/Workspace/downloadfile.out' > http://127.0.0.1:5000/file-upload --verbose > > The response from the server is shown below

Implementing CURL command using libcurl in C/C++

2019-12-13 Thread Karthik Sharma
The `CURL` command that I am using is shown below. curl -F 'file=@/home/karthik/Workspace/downloadfile.out' http://127.0.0.1:5000/file-upload --verbose The response from the server is shown below. * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 5000 (#0) > POST