473,473 Members | 4,297 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

named tuple mutability

I'm concerned over the future of Python. Should tuples be named?
Jun 27 '08 #1
12 1641
>*Should tuples be named?

Yes.

Jun 27 '08 #2
On May 14, 12:41*pm, Raymond Hettinger <pyt...@rcn.comwrote:
*Should tuples be named?

Yes.
Not clearly should. Sequences ought be. If you're on the right time
for both, can't the library hold the B?
Jun 27 '08 #3
On May 14, 1:04*pm, castiro...@gmail.com wrote:
On May 14, 12:41*pm, Raymond Hettinger <pyt...@rcn.comwrote:
>*Should tuples be named?
Yes.

Not clearly should. *Sequences ought be. *If you're on the right time
for both, can't the library hold the B?
On the web, you can. Both data types can go in the docs... sorry for
the lunacy, I'm hacking.
Jun 27 '08 #4
On 14 mai, 18:20, castiro...@gmail.com wrote:
I'm concerned over the future of Python. Should tuples be named?
Obviously not, unless they should.
Jun 27 '08 #5
"br*****************@gmail.com" <br*****************@gmail.comwrites:
On 14 mai, 18:20, castiro...@gmail.com wrote:
I'm concerned over the future of Python. Should tuples be named?

Obviously not, unless they should.
Clearly they should, unless not.

--
\ “It is seldom that liberty of any kind is lost all at |
`\ once.” —David Hume |
_o__) |
Ben Finney
Jun 27 '08 #6
On May 14, 5:01*pm, Ben Finney <bignose+hates-s...@benfinney.id.au>
wrote:
"bruno.desthuilli...@gmail.com" <bruno.desthuilli...@gmail.comwrites:
On 14 mai, 18:20, castiro...@gmail.com wrote:
I'm concerned over the future of Python. *Should tuples be named?
Obviously not, unless they should.

Clearly they should, unless not.

Ben Finney
I have plenty of uses for them!
Jun 27 '08 #7
On May 14, 5:28*pm, castiro...@gmail.com wrote:
On May 14, 5:01*pm, Ben Finney <bignose+hates-s...@benfinney.id.au>
wrote:
"bruno.desthuilli...@gmail.com" <bruno.desthuilli...@gmail.comwrites:
On 14 mai, 18:20, castiro...@gmail.com wrote:
I'm concerned over the future of Python. *Should tuples be named?
Obviously not, unless they should.
Clearly they should, unless not.
Ben Finney

I have plenty of uses for them!
FOR INSTANCE!

def zoop_zoop_zoop( self ): pass
Jun 27 '08 #8
On May 14, 12:41*pm, Raymond Hettinger <pyt...@rcn.comwrote:
*Should tuples be named?

Yes.
Good; they're named sequences.
Jun 27 '08 #9
On May 14, 6:21*pm, castiro...@gmail.com wrote:
On May 14, 12:41*pm, Raymond Hettinger <pyt...@rcn.comwrote:
>*Should tuples be named?
Yes.

Good; they're named sequences.
Can anyone make sling-shots of words? What's the splatter?
Jun 27 '08 #10
Ben Finney a écrit :
"br*****************@gmail.com" <br*****************@gmail.comwrites:
>On 14 mai, 18:20, castiro...@gmail.com wrote:
>>I'm concerned over the future of Python. Should tuples be named?
Obviously not, unless they should.

Clearly they should, unless not.
May we agree to disagree here - unless we don't ?
Jun 27 '08 #11
Bruno Desthuilliers <br********************@websiteburo.invalidwrite s:
May we agree to disagree here - unless we don't ?
Absolutely not, except where not applicable.

--
\ "I always wanted to be somebody. I see now that I should have |
`\ been more specific." -- Lily Tomlin |
_o__) |
Ben Finney
Jun 27 '08 #12
Ben Finney a crit :
Bruno Desthuilliers <br********************@websiteburo.invalidwrite s:
>May we agree to disagree here - unless we don't ?

Absolutely not, except where not applicable.
and vice versa.
Jun 27 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

50
by: Will McGugan | last post by:
Hi, Why is that a tuple doesnt have the methods 'count' and 'index'? It seems they could be present on a immutable object. I realise its easy enough to convert the tuple to a list and do this,...
66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
1
by: fedor | last post by:
Hi all, happy new year, I was trying to pickle a instance of a subclass of a tuple when I ran into a problem. Pickling doesn't work with HIGHEST_PROTOCOL. How should I rewrite my class so I can...
17
by: ex_ottoyuhr | last post by:
I'm trying to create a function that can take arguments, say, foo and bar, and modify the original copies of foo and bar as well as its local versions -- the equivalent of C++ funct(&foo, &bar). ...
1
by: Bryan | last post by:
in the python cookbook 2nd edition, section 6.7 (page 250-251), there a problem for implementing tuples with named items. i'm having trouble understanding how one of commands work and hope someone...
77
by: Nick Maclaren | last post by:
Why doesn't the tuple type have an index method? It seems such a bizarre restriction that there must be some reason for it. Yes, I know it's a fairly rare requirement. Regards, Nick...
0
by: Giuseppe Ottaviano | last post by:
I found the namedtuple very convenient for rapid prototyping code, for functions that have to return a number of results that could grow as the code evolves. They are more elegant than dicts, and I...
4
by: Alex Vinokur | last post by:
Here is some tuple (triple in this case) with uniform types (for instance, double): boost::tuple<double, double, doublet; Is there any way (in boost::tuple) to define such tuples something like...
1
by: cnb | last post by:
Is it not possible to have mutability without this? I know I can use sorted and list(reversed) instead of .sort and .reverse but if I want to copy a list and then change that list without changing...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.