Re: Reply to whom?

2016-02-03 Thread Ben Finney
Random832 writes: > On Wed, Feb 3, 2016, at 16:50, Ben Finney wrote: > > (You will also have a “reply to all” command. That's almost never > > appropriate in a forum like this.) > > Why not? People reply all to messages I write all the time, and I find > it somewhat useful since it separates repl

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Random832
On Wed, Feb 3, 2016, at 16:50, Ben Finney wrote: > (You will also have a “reply to all” command. That's almost never > appropriate in a forum like this.) Why not? People reply all to messages I write all the time, and I find it somewhat useful since it separates replies to things I have said from

Re: Reply to whom?

2016-02-03 Thread Bernardo Sulzbach
I see. I've bad experiences with Thunderbird in the past, but I will try a desktop client again. You **can** provide input to Google, they even say the love it. But I've never seen one company ignore user feedback as much as Google does. -- https://mail.python.org/mailman/listinfo/python-list

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > Mr. Finney, that would be Google itself. Yep. You're the one who needs to interact with them because as a user of the program, it's you they're trying to please (more than me, at least). Can't work out how to interact with a corporation and get into correspondence ab

Re: Reply to whom?

2016-02-03 Thread Bernardo Sulzbach
Mr. Finney, that would be Google itself. I have never bothered setting up a client such as Mutt and can't even name more than Outlook and Mutt. I must say that the way you put it makes sense. A "reply" to the last message targeting its sender (the person that wrote it) is very reasonable indeed. -

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > For this list, and this list only (I likely could identify the issue > by comparing raw messages, but I won't bother), when I hit 'r' I get > the sender of the latest message. This list is correctly configured; a “reply to sender” goes to the sender address. Some mai

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Chris Angelico
On Thu, Feb 4, 2016 at 11:43 AM, Bernardo Sulzbach wrote: > For this list, and this list only (I likely could identify the issue > by comparing raw messages, but I won't bother), when I hit 'r' I get > the sender of the latest message. In this case, "ros...@gmail.com". So > I have to start typing

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Bernardo Sulzbach
For this list, and this list only (I likely could identify the issue by comparing raw messages, but I won't bother), when I hit 'r' I get the sender of the latest message. In this case, "ros...@gmail.com". So I have to start typing "pyt" to change it to the list, double tab to body, type, then Ctrl

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Chris Angelico
On Thu, Feb 4, 2016 at 11:03 AM, Bernardo Sulzbach wrote: > This got a little big. I accidentally did not change the address from > Sven's to the list and emailed him. Seconds later, he replied to the > list quoting my entire message so that I wouldn't have to send it to > the list too (after his

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > Then you two started going on about mail clients buttons Right. Thereby changing the subject of the evolving discussion. You're welcome :-) -- \ “… one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Bernardo Sulzbach
This got a little big. I accidentally did not change the address from Sven's to the list and emailed him. Seconds later, he replied to the list quoting my entire message so that I wouldn't have to send it to the list too (after his reply, which would make it hard to understand). I thanked him for t

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Steven D'Aprano
On Thu, 4 Feb 2016 08:50 am, Ben Finney wrote: > (You will also have a “reply to all” command. That's almost never > appropriate in a forum like this.) If your mail client lacks Reply To List, use Reply All and then manually edit the To addresses of the new message. It honestly isn't hard, I've b

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Random832
On Wed, Feb 3, 2016, at 16:43, Sven R. Kunze wrote: > Actually a nice idea if there were no overhead of creating methods for > all heap instances separately. I'll keep that in mind. :) What about changing the class of the object to one which is inherited from its original class and has the method

Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > Thanks for quoting, for some reason my client always replies to the > person and not the list (on this list only). You have a “reply to sender” command in your mail client; every client has that. It seems that is what you used (it might just be named “reply”). Such re

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:34, Bernardo Sulzbach wrote: Did Peter's suggestion work? Somewhat for a single Heap class. However, it breaks inheritance. -- https://mail.python.org/mailman/listinfo/python-list

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:15, Peter Otten wrote: The technical reason is that functions written in C don't implement the descriptor protocol. The bound method is created by invoking the __get__ method of the class attribute: Good to know. :-/ It's sad. These functions just look so method-like. Bes

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:19, Peter Otten wrote: You could try putting self.heappush = functools.partial(heapq.heappush, self) into the initializer. Actually a nice idea if there were no overhead of creating methods for all heap instances separately. I'll keep that in mind. :) -- https://mail.pytho

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
Did Peter's suggestion work? -- https://mail.python.org/mailman/listinfo/python-list

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:14, Bernardo Sulzbach wrote: Thanks for quoting, for some reason my client always replies to the person and not the list (on this list only). I did what I could. I could show you a lambda function there, but it doesn't solve anything. If there is a way to avoid a wrapper, I don'

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Peter Otten
Sven R. Kunze wrote: > On 03.02.2016 22:06, Bernardo Sulzbach wrote: >> I may say something wrong, but this is what I see going on: >> >> When you get "replace = heapreplace" you are creating a data attribute >> called replace (you will access it by self.replace or >> variable.replace) that is an

Emulating plotly's contour map color distribution

2016-02-03 Thread Larry Martell
I am using a javascript ploting package called plotly and I use that to generate a contour map. In that package you define a rangeMin, rangeMax, and binSize, and you give it a color map, e.g.: [["0", "rgb(0,0,0)"], ["0.3", "rgb(230,0,0)"], ["0.6", "rgb(255,210,0)"], ["1", "rgb(255,255,255)"]] Thi

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
Thanks for quoting, for some reason my client always replies to the person and not the list (on this list only). I did what I could. I could show you a lambda function there, but it doesn't solve anything. If there is a way to avoid a wrapper, I don't know. -- https://mail.python.org/mailman/list

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Peter Otten
Sven R. Kunze wrote: > Hi, > > as you might have noticed, I am working on > https://github.com/srkunze/xheap right now. > > In order to make it even faster and closer to heapq's baseline > performance, I wonder if there is a possibility of creating fast > wrappers for functions. > > > Please c

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:06, Bernardo Sulzbach wrote: I may say something wrong, but this is what I see going on: When you get "replace = heapreplace" you are creating a data attribute called replace (you will access it by self.replace or variable.replace) that is an alias for heapreplace. When you cal

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 21:40, Bernardo Sulzbach wrote: I am not entirely sure about what your question is. Are you talking about the "heapreplace expected 2 arguments, got 1" you get if you set replace = heapreplace? Yes, I think so. I might ask differently: why do I need to write wrapper method when

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
I am not entirely sure about what your question is. Are you talking about the "heapreplace expected 2 arguments, got 1" you get if you set replace = heapreplace? -- https://mail.python.org/mailman/listinfo/python-list

Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
Hi, as you might have noticed, I am working on https://github.com/srkunze/xheap right now. In order to make it even faster and closer to heapq's baseline performance, I wonder if there is a possibility of creating fast wrappers for functions. Please compare https://github.com/srkunze/xhe

Re: Mutant Registration: Implicit or Explicit

2016-02-03 Thread Steven D'Aprano
On Thu, 4 Feb 2016 02:08 am, Mark Lawrence wrote: > Rather more interesting than RR or the RUE? > > http://inre.dundeemt.com/2016-02-03/mutant-registration-implicit-or-explicit/ > Hmmm. Well, it's an interesting blog post. The author says: "My question deals with the implicit nature of the m

Re: Error

2016-02-03 Thread Terry Reedy
On 2/2/2016 9:49 PM, Russell McCune via Python-list wrote: Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my problem is when I run pycharm the 'Modify Setup' window for python keeps popping up everytime I try to

Mutant Registration: Implicit or Explicit

2016-02-03 Thread Mark Lawrence
Rather more interesting than RR or the RUE? http://inre.dundeemt.com/2016-02-03/mutant-registration-implicit-or-explicit/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-l

Re: Error

2016-02-03 Thread Terry Reedy
On 2/3/2016 4:40 AM, Oscar Benjamin wrote: On 3 February 2016 at 08:49, Mark Lawrence wrote: On 03/02/2016 02:49, Russell McCune via Python-list wrote: Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my probl

Fwd: problem in installing python

2016-02-03 Thread Salony Permanand
Thankyou for consideration..I have solved my problem by changing name of temp files by "temp1" -- Forwarded message -- From: eryk sun Date: Wed, Feb 3, 2016 at 3:55 PM Subject: Re: problem in installing python To: python-list@python.org Cc: Salony Permanand On Wed, Feb 3, 2016 a

Re: Problem with 'requests' module

2016-02-03 Thread Joel Goldstick
On Wed, Feb 3, 2016 at 4:59 AM, Chris Angelico wrote: > On Wed, Feb 3, 2016 at 12:16 AM, Mohamed Nedal > wrote: > > > > I'm learning Python and I'm using Python 3.5.1 Shell to write some code > using 'requests' module, but I get this error when I run the code: > ImportError: No module named 'req

Re: Error

2016-02-03 Thread Mark Lawrence
On 03/02/2016 02:49, Russell McCune via Python-list wrote: Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my problem is when I run pycharm the 'Modify Setup' window for python keeps popping up everytime I try

problem in installing python

2016-02-03 Thread Salony Permanand
sir, I downloaded different version of python but no one is installed on my pc because of same installation error each time having error code 2203. Please solve it... Thanking you -- https://mail.python.org/mailman/listinfo/python-list

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Bernardo Sulzbach
I wonder if anyone besides Mr. Ladasky read through the Great Wall of Email. -- https://mail.python.org/mailman/listinfo/python-list

Re: problem in installing python

2016-02-03 Thread eryk sun
On Wed, Feb 3, 2016 at 12:57 AM, Salony Permanand wrote: > > I downloaded different version of python but no one is installed on my pc > because of same installation error each time having error code 2203. 2203 may be a Windows Installer error [1]. If so, the error message has the following templ

Re: Problem with 'requests' module

2016-02-03 Thread Chris Angelico
On Wed, Feb 3, 2016 at 12:16 AM, Mohamed Nedal wrote: > > I'm learning Python and I'm using Python 3.5.1 Shell to write some code using > 'requests' module, but I get this error when I run the code: ImportError: No > module named 'requests' > > > Could you please tell me how to fix this issue? >

Problem with 'requests' module

2016-02-03 Thread Mohamed Nedal
Hello, I'm learning Python and I'm using Python 3.5.1 Shell to write some code using 'requests' module, but I get this error when I run the code: ImportError: No module named 'requests' Could you please tell me how to fix this issue? Sincerely, Mohamed Nedal MSc student in Solar Physics

Re: problem in installing python

2016-02-03 Thread Oscar Benjamin
On 3 February 2016 at 06:57, Salony Permanand wrote: > sir, > I downloaded different version of python but no one is installed on my pc > because of same installation error each time having error code 2203. > Please solve it... > Thanking you Hi Salony, I think this is a problem with Windows. Mi

Re: Error

2016-02-03 Thread Oscar Benjamin
On 3 February 2016 at 08:49, Mark Lawrence wrote: > On 03/02/2016 02:49, Russell McCune via Python-list wrote: >> >> Hi >> >> So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have >> also installed the IDE pycharm 5 to go along with it. Now my problem is when >> I run pycharm the

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Grobu
On 03/02/16 04:26, Rick Johnson wrote: [ ... ] And many children came from the far and wide, and they would pet his snake, and they would play with his snake Didn't know Pedobear had a biographer. -- https://mail.python.org/mailman/listinfo/python-list

Error

2016-02-03 Thread Russell McCune via Python-list
Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my problem is when I run pycharm the 'Modify Setup' window for python keeps popping up everytime I try to do anything in pycharm. I don't know if i installed it i

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Wolfgang Maier
On 03.02.2016 04:26, Rick Johnson wrote: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO A long, long time a ago, in a sleepy little Scandinavian village, somewhere outsi

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread John Ladasky
Yeah, I know, I shouldn't answer this troll-bait. Rick, you don't like Python? Fine, go program in a language that you do like. There are many to choose from! Meanwhile, Python is satisfying many programmers' needs. -- https://mail.python.org/mailman/listinfo/python-list