# @pyimport struct as pystruct?

**URL:** <https://discourse.julialang.org/t/pyimport-struct-as-pystruct/7424>\
**Category:** General Usage\
**Created:** [December 1, 2017, 12:01am UTC](https://discourse.julialang.org/t/pyimport-struct-as-pystruct/7424 "2017-12-01T00:01:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![improbable22](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/improbable22/32/5464_2.png) [@improbable22](https://discourse.julialang.org/u/improbable22)\
**Post date:** [December 1, 2017, 12:01am UTC](https://discourse.julialang.org/t/pyimport-struct-as-pystruct/7424/1 "2017-12-01T00:01:50Z")

</div>

I am trying to use a package which contains `@pyimport struct`. If I understand right, this would have been OK on some older versions of Julia, but now `struct` is a reserved word and so this gives errors.

EDIT – nevermind, I solved this using what the manual recommends:

```julia
pystruct = pyimport("struct")
pystruct[:unpack](...

```
