Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backward incompatibility in logging.py #44070

Closed
klaas mannequin opened this issue Oct 2, 2006 · 9 comments
Closed

Backward incompatibility in logging.py #44070

klaas mannequin opened this issue Oct 2, 2006 · 9 comments
Labels
stdlib Python modules in the Lib dir

Comments

@klaas
Copy link
Mannequin

klaas mannequin commented Oct 2, 2006

BPO 1569622
Nosy @birkenfeld, @vsajip

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-01-08.18:30:12.000>
created_at = <Date 2006-10-02.23:10:28.000>
labels = ['library']
title = 'Backward incompatibility in logging.py '
updated_at = <Date 2007-01-08.18:30:12.000>
user = 'https://bugs.python.org/klaas'

bugs.python.org fields:

activity = <Date 2007-01-08.18:30:12.000>
actor = 'klaas'
assignee = 'nnorwitz'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2006-10-02.23:10:28.000>
creator = 'klaas'
dependencies = []
files = []
hgrepos = []
issue_num = 1569622
keywords = []
message_count = 9.0
messages = ['30128', '30129', '30130', '30131', '30132', '30133', '30134', '30135', '30136']
nosy_count = 4.0
nosy_names = ['nnorwitz', 'georg.brandl', 'vinay.sajip', 'klaas']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1569622'
versions = ['Python 2.5']

@klaas
Copy link
Mannequin Author

klaas mannequin commented Oct 2, 2006

LogRecord.__init__ changed in a backward incompatible
way in python 2.5 (added one parameter).

There is no mention of this breakage in the release
notes, nor has the documentation of the module been
updated (http://docs.python.org/lib/node424.html)

@klaas klaas mannequin closed this as completed Oct 2, 2006
@klaas klaas mannequin assigned nnorwitz Oct 2, 2006
@klaas klaas mannequin added the stdlib Python modules in the Lib dir label Oct 2, 2006
@klaas klaas mannequin closed this as completed Oct 2, 2006
@klaas klaas mannequin assigned nnorwitz Oct 2, 2006
@klaas klaas mannequin added the stdlib Python modules in the Lib dir label Oct 2, 2006
@birkenfeld
Copy link
Member

Logged In: YES
user_id=849994

I don't see why adding one parameter is backwards
incompatible, but it's true that the docs must be updated.
Assigning to Vinay.

@klaas
Copy link
Mannequin Author

klaas mannequin commented Oct 3, 2006

Logged In: YES
user_id=1611720

It is incompatible as code written for 2.4 will break in
2.5, and vice-versa (this is a required parameter, not an
optional parameter, and the change could have been made in a
backward-compatible way).

You're right that the documentation fix is the important thing.

@vsajip
Copy link
Member

vsajip commented Oct 3, 2006

Logged In: YES
user_id=308438

Documentation now updated in CVS. Also changed the added
"func" parameter to have a default value of None.

Sorry for the inconvenience caused.

@klaas
Copy link
Mannequin Author

klaas mannequin commented Jan 8, 2007

This fix should be back-ported to 2.5 maint:

r52100,52101,52102

perhaps also r52555,52556?

@vsajip
Copy link
Member

vsajip commented Jan 8, 2007

Done. I'm not sure what you're getting at with those revision numbers - trunk and branches/release25-maint are now up to date; if you think other branches need to be updated, please name those branches explicitly.

@klaas
Copy link
Mannequin Author

klaas mannequin commented Jan 8, 2007

Sorry - I was just trying to to see if the fix was backported, and I only saw the trunk checkins on python-checkins

@vsajip
Copy link
Member

vsajip commented Jan 8, 2007

No need to be sorry, you were absolutely right to re-open the issue for backports - I had not originally checked in the backport. What I meant in my last mail was that I have now checked in the backport, but wasn't sure about the specific revisions you were referring to.

Thanks for the reminder about release25-maint.

@klaas
Copy link
Mannequin Author

klaas mannequin commented Jan 8, 2007

Ah... the revisions were simply the fix revisions (the last two were not directly related to this issue, but one was a documentation bug, and the other was a minor performance edit, so I thought those might also be backport candidates).

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants