Skip to content

Commit 9224c60

Browse files
tkfstevengj
authored andcommitted
Segfault with Python 3.7 (#540)
* Use correct Python version in x64 AppVeyor * Test with Python 3.7 in AppVeyor * Implement PyDateTime_CAPI change in bpo-10381
1 parent 8feb00d commit 9224c60

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pydates.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ struct PyDateTime_CAPI
1717
DeltaType::PyPtr
1818
TZInfoType::PyPtr
1919

20+
# singletons:
21+
@static if pyversion >= v"3.7"
22+
TimeZone_UTC::PyPtr
23+
end
24+
2025
# function pointers:
2126
Date_FromDate::Ptr{Cvoid}
2227
DateTime_FromDateAndTime::Ptr{Cvoid}
2328
Time_FromTime::Ptr{Cvoid}
2429
Delta_FromDelta::Ptr{Cvoid}
30+
@static if pyversion >= v"3.7"
31+
TimeZone_FromTimeZone::Ptr{Cvoid}
32+
end
2533
DateTime_FromTimestamp::Ptr{Cvoid}
2634
Date_FromTimestamp::Ptr{Cvoid}
2735
end

0 commit comments

Comments
 (0)