Skip to content

Commit

Permalink
Merge 1fd9fa6 into cd6e9b5
Browse files Browse the repository at this point in the history
  • Loading branch information
kmsquire committed Oct 15, 2014
2 parents cd6e9b5 + 1fd9fa6 commit 6bd48b5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
julia 0.2-
Compat
4 changes: 4 additions & 0 deletions src/PyCall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import Base: size, ndims, similar, copy, getindex, setindex!, stride,
# similar long-running (or potentially long-running) code.
import Base: sigatomic_begin, sigatomic_end

## Compatibility import for v0.3, v0.4

import Compat

#########################################################################

# Mirror of C PyObject struct (for non-debugging Python builds).
Expand Down
2 changes: 1 addition & 1 deletion src/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function wx_eventloop(sec::Real=50e-3)
end

# cache running event loops (so that we don't start any more than once)
const eventloops = (Symbol=>Timer)[]
const eventloops = Dict{Symbol,Timer}()

function pygui_start(gui::Symbol=pygui(), sec::Real=50e-3)
pygui(gui)
Expand Down
16 changes: 8 additions & 8 deletions src/numpy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ npy_type(::Type{PyPtr}) = NPY_OBJECT
typealias NPY_TYPES Union(Bool,Int8,Uint8,Int16,Uint16,Int32,Uint32,Int64,Uint64,Float32,Float64,Complex64,Complex128,PyPtr)

# conversions from __array_interface__ type strings to supported Julia types
const npy_typestrs = (String=>Type)[ "b1"=>Bool,
"i1"=>Int8, "u1"=>Uint8,
"i2"=>Int16, "u2"=>Uint16,
"i4"=>Int32, "u4"=>Uint32,
"i8"=>Int64, "u8"=>Uint64,
"f4"=>Float32, "f8"=>Float64,
"c8"=>Complex64, "c16"=>Complex128,
"O$(div(WORD_SIZE,8))"=>PyPtr ]
const npy_typestrs = @Compat.Dict( "b1"=>Bool,
"i1"=>Int8, "u1"=>Uint8,
"i2"=>Int16, "u2"=>Uint16,
"i4"=>Int32, "u4"=>Uint32,
"i8"=>Int64, "u8"=>Uint64,
"f4"=>Float32, "f8"=>Float64,
"c8"=>Complex64, "c16"=>Complex128,
"O$(div(WORD_SIZE,8))"=>PyPtr )

#########################################################################
# no-copy conversion of Julia arrays to NumPy arrays.
Expand Down

0 comments on commit 6bd48b5

Please sign in to comment.