Commit Graph

5863 Commits

Author SHA1 Message Date
Nick Coghlan 4caa876719 PEP 493: Incorporate feedback from Tomas Hoger
Changes based primarily on design feedback received in
https://bugzilla.redhat.com/show_bug.cgi?id=1173041#c21

Some minor issues were pointed out in private email.
2015-05-19 23:02:00 +10:00
Benjamin Peterson aa98275676 update since 2.7.0 was long ago 2015-05-18 21:43:44 -04:00
Yury Selivanov 2caab858f1 pep-492: Few minor fixes. 2015-05-18 13:32:41 -04:00
Berker Peksag fef77a92e3 PEP 489 changes
Summary by Petr Viktorin:

- Reuse the PyInit_* hook, instead of adding PyModuleExport_*;
  add the PyModuleDef_Init helper
- Per-module state is allocated at the beginning of the execute step
- Docstrings & methods from the def are added unconditionally
- Rename PEP to better reflect what it ended up doing
- Mention built-in modules, which get the same changes
- Several rewordings and clarifications
2015-05-18 17:27:02 +03:00
Guido van Rossum cb3a92f81f Properly terminate Emacs variable list at end of PEP 485. 2015-05-17 09:21:53 -07:00
Chris Angelico 95a79e766d Add Resolution header to now-accepted PEP 485 2015-05-18 01:14:55 +10:00
Yury Selivanov 27e9469760 pep-492: Fix 'async with' equivalent code 2015-05-17 11:07:25 -04:00
Benjamin Peterson 9fd81459d0 http -> https 2015-05-17 00:14:10 -04:00
Chris Angelico 2f9f0e42b5 Apply Chris's changes, including an acceptance mark 2015-05-17 12:12:19 +10:00
Raymond Hettinger a87f56f4fb Add a link to an earlier partial review. 2015-05-15 10:25:04 -07:00
Yury Selivanov 017d224b32 pep-0455: Update status. 2015-05-14 22:36:30 -04:00
Yury Selivanov 7f5989e99b pep-492: Mention AsyncIterator and AsyncIterable ABCs. 2015-05-14 22:05:24 -04:00
Yury Selivanov 7396e82840 pep-0492: Add an empty line. 2015-05-13 18:46:07 -04:00
Yury Selivanov a102d98921 pep-0492: Mention new ABC classes. 2015-05-13 18:44:41 -04:00
Yury Selivanov 1afe7c75fc pep-0478: Mention PEP 484 2015-05-13 16:07:26 -04:00
Yury Selivanov a58b01c2e9 pep-0478: Fix markup 2015-05-13 11:38:31 -04:00
Yury Selivanov 20c42ed498 pep-0478: Add PEP 468 2015-05-13 11:04:11 -04:00
Yury Selivanov d49bf3eee4 pep-0478: Add PEP 489 2015-05-13 10:35:47 -04:00
Nick Coghlan 52973f08f9 PEP 493: formatting & wording tweaks 2015-05-13 00:08:31 +10:00
Nick Coghlan 14466c2300 Update PEP 493 based on python-dev discussion 2015-05-12 22:14:44 +10:00
Yury Selivanov dda4b60269 pep-0492: Fix differences from what was committed. 2015-05-11 23:47:11 -04:00
Yury Selivanov cec5cff1c9 pep-0492: Add "Implementation" section. 2015-05-11 23:36:23 -04:00
Yury Selivanov 63afe34273 Update pep-0492 (status: final) & pep-0478. 2015-05-11 23:34:24 -04:00
Yury Selivanov b10d7c650e pep-0475: Mark as Final. 2015-05-11 19:35:14 -04:00
Nick Coghlan f2399fc422 Redistributor recommendations for PEP 476 2015-05-10 15:25:07 +10:00
Yury Selivanov 0a061a8694 Update pep-478. 2015-05-09 12:07:27 -04:00
Yury Selivanov ff8f094454 Update pep-478 and pep-479. 2015-05-09 11:48:43 -04:00
Benjamin Peterson 62971a8dd0 2.7.10 dates 2015-05-08 12:39:35 -04:00
Berker Peksag 9891f4843b PEP 489: Updates from Petr Viktorin.
Summary:

- PyModuleExport -> PyModuleDef (which brings us down to two slot types,
  create & exec)
- Removed "singleton modules"
- Stated that PyModule_Create, PyState_FindModule, PyState_AddModule,
  PyState_RemoveModule will not work on slots-based modules.
- Added a section on C-level callbacks
- Clarified that if PyModuleExport_* returns NULL, it's as if it wasn't
  defined (i.e. falls back to PyInit)
- Added API functions: PyModule_FromDefAndSpec, PyModule_ExecDef
- Added PyModule_AddMethods and PyModule_AddDocstring helpers
- Added PyMODEXPORT_FUNC macro for x-platform declarations of the export
  function
- Added summary of API changes
- Added example code for a backwards-compatible module
- Changed modules ported in the initial implementation to "array" and "xx*"
- Changed ImportErrors to SystemErrors in cases where the module is
  badly written (and to mirror what PyInit does now)
- Several typo fixes and clarifications
2015-05-08 04:58:19 +03:00
Guido van Rossum 532c8f3c4c Discuss issue #105 and a solution. 2015-05-07 08:22:27 -07:00
Berker Peksag 45ba62bd5a PEP 492: Sort headers 2015-05-06 04:51:00 +03:00
Yury Selivanov a67ffe133b pep-0492: Fix "unexpected indentation" error 2015-05-05 20:57:03 -04:00
Yury Selivanov fd385fa647 pep-0492: Update Acknowledgments section. 2015-05-05 20:39:22 -04:00
Yury Selivanov f67dee2882 pep-0478: Mention PEP 0492 in "Accepted PEPs" 2015-05-05 20:25:12 -04:00
Yury Selivanov 0a5d32a4f9 pep-0492: Mark the PEP as Accepted. 2015-05-05 20:23:31 -04:00
Benjamin Peterson dc67a90c11 448 is done 2015-05-05 20:17:53 -04:00
Yury Selivanov 939682f92c pep-0492: Add a clarification on event loop requirement. By Jim J. Jewett. 2015-05-05 18:31:49 -04:00
Yury Selivanov 19e51828c6 pep-0492: Add Discussions-To header field 2015-05-05 12:43:13 -04:00
Yury Selivanov 40aacc6d06 pep-0492: Fix terminology around coroutine object 2015-05-05 12:41:20 -04:00
Yury Selivanov b2658c3f8a pep-0492: Update Post-History 2015-05-05 12:22:54 -04:00
Yury Selivanov 7c481b6e79 pep-0492: We always raise RuntimeWarning for non-awaited coroutines 2015-05-04 23:27:16 -04:00
Yury Selivanov 9d82c29bd8 pep-0492: Update Rationale section 2015-05-04 19:35:36 -04:00
Larry Hastings ff91b78ea3 Fix minor spelling mistake in 492. 2015-05-04 16:32:37 -07:00
Yury Selivanov dea50ecfc3 pep-0492: (set|get)_coroutine_wrapper() is now thread-specific 2015-05-04 19:19:52 -04:00
Yury Selivanov 25637395f8 pep-0492: Minor edits 2015-05-04 19:10:57 -04:00
Yury Selivanov 0ee58b260f pep-0492: New Abstract section; thanks to Elvis Pranskevichus. 2015-05-04 17:52:20 -04:00
Yury Selivanov 384743cdef pep-0492: Reword DocumentLS.async deprecation section 2015-05-01 02:35:06 -04:00
Yury Selivanov 6d2ded2b90 pep-0492: Rename ensure_task() -> ensure_future() 2015-05-01 02:09:09 -04:00
Yury Selivanov 7cf393e6a7 pep-0492: Add "async/await in CPython code base" section. 2015-04-30 21:21:44 -04:00
Yury Selivanov 718e47edfc pep-0492: Drop __future__ from "Transition Period Shortcomings" 2015-04-29 23:25:46 -04:00