Re: concurrent futures, async futures and await

2017-02-22 Thread Ian Kelly
On Wed, Feb 22, 2017 at 12:50 PM, Nagy László Zsolt wrote: > > I'm in a situation where I would like to refactor some code to use > native coroutine functions (aync def) instead of "normal" coroutines > that use yield. Most of the code is asnyc, but some of the operations > are performed in differ

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-22 Thread sntc99
On Thursday, January 26, 2017 at 8:12:24 AM UTC+5:30, Tony Chen wrote: > On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen > > wrote: > > > This error can be due to the fact that ImageMagick is not installed on > > > your co

First Live Online Python Syntax Checker

2017-02-22 Thread 17chiue
Hi everyone! :) I just wanted to share with everyone a lightweight online tool I created called PythonBuddy (https://github.com/ethanchewy/PythonBuddy) which actively lints Python online. I made this so that MOOCs like edX or codecademy could easily embed and use this on their courses. Also, P

RE: Python application launcher (for Python code)

2017-02-22 Thread Deborah Swanson
Dennis Lee Bieber wrote, on February 22, 2017 6:48 PM > > On Wed, 22 Feb 2017 10:50:18 -0800, "Deborah Swanson" > declaimed the following: > > > >first, and be able to use a running C version to check my Python > >version against. I couldn't afford Visual Studio, especially since > >there wa

Re: CSV

2017-02-22 Thread Nathan Ernst
One other thing besides the issues noted with filename - newline is set to a space. It should be set to an empty string. See: https://docs.python.org/3/library/csv.html#id3 Regards, Nate On Wed, Feb 22, 2017 at 3:52 PM, wrote: > On Wednesday, February 22, 2017 at 5:55:47 PM UTC, Braxton Alfred

Re: CSV

2017-02-22 Thread breamoreboy
On Wednesday, February 22, 2017 at 5:55:47 PM UTC, Braxton Alfred wrote: > Why does this not run? It is right out of the CSV file in the Standard Lib. > > Python ver 3.4.4, 64 bit. > > import csv > """ READ EXCEL FILE """ > filename = 'c:\users\user\my documents\Braxton\Excel\personal\bp.csv' >

Re: How to store properties

2017-02-22 Thread MRAB
On 2017-02-22 21:08, Gilmeh Serda wrote: On Wed, 08 Feb 2017 09:31:09 -0800, Rob Gaddi wrote: JSON's cute, but the format doesn't support inline comments. { "your_key": "whatever", "COMMENT": "blah", "meh": [ "yup", "yep", "yip" ], "COMMENT": "mooh"

Re: CSV

2017-02-22 Thread Jussi Piitulainen
Braxton Alfred writes: > Why does this not run? It is right out of the CSV file in the Standard Lib. > > > > > Python ver 3.4.4, 64 bit. > > > > > > > > import csv > """ READ EXCEL FILE """ > filename = 'c:\users\user\my documents\Braxton\Excel\personal\bp.csv' '\b' is backspace. A coupl

concurrent futures, async futures and await

2017-02-22 Thread Nagy László Zsolt
I'm in a situation where I would like to refactor some code to use native coroutine functions (aync def) instead of "normal" coroutines that use yield. Most of the code is asnyc, but some of the operations are performed in different threads (using concurrent.futures.Executor). We have concurrent.

RE: Python application launcher (for Python code)

2017-02-22 Thread Deborah Swanson
Grant Edwards wrote, on February 22, 2017 7:52 AM > > On 2017-02-21, Chris Warrick wrote: > > > Git Bash, or basically msys, is pretty reasonable. But if you are on > > Windows 10, you might like the built-in Windows Subsystem for Linux > > (aka Bash on Ubuntu on Windows) more - it's real Linu

Re: If statement with or operator

2017-02-22 Thread Rhodri James
On 22/02/17 17:38, Peter Pearson wrote: On Wed, 22 Feb 2017 22:33:31 +0530, Ganesh Pal wrote: [snip] I need suggestion on the if statement in the below code , all that I was trying to do was to add a check i.e if any one of the functions return True then break the loop. end_time = time.tim

Re: python decorator

2017-02-22 Thread Irmen de Jong
On 22-2-2017 8:39, Argentinian Black ops lll wrote: > Thanks for the quick response...! you saved me a lot of time, thank you! > I don't know if you want/have to use your own custom caching decorator, but are you aware of the lru_cache decorator that's part of the standard library? https://docs

Re: CSV

2017-02-22 Thread Irmen de Jong
On 22-2-2017 18:26, Braxton Alfred wrote: > Why does this not run? It is right out of the CSV file in the Standard Lib. What does "not run" mean. We can't help if you are not telling us the exact error message you're getting (if any) > filename = 'c:\users\user\my documents\Braxton\Excel\perso

Re: CSV

2017-02-22 Thread Chris Angelico
On Thu, Feb 23, 2017 at 4:26 AM, Braxton Alfred wrote: > filename = 'c:\users\user\my documents\Braxton\Excel\personal\bp.csv' Use forward slashes instead. Also, if something isn't working, post the actual output - probably an exception. Don't assume that we can read your mind, even when we can.

CSV

2017-02-22 Thread Braxton Alfred
Why does this not run? It is right out of the CSV file in the Standard Lib. Python ver 3.4.4, 64 bit. import csv """ READ EXCEL FILE """ filename = 'c:\users\user\my documents\Braxton\Excel\personal\bp.csv' with open (filename, newline = ' ') as bp: dialect = csv.excel reade

Re: python decorator

2017-02-22 Thread Ian Kelly
On Wed, Feb 22, 2017 at 8:16 AM, Pavol Lisy wrote: > Maybe this technique could be reusable (and maybe part of functools?) > > With this decorator: > > def wrap_args(decorator): > def decor_out(*args, **kwargs): > def decor_in(func): > return decorator(func,

Re: If statement with or operator

2017-02-22 Thread Peter Pearson
On Wed, 22 Feb 2017 22:33:31 +0530, Ganesh Pal wrote: [snip] > I need suggestion on the if statement in the below code , all that I was > trying to do was to add a check i.e if any one of the functions return > True then break the loop. > > end_time = time.time() + 300 > umount_completed =

Re: If statement with or operator

2017-02-22 Thread alister
On Wed, 22 Feb 2017 22:33:31 +0530, Ganesh Pal wrote: > Hello Friends, > > I need suggestion on the if statement in the below code , all that I > was trying to do was to add a check i.e if any one of the functions > return True then break the loop. > > > end_time = time.time() + 300 >

If statement with or operator

2017-02-22 Thread Ganesh Pal
Hello Friends, I need suggestion on the if statement in the below code , all that I was trying to do was to add a check i.e if any one of the functions return True then break the loop. end_time = time.time() + 300 umount_completed = False while time.time() < end_time: if att

Re: Python application launcher (for Python code)

2017-02-22 Thread Grant Edwards
On 2017-02-21, Chris Warrick wrote: > Git Bash, or basically msys, is pretty reasonable. But if you are on > Windows 10, you might like the built-in Windows Subsystem for Linux > (aka Bash on Ubuntu on Windows) more — it’s real Linux that runs > alongside Windows, but less crazy than Cygwin. Cyg

Re: python decorator

2017-02-22 Thread Pavol Lisy
On 2/22/17, Steve D'Aprano wrote: > On Wed, 22 Feb 2017 08:47 pm, Cecil Westerhof wrote: > >> On Wednesday 22 Feb 2017 08:49 CET, Argentinian Black ops lll wrote: >> >>> *** SOLVED *** >> >> It would be nice if you shared the solution. > > I believe Cameron's post contains the bones of a solution.

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Thanks! This helped me! -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Peter Otten
Kasper wrote: > How can i make the score stop blinking The following part > #draws the score on the screen > mypen.undo() > mypen.penup() > mypen.hideturtle() > mypen.setposition(-290, 310) > scorestring1 = (name1 + ": %s" + " points ") %score1 > scorestring2 = (nam

Re: problems installing pylab

2017-02-22 Thread breamoreboy
On Tuesday, February 21, 2017 at 3:55:40 PM UTC, Robert William Lunnon wrote: > Dear Python > > I am trying to install pylab alongside python 3.6. However when I type > > python -m pip install pylab > > I get the message > > No module named site > > In the documentation [documentation for inst

Re: python decorator

2017-02-22 Thread Steve D'Aprano
On Wed, 22 Feb 2017 08:47 pm, Cecil Westerhof wrote: > On Wednesday 22 Feb 2017 08:49 CET, Argentinian Black ops lll wrote: > >> *** SOLVED *** > > It would be nice if you shared the solution. I believe Cameron's post contains the bones of a solution. Here's my untested solution. def func_ca

I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Hi! How can i make the score stop blinking and how can i make a high score table, in this game made with python? (this game is made on a Macbook) (there are some files in the game that i don't haven't copied into this file! like pyth.GIF)

Re: python decorator

2017-02-22 Thread Cecil Westerhof
On Wednesday 22 Feb 2017 08:49 CET, Argentinian Black ops lll wrote: > *** SOLVED *** It would be nice if you shared the solution. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listinfo/python-list