Re: Old Man Yells At Cloud

2017-09-16 Thread Gregory Ewing
Paul Rubin wrote: Python 2 does something reasonable I don't agree. It might be reasonable in a statically-typed language, but in a dynamically-typed language where you're encouraged to use ints as stand-ins for integer-valued floats, it's an invitation for trouble. There are good reasons it wa

Re: Old Man Yells At Cloud

2017-09-16 Thread Gregory Ewing
Chris Angelico wrote: Or machine code on every CPU I've ever worked with. Dividing integers yields an integer. Every machine language I've used has different sets of instructions for int and float arithmetic, so there's no chance of confusion. -- Greg -- https://mail.python.org/mailman/listinf

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-16 Thread Terry Reedy
On 9/17/2017 2:04 AM, Chris Angelico wrote: On Sun, Sep 17, 2017 at 4:00 PM, Terry Reedy wrote: The numerical extensions have been quasi-official in the sense that at least 3 language enhancements have been make for their use. I know about the matrix multiplication operator. What are the othe

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-16 Thread Chris Angelico
On Sun, Sep 17, 2017 at 4:00 PM, Terry Reedy wrote: > The numerical extensions have been quasi-official in the sense that at least > 3 language enhancements have been make for their use. I know about the matrix multiplication operator. What are the other two (or more)? ChrisA -- https://mail.py

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-16 Thread Terry Reedy
On 9/16/2017 7:04 PM, breamore...@gmail.com wrote: I thought some might find this https://sites.google.com/view/energy-efficiency-languages/ interesting. By 'energy', they only mean electricity, not food calories. This is the email I sent to the authors. --- As a two-decade user of

Re: ttk.Notebook Tabs Question

2017-09-16 Thread Abdur-Rahmaan Janhangeer
by widget["width"] i meant replace widget with your widget Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 12 Sep 2017 06:45, "Wildman via Python-list" wrote: > I am working on a program that has a ttk.Notebook with > 12 tabs. Is there a way to determine the total w

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-16 Thread Ian Kelly
On Sat, Sep 16, 2017 at 8:01 PM, Steve D'Aprano wrote: > On Sun, 17 Sep 2017 09:04 am, breamore...@gmail.com wrote: > >> I thought some might find this >> https://sites.google.com/view/energy-efficiency-languages/ interesting. > > "Made with the new Google Sites, an effortless way to create beauti

Re: Old Man Yells At Cloud

2017-09-16 Thread Paul Rubin
Steve D'Aprano writes: >> concept integer / integer => integer_result > That would be C, and C derived languages, perhaps? Certainly not. Fortran, machine languages, etc. all do that too. Haskell does the right thing and makes int/int a compile time type error. Its integer divisi

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-16 Thread Steve D'Aprano
On Sun, 17 Sep 2017 09:04 am, breamore...@gmail.com wrote: > I thought some might find this > https://sites.google.com/view/energy-efficiency-languages/ interesting. "Made with the new Google Sites, an effortless way to create beautiful sites." More like an effortless way to create a complete do

Re: Old Man Yells At Cloud

2017-09-16 Thread Chris Angelico
On Sun, Sep 17, 2017 at 11:42 AM, Chris Angelico wrote: > On Sun, Sep 17, 2017 at 11:28 AM, MRAB wrote: >> On 2017-09-17 02:00, Steve D'Aprano wrote: >>> >>> On Sun, 17 Sep 2017 02:52 am, Dennis Lee Bieber wrote: >>> >>> Yes -- that would give me fits if I were using Python3 currently... >>>

Re: Old Man Yells At Cloud

2017-09-16 Thread Chris Angelico
On Sun, Sep 17, 2017 at 11:28 AM, MRAB wrote: > On 2017-09-17 02:00, Steve D'Aprano wrote: >> >> On Sun, 17 Sep 2017 02:52 am, Dennis Lee Bieber wrote: >> >> >>> Yes -- that would give me fits if I were using Python3 currently... >>> Since so many of the languages I've learned over the past years

Re: Old Man Yells At Cloud

2017-09-16 Thread MRAB
On 2017-09-17 02:00, Steve D'Aprano wrote: On Sun, 17 Sep 2017 02:52 am, Dennis Lee Bieber wrote: Yes -- that would give me fits if I were using Python3 currently... Since so many of the languages I've learned over the past years use the concept integer / integer => integer_resul

Re: Old Man Yells At Cloud

2017-09-16 Thread Steve D'Aprano
On Sun, 17 Sep 2017 04:00 am, Stefan Ram wrote: > Steve D'Aprano writes: >>"Hi, I've been programming in Python for what seems like days now, and here's >>all the things that you guys are doing wrong. > > I never ever have written a line of Python 2. I started with > Python 3.6.0. Yet a very

Re: Old Man Yells At Cloud

2017-09-16 Thread John Pote
On 16/09/2017 19:00, Stefan Ram wrote: Steve D'Aprano writes: "Hi, I've been programming in Python for what seems like days now, and here's all the things that you guys are doing wrong. I never ever have written a line of Python 2. I started with Python 3.6.0. Yet a very frequent mista

Re: Old Man Yells At Cloud

2017-09-16 Thread Steve D'Aprano
On Sun, 17 Sep 2017 02:52 am, Dennis Lee Bieber wrote: > Yes -- that would give me fits if I were using Python3 currently... > Since so many of the languages I've learned over the past years use the > concept integer / integer => integer_result That would be C, and C derived langua

Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-16 Thread breamoreboy
I thought some might find this https://sites.google.com/view/energy-efficiency-languages/ interesting. -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.14

2017-09-16 Thread Benjamin Peterson
I'm happy to announce to the immediate availability of Python 2.7.14, yet another bug fix release in the Python 2.7 series. 2.7.14 includes 9 months of conservative bug fixes from the 3.x branch. Downloads of source code and binaries are at: https://www.python.org/downloads/release/python-2714

CPython has hit 100,000 commits

2017-09-16 Thread breamoreboy
Looks as if people have been busy over the years. Read all about it https://github.com/python/cpython -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Old Man Yells At Cloud

2017-09-16 Thread Tim Daneliuk
On 09/16/2017 12:38 AM, Steve D'Aprano wrote: > /rant on > > So apparently everyone who disagrees that Python should be more like > Javascript > is an old greybeard fuddy-duddy yelling "Get off my lawn!" to the cool kids -- > and is also too stupid to know how dumb they are. > > "Hi, I've been p

Re: Old Man Yells At Cloud

2017-09-16 Thread Tim Daneliuk
On 09/16/2017 12:38 AM, Steve D'Aprano wrote: > /rant on > > So apparently everyone who disagrees that Python should be more like > Javascript > is an old greybeard fuddy-duddy yelling "Get off my lawn!" to the cool kids -- > and is also too stupid to know how dumb they are. > > "Hi, I've been p

Re: Which database system?

2017-09-16 Thread Peter Otten
Stefan Ram wrote: > Michael Torrie writes: >>On 09/15/2017 12:04 PM, Stefan Ram wrote: >>>writes some complex queries to the table, what can be expected >>^^ >>How do you plan to code these queries? > > I did a quick prototype. I am aware that the code >

Re: String to Dictionary conversion in python

2017-09-16 Thread Steve D'Aprano
On Sat, 16 Sep 2017 11:29 am, Rustom Mody wrote: >> > py> import ast >> > py> string = " 'msisdn': '7382432382', 'action': 'select', >> > 'sessionId': '123', 'recipient': '7382432382', 'language': 'english'" >> > py> ast.literal_eval('{%s}' % string) >> > {'sessionId': '123', 'recipient': '7382432

Re: String to Dictionary conversion in python

2017-09-16 Thread Piet van Oostrum
Rustom Mody writes: > On Saturday, September 16, 2017 at 2:04:39 AM UTC+5:30, jlad...@itu.edu wrote: > Yeah… I used to think thus > But literal_eval has excessive crud in its error messages: > from ast import literal_eval > literal_eval("{'x':1}") > {'x': 1} > > Ok… > literal_eval