Comments (4)
I didn't use the Singleton in a long time but if you make a pull request I will be more than happy to review it and to include it.
from tendo.
By just reviewing the code (not actual testing), Singleton's logic is not based on file existence, rather on the file being locked.
I assume the __del__
is just for completeness, and not actually required
from tendo.
Yes, that is because a running script can be terminated at any time, failing to remove the file. Due to this, the only way to assure some kind of locking mechanism was to check if the file is locked or not.
/sorin
On 27 Feb 2015, at 00:06, NadavK [email protected] wrote:
By just reviewing the code (not actual testing), Singleton's logic is not based on file EXISTENCE, rather on the file being LOCKED.
I assume the del is just for completeness, and not actually required—
Reply to this email directly or view it on GitHub.
from tendo.
foo
from tendo.
Related Issues (20)
- Python 3.6.6, ModuleNotFoundError: import of os halted; None in sys.modules HOT 3
- logger.error vs logger.warning HOT 2
- Is necessary to include 'quitting' in log message? HOT 3
- Window flashing when packaged with PyInstaller. HOT 1
- SingleInstance prints log messages twice HOT 3
- Adding non blocking behavior in locking mechanism HOT 1
- BlockingIOError: [Errno 35] Resource temporarily unavailable HOT 1
- Compatibility with Python 3.7? HOT 1
- Opening in U mode has been deprecated and will be removed in Python 3.10 HOT 1
- 💖 looking for maintainers (cores) HOT 4
- Is singleton multi-threading safe? HOT 1
- NameError: name 'SingleInstance' is not defined HOT 1
- run process in popen and send kill will not remove the lock file HOT 3
- 'NoneType' has no attribute exit HOT 5
- v0.3 checklist
- New version on pypi? HOT 1
- BlockingIOError when running on Python 3.6 HOT 1
- Documentation link is broken (404)
- singleton.SingleInstance not releasing on program end
- Latest version on PyPi is 0.3.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tendo.