473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Outdated documentation


Hi All,
This is from the documentation of the dbhash module:

Returns the key next key/value pair in a database traversal. The
following code prints every key in the database |db|, without having
to create a list in memory that contains them all:

print db.first()
for i in xrange(1, len(db)):
print db.next()
Apparently, it is different for gdbm:

k = db.firstkey()
while k != None:
print k
k = db.nextkey(k)

I think both of them is outdated. This should be:

for key,value in db.iteritems():
print key,value

Is this the good place to post?

Les

Oct 17 '05 #1
1 1390
Laszlo Zsolt Nagy wrote:
Is this the good place to post?


Follow the "About this document" link at the bottom of any page of Python docs for information about submitting change requests.

Kent
Oct 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

35
by: Markus Dreyer | last post by:
I suggested our Librarian for the University Library to buy Accelerated C++. Practical Programming by Example. by Andrew Koenig and Barbara E. Moo http://www.acceleratedcpp.com/ but she...
23
by: Carter Smith | last post by:
http://www.icarusindie.com/Literature/ebooks/ Rather than advocating wasting money on expensive books for beginners, here's my collection of ebooks that have been made freely available on-line...
6
by: silverbob | last post by:
I am evaluating EWD, which seems to be an improvement over FrontPage. In code view, the program alerts you to items that are not HTML 4.0 compliant. For example, in this line... <td...
18
by: Joe (MCAD) | last post by:
Hi all, I just wanted to hear other peoples opinion with regards to how/if outdated ASP.NET is. ASP.NET (and ASP.net 2.0) is based on framework from 2000. It was a great stride forward at that...
4
by: Agos | last post by:
Microsoft Visual Studio when I use this tag <br clear="all" /> tells me: Warning 1 Validation (XHTML 1.0 Transitional): Attribute 'clear' is considered outdated. A newer construct is recommended....
6
by: Srdja123 | last post by:
Hi, Im thinking about learning C++ and I have this book called:" C++ programming 3:e edition" by Stephen Prata from 2001 and I was wondering, is that book outdated? These books are kind of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.