MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / add_flag

Method add_flag

tools/python-3.11.9-amd64/Lib/mailbox.py:1561–1563  ·  view source on GitHub ↗

Set the given flag(s) without changing others.

(self, flag)

Source from the content-addressed store, hash-verified

1559 self._info = '2,' + ''.join(sorted(flags))
1560
1561 def add_flag(self, flag):
1562 """Set the given flag(s) without changing others."""
1563 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1564
1565 def remove_flag(self, flag):
1566 """Unset the given string flag(s) without changing others."""

Callers 4

_explain_toMethod · 0.45
_explain_toMethod · 0.45
_explain_toMethod · 0.45
_explain_toMethod · 0.45

Calls 4

set_flagsMethod · 0.95
get_flagsMethod · 0.95
setFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected