Re: Reading \n unescaped from a file

2015-09-06 Thread Peter Otten
Friedrich Rentsch wrote: > My response was meant for the list, but went to Peter by mistake. So I > repeat it with some delay: > > On 09/03/2015 04:24 PM, Peter Otten wrote: >> Friedrich Rentsch wrote: >> >>> On 09/03/2015 11:24 AM, Peter Otten wrote: Friedrich Rentsch wrote: >>> I appreciat

Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
Hello everyone, I want to use python for web development but I could not configure my Apache server to run python with the guides I found on the internet. Can anyone help me configure http.server to run python scripts? I ran the command python -m http.server --cgi to start the http server, and i

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude@gmail.com wr ites: >Hello everyone, > >I want to use python for web development but I >could not configure my Apache server to run python >with the guides I found on the internet. > >Can anyone help me configure http.server >to run

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Warrick
On 6 September 2015 at 13:50, wrote: > Hello everyone, > > I want to use python for web development but I > could not configure my Apache server to run python > with the guides I found on the internet. > > Can anyone help me configure http.server > to run python scripts? > > I ran the command pyt

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 14:16:37 +0200, Chris Warrick writes: >Don’t use http.server. Don’t use CGI. This is not how things work in Python. > >In Python, you should use a web framework to write your code. Web >frameworks include Flask, Django, Pyramid… Find one that’s popular and >that you

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Peter Otten
tropical.dude@gmail.com wrote: > I want to use python for web development but I > could not configure my Apache server to run python > with the guides I found on the internet. > > Can anyone help me configure http.server > to run python scripts? > > I ran the command python -m http.server --

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote: > In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude@gmail.com > wr > ites: > >Hello everyone, > > > >I want to use python for web development but I > >could not configure my Apache server to run python > >wit

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote: > In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude@gmail.com > wr > ites: > >Hello everyone, > > > >I want to use python for web development but I > >could not configure my Apache server to run python > >wit

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Peter Otten
Peter Otten wrote: > tropical.dude@gmail.com wrote: > >> I want to use python for web development but I >> could not configure my Apache server to run python >> with the guides I found on the internet. >> >> Can anyone help me configure http.server >> to run python scripts? >> >> I ran the

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote: > In a message of Sun, 06 Sep 2015 04:50:23 -0700, wr > ites: > >Hello everyone, > > > >I want to use python for web development but I > >could not configure my Apache server to run python > >with the guides I found on the int

Re: Reading \n unescaped from a file

2015-09-06 Thread Friedrich Rentsch
On 09/06/2015 09:51 AM, Peter Otten wrote: Friedrich Rentsch wrote: My response was meant for the list, but went to Peter by mistake. So I repeat it with some delay: On 09/03/2015 04:24 PM, Peter Otten wrote: Friedrich Rentsch wrote: On 09/03/2015 11:24 AM, Peter Otten wrote: Friedrich R

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 05:38:50 -0700, tropical.dude@gmail.com wr ites: >> What operating system are you running? It sounds to me as if you haven't >> configured apache to add a Handler for python scripts, or you have, but >> forgot to restart apache after you did so. >> >> Laura >

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 1:51:00 PM UTC+2, tropical...@gmail.com wrote: > Hello everyone, > > I want to use python for web development but I > could not configure my Apache server to run python > with the guides I found on the internet. > > Can anyone help me configure http.server > to run

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:46:42 PM UTC+2, Laura Creighton wrote: > In a message of Sun, 06 Sep 2015 05:38:50 -0700, tropical.dude@gmail.com > wr > ites: > > >> What operating system are you running? It sounds to me as if you haven't > >> configured apache to add a Handler for python

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Sun, Sep 6, 2015 at 11:07 PM, wrote: > I will definitely look into python web frameworks in the future, they seem > complicated to me compared to php for example. I am looking for the simplest > way to test my python scripts till I understand better how it works and when > I can configure my o

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 06:07:05 -0700, tropical.dude@gmail.com wr ites: >Thank you very much. > >I will definitely look into python web frameworks in the future, they seem >complicated to me compared to php for example. I am looking for the simplest >way to test my python scripts till

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 1:03 AM, Laura Creighton wrote: > As I was walking around town it occurred to me to ask if you have > made your something.py file executable? I don't even know if > apache on windows cares about such things, though if you are using cgi > and a unix like system you will need

Wheels For ...

2015-09-06 Thread Sven R. Kunze
Hi folks, currently, I came across http://pythonwheels.com/ during researching how to make a proper Python distribution for PyPI. I thought it would be great idea to tell other maintainers to upload their content as wheels so I approached a couple of them. Some of them already provided wheels.

Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Paulo da Silva
Hi! I took a look at tkinter. It is pretty simple but it's very hard to construct some relatively more complex widgets. So I looked at pmw. Because my system only have pmw for python2, I downloaded pmw2 from its site and installed it manually using pysetup.py install. Trying the examples ...: So

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Michael Torrie
On 09/06/2015 12:47 PM, Paulo da Silva wrote: > Do I need to go to more complex system like wxwidgets or pyside (QT)? > I looked at the last one but, from the 1st steps, it seems too complex. Before anyone can suggest toolkits to look at, what kind of GUI are you trying to build? What kind of "co

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 19:47:25 +0100, Paulo da Silva writes: >Hi! > >I took a look at tkinter. It is pretty simple but it's very hard to >construct some relatively more complex widgets. > >So I looked at pmw. >Because my system only have pmw for python2, I downloaded pmw2 from its >site

Re: Wheels For ...

2015-09-06 Thread Terry Reedy
On 9/6/2015 1:33 PM, Sven R. Kunze wrote: Hi folks, currently, I came across http://pythonwheels.com/ during researching how to make a proper Python distribution for PyPI. I thought it would be great idea to tell other maintainers to upload their content as wheels so I approached a couple of the

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Terry Reedy
On 9/6/2015 2:47 PM, Paulo da Silva wrote: Hi! I took a look at tkinter. It is pretty simple but it's very hard to construct some relatively more complex widgets. So I looked at pmw. Because my system only have pmw for python2, I downloaded pmw2 from its site and installed it manually using pys

Re: Wheels For ...

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 15:31:16 -0400, Terry Reedy writes: >On 9/6/2015 1:33 PM, Sven R. Kunze wrote: >> >> With this post, I would like raise awareness of the people in charge of >> the Python infrastructure. > >pypa is in charge of packaging. https://github.com/pypa >I believe the googl

Re: Wheels For ...

2015-09-06 Thread Mark Lawrence
On 06/09/2015 20:31, Terry Reedy wrote: On 9/6/2015 1:33 PM, Sven R. Kunze wrote: With this post, I would like raise awareness of the people in charge of the Python infrastructure. pypa is in charge of packaging. https://github.com/pypa I believe the google groups link is their discussion foru

Re: Wheels For ...

2015-09-06 Thread Ned Batchelder
On Sunday, September 6, 2015 at 1:33:58 PM UTC-4, Sven R. Kunze wrote: > > Why do developers need to build their distribution themselves? > > ... > > With this post, I would like raise awareness of the people in charge of > the Python infrastructure. Sven, you ask a question, and then say you

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Denis McMahon
On Sun, 06 Sep 2015 23:23:14 +1000, Chris Angelico wrote: > WSGIScriptAlias / /path/to/scripts/MinstrelHall/mh.wsgi One wonders if the OP has mod_wsgi installed. https://code.google.com/p/modwsgi/wiki/WhereToGetHelp might be useful too. -- Denis McMahon, denismfmcma...@gmail.com -- https://ma

Re: [Python-ideas] Wheels For ...

2015-09-06 Thread Matthias Bussonnier
Hi Sven, Just adding a few comments inline: On Sun, Sep 6, 2015 at 7:33 PM, Sven R. Kunze wrote: > 3) more than one way to do (upload, wheel, source/binary etc.) it (sigh) And most are uploading/registering over http (sight) > nope: what a pity for wheels; example: > https://github.com/simple

Django Calendar

2015-09-06 Thread cmeek . dev
Does anyone know of an easy to follow guide/tutorial to follow. I am trying to implement a calendar into my app that works as a job rota for employees. I have tried using django-scheduler and creating htmlcalendar but can not get either method to work -- https://mail.python.org/mailman/listinfo

Re: Python handles globals badly.

2015-09-06 Thread pepekbabi5
idiomatic Python programming.  Those that try to program Java style in  Python are going to be frustrated.  -- https://mail.python.org/mailman/listinfo/python-list

python

2015-09-06 Thread babi pepek
I wand update -- https://mail.python.org/mailman/listinfo/python-list

Re: Program in or into (was Python handles globals badly)

2015-09-06 Thread Ian Kelly
On Sat, Sep 5, 2015 at 8:54 PM, MRAB wrote: > And C# follows what Java does. Except where the language designers recognized that the Java way was poorly conceived or implemented and did it better. Generally speaking, I would much prefer to work in C# over Java, if only the language weren't so clo

Re: python

2015-09-06 Thread Steven D'Aprano
On Mon, 7 Sep 2015 09:09 am, babi pepek wrote: > I wand update Okay. Is that a question, or are you just telling us? -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Wheels For ...

2015-09-06 Thread Ryan Gonzalez
On September 6, 2015 12:33:29 PM CDT, "Sven R. Kunze" wrote: >Hi folks, > >currently, I came across http://pythonwheels.com/ during researching >how >to make a proper Python distribution for PyPI. I thought it would be >great idea to tell other maintainers to upload their content as wheels >s

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Paulo da Silva
Às 20:20 de 06-09-2015, Michael Torrie escreveu: > On 09/06/2015 12:47 PM, Paulo da Silva wrote: >> Do I need to go to more complex system like wxwidgets or pyside (QT)? >> I looked at the last one but, from the 1st steps, it seems too complex. > > Before anyone can suggest toolkits to look at, wh

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Paulo da Silva
Às 20:27 de 06-09-2015, Laura Creighton escreveu: > In a message of Sun, 06 Sep 2015 19:47:25 +0100, Paulo da Silva writes: >> Hi! >> ... > > Did you get it from PyPI? > https://pypi.python.org/pypi/Pmw/2.0.0 ? I got it from sourceforge but I checked now and it has the same md5. > > Last I hea

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 6:04 AM, Denis McMahon wrote: > On Sun, 06 Sep 2015 23:23:14 +1000, Chris Angelico wrote: > >> WSGIScriptAlias / /path/to/scripts/MinstrelHall/mh.wsgi > > One wonders if the OP has mod_wsgi installed. > > https://code.google.com/p/modwsgi/wiki/WhereToGetHelp might be useful

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Cameron Simpson
On 06Sep2015 23:23, Chris Angelico wrote: On Sun, Sep 6, 2015 at 11:07 PM, wrote: I will definitely look into python web frameworks in the future, they seem complicated to me compared to php for example. I am looking for the simplest way to test my python scripts till I understand better how

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 2:05 PM, Cameron Simpson wrote: > Another nice thing about Flask is that you can run it standalone without > Apache. I'm knocking something together right now using Flask, and I'm > intending to run it without Apache at all. There'll be an haproxy in front > of it for other

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Christian Gollwitzer
Am 07.09.15 um 03:40 schrieb Paulo da Silva: Às 20:20 de 06-09-2015, Michael Torrie escreveu: On 09/06/2015 12:47 PM, Paulo da Silva wrote: Do I need to go to more complex system like wxwidgets or pyside (QT)? I looked at the last one but, from the 1st steps, it seems too complex. Before anyo

Re: python

2015-09-06 Thread Tim Chase
On 2015-09-06 16:09, babi pepek wrote: > I wand update Use pip. It's like a magic wand. http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip -tkc -- https://mail.python.org/mailman/listinfo/python-list