Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread Marko Rauhamaa
Dan Stromberg : >> > The problem can be solved by turning on the SO_REUSEADDR flag of >> > the socket. > BTW, it's a security feature you're turning off. If you're on a > multiuser box, it prevents a second user from stealing lingering > connections from a first user on the same port. Can you prov

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Hi Guys, Thanks for all the suggestions. I found the problem. I had saved my program in IDLE and quit out of the shell, and then tried to run the program in Terminal. Previously, restarting the shell was enough to break the connection with the port. This time, I guess, it wasn't. So after think

Python 3.7.0 is now available! (and so is 3.6.6)

2018-06-27 Thread Ned Deily
On behalf of the Python development community and the Python 3.7 release team, we are pleased to announce the availability of Python 3.7.0. Python 3.7.0 is the newest feature release of the Python language, and it contains many new features and optimizations. You can find Python 3.7.0 here: ht

Re: configparser v/s file variables

2018-06-27 Thread Jim Lee
On 06/27/18 15:19, Steven D'Aprano wrote: On Wed, 27 Jun 2018 12:15:23 -0700, Jim Lee wrote:   It seems a bit silly to me to worry about arbitrary code execution   in an interpreted language like Python whose default runtime execution method is to parse the source code directly.  An attac

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread Dan Stromberg
On Wed, Jun 27, 2018 at 10:44 AM, T Berger wrote: > On Wednesday, June 27, 2018 at 1:40:20 PM UTC-4, Marko Rauhamaa wrote: > > Joaquin Henriquez : > > > > >>Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > > > > > The best way to help if got you to put the relevant code here. > >

Re: configparser v/s file variables

2018-06-27 Thread Steven D'Aprano
On Wed, 27 Jun 2018 12:15:23 -0700, Jim Lee wrote: >   It seems a bit silly to me to worry about arbitrary code execution >   in > an interpreted language like Python whose default runtime execution > method is to parse the source code directly.  An attacker would be far > more likely to simply

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread Cameron Simpson
On 27Jun2018 10:44, Tamara Berger wrote: On Wednesday, June 27, 2018 at 1:40:20 PM UTC-4, Marko Rauhamaa wrote: Joaquin Henriquez : >>Subject: EXTERNAL: OSError: [Errno 48] Address already in use > The best way to help if got you to put the relevant code here. > > The error you are experiencin

Re: Something new which all programmers world wide will appreciate

2018-06-27 Thread Rob Gaddi
On 06/27/2018 02:14 PM, skybuck2...@hotmail.com wrote: Now I don't like the French much ! LOL. But this time they have invented something which will fill programmers with tears of joy ! =D http://www.euronews.com/2018/06/27/pizza-making-robot Hopefully this will lead to cheaper and delicious

Re: configparser v/s file variables

2018-06-27 Thread Abdur-Rahmaan Janhangeer
i think variables also in the case of PORT = 12345 Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ And it doesn't require that the end user have any knowlege of Python > syntax or sematics. > -- https://mail.python.org/mailman/listinfo/python-list

Re: OSError: [Errno 48] Address already in use

2018-06-27 Thread Jim Lee
On 06/27/18 08:49, T Berger wrote: Why am I getting this error? I'm not sure what additional information I need to supply, so please let me know. You asked this question two weeks ago and got several answers.  Here is one of them: On 06/15/18 10:17, Percival John Hackworth wrote: On 15-

Re: configparser v/s file variables

2018-06-27 Thread Grant Edwards
On 2018-06-27, Jim Lee wrote: >  It seems a bit silly to me to worry about arbitrary code > execution in an interpreted language like Python whose default > runtime execution method is to parse the source code directly.  Maybe it's not a deliberate attack. Good application design is also about

Re: configparser v/s file variables

2018-06-27 Thread Rob Gaddi
On 06/27/2018 12:15 PM, Jim Lee wrote: On 06/27/18 11:45, Abdur-Rahmaan Janhangeer wrote: and that closes it, thanks !!! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Importing variables from a file is dangerous because it can execute arbitrary code.  It should never be done w

Re: sigmoid function and derivative

2018-06-27 Thread Dan Stromberg
On Tue, Jun 26, 2018 at 8:26 PM, Sharan Basappa wrote: > Folks, > > I know this is not a machine learning forum but I wanted to see if anyone > can explain this to me. > > In artificial neural network, I can understand why sigmoid is used but I > see that derivative of sigmoid output function is

Re: configparser v/s file variables

2018-06-27 Thread Jim Lee
On 06/27/18 11:45, Abdur-Rahmaan Janhangeer wrote: and that closes it, thanks !!! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Importing variables from a file is dangerous because it can execute arbitrary code. It should never be done with files provided by the user. Using c

Re: configparser v/s file variables

2018-06-27 Thread Abdur-Rahmaan Janhangeer
and that closes it, thanks !!! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Importing variables from a file is dangerous because it can execute > arbitrary code. It should never be done with files provided by the > user. > > Using configparser is far, far safer. > -- https://mail

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 1:40:20 PM UTC-4, Marko Rauhamaa wrote: > Joaquin Henriquez : > > >>Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > > > The best way to help if got you to put the relevant code here. > > > > The error you are experiencing means that the Port you are

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread Marko Rauhamaa
Joaquin Henriquez : >>Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > The best way to help if got you to put the relevant code here. > > The error you are experiencing means that the Port you are trying to > bind is already taken by another running process. That error usually ta

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Let me add this information to clarify the context in which I got this error 48. It doesn't make sense to me, and it might not to you. This morning, I opened my webapp (vsearch4web.py in the terminal code above) and noticed a whole bunch of code I had not typed. I also noticed something weird a

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 12:17:28 PM UTC-4, Joaquin Henriquez wrote: > >Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > The best way to help if got you to put the relevant code here. Last login: Wed Jun 27 12:45:08 on ttys000 192:~ TamaraB$ cd Desktop/Webapp/ 192:Webapp Ta

RE: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread Joaquin Henriquez
>Subject: EXTERNAL: OSError: [Errno 48] Address already in use The best way to help if got you to put the relevant code here. The error you are experiencing means that the Port you are trying to bind is already taken by another running process. -- https://mail.python.org/mailman/listinfo/pytho

Re: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 11:49:18 AM UTC-4, T Berger wrote: > Why am I getting this error? I'm not sure what additional information I need > to supply, so please let me know. I'm working on a Flask webapp. I know there is another google group specifically for Flask. Can you please provide

OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Why am I getting this error? I'm not sure what additional information I need to supply, so please let me know. -- https://mail.python.org/mailman/listinfo/python-list

Re: configparser v/s file variables

2018-06-27 Thread Grant Edwards
On 2018-06-27, Abdur-Rahmaan Janhangeer wrote: > what is more recommended and why? using configparser for settings or import > variables from file? Importing variables from a file is dangerous because it can execute arbitrary code. It should never be done with files provided by the user. Using

configparser v/s file variables

2018-06-27 Thread Abdur-Rahmaan Janhangeer
what is more recommended and why? using configparser for settings or import variables from file? thanks, Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- https://mail.python.org/mailman/listinfo/python-list

thank you for inventing python

2018-06-27 Thread Kike Rocamora
Enviado desde Correo para Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Should nested classes in an Enum be Enum members?

2018-06-27 Thread Ethan Furman
[Note: there is a similar thread on Python-Ideas, if you would like to respond there.] Consider the following Enum definition: class Color(Enum): RED = 1 GREEN = 2 BLUE = 3 @property def lower(self): return self.name.lower() def spam(self):

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-27 Thread Neil Cerutti
On 2018-06-25, Alister wrote: > for i in range(len(list)): is a python anti-pattern it is almost a 100% > guarantee that you are doing something wrong* > > *as with all rules of thumb there is probably at least 1 > exception that the python experts will now point out. When you need look-ahead or

ANN: OB - framework to program bots

2018-06-27 Thread Bart Thate
Hello comp.lang.python, I am Bart Thate, a 50 year old programming schizofrenic. I like to annouce version 4 of OB, a pure python3 package you can use to program bots. OB has a “no-clause MIT license” that should be the most liberal license you can get at the year 2018. I am looking for feedb

Re: syntax difference

2018-06-27 Thread Bart
On 27/06/2018 12:42, Peter J. Holzer wrote: On 2018-06-27 11:11:37 +1200, Gregory Ewing wrote: Bart wrote: x = set(range(10_000_000)) This used up 460MB of RAM (the original 100M I tried exhausted the memory). The advantage of Pascal-style sets is that that same set will occupy only 1.25M

Re: syntax difference

2018-06-27 Thread Peter J. Holzer
On 2018-06-27 11:11:37 +1200, Gregory Ewing wrote: > Bart wrote: > >x = set(range(10_000_000)) > > > > This used up 460MB of RAM (the original 100M I tried exhausted the memory). > > > > The advantage of Pascal-style sets is that that same set will occupy > > only 1.25MB, as it is a bit-map.

Re: Where's the junk coming from?

2018-06-27 Thread Avon
On 06/27/18, Cameron Simpson pondered and said... CS> On 25Jun2018 18:37, Mark Lawrence wrote: CS> >More of the flaming things, this time name@1261/38.remove-ij1-this. Any CS> >as I don't understand this stuff? CS> CS> Looks like a FIDONET gateway leaking somehow. I've made an enquiry to

[ANN] managesieve 0.6

2018-06-27 Thread Hartmut Goebel
I'm pleased to announce managesieve 0.6, a ManageSieve client library for remotely managing Sieve scripts, including an user application (the interactive 'sieveshell'). :Homepage: https://managesieve.readthedocs.io/ Development: https://gitlab.com/htgoebel/managesieve :Author:   Hartmut Goebel :L