Fixed example code - #225
Conversation
Now the Python code works and matches the documentation.
|
Looking at your comment in #217, yeah, I think that that is the right way to go. (It would at least make Java and Python consistent). You could also (instead of collecting the iterator as a list) use a |
|
Right. I played a bit more with foundationdb and the following also works as an empty range just falls through and returns @fdb.transactional
def get_user(tr, ID):
for key, value in tr.get_range_startswith(user[ID], limit=1):
return value |
|
Hm, I think I'd prefer if it explicitly returned |
|
@dividuum, any chance you have some time to address the review feedback so that we can merge the PR? 🙂 |
|
Hi @dividuum, We're wrapping up the work that was slated for the 6.1 release, and will start looking to cut the release branch. Any chance you'd have the time to revisit this PR? If this were to be merged in the next week or two, then it would be included in the 6.1 release. Otherwise, it'd likely be ~6mo until the next release. Thanks, |
…ng changes as well.
|
Resolved in #1218 |
Continuous backup
Python code works and matches the documentation.