summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-22 00:40:23 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-22 00:40:23 (GMT)
commitf6e47ad4bd12ffa633d51071520722be32fb252d (patch)
treec1b1a25d0c2e809102b9010d437879f4afaef65d /Lib/random.py
parent4edbc2a54ff79e718fb3d30da5c128fc8b46ccc0 (diff)
downloadcpython-f6e47ad4bd12ffa633d51071520722be32fb252d.zip
cpython-f6e47ad4bd12ffa633d51071520722be32fb252d.tar.gz
cpython-f6e47ad4bd12ffa633d51071520722be32fb252d.tar.bz2
Check that f.keys() == [] right after creation -- this prevents bugs
like the one I just fixed to come back and haunt us.
Diffstat (limited to 'Lib/random.py')
0 files changed, 0 insertions, 0 deletions
reement accompanying ** this package. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] QXmlQuery query; query.setQuery("<e/>, 1, 'two'"); QXmlResultItems result; if (query.isValid()) { query.evaluateTo(&result); QXmlItem item(result.next()); while (!item.isNull()) { // use item item = result.next(); } if (result.hasError()) /* Runtime error! */; } //! [0]