Comments (4)
Agreed, happy to accept PRs to fix this behavior!
On Mon, Feb 8, 2016 at 3:01 PM, Maxime Vdb [email protected] wrote:
Hi there,
The issue with having mutable default arguments
https://github.com/segmentio/analytics-python/blob/master/analytics/client.py#L44-L45
is that
http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments.
Usually it can be replaced by param = param or {} or param = param or [].Max.
—
Reply to this email directly or view it on GitHub
#67.
from analytics-python.
Fixed by #68
from analytics-python.
ah you were quicker than me. Also, you might want to enable linting in your CI. You would have detected such issues :)
from analytics-python.
thanks!
from analytics-python.
Related Issues (20)
- Change in date format for originalTimestamp HOT 1
- Import analytics clash with standard library module HOT 3
- `import analytics` broken in 2.2.1 HOT 1
- Documentation site is outdated and not aligned with the latest README HOT 1
- Invalid base class for APIError
- Incorrect SQL test generated from Parameter with default_value HOT 4
- The lib analytics in Databricks not delivery 100% of calls HOT 7
- Issue: Messages are getting dropped sometimes and not pushed to segment. HOT 2
- Deprecate unmaintained PyPI package HOT 2
- Convert to Github Actions
- Python 3.10 and 3.11 support HOT 5
- [FEATURE REQUEST] | Context information with `track` calls HOT 1
- Successive track calls don't get logged to app.segment.com sources (Debugger)
- No Data Flowing After Upgrading to Python 3.11 HOT 1
- PyPI wheel contains old analytics package HOT 2
- Resolve Test Issues
- Version 2.3.0 missing jwt as an explicit dependency HOT 4
- Basic auth was removed from the auth methods in v2.3 HOT 1
- Segment integration with Gainsight not working from Python HOT 3
- Test issue please ignore
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 analytics-python.