import inspect error

2018-09-17 Thread nobody
I have following errors running on Ubuntu 18, any insight how to fix it? Thank you. Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import inspect Traceback (most recent call last): File "", line

Re: import inspect error

2018-09-17 Thread Chris Angelico
On Mon, Sep 17, 2018 at 6:06 PM, nobody wrote: > I have following errors running on Ubuntu 18, any insight how to fix it? > Thank you. > > Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) > [GCC 7.3.0] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import

Re: import inspect error

2018-09-17 Thread Gary Herron
You appear to have a local file named keyword.py which is hiding a python installation file of the same name. Gary Herron On 09/17/2018 01:06 AM, jupiter@gmail.com wrote: I have following errors running on Ubuntu 18, any insight how to fix it? Thank you. Python 2.7.15rc1 (default, A

Re: Add header at top with email.message

2018-09-17 Thread Thomas Schneider
Jason Friedman writes: > I suppose you already figured out that you can call __delitem__() to > clear the headers and add them back in whatever order you like. Well, this would mean saving all headers, deleting all, inserting my own, and adding the saved original headers again. Seems complicate

Explicit vararg values

2018-09-17 Thread Buck Evan
I started to send this to python-ideas, but I'm having second thoughts. Does tihs have merit? --- I stumble on this a lot, and I see it in many python libraries: def f(*args, **kwargs): ... f(*[list comprehension]) f(**mydict) It always seems a shame to carefully build up an object in order

Python in endless loop

2018-09-17 Thread YnIk
Dear Python, Hello. This is an email concerning about my Python program(3.7.0). It keeps printing out stuff that’s too fast to read. If I try to write code, it just keeps on going. I have tried Ctrl+C, but even that’s not working. I searched through all my flies and can’t find one error that wou

giving error during installation (ez_setup.py given error could not create ssl/tls secure channel)

2018-09-17 Thread Syed Shujaat
Hello, can you please help regarding this problem. ez_setup.py given error could not create ssl/tls secure channel Regards Syed Shujaat -- https://mail.python.org/mailman/listinfo/python-list

Re: Python in endless loop

2018-09-17 Thread Peter Otten
YnIk wrote: > Dear Python, > Hello. This is an email concerning about my Python program(3.7.0). It > keeps printing out stuff that’s too fast to read. If I try to write code, > it just keeps on going. I have tried Ctrl+C, but even that’s not working. > I searched through all my flies and can’t fin

Re: Python in endless loop

2018-09-17 Thread Bob Gailer
On Sep 17, 2018 9:31 AM, "YnIk" wrote: > > Dear Python, > Hello. This is an email concerning about my Python program(3.7.0). It keeps printing out stuff that’s too fast to read. If I try to write code, it just keeps on going. I have tried Ctrl+C, but even that’s not working. I searched through all

Zen of The Python Mailing List

2018-09-17 Thread Abdur-Rahmaan Janhangeer
change of subject, wanted to add this : previous messages are worth a read Abdur-Rahmaan Janhangeer Mauritius -- Forwarded message - From: Abdur-Rahmaan Janhangeer Date: Mon, 17 Sep 2018, 19:18 Subject: Re: [Python-ideas] Retire or reword the "Beautiful is better than ugly"

Re: Experiences with a programming exercise

2018-09-17 Thread Bob Gailer
On Sep 15, 2018 1:50 PM, "Alister via Python-list" wrote: > > On Sat, 15 Sep 2018 17:08:57 +, Stefan Ram wrote: > > > I gave two different functions: > > > > def triangle(): > > for i in range( 3 ): > > forward( 99 ); left( 360/3 ) > > > > def rectangle() > > for i in range( 4

how to get string printed by PyErr_Print( )

2018-09-17 Thread Jason Qian via Python-list
Hey, Someone has discussed this issue before. Other than redirect stderr, does the new version python 3.7.0 has other way to retrieve the string whichPyErr_Print( ) ? if (PyErr_Occurred()) PyErr_Print(); //need to retrieve the error to string Thanks -- https://mail.python.org/mailman/listi

Re: giving error during installation (ez_setup.py given error could not create ssl/tls secure channel)

2018-09-17 Thread dieter
Syed Shujaat writes: > can you please help regarding this problem. ez_setup.py given error could not > create ssl/tls secure channel Apparently, "ez_setup.py" tries to upgrade a transport communication channel with SSL (= "Secure Socket Layer") or TLS (= "Transport Layer Security") and fails. U