Re: Proposed new syntax

2017-08-22 Thread Rustom Mody
Since this erm… discussion has also brought in Haskell and in this case, the name, the history etc are related I thought I'd mention the following Around 2015 there was a major upheaval in the Haskell community around the socalled FTP (foldable-traversable-prelude) controversy. In many respects

Re: Proposed new syntax

2017-08-22 Thread Marko Rauhamaa
Gregory Ewing : > Marko Rauhamaa wrote: >> You will always have to step outside your formal system and resort to >> hand-waving in a natural language. > > If the hand-waving is rigorous, this amounts to expanding your formal > system by adding new axioms and/or rules to it. Ultimately, it's not r

opencv tutorial links

2017-08-22 Thread Abdur-Rahmaan Janhangeer
dear mail list, the only famous module i need to cover in python is open cv can you drop some links or book recommendations apart from the official website? thanks, Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Outlook csv Files

2017-08-22 Thread Abdur-Rahmaan Janhangeer
as someone who works with languages, this one seems quite manageable i assume you know how to deal with csv. 1 get the cell string 2 split at _ that will make you move around mpre easily as this separates in big chunk 3 for the first chunck, you might want to split at , 4 and so on A

Re: python list name in subject

2017-08-22 Thread Abdur-Rahmaan Janhangeer
ah thanks for the tip about me filtering them thought the community liked core python style (mail lists where python dev talk, discuss ideas,i.e. the ones where guido replies etc) anyways thanks all Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 22 Aug 2017 12:38, "

Re: python list name in subject

2017-08-22 Thread Ben Finney
Abdur-Rahmaan Janhangeer writes: > i am subscribed to different python lists and they put their names in the > subject > [name] subject That's non-standard. The standard place for that information is the “List-Id” field https://tools.ietf.org/html/rfc2919>. > hence i can at a glance tell which

Re: Proposed new syntax

2017-08-22 Thread Ben Finney
Stephan Houben writes: > I have often done things like: > > generate_id = itertools.count().__next__ Could you be convinced to instead do:: import functools import itertools generate_id = functools.partial(next, itertools.count()) -- \“The right to search for truth imp

Re: python list name in subject

2017-08-22 Thread Grant Edwards
On 2017-08-23, D'Arcy Cain wrote: > On 08/22/2017 10:14 AM, Grant Edwards wrote: >> Please don't. It wastes space which is better used on the subject. If >> you want the mailing list prepended, then configure procmail (or >> whatever) to do it for you. > > Better yet, put it in its own folder. E

Re: python list name in subject

2017-08-22 Thread D'Arcy Cain
On 08/22/2017 10:14 AM, Grant Edwards wrote: Please don't. It wastes space which is better used on the subject. If you want the mailing list prepended, then configure procmail (or whatever) to do it for you. Better yet, put it in its own folder. -- D'Arcy J.M. Cain Vybe Networks Inc. http://w

Outlook csv Files

2017-08-22 Thread Gregory Grimes
All, I have exported Remedy emails from Outlook to a csv file. The issue is one cell, Body, has information in multiple lines: Subject,Body,From: (Name),From: (Address),From: (Type),To: (Name),To: (Address),To: (Type),CC: (Name),CC: (Address),CC: (Type),BCC: (Name),BCC: (Address),BCC: (Type),

Re: Proposed new syntax

2017-08-22 Thread Gregory Ewing
Marko Rauhamaa wrote: You will always have to step outside your formal system and resort to hand-waving in a natural language. If the hand-waving is rigorous, this amounts to expanding your formal system by adding new axioms and/or rules to it. If the hand-waving is not rigorous, then you have

Re: requests.{get,post} timeout

2017-08-22 Thread Skip Montanaro
> You could provide both, but since one of them can be handled > externally (with a thread, with a SIGALRM, or with some other sort of > time limiting), the other one MUST be provided by the request. Given the semantics of timeouts which percolate up from the socket level, I agree with Chris. It h

Re: requests.{get,post} timeout

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 5:06 AM, Jon Ribbens wrote: >> You can always add in the overall timeout separately. If the low-level >> timeout were implemented that way, there would be no way to externally >> add the other form of timeout. Therefore the only sane way to >> implement the request timeout

Re: requests.{get,post} timeout

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 5:10 AM, MRAB wrote: > On 2017-08-22 19:43, Chris Angelico wrote: >> >> On Wed, Aug 23, 2017 at 4:14 AM, Jon Ribbens >> wrote: >>> >>> On 2017-08-22, Chris Angelico wrote: On Wed, Aug 23, 2017 at 2:58 AM, Jon Ribbens wrote: > > Yes. There is no tim

Re: requests.{get,post} timeout

2017-08-22 Thread Jon Ribbens
On 2017-08-22, Chris Angelico wrote: > The low-level timeout will distinguish between those. If you want a > high-level timeout across the entire job, you can do that too, but > then you have to figure out exactly how long is "too long". Let's say > you set a thirty-second timeout. Great! Now some

Re: requests.{get,post} timeout

2017-08-22 Thread MRAB
On 2017-08-22 19:43, Chris Angelico wrote: On Wed, Aug 23, 2017 at 4:14 AM, Jon Ribbens wrote: On 2017-08-22, Chris Angelico wrote: On Wed, Aug 23, 2017 at 2:58 AM, Jon Ribbens wrote: Yes. There is no timeout feature that can be used to limit the total time a 'requests' request takes. Some

Re: requests.{get,post} timeout

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 4:31 AM, Grant Edwards wrote: > On 2017-08-22, Chris Angelico wrote: > >> """ >> Once your client has connected to the server and sent the HTTP >> request, the read timeout is the number of seconds the client will >> wait for the server to send a response. (Specifically, i

Re: requests.{get,post} timeout

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 4:14 AM, Jon Ribbens wrote: > On 2017-08-22, Chris Angelico wrote: >> On Wed, Aug 23, 2017 at 2:58 AM, Jon Ribbens >> wrote: >>> Yes. There is no timeout feature that can be used to limit the total >>> time a 'requests' request takes. Some people might think that this is

Re: requests.{get,post} timeout

2017-08-22 Thread Grant Edwards
On 2017-08-22, Chris Angelico wrote: > """ > Once your client has connected to the server and sent the HTTP > request, the read timeout is the number of seconds the client will > wait for the server to send a response. (Specifically, it's the number > of seconds that the client will wait between

Re: requests.{get,post} timeout

2017-08-22 Thread Jon Ribbens
On 2017-08-22, Chris Angelico wrote: > On Wed, Aug 23, 2017 at 2:58 AM, Jon Ribbens > wrote: >> Yes. There is no timeout feature that can be used to limit the total >> time a 'requests' request takes. Some people might think that this is >> a serious flaw in the requests library that would need

Multiple try expect in a for loop

2017-08-22 Thread Ganesh Pal
Hello python friends, I need a suggestion on the below piece of code . I have for loop and I need to do the below i.e create 100 of queue ,open ,and append some data to a data structure. Is multiple try except the way to go or any other idea's. I feel that there is a better way to write tho

Re: requests.{get,post} timeout

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 2:58 AM, Jon Ribbens wrote: > On 2017-08-22, Skip Montanaro wrote: >> I'm using the requests module with timeouts to fetch URLs, for example: >> >> response = requests.get("http://www.google.com/";, timeout=10) >> >> I understand the timeout value in this case applies

Re: requests.{get,post} timeout

2017-08-22 Thread Skip Montanaro
> """ > Once your client has connected to the server and sent the HTTP > request, the read timeout is the number of seconds the client will > wait for the server to send a response. (Specifically, it's the number > of seconds that the client will wait between bytes sent from the > server. In 99.9%

Re: requests.{get,post} timeout

2017-08-22 Thread Jon Ribbens
On 2017-08-22, Skip Montanaro wrote: > I'm using the requests module with timeouts to fetch URLs, for example: > > response = requests.get("http://www.google.com/";, timeout=10) > > I understand the timeout value in this case applies both to creating the > connection and fetching the remote co

Re: requests.{get,post} timeout

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 12:02 AM, Skip Montanaro wrote: > I'm using the requests module with timeouts to fetch URLs, for example: > > response = requests.get("http://www.google.com/";, timeout=10) > > I understand the timeout value in this case applies both to creating the > connection and fet

Re: python list name in subject

2017-08-22 Thread Rick Johnson
Tim Chase wrote: > Rick Johnson wrote: [...] > Checking mailing list headers...yep, the "forum-of-origin" > type hint is already present in standards-compliant fashion > defined by RFC4021[1]: > > [...] > > Just need a mail client that knows about standards and > isn't fettered. ;-) Well, t

Re: python list name in subject

2017-08-22 Thread Tim Chase
On 2017-08-22 08:21, Rick Johnson wrote: > Grant Edwards wrote: > > Abdur-Rahmaan Janhangeer wrote: > > > > > > Hi all, i am subscribed to different python lists and > > > they put their names in the subject [name] subject hence > > > i can at a glance tell which mail belongs to which list. >

Re: python list name in subject

2017-08-22 Thread Rick Johnson
Grant Edwards wrote: > Abdur-Rahmaan Janhangeer wrote: > > > > Hi all, i am subscribed to different python lists and > > they put their names in the subject [name] subject hence > > i can at a glance tell which mail belongs to which list. > > A requests to admins to implement if possible > > Pl

Re: Proposed new syntax

2017-08-22 Thread Chris Angelico
On Wed, Aug 23, 2017 at 1:12 AM, Stephan Houben wrote: > Op 2017-08-22, Ian Kelly schreef : >> Careful! Python's dunder methods are reserved for use by Python. >> They're exposed so that we can override them. Calling them directly is >> generally considered bad style. And in this case specifically

Re: Proposed new syntax

2017-08-22 Thread Stephan Houben
Op 2017-08-22, Ian Kelly schreef : > Careful! Python's dunder methods are reserved for use by Python. > They're exposed so that we can override them. Calling them directly is > generally considered bad style. And in this case specifically, it's > not equivalent. Mmm, you are correct. That's kind

Re: python list name in subject

2017-08-22 Thread Grant Edwards
On 2017-08-22, Abdur-Rahmaan Janhangeer wrote: > Hi all, > > i am subscribed to different python lists and they put their names in the > subject > [name] subject > > hence i can at a glance tell which mail belongs to which list. > > A requests to admins to implement if possible Please don't. It w

requests.{get,post} timeout

2017-08-22 Thread Skip Montanaro
I'm using the requests module with timeouts to fetch URLs, for example: response = requests.get("http://www.google.com/";, timeout=10) I understand the timeout value in this case applies both to creating the connection and fetching the remote content. Can the server dribble out the content (s

Re: Proposed new syntax

2017-08-22 Thread Ian Kelly
On Tue, Aug 22, 2017 at 3:58 AM, Stephan Houben wrote: > Op 2017-08-11, Paul Rubin schreef : >> I don't think we need this since we have itertools.takewhile: >> >> from operator import gt >> from functools import partial >> from itertools import takewhile >> >> [x + 1 for x in takewhile(pa

Free Beta Invite for new scripting/VM technology (some survey answers required)

2017-08-22 Thread Zak Fenton
Hi everyone! I'm in the process of launching a business around a new scripting-related technology. It's not specific to Python users, but may be of interest to many of you, so I'd like to make sure Python users are represented in my initial market research. It's a very short survey and shoul

python list name in subject

2017-08-22 Thread Abdur-Rahmaan Janhangeer
Hi all, i am subscribed to different python lists and they put their names in the subject [name] subject hence i can at a glance tell which mail belongs to which list. A requests to admins to implement if possible Thank you!

Re: Proposed new syntax

2017-08-22 Thread Pavol Lisy
On 8/21/17, Chris Angelico wrote: > On Mon, Aug 21, 2017 at 12:19 PM, MRAB wrote: >> On 2017-08-21 03:00, Steve D'Aprano wrote: >>> >>> On Fri, 18 Aug 2017 04:55 pm, Marko Rauhamaa wrote: >>> Is a Python implementation allowed to parallelize or otherwise reorder the evaluation loop? >>>

Re: python to call or start a fortran a.out

2017-08-22 Thread Rick Johnson
On Monday, August 21, 2017 at 11:31:48 AM UTC-5, Chet Buell wrote: > Need some help with updating python to call or start a > fortran a.out executable The problem I am having is I have > an old Fortran based model that I need to run, in the past > the fortran was triggered through the following py

Re: Dataframe iterating question : 3 ways of calling a row and column

2017-08-22 Thread Pavol Lisy
On 8/21/17, zach.sm...@orthofi.com wrote: > I wouldn't say I'm a Python noob, but I wouldn't say I'm a Python expert > either. I work in data science and use Pandas Dataframes a lot. My question > is regarding the difference in calling out a specific row, column > combination in a dataframe. > > I

Re: Proposed new syntax

2017-08-22 Thread Stephan Houben
Op 2017-08-11, Paul Rubin schreef : > I don't think we need this since we have itertools.takewhile: > > from operator import gt > from functools import partial > from itertools import takewhile > > [x + 1 for x in takewhile(partial(gt,5), (0,1,2,999,3,4))] > No need for partial and gt.

Re: Proposed new syntax

2017-08-22 Thread Marko Rauhamaa
Paul Rubin : > As you mention, Russell was the one who recognized the inconsistency > in Frege's system, though I don't know how Frege took it at a personal > level. I read (can't remember where) that Frege was just finishing his third and final volume when Russell's paradox was brought to his att

Re: What extended ASCII character set uses 0x9D?

2017-08-22 Thread Chris Angelico
On Tue, Aug 22, 2017 at 5:15 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> a naive ASCII upper-casing wouldn't produce 0x81 either - if it did, it >> would also convert 0x21 ("!") into 0x01 (SOH, a control character). So >> this one's still a mystery. > > > It's unlikely that even a naive

Re: A question on modification of a list via a function invocation

2017-08-22 Thread Gregory Ewing
Dennis Lee Bieber wrote: On Sat, 19 Aug 2017 20:59:16 +1000, Steve D'Aprano declaimed the following: I'm not sure that the VIN defines the vehicle exactly... I wouldn't want to try driving a VIN without the rest of the vehicle. The mileage is terrible... ... or phenomenal De

Re: What extended ASCII character set uses 0x9D?

2017-08-22 Thread Gregory Ewing
Chris Angelico wrote: a naive ASCII upper-casing wouldn't produce 0x81 either - if it did, it would also convert 0x21 ("!") into 0x01 (SOH, a control character). So this one's still a mystery. It's unlikely that even a naive ascii upper/lower casing algorithm would be *that* naive; it would hav