Skip to content

Tag: python

Confused with reference count of objects in Python

I’m a little confused with the reference counts I see from my test code When I run my code in both python2 and python3, it shows the reference count is off by 1. Where did the extra reference count come from? So what happened? Why is it off by 1? Where did the extra count come from? Answer Did you

how do I skip a private video, with this python code

the Package how do I skip a private video with this code I tried the optons (rejecttitle ignore-errors) I looked at YoutubeDL.py at github for option and i have no access to the video is of a Playlist ERROR: [youtube] FvnQJZnnXXo: Private video. Sign in if you’ve been granted access to this video Output…

python Path from pathlib module doesn’t add path separator

I have the following issue using Path from the pathlib library: I have tried with Path itself and manually giving it a path that I know exists: I was wondering why Path doesn’t simply add the backslash at the beginning? Is there a better way to build my path with the needed path separator from a list? I…