@@ -126,8 +126,8 @@ def get_segments(
126
126
"""Get all segments that match the requested name.
127
127
128
128
:param name: The name of the segments to return.
129
- :param predicate: Optional callable that returns True if the given
130
- segment matches a condition .
129
+ :param predicate: Optional callable that accepts a segment as argument.
130
+ Only segments for which the returned value is ``True'' are returned .
131
131
132
132
:rtype: list of :class:`Segment` objects.
133
133
"""
@@ -190,10 +190,11 @@ def add_segments(
190
190
) -> "AbstractSegmentsContainer" :
191
191
"""Append a list of segments to the collection.
192
192
193
- Passing a ``UNA`` segment means setting/overriding the control characters and
194
- setting the serializer to output the Service String Advice. If you wish to
195
- change the control characters from the default and not output the Service String
196
- Advice, change :attr:`characters` instead, without passing a UNA Segment.
193
+ For the :class:`Interchange` subclass, passing a ``UNA`` segment means
194
+ setting/overriding the control characters and setting the serializer to output
195
+ the Service String Advice. If you wish to change the control characters from the
196
+ default and not output the Service String Advice, change :attr:`characters`
197
+ instead, without passing a ``UNA`` Segment.
197
198
198
199
:param segments: The segments to add.
199
200
:type segments: List or iterable of :class:`~pydifact.segments.Segment` objects.
0 commit comments