Re: Using namedtuples field names for column indices in a list of lists

2017-01-11 Thread BartC
On 11/01/2017 02:18, Steven D'Aprano wrote: On Tuesday 10 January 2017 18:14, Deborah Swanson wrote: I'm guessing that you (and those who see things like you do) might not be used to working with quick learners who make mistakes at first but catch up with them real fast, or you're very judgemen

Is there an peekable similar to peekable but in additional allowing one to put some data to it?

2017-01-11 Thread Peng Yu
Hi, peekable from more-itertools only allow peeking an iterator. But sometimes, one may want to take a look at an element, manipulate it, then put it back to the iterator. Is there a class in python that can help do this? https://pypi.python.org/pypi/more-itertools/ -- Regards, Peng -- https://

reactiveX vs Async

2017-01-11 Thread Rustom Mody
There is the recent flurry around the new async additions to python Also, addressing the same problem area, there is the slightly older reactiveX system that seems to have bindings for at least 15 mainstream languages… including python: http://reactivex.io/ Has someone been able to put these tw

Re: reactiveX vs Async

2017-01-11 Thread Rustom Mody
On Wednesday, January 11, 2017 at 10:21:02 PM UTC+5:30, Rustom Mody wrote: > There is the recent flurry around the new async additions to python I meant to add: “… which I dont pretend to understand…” -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there an peekable similar to peekable but in additional allowing one to put some data to it?

2017-01-11 Thread Ian Kelly
On Wed, Jan 11, 2017 at 8:51 AM, Peng Yu wrote: > Hi, peekable from more-itertools only allow peeking an iterator. But > sometimes, one may want to take a look at an element, manipulate it, > then put it back to the iterator. Is there a class in python that can > help do this? Not that I'm aware

Re: Is there an peekable similar to peekable but in additional allowing one to put some data to it?

2017-01-11 Thread Ian Kelly
On Wed, Jan 11, 2017 at 10:07 AM, Ian Kelly wrote: > On Wed, Jan 11, 2017 at 8:51 AM, Peng Yu wrote: >> Hi, peekable from more-itertools only allow peeking an iterator. But >> sometimes, one may want to take a look at an element, manipulate it, >> then put it back to the iterator. Is there a clas

Cannot import GDAL

2017-01-11 Thread Falter, Donald [USA]
I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. The version I get when I activate IDLE is: MSC v.1900 32 bit (Intel)] on win32. In downloading the GDAL bindings the latest version I can find is release-1800-gdal-2-1-2-mapserver-7-0-2 so I installed the following:

Re: Work between multiple processes

2017-01-11 Thread Irmen de Jong
On 10-1-2017 23:57, Patrick Zhou wrote: > Hi Irmen, > > I have successfully got it to work with both side as python but so far having > trouble with pyrolite.jar which is downloaded from > https://mvnrepository.com/artifact/net.razorvine/pyrolite/4.4 > > [...] > > which "getDst" works on Ja

Re: Cannot import GDAL

2017-01-11 Thread Irmen de Jong
On 11-1-2017 18:31, Falter, Donald [USA] wrote: > I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. > I installed the following: gdal-201-1800-core.msi and > GDAL-2.1.2.win32-py3.4.msi. Those don't match. You'll have to use a MSI built for py3.6, one thinks. Either ins

Re: Cannot import GDAL

2017-01-11 Thread Fabien
On 01/11/2017 06:31 PM, Falter, Donald [USA] wrote: I am new to Python and I am trying to utilize GDAL GDAL is notoriously difficult to install :-( I would strongly recommend to use conda (http://conda.pydata.org/miniconda.html) for managing your packages and environments, and then use the c

Re: Cannot import GDAL

2017-01-11 Thread Fabien
On 01/11/2017 10:59 PM, Fabien wrote: I would strongly recommend to use conda (http://conda.pydata.org/miniconda.html) for managing your packages and environments, and then use the conda-forge channel (https://conda-forge.github.io/) to install gdal: conda install -c conda-forge gdal I forgot

RE: Using namedtuples field names for column indices in a list of lists

2017-01-11 Thread Deborah Swanson
Steven D'Aprano wrote, on January 10, 2017 6:19 PM > > On Tuesday 10 January 2017 18:14, Deborah Swanson wrote: > > > I'm guessing that you (and those who see things like you do) might > > not be used to working with quick learners who make mistakes at > > first but catch up with them real fast

RE: reactiveX vs Async

2017-01-11 Thread Joseph L. Casale
> Try these links on for size: > > https://msdn.microsoft.com/en-us/library/hh242982(v=vs.103).aspx which links > to > https://msdn.microsoft.com/en-us/library/hh242983(v=vs.103).aspx near the end. These two SO threads have a variation of pretty good explanations: http://stackoverflow.com/questi

RE: reactiveX vs Async

2017-01-11 Thread Joseph L. Casale
>> There is the recent flurry around the new async additions to python > > I meant to add: “… which I dont pretend to understand…” Try these links on for size: https://msdn.microsoft.com/en-us/library/hh242982(v=vs.103).aspx which links to https://msdn.microsoft.com/en-us/library/hh242983(v=vs.10

Re: reactiveX vs Async

2017-01-11 Thread Rustom Mody
On Thursday, January 12, 2017 at 6:50:09 AM UTC+5:30, Joseph L. Casale wrote: > >> There is the recent flurry around the new async additions to python > > > > I meant to add: “… which I dont pretend to understand…” > > Try these links on for size: > > https://msdn.microsoft.com/en-us/library/hh24

Re: reactiveX vs Async

2017-01-11 Thread Rustom Mody
On Thursday, January 12, 2017 at 6:50:09 AM UTC+5:30, Joseph L. Casale wrote: > However, I have only used the .NET implementations. One more question: Do you know if (and how much) of these things would work in Linux/C# (ie mono)? -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot import GDAL

2017-01-11 Thread Terry Reedy
On 1/11/2017 5:06 PM, Fabien wrote: On 01/11/2017 10:59 PM, Fabien wrote: I would strongly recommend to use conda (http://conda.pydata.org/miniconda.html) for managing your packages and environments, and then use the conda-forge channel (https://conda-forge.github.io/) to install gdal: conda in

Re: Cannot import GDAL

2017-01-11 Thread Terry Reedy
On 1/11/2017 12:31 PM, Falter, Donald [USA] wrote: I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. The version I get when I activate IDLE is: MSC v.1900 32 bit (Intel)] on win32. In downloading the GDAL bindings the latest version I can find is release-1800-gdal-

RE: reactiveX vs Async

2017-01-11 Thread Joseph L. Casale
> Thanks Joseph > Trouble is there is stew of technologies/languages… > (meta)-stewed with more abstract concepts, eg push vs pull, > Enumerable-Observable > duality, continuous vs discrete time > The last causing its own share of confusion with “functional reactive > programming” (FRP) meaning s

RE: reactiveX vs Async

2017-01-11 Thread Joseph L. Casale
> One more question: Do you know if (and how much) of these things would work > in Linux/C# (ie mono)? Mono, I forgot what that is when .net core debuted:) Looks like the .net Rx guys have a port, https://github.com/Reactive-Extensions/Rx.NET/issues/148 A package for .net core is up on nuget.

Re: reactiveX vs Async

2017-01-11 Thread Rustom Mody
On Thursday, January 12, 2017 at 7:47:21 AM UTC+5:30, Joseph L. Casale wrote: > > One more question: Do you know if (and how much) of these things would work > > in Linux/C# (ie mono)? > > Mono, I forgot what that is when .net core debuted:) A brief elaboration on that please?? ∵ … > > Looks lik

RE: reactiveX vs Async

2017-01-11 Thread Joseph L. Casale
> So you are saying that nuget-ing .Net core would be a workable pre-requisite > for > Rx on mono? Microsoft open sourced .net a while ago. With that came the movement to bring .net to other platforms. https://en.wikipedia.org/wiki/.NET_Framework#.NET_Core As its currently being heavily develop

Re: just started

2017-01-11 Thread metal . suomi
along the above discussion, resuming my python after the Xmas break (hope you had a nice one!) I want to install a number of scientific libraries, but I'm confused which packages it contains what. 1) I see on scipy.org that scipy contains scipy library (fine, it makes sense), along with other