This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年03月18日 23:42 by eric.smith, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| print_function_detection.diff | wolever, 2008年04月24日 03:22 | |||
| Messages (6) | |||
|---|---|---|---|
| msg64017 - (view) | Author: Eric V. Smith (eric.smith) * (Python committer) | Date: 2008年03月18日 23:42 | |
Issue 1633807 is a backport of the print function to 2.6, using a __future__ import. Once it is committed, we need to ensure that 2to3 does the right thing (namely, nothing) with print functions in modules that have the __future__ import. |
|||
| msg64085 - (view) | Author: David Wolever (wolever) * (Python committer) | Date: 2008年03月19日 19:04 | |
I've updated the fixer (checkin to come shortly), but 2to3 gets upset when
you it comes across print statements with kwargs (eg: print("spam", end="
")), so the tests will be commented out 'till this is fixed.
|
|||
| msg64087 - (view) | Author: David Wolever (wolever) * (Python committer) | Date: 2008年03月19日 19:18 | |
As of r61635, the fix_print fixer has been fixed and tests have been added (which will ``assert False`` when 2to3 is fixed so it can handle ``print(**kwargs)``). |
|||
| msg65709 - (view) | Author: David Wolever (wolever) * (Python committer) | Date: 2008年04月24日 03:22 | |
Here is a patch that will detect a `from __future__ import print_function` and adjust the grammar appropriately. Any objections? |
|||
| msg65830 - (view) | Author: Collin Winter (collinwinter) * (Python committer) | Date: 2008年04月26日 00:21 | |
Reviewing... |
|||
| msg90453 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2009年07月12日 17:07 | |
Fixed in r73981. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:32 | admin | set | github: 46664 |
| 2009年07月12日 17:07:09 | benjamin.peterson | set | status: open -> closed resolution: fixed messages: + msg90453 |
| 2009年02月11日 04:42:01 | ajaksu2 | set | nosy: + benjamin.peterson |
| 2008年04月26日 00:21:33 | collinwinter | set | messages: + msg65830 |
| 2008年04月24日 03:22:46 | wolever | set | keywords:
+ patch files: + print_function_detection.diff messages: + msg65709 |
| 2008年03月19日 19:18:15 | wolever | set | assignee: wolever -> collinwinter messages: + msg64087 |
| 2008年03月19日 19:04:09 | wolever | set | messages: + msg64085 |
| 2008年03月19日 16:30:39 | wolever | set | assignee: collinwinter -> wolever nosy: + wolever |
| 2008年03月18日 23:42:17 | eric.smith | create | |