Skip to content

PyneCore v6.0.8 - Scope Separator Fix & Object Types

Choose a tag to compare

@wallneradam wallneradam released this 06 Jun 11:11
· 207 commits to main since this release

🐛 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), and scope.replace('_', '.') replaced ALL underscores, not just scope separators. This caused main_f_f to become main.f.f instead of main.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.py transformers

🆕 New Features

Pine Script Object Types

  • Added basic Pine Script object types: Line, Label, Box, Table, LineFill, Polyline
  • Added ChartPoint dataclass 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