Commit Graph

5009 Commits

Author SHA1 Message Date
Ronald Oussoren b47370af48 Updated the PEP 447 text
* __locallookup__ is now required for all metatypes and is therefore
  defined on type.

  The method was optional to make it easier to
  detect if the attribute lookup cache can be used, but
  the same idea can be used when "type" implements tp_locallookup.

* Added benchmarking results with PyBench.
2013-07-29 14:42:49 +02:00
Nick Coghlan 42551db573 Update PEP 394 based on python-dev discussions 2013-07-25 22:21:27 +10:00
Daniel Holth a974225ea3 PEP 426: update json schema 2013-07-19 12:03:16 -04:00
Ronald Oussoren ccc67db90d PEP 447 updates
* Title better reflects what's proposed

* Try to clarify the proposal (by changing the text and adding examples)

* Add background information on why I'm working on this proposal

* Slight semantic change: "type" does not provide a __locallookup__
  method. This was done to ensure that the type attribute cache
  can be kept.
2013-07-17 16:57:39 +02:00
Victor Stinner f6bac4e607 PEP 466: another counter-argument for open(blocking=True) 2013-07-17 13:15:18 +02:00
Victor Stinner 0c8a96692c PEP 466: add test_cloexec.py 2013-07-17 13:10:26 +02:00
Victor Stinner ab9b8a51bf PEP 446: On Windows, the close-on-exec flag is the *inverse* of HANDLE_FLAG_INHERIT 2013-07-17 12:48:58 +02:00
Guido van Rossum da726ba476 Fix minor grammatical/typographical issues. 2013-07-15 09:37:26 -07:00
Ronald Oussoren fb086746da There is implementation of the super() changes in this PEP. 2013-07-15 17:12:32 +02:00
Ronald Oussoren bfec474381 Document a possible attribute cache issue with the proposed changes to PyObject_GenericGetAttr 2013-07-15 17:10:15 +02:00
Ronald Oussoren 95e6879313 Rewrite PEP 447 with a cleaner interface
This replaces a special method that was tuned for use by super()
by one that is also usable for PyObject_GenericGetAttr, and has
a cleaner interface (a method on the meta type instead of static method
on the type that didn't really know what it wanted to be).

Next up: provide prototype implementation, then post to python-dev again.
2013-07-15 11:23:29 +02:00
Ronald Oussoren e1f31edcf2 Version of my super getattr hook proposal as posted to python-dev.
This will likely see significant changes based on feedback from Steve Dower.
2013-07-15 10:04:57 +02:00
Nick Coghlan 10b82df874 Markup fix 2013-07-14 23:29:39 +10:00
Nick Coghlan 4bfbb980cb Rename PEP 426 schema file 2013-07-14 23:28:14 +10:00
Nick Coghlan a043d88945 Assorted PEP 426 updates
* Merge conditional and unconditional deps
* Don't trust public index server "Provides" metadata
* Rename pymeta to pydist (schema file name change postponed for better diff)
* Bring schema file up to date (I think - could use an audit)
2013-07-14 23:27:22 +10:00
Guido van Rossum df6c195b0c Remove spurious backticks. 2013-07-13 18:57:50 -07:00
Brett Cannon 40e6f825cd Add PEP 448: Additional Unpacking Generalizations
by Joshua Landau.
2013-07-12 18:10:56 -04:00
Richard Jones 36f1f0ebb5 remove virtualenv from the pip3 install 2013-07-10 15:07:43 +10:00
Richard Jones 12c9125cc2 clarify CA cert issue; install virtualenv as well; mention Python 2.7 possibility 2013-07-10 13:01:57 +10:00
Barry Warsaw 3a283f9827 Clarify the wording. 2013-07-09 09:27:16 -04:00
Richard Jones 1ed9a8a185 merge 2013-07-09 12:29:13 +10:00
Richard Jones af72a505a0 mention having pip default to --user when itself installed in ~/.local
remove consideration of support for unnecessary installation options
2013-07-09 12:23:12 +10:00
Richard Jones 4b638f9ddd remove setuptools note; setuptools will now be installed
mention bootstrapping target and command-line options
mention python 2.6+ bootstrap possibility
2013-07-09 11:20:06 +10:00
Victor Stinner 8278ceed77 PEP 446: typo 2013-07-07 15:10:39 +02:00
Victor Stinner 010039d965 PEP 446: add new os.get/set_blocking() functions 2013-07-07 15:05:58 +02:00
Victor Stinner 9cb23db25d PEP 446: add a link to "Ghosts of Unix past, part 2: Conflated designs" article (LWN) 2013-07-07 15:00:53 +02:00
Antoine Pitrou e3b37523b4 ... and mark myself as delegate 2013-07-06 22:57:08 +02:00
Antoine Pitrou 9ebab6c186 Mark accepted 2013-07-06 22:56:39 +02:00
Antoine Pitrou 722bcf3c16 Some tweaks 2013-07-06 22:48:32 +02:00
Daniel Holth 41d43d2d53 pep-0426: add generator field 2013-07-06 16:38:22 -04:00
Victor Stinner b4738085d0 PEP 446: enhance the Rationale to take into account Cameron Simpson's remarks
* mention the name of the close-on-exec flag: HANDLE_FLAG_INHERIT, O_CLOEXEC
 * mention the name of the blocking flag: O_NONBLOCK
 * explain that file attributes are duplicated at fork
2013-07-06 14:27:23 +02:00
Victor Stinner eb13cfaa28 PEP 446: typo: inherance => inheritance 2013-07-04 22:10:39 +02:00
Victor Stinner 47a9a14870 PEP 446: better title 2013-07-04 13:01:38 +02:00
Victor Stinner 7394d0aceb PEP 446: add an "Overlapped I/O" alternative 2013-07-04 12:58:03 +02:00
Victor Stinner 1043aa17ab Add PEP 446: based on PEP 433, but simpler and more conservative 2013-07-04 01:32:07 +02:00
Barry Warsaw a87fddebef Relax PEP 8's perceived (but incorrect) prohibition against backslashed. 2013-07-03 13:26:36 -04:00
Victor Stinner 1506fc7c5b PEP 445: fix typo 2013-07-03 00:44:58 +02:00
Victor Stinner 06c2d930d6 PEP 445: explain why External Libraries and Memory Allocators sections are present 2013-07-01 23:15:45 +02:00
Victor Stinner e1d30cc03e PEP 445: rephrase abstract
Remove also a wrong sentence: using the same prototypes than external libraries
is not a must-have. In fact, it was neither a guideline for this PEP, but just
an inspiration.
2013-07-01 22:44:48 +02:00
Victor Stinner 03210e6ffd PEP 445: cleanup
Avoid "should", "may" and "might". Rephrase some sentences
2013-07-01 22:29:08 +02:00
Łukasz Langa feef345e1e Use C3-based linearization for ABC support to improve predictability 2013-07-01 14:46:15 +02:00
Ethan Furman 6ec9fdf432 Added rationale for functional API defaulting to 1 as the start. 2013-06-28 19:32:40 -07:00
Victor Stinner 16b2b8f19e PEP 445: take into account Antoine Pitrou's remarks 2013-06-28 22:39:29 +02:00
Łukasz Langa 92027e2fe7 Restore comment about an alternative syntax found in 2009 2013-06-27 10:48:28 +02:00
Łukasz Langa 78083574cd Reject PEP 315. 2013-06-26 17:38:57 +02:00
Nick Coghlan b1126e367c Incorporate Vinay's direct reference feedback
* Syntax becomes "from URL" instead of "is URL"
* Now a distinct alternative to version specifiers rather
  than a subclause of one
2013-06-26 21:27:57 +10:00
Nick Coghlan c7ac54a9b9 PEP 426: add distlib as a reference impl 2013-06-24 21:48:49 +10:00
Nick Coghlan 00af01985f PEP 426: tweak standard build system description 2013-06-24 21:38:31 +10:00
Nick Coghlan a157a40e52 PEP 426: make summary field mandatory 2013-06-24 21:05:51 +10:00
Victor Stinner 41306e137b PEP 445: add "Redesign Debug Checks on Memory Allocators as Hooks" section 2013-06-23 14:34:11 +02:00