Skip to content

Commit

Permalink
Segfault with Python 3.7 (#540)
Browse files Browse the repository at this point in the history
* Use correct Python version in x64 AppVeyor

* Test with Python 3.7 in AppVeyor

* Implement PyDateTime_CAPI change in bpo-10381
  • Loading branch information
tkf authored and stevengj committed Aug 28, 2018
1 parent 8feb00d commit 9224c60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pydates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ struct PyDateTime_CAPI
DeltaType::PyPtr
TZInfoType::PyPtr

# singletons:
@static if pyversion >= v"3.7"
TimeZone_UTC::PyPtr
end

# function pointers:
Date_FromDate::Ptr{Cvoid}
DateTime_FromDateAndTime::Ptr{Cvoid}
Time_FromTime::Ptr{Cvoid}
Delta_FromDelta::Ptr{Cvoid}
@static if pyversion >= v"3.7"
TimeZone_FromTimeZone::Ptr{Cvoid}
end
DateTime_FromTimestamp::Ptr{Cvoid}
Date_FromTimestamp::Ptr{Cvoid}
end
Expand Down

0 comments on commit 9224c60

Please sign in to comment.