Skip to content

Conversation

@mwatts15
Copy link
Contributor

No description provided.

@RDFLib RDFLib deleted a comment from coveralls Oct 27, 2018
rdflib/graph.py Outdated
import warnings

from hashlib import md5

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep commits concise, don't change random other things...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. They are unused though.

)
if triples_stored is None:
return -1
return triples_stored
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this won't really work without also at least updating the store interface in store.py

also i'd prefer a simple return in front of the dispatch to store... i don't see how -1 is better than simply returning None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct. I don't actually recall why I went with -1.
The intention is to make it optional. I have added a flag member variable to indicate whether addN returns a count on a store I maintain, but I didn't see a reason to make it official interface.

@joernhees joernhees added enhancement New feature or request store Related to a store. help wanted Extra attention is needed good first issue Good for newcomers labels Oct 28, 2018
@white-gecko white-gecko added this to the rdflib 5.1.0 milestone Mar 16, 2020
@nicholascar
Copy link
Member

Open/Close Travis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed store Related to a store.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants