|
| 1 | + |
| 2 | + |
| 3 | ++++ |
| 4 | +title = "Changes Announced on October 15, 2026" |
| 5 | +linkTitle = "October 15, 2026" |
| 6 | +toc_hide = "true" |
| 7 | +description = "Changes announced for Protobuf on October 15, 2026." |
| 8 | +type = "docs" |
| 9 | ++++ |
| 10 | + |
| 11 | +The following sections cover additional planned breaking changes in the v38 |
| 12 | +release, expected in 2027 Q1. These describe changes as we anticipate them being |
| 13 | +implemented, but due to the flexible nature of software some of these changes |
| 14 | +may not land or may vary from how they are described in this topic. |
| 15 | + |
| 16 | +## Changes in C++ {#cpp} |
| 17 | + |
| 18 | +### Remove NULL Termination in Descriptor Names |
| 19 | + |
| 20 | +Remove null terminators in string_view. |
| 21 | + |
| 22 | +## Changes in Protoc {#protoc} |
| 23 | + |
| 24 | +### Add Compiler Flag `--source_code_info_out` to Output SourceCodeInfo Separately |
| 25 | + |
| 26 | +## Changes in Python {#python} |
| 27 | + |
| 28 | +### Align `__eq__()` with `Any` Fields on Pure Python with Py-upb Behavior |
| 29 | + |
| 30 | +Align pure PythonProto `__eq__()` behavior to upb by only comparing the |
| 31 | +serialized bytes. There are some edge cases where two `Any` fields may contain |
| 32 | +different bytes which are equal only when parsed. These cases used to return |
| 33 | +`true`, but will now return `false`. |
| 34 | + |
| 35 | +## Changes in UPB {#upb} |
| 36 | + |
| 37 | +### Align Default Value Float and Double Formatting with C++ FileDescriptor::CopyTo |
| 38 | + |
| 39 | +In `upb_FileDef_ToProto`, `float` and `double` default values in |
| 40 | +`FieldDescriptorProto.default_value` were previously formatted using hardcoded |
| 41 | +`"%.9g"` and `"%.17g"`. This could produce more digits than C++ |
| 42 | +`FieldDescriptor::DefaultValueAsString()` (`io::SimpleFtoa` / `io::SimpleDtoa`), |
| 43 | +causing `upb_FileDef_ToProto` output to differ from C++ `FileDescriptor::CopyTo` |
| 44 | +(for example, `"0.10000000000000001"` vs `"0.1"` for `double`, and |
| 45 | +`"7.77777779e+35"` vs `"7.777778e+35"` for `float`). |
| 46 | + |
| 47 | +In v38, `upb_FileDef_ToProto` will format `float` and `double` default values |
| 48 | +using round-trip formatting matching `io::SimpleFtoa` and `io::SimpleDtoa`, |
| 49 | +aligning OSS behavior with Google3. |
0 commit comments