Ask coding questions

← Back to all posts
Make a Copy of Replit DB (Python)
CodingElf66

Make a Copy of Replit DB (Python)

I really need help on this, so please help!
I will be rewarding whoever answers this 5 upvotes!

Voters
CodingElf66
Comments
hotnewtop
MrVoo

If you mean what I think you mean, just do dbCopy = db

CodingElf66

@MrVoo That wouldn't work, because you're basically assigning the db to another variable that is literally going to be the exact same thing.

But I'll try it, thanks! (because I'm not sure lol)

MrVoo

@CodingElf66 What did you mean by a copy then :P

CodingElf66

@MrVoo Make it so that there are two dbs.

CodingElf66

@MrVoo And your way doesn't work btw.

MrVoo

@CodingElf66 Why would you need two? If you're trying to bypass the storage limit, it wont work.

ShivankChhaya

@CodingElf66 dbCopy = db[:]
the [], takes a portion of the iterable, and [:] will copy the entire iterable

CodingElf66

@ShivankChhaya Ok I will try that.

CodingElf66

@ShivankChhaya Still doesn't work.

MrVoo

@CodingElf66 Why would you need two?

ShivankChhaya

@CodingElf66 what exactly do you want to do?

MrVoo

@CodingElf66 If you're trying to bypass the storage limit, that's not allowed

CodingElf66

@ShivankChhaya Just make another one

CodingElf66

@MrVoo For something. Anyways, say goodbye to your upvotes.

ShivankChhaya

@CodingElf66 thats not possible

MrVoo

@CodingElf66 Oh no, I lost 5 wHoLe cycles! My life is in ruins...