Re: hourly weather forecast data

2016-04-12 Thread Stephen Hansen
On Tue, Apr 12, 2016, at 08:36 PM, kamaraju kusumanchi wrote: > Is there a way to get hourly weather forecast data (temperature, > chance of precipitation) from the command line in Debian Linux? Personally, the last time I wanted to do something like this, I used the requests library to fetch a RS

Re: The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-12 Thread Stephen Hansen
On Tue, Apr 12, 2016, at 07:57 PM, Jason Honeycutt wrote: > I am providing feedback as to why I just uninstalled Python. I could not > use pip. My command line would not recognize pip.exe as a file, even > though > I could see the file listed when I type "dir" in the Scripts folder. If you can't u

Re: The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-12 Thread Ben Finney
Jason Honeycutt writes: > I am providing feedback as to why I just uninstalled Python. Thank you for taking the time. I feel you should know that this is a community discussion forum only: posting the message here is unlikely to do anything but engage some people in discussion. If you have enou

Re: hourly weather forecast data

2016-04-12 Thread Hasan Diwan
On 2016-04-13, Miki Tebeka wrote: > >> Is there a way to get hourly weather forecast data (temperature, >> chance of precipitation) from the command line in Debian Linux? https://forecast.io may be the solution. It provides a JSON feed, which you can parse using jq, for example. The link you wan

The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-12 Thread Jason Honeycutt
Hello, I am providing feedback as to why I just uninstalled Python. I could not use pip. My command line would not recognize pip.exe as a file, even though I could see the file listed when I type "dir" in the Scripts folder. I tried to repair Python; however, then the file did not show up at all.

Re: hourly weather forecast data

2016-04-12 Thread Miki Tebeka
> Is there a way to get hourly weather forecast data (temperature, > chance of precipitation) from the command line in Debian Linux? If you Google for "weather API" you'll find several sites who give programmatic access to weather data. -- https://mail.python.org/mailman/listinfo/python-list

Re: hourly weather forecast data

2016-04-12 Thread Wildman via Python-list
On Tue, 12 Apr 2016 23:36:26 -0400, kamaraju kusumanchi wrote: > Is there a way to get hourly weather forecast data (temperature, > chance of precipitation) from the command line in Debian Linux? > > Basically, I am trying to write a python program that will send myself > an email if it is going

hourly weather forecast data

2016-04-12 Thread kamaraju kusumanchi
Is there a way to get hourly weather forecast data (temperature, chance of precipitation) from the command line in Debian Linux? Basically, I am trying to write a python program that will send myself an email if it is going to rain at say 7:00 am the next day. The idea is to trigger the emails onl

real time FM synthesizer

2016-04-12 Thread Irmen de Jong
It seems that Python is fast enough [1] to create a real time FM music synthesizer (think Yamaha DX-7). I made one that you can see here: https://github.com/irmen/synthesizer The synthesizer can create various waveforms (sine, sawtooth, pulse etc.) and lets you modify them in various ways. You

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Ben Finney
"Martin A. Brown" writes: > The only change from what Ben suggests is that, once I found os.EX_OK, > I just kept on using it, instead of difining my own EXIT_SUCCESS in > every program. Ah, thank you! I was unaware of the exit-status constants in ‘os’:: The following exit codes are defined

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Martin A. Brown
Hello all, Apologies for this post which is fundamentally, a 'me too' post, but I couldn't help but chime in here. >This is good practice, putting the mainline code into a ‘main’ >function, and keeping the ‘if __name__ == '__main__'’ block small >and obvious. > >What I prefer to do is to make

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Ben Finney
Ganesh Pal writes: > I m on python 2.7 and Linux , I have a simple code need suggestion if I > I could replace sys.exit(1) with raise SystemExit . No, but you can replace:: sys.exit(1) with:: raise SystemExit(1) As you know from reading the ‘sys.exit’ documentation https://docs.

Re: "unable to find vcvarsall.bat"

2016-04-12 Thread Terry Reedy
On 4/12/2016 3:27 PM, Ethan Furman wrote: On 04/11/2016 04:15 PM, Terry Reedy wrote: Blog post by Steve Dower of Microsoft and CPython core developer. '''How to deal with the pain of “unable to find vcvarsall.bat”''' https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-v

Re: "unable to find vcvarsall.bat"

2016-04-12 Thread Ethan Furman
On 04/11/2016 04:15 PM, Terry Reedy wrote: Blog post by Steve Dower of Microsoft and CPython core developer. '''How to deal with the pain of “unable to find vcvarsall.bat”''' https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/ Informative post, thanks!

Re: Advice on Python build tools

2016-04-12 Thread Rustom Mody
On Tuesday, April 12, 2016 at 4:41:15 PM UTC+5:30, Ben Finney wrote: > Sayth Renshaw writes: > > > Looking at the wiki list of build tools > > https://wiki.python.org/moin/ConfigurationAndBuildTools > > > > Has anyone much experience in build tools as i have no preference or > > experience to lea

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Random832
On Tue, Apr 12, 2016, at 10:12, Ganesh Pal wrote: > > > > > > No; raise SystemExit is equivalent to sys.exit(0); you would need raise > > SystemExit(1) to return 1. > > > > Thanks will replace SystemExit with SystemExit(1) . > > > > > Why do you want to do this, though? What do you think you ga

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Ganesh Pal
> > > No; raise SystemExit is equivalent to sys.exit(0); you would need raise > SystemExit(1) to return 1. > Thanks will replace SystemExit with SystemExit(1) . > Why do you want to do this, though? What do you think you gain from it? > Iam trying to have a single exit point for many function

Strange urlopen error

2016-04-12 Thread Mike Driscoll
Hi, I have recently run into an issue at work where we are having intermittent problems with an internal website not loading due to an interrupted system call. We are using urllib2 to access the website. I can't share the exact code, but here is basically how we do it: payload = {'userName': u

Re: [Twisted-Python] Twisted 16.1 Release Announcement

2016-04-12 Thread anatoly techtonik
Hi, Are there any plans to get back 32-bit wheels for Twisted? -- https://mail.python.org/mailman/listinfo/python-list

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Random832
On Tue, Apr 12, 2016, at 08:50, Ganesh Pal wrote: > I m on python 2.7 and Linux , I have a simple code need suggestion if > I > I could replace sys.exit(1) with raise SystemExit . No; raise SystemExit is equivalent to sys.exit(0); you would need raise SystemExit(1) to return 1. Why do you wa

sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Ganesh Pal
I m on python 2.7 and Linux , I have a simple code need suggestion if I I could replace sys.exit(1) with raise SystemExit . ==Actual code== def main(): try: create_logdir() create_dataset() unittest.main() except Exception as e: logging.exception(e)

Re: Advice on Python build tools

2016-04-12 Thread Ben Finney
Sayth Renshaw writes: > Looking at the wiki list of build tools > https://wiki.python.org/moin/ConfigurationAndBuildTools > > Has anyone much experience in build tools as i have no preference or > experience to lean on. I'm quite fine with GNU Make, so haven't really tried a lot of others. I am

Re: Advice on Python build tools

2016-04-12 Thread Sayth Renshaw
On Tuesday, 12 April 2016 19:48:43 UTC+10, Sayth Renshaw wrote: > Hi > > Looking at the wiki list of build tools > https://wiki.python.org/moin/ConfigurationAndBuildTools > > Has anyone much experience in build tools as i have no preference or > experience to lean on. > > Off descriptions only

Re: OT: Anyone here use the ConEmu console app?

2016-04-12 Thread Sayth Renshaw
Win 10 will have full bash provided by project between Ubuntu and MS so that's pretty cool Sayth -- https://mail.python.org/mailman/listinfo/python-list

Advice on Python build tools

2016-04-12 Thread Sayth Renshaw
Hi Looking at the wiki list of build tools https://wiki.python.org/moin/ConfigurationAndBuildTools Has anyone much experience in build tools as i have no preference or experience to lean on. Off descriptions only i would choose invoke. My requirements, simply i want to learn and build a simple