Opened 4 years ago

Closed 4 years ago

#16900 closed Bug (wontfix)

utils.dictconfig and utils.unittest don't work with python 3.0 and 3.1

Reported by: adsworth Owned by: adsworth
Component: Python 3 Version: 1.3
Severity: Normal Keywords:
Cc: adsworth Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

utils.log imports the django specific copy of dictconfig is the import from the stdlib fails.
The copy is a copy of the 2.X version of dictconfig.py and this version does not work with py3k.

We can now either:

  1. adapt the copy to work with py3k
  2. also copy the py3k version of dictconfig and if the import from the stdlib fails make a conditional import depending on if we are running a version >= 3 or not.

Change History (6)

comment:1 Changed 4 years ago by adsworth

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from utls.dictconfig doesn't work with python 3 to utils.dictconfig doesn't work with python 3

comment:2 Changed 4 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Design decision needed

This is a problem only on python 3.0 and 3.1, because since 3.2 dictconfig is part of the standard library.

To the best of my knowledge, nobody has decided which versions of python 3 would be supported by Django. It would be reasonable to start support at Python 3.2 (by the time the py3k branch is merged in trunk). In this case, this ticket wouldn't be necessary.

Marking as DDN, the decision to take is "which versions of Python are targeted by the py3k branch?"

comment:3 Changed 4 years ago by adsworth

The same applies to utils.unittest. It has a work around for python 2.7, but fails for 3.0 and 3.1 as unittest2 was added in 3.2.

comment:4 Changed 4 years ago by adsworth

  • Cc adsworth added

comment:5 Changed 4 years ago by aaugustin

  • Summary changed from utils.dictconfig doesn't work with python 3 to utils.dictconfig and utils.unittest don't work with python 3.0 and 3.1

comment:6 Changed 4 years ago by jezdez

  • Resolution set to wontfix
  • Status changed from new to closed

This is a good reason to assume that Django starts Python 3 support with 3.2.

Note: See TracTickets for help on using tickets.
Back to Top