Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23276

Does Mongo know what tuples are?

$
0
0

I'm storing lists of tuples into a MongoDB database using PyMongo. For some reason, when I view the data in the mongo shell, the tuples are represented by square brackets.

In addition, when I extract the data from the database and check its type(), python tells me it's a list.

Is it possible to store a tuple in a mongo database?


Viewing all articles
Browse latest Browse all 23276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>