Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[Bug #120082] making vars() more useful

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


noreply at sourceforge

Oct 31, 2000, 3:20 PM

Post #1 of 4 (75 views)
Permalink
[Bug #120082] making vars() more useful

Bug #120082, was updated on 2000-Oct-31 14:20
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
Bug Group: None
Priority: 4
Summary: making vars() more useful

Details: It might make sense to change built-in vars() with no arguments. Instead of being equivalent to locals(), it should be equivalent to the following Python code:

d = globals().copy()
d.update(locals())


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=120082&group_id=5470


noreply at sourceforge

Nov 1, 2000, 8:46 AM

Post #2 of 4 (74 views)
Permalink
[Bug #120082] making vars() more useful [In reply to]

Bug #120082, was updated on 2000-Oct-31 14:20
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
Bug Group: None
Priority: 4
Summary: making vars() more useful

Details: It might make sense to change built-in vars() with no arguments. Instead of being equivalent to locals(), it should be equivalent to the following Python code:

d = globals().copy()
d.update(locals())


Follow-Ups:

Date: 2000-Nov-01 07:46
By: jhylton

Comment:
Is this a feature request (PEP 42) or a bug report?

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

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=120082&group_id=5470


noreply at sourceforge

Nov 1, 2000, 3:30 PM

Post #3 of 4 (74 views)
Permalink
[Bug #120082] making vars() more useful [In reply to]

Bug #120082, was updated on 2000-Oct-31 14:20
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: Later
Bug Group: Feature Request
Priority: 4
Summary: making vars() more useful

Details: It might make sense to change built-in vars() with no arguments. Instead of being equivalent to locals(), it should be equivalent to the following Python code:

d = globals().copy()
d.update(locals())


Follow-Ups:

Date: 2000-Nov-01 07:46
By: jhylton

Comment:
Is this a feature request (PEP 42) or a bug report?

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

Date: 2000-Nov-01 14:30
By: twouters

Comment:
At Moshe's request, who apparently conferred with Barry, marked closed. A feature request for this has been added to PEP 42.

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

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=120082&group_id=5470


noreply at sourceforge

Nov 2, 2000, 9:55 AM

Post #4 of 4 (74 views)
Permalink
[Bug #120082] making vars() more useful [In reply to]

Bug #120082, was updated on 2000-Oct-31 14:20
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: Wont Fix
Bug Group: Feature Request
Priority: 4
Summary: making vars() more useful

Details: It might make sense to change built-in vars() with no arguments. Instead of being equivalent to locals(), it should be equivalent to the following Python code:

d = globals().copy()
d.update(locals())


Follow-Ups:

Date: 2000-Nov-01 07:46
By: jhylton

Comment:
Is this a feature request (PEP 42) or a bug report?

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

Date: 2000-Nov-01 14:30
By: twouters

Comment:
At Moshe's request, who apparently conferred with Barry, marked closed. A feature request for this has been added to PEP 42.

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

Date: 2000-Nov-02 08:55
By: gvanrossum

Comment:
I disagree. vars() and locals() return a dictionary that might be modified. If you implement what he says, this won't work any more. This is an ill-conceived feature request and should not be honored.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=120082&group_id=5470

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.