2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
Dave Abrahams
70219b1800 Removed operator_dispatcher instance counting
Fixed Ullrich's operator_dispatcher refcount bug


[SVN r8243]
2000-11-17 20:07:11 +00:00
Ullrich Köthe
2a266510fe added operator_dispatcher::free_list optimization
[SVN r8241]
2000-11-17 13:45:00 +00:00
Ullrich Köthe
7a9e15dcdc small changes in implementation of operator_dispatcher
[SVN r8232]
2000-11-16 19:51:34 +00:00
Dave Abrahams
b84e3a7983 Added a little crude leak-checking code
[SVN r8228]
2000-11-16 17:13:11 +00:00
Dave Abrahams
331e9e9c22 Moved operator_dispatcher into extclass.cpp
Gave it shared ownership of the objects it wraps

Fixed Ullrich's refcount bug

Introduced sequence points in extension_class_coerce for exception-safety

UPPER_CASE_MACRO_NAMES

MixedCase template type argument names

Changed internal error reporting to use Python exceptions so we don't force the
user to link in iostreams code

Changed error return value of call_cmp to -1

Moved unwrap_* functions out of operator_dispatcher. This was transitional: when
I realized they didn't need to be declared in extclass.h I moved them out, but
now that operator_dispatcher itself is in extclass.cpp they could go back in.


[SVN r8217]
2000-11-15 17:12:10 +00:00
Dave Abrahams
db210129f2 Added missing const_cast, PyNumberMethods initializers, and explicit constructor
[SVN r8210]
2000-11-15 05:40:07 +00:00
Ullrich Köthe
9f30f7dfd7 implemented export of operators
[SVN r8203]
2000-11-14 19:34:43 +00:00
Ullrich Köthe
84914ba405 added optimization in ExtensionClassBase::try_class_conversions()
[SVN r8155]
2000-11-06 17:30:23 +00:00
Dave Abrahams
5340194a9a added set_attribute member function to allow arbitrary Python objects to be added to an extension class.
[SVN r8150]
2000-11-06 05:18:55 +00:00
Dave Abrahams
6eecea6d1f Removed the need for the phantom base class that screwed up inheritance
hierarchies, introduced error-prone ordering dependencies, and complexified
logic in many places!


[SVN r8121]
2000-11-04 05:39:31 +00:00
Dave Abrahams
2ba0b22831 const-ify ClassBase::getattr()
Add repr() function to Class<T>
Add to_python/from_python conversions for PyPtr<T>
Standardize set_item/get_item interfaces (instead of proxies) for Dict and List
Add Reprable<> template to newtypes.h
Fix a bug wherein the __module__ attribute would be lost for classes that have a default virtual function implementation.


[SVN r8091]
2000-11-01 02:30:37 +00:00
Dave Abrahams
c4d8556bf7 enable_named_method moved to detail
[SVN r8039]
2000-10-28 17:19:23 +00:00
Dave Abrahams
49bd8a8651 Clean up formatting to conform to coding convention.
[SVN r8000]
2000-10-18 14:49:20 +00:00
Ullrich Köthe
b43865d494 fixed bug in the conversion tests
[SVN r7998]
2000-10-18 13:22:56 +00:00
Dave Abrahams
c410b83b36 Added numeric support
[SVN r7995]
2000-10-18 04:59:46 +00:00
Ullrich Köthe
c2d449d47e added explanatory comments
[SVN r7979]
2000-10-17 20:39:31 +00:00
Ullrich Köthe
dc3b9c510d changes according to Dave's code review (coding conventions, moving functions around etc.)
[SVN r7978]
2000-10-17 20:05:26 +00:00
Ullrich Köthe
3f0eb18183 added more test
changed some function names


[SVN r7972]
2000-10-17 17:34:41 +00:00
Ullrich Köthe
26bf57c4e9 added ExtensionClass<...>::declare_base(...) which
- declares a wrapped C++ class to be a base class of another wrapped class
  - enables conversions between those classes
  - ensures that base class methods are inherited by the subclass


[SVN r7971]
2000-10-17 14:50:07 +00:00
Ullrich Köthe
12a881ead5 This commit was generated by cvs2svn to compensate for changes in r315,
which included commits to RCS files with non-trunk default branches.


[SVN r7932]
2000-10-13 13:49:34 +00:00