[Patches] [ python-Patches-1513299 ] Clean up usage of map() in the stdlib

SourceForge.net noreply at sourceforge.net
Tue Jul 25 10:24:18 CEST 2006


Patches item #1513299, was opened at 2006-06-27 22:15
Message generated for change (Comment added) made by anthonybaxter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1513299&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Collin Winter (collinwinter)
>Assigned to: Anthony Baxter (anthonybaxter)
Summary: Clean up usage of map() in the stdlib

Initial Comment:
This patch cleans up the usage of map() in the standard
library. Among other things, it removes several usages
of things like map(None, x), as well as simplifying a
number of map(lambda: ..., x) expressions.

This patch is against r47124.

----------------------------------------------------------------------

>Comment By: Anthony Baxter (anthonybaxter)
Date: 2006-07-25 18:24

Message:
Logged In: YES 
user_id=29957

map(None, ...) should definitely be expunged. The others
should be addressed on a case-by-case basis. I'll have a
read-through of the patch. 

----------------------------------------------------------------------

Comment By: Collin Winter (collinwinter)
Date: 2006-06-28 02:53

Message:
Logged In: YES 
user_id=1344176

Updated the patch to r47131 and added a bunch of new cleanups.

----------------------------------------------------------------------

Comment By: Jim Jewett (jimjjewett)
Date: 2006-06-28 01:46

Message:
Logged In: YES 
user_id=764593

There are none I would suggest reverting; it is just that 
some are clear wins and others are not so important.

----------------------------------------------------------------------

Comment By: Collin Winter (collinwinter)
Date: 2006-06-28 01:24

Message:
Logged In: YES 
user_id=1344176

Which ones would you like to see reverted (ie, which ones
are not an improvement)? I've found some more cases that can
be improved, so a new version of the patch will be on the
way shortly.

----------------------------------------------------------------------

Comment By: Jim Jewett (jimjjewett)
Date: 2006-06-28 01:15

Message:
Logged In: YES 
user_id=764593

Some cases are definately an improvement.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1513299&group_id=5470


More information about the Patches mailing list