PyneCore v6.0.8 - Scope Separator Fix & Object Types
🐛 Critical Bug Fixes
Function Names with Underscores in Persistent Variables
Fixed a critical issue where functions with underscores in their names (e.g., f_f()) would lose their persistent variable state between bars.
- Root Cause: The scope separator was
_(underscore), andscope.replace('_', '.')replaced ALL underscores, not just scope separators. This causedmain_f_fto becomemain.f.finstead ofmain.f_f, creating incorrect registry keys. - Solution: Changed scope separator from
_to·(Unicode middle dot, U+00B7) in transformers - Impact: Functions with underscores in their names now correctly maintain persistent state across bars
- Files Modified:
persistent.py,series.pytransformers
🆕 New Features
Pine Script Object Types
- Added basic Pine Script object types:
Line,Label,Box,Table,LineFill,Polyline - Added
ChartPointdataclass for chart point representation - Improved type system consistency
🔧 Minor Fixes
- Fixed string formatting precision casting bug
- Cleaned up unused code in pine_method.py
- Updated documentation with new scope separator information
📚 Documentation Updates
- Enhanced AST transformations documentation with scope separator details
- Updated differences documentation with new object types
- Added technical notes about the Unicode middle dot separator
Full Changelog: v6.0.7...v6.0.8