[New-bugs-announce] [issue38327] Creating set with empty string returns empty set
Emil Bode
report at bugs.python.org
Mon Sep 30 11:19:05 EDT 2019
New submission from Emil Bode <BodeEmil at gmail.com>:
Initializing/creating a new set with an empty string via the set-command returns an empty set instead of set with the empty string.
As in:
While set('somestring') gives me a set of size one,
set('') gives me an empty set (of size zero), just as set() would do
It is possible to create a set with an empty string, as the command {''} and set(['']) work just as expected
----------
messages: 353585
nosy: EmilBode
priority: normal
severity: normal
status: open
title: Creating set with empty string returns empty set
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38327>
_______________________________________
More information about the New-bugs-announce
mailing list