fix ref bug with iter, views and istr#1311
Conversation
|
Would you please add a test for this one as well ? |
Just did. :) |
|
Seems this implementation likes to segfault :( I'll probably go back and replan a few things tomorrow when I have 2 days off from my job. |
…ypes after finishing and use a tp_free slot to help with that.
|
@bdraco I seem to have just fixed the problem. Turns out using a |
|
The only bad news is that freethreaded is still bugged. |
… instead and recast istr directly instead of using _PyObject_CAST
|
@bdraco It should also be mentioned that code-coverage is somehow failing in the isolated directory. I've looked at them and most files seem to act that way at around 33.33% or similar results. I wonder if this coverage is inaccurate or should be fixed? |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (11.11%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #1311 +/- ##
==========================================
- Coverage 97.60% 96.94% -0.66%
==========================================
Files 26 27 +1
Lines 3513 3540 +27
Branches 253 257 +4
==========================================
+ Hits 3429 3432 +3
- Misses 77 100 +23
- Partials 7 8 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| view_type = type(md.keys()) | ||
| baseline = sys.getrefcount(view_type) | ||
| for i in range(1000): | ||
| v = md.keys() |
Check notice
Code scanning / CodeQL
Unused global variable Note test
|
|
||
| baseline = sys.getrefcount(istr) | ||
| for i in range(1000): | ||
| s = istr("hello") |
Check notice
Code scanning / CodeQL
Unused global variable Note test
What do these changes do?
This is based off previous things that I have referenced in #1310 and #1306. The other bugs listed seem to like much harder puzzles to solve than anything else so I'm tackling the easy fixable ones first.
Reproducer
Are there changes in behavior for the user?
Related issue number
Checklist