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
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
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
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
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
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
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
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
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
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...
>>>
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
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
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
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
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
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
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
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
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
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
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
>
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
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
23 matches
Mail list logo