Joshua Haberman
f6e76190e1
Addressed PR comments.
3 years ago
Joshua Haberman
f85cf27ea4
Fixes to delete algorithm.
3 years ago
Joshua Haberman
d067bd3f41
Addressed PR comments.
3 years ago
Joshua Haberman
2d4ffbf1c4
Addressed PR comments.
3 years ago
Joshua Haberman
455426ec70
Added repeated fields.
3 years ago
Joshua Haberman
c52c247c92
Addressed PR comments.
3 years ago
Joshua Haberman
32ebb4817a
Simplified AssureWritable().
3 years ago
Joshua Haberman
dc0d1b4932
Addressed PR comments.
3 years ago
Joshua Haberman
6bb891e32b
Addressed PR comments.
3 years ago
Joshua Haberman
c42beeb8d3
Addressed PR comments.
3 years ago
Joshua Haberman
eb38a2a608
Some more cleanups before sending for PR.
3 years ago
Joshua Haberman
4111d13172
WIP.
3 years ago
Joshua Haberman
5815be9ae6
Reverted GitHub Actions changes.
3 years ago
Joshua Haberman
a155418fea
Addressed PR comment.
3 years ago
Joshua Haberman
e3cd0586bc
More PR comments.
3 years ago
Joshua Haberman
8c5c59a308
Addressed PR comments.
3 years ago
Joshua Haberman
bfc264d098
Moved pointers left and added some comments.
3 years ago
Joshua Haberman
deddc20f0c
Adds implementations for most descriptor objects.
3 years ago
Joshua Haberman
b75f7cff17
Addressed PR comments.
3 years ago
Joshua Haberman
1aa7200dc6
Addressed PR comments.
3 years ago
Joshua Haberman
fd9d19d665
Properly compare Python unknown fields.
3 years ago
tomerv
47e05427e3
Fix typo in docstring ( #9208 )
3 years ago
Joshua Haberman
1e1adc6a34
PR comments and WIP.
3 years ago
Joshua Haberman
1845997498
Added comments.
3 years ago
Joshua Haberman
269e36b092
Addressed PR comments.
3 years ago
Joshua Haberman
4fb0971bd0
Used Py_XDECREF instead of explicit NULL checks.
3 years ago
Joshua Haberman
d6212461e6
Addressed PR comments.
3 years ago
Joshua Haberman
83d1508ee5
Addressed PR comments.
3 years ago
Joshua Haberman
5376af452f
Added comments to new public functions.
3 years ago
Joshua Haberman
3206b321e1
Added descriptor containers.
3 years ago
Thomas Hisch
26603a1466
Remove unittest2 imports ( #9171 )
...
They were only needed for python versions <= 2.6
Related: #6658
3 years ago
Adam Cozzette
7c40b2df1f
Update protobuf version ( #9167 )
3 years ago
Nipunn Koorapati
0707f2e7f5
Provide a type alias field ValueType on EnumTypeWrapper ( #8182 )
...
This should provide a runtime alias, which can be
used in mypy stubs to provide better typing for enum values
Fixes #8175
3 years ago
Adam Cozzette
63f952b987
Fix Python 3.10 C++ tests ( #9128 )
...
The first change is to make sure we always define PY_SSIZE_T_CLEAN
before including Python.h. Starting from Python 3.10 this is required.
Otherwise we get errors like this:
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
The second change is to update reflection_test.py to account for the
fact that with Python 3.10, we get a TypeError even with the C++
implementation when trying to assign a float to a bool field. I'm not
sure why this changed with Python 3.10, but it seems like a good thing
since this is the desired behavior anyway.
3 years ago
Adam Cozzette
17b30e9647
Update protobuf version ( #9119 )
3 years ago
Adam Cozzette
3f3e6f47c6
Update version to 3.19.0-rc2 and fix changelog about Java 7 ( #9116 )
...
* Update protobuf version
* Update CHANGES.txt to reflect that we're not yet dropping Java 7
3 years ago
Adam Cozzette
454778d011
Python: fix usages of deprecated assertRaisesRegxp ( #9098 )
...
assertRaisesRegexp has been deprecated in favor of the slightly
different spelling assertRaisesRegex. Let's fix this just to clean up a
bunch of deprecation warnings in the tests.
3 years ago
Adam Cozzette
519340d662
Update protobuf version ( #9106 )
3 years ago
Adam Cozzette
f367bfb13d
Use dedicated helper functions for map descriptors ( #9099 )
...
The Descriptor class now has map_key() and map_value() methods for
accessing the special key and value fields in generated map entry
messages. This commit updates all the relevant code to use these
accessors instead of the clunkier FindFieldByName("key") or
FindFieldByName("value") approach.
3 years ago
Bu Sun Kim
c01cd6ec79
Add python 3.10 ( #9034 )
...
* Add python 3.10
* Update setup.py and tox.ini
* fix: fix 3.9 -> 3.10
* fix: py310-cpp
3 years ago
Peter Sobot
ef0bd1343b
Only run GetDebugString test with cpp impl.
3 years ago
Timo Röhling
5100be2b77
Prevent integer overflow for unknown fields
...
The PyInt_FromLong() conversion function will truncate 64 bit integer
values on 32 bit architectures. We will now use the PyLong_* functions
with the appropriate minimum size for each field.
Note that this commit also switches to the unsigned versions, since the
unknown integer fields have been declared unsigned anyway.
Fixes #6205
3 years ago
Peter Sobot
4e176f29b4
Added GetDebugString to Python FileDescriptor interface.
3 years ago
Raul Bocanegra Algarra
e47ed057a5
Make glob recursive if option is enabled ( #8783 )
3 years ago
Adam Cozzette
0dab03ba7b
Update protobuf version to 3.18.1 ( #9051 )
...
* Update protobuf version
* Update PHP release notes in package.xml
3 years ago
AN Long
2fffff8320
Add python-requires in setup.py ( #8989 )
...
* Add python-requires in setup.py
* Update setup.py
3 years ago
AN Long
b75bb09551
Add python-requires in setup.py ( #8989 )
...
* Add python-requires in setup.py
* Update setup.py
3 years ago
Vasily Fomin
8b59d5367c
Fix typo in Descriptor docstring ( #9001 )
3 years ago
Paul Yang
12fb2b7450
Update protobuf version ( #8973 )
...
* Update protobuf version
* Update php notes
3 years ago
Sandy Zhang
565294d79f
Remove duplicate build_ext class and get_ext_filename method
3 years ago