• I'm late :(.
    I will be alert for the next promotion!!

  • Maybe if you want to support Olé @omz, you can buy Pythonista 3 now for your friends or even for yourself ( one time or maybe ten times) and use the iTunes codes later.

  • Love Pythonista And Love Reddit.
    I think the biggest advantage in moving to Reddit would be getting a more intelligent search, searching in this forum is not good.
    I am no expert but i see no downside to shifting to Reddit.

  • @mikael @omz Pythonista played an important role in my career as well. When I was interviewing for my last job they set a programming task to write a custom compression tool for specifically formatted data. I wrote it in Pythonista, mostly on the train on my commute. It was fun, I used a combination of techniques for different fields, including variable length encoding for numeric fields that took a fair amount of bit twiddling. I was able to actually demo it to them in my face to face interview on my iPad. It blew them away, they had no idea you could do something like that on an iPad.

  • Still happening. Just now decided to poke them with a @testflightapp on twitter. Maybe they can give me an answer why.

  • @ Phuket2 , My script decodes exactly the way omz's script does the decoding. Omz's script directly does the load_view afterwards but my script just writes to a file (.pyui). Omz's script has the encoded string in data variable but my script reads the whole code as string (it does not run it and hence it does not have the encoded string) and extracts the encoded string. May be there are better ways to extract but I just use regular expression split to extract the encoded string. The data variable uses triple single quotes and hence that is used for splitting. Instead of extracting you can also modify the code file to write the decoded string to a pyui file. I hope it answers your question.

  • This works great except when my ipad is turned sideways the camera acts weird and is like the camera is in mirror mode or something.

  • Hi--is there an FAQ someplace on this subject? Confused about it all. Does the current version of the app support both 2.7 and 3? How? Thanks!

    ETA: Oops. Just answered my own question (saw there's a new app version for 3).

  • There is currently no Xcode template for Pythonista 3, but I'm working on something...

  • @omz thanks, just got scared because of

  • @ccc Agree but this kind of particular process in the Pythonista Editor should be for @omz only, don't you think so? And, sincerely, I don't have any hope for such functionality

  • https://gist.github.com/3fbe2e785541a43dcfcf887670feb0e6

    This is an updated version of @omz's original, but converted to using create_objc_class so it works in latest version.

    Also, I added a delegate method which returns an annotationView, and uses the annotation title to set the image

  • ui.input_alert() does not accept input as keyword argument, though it says so in the documentation. However following workaround works: ui.input_alert('Title','',<actual-prefilled-input>)

  • @JonB , ok great.
    I just noticed that is supported with devices supporting 3D Touch. I didn't really notice before as not using my iphone much

  • Omz could support both but that would be almost twice as much work for him with little extra revenue to pay for it.

    Not within the same app, because of Apple's app guidelines and the whole single-binary-no-dynamic-linking thing.

  • @gyronaut said:

    I would like to compile and run the template under Xcode 7.1 and iOS 9 but get such an error:

    Undefined symbols for architecture arm64:
    "_ffi_prep_closure_loc", referenced from:
    __ctypes_alloc_callback in liblibpythonista.a(callbacks.o)
    "_ffi_prep_cif", referenced from:
    __ctypes_callproc in liblibpythonista.a(callproc.o)
    __ctypes_alloc_callback in liblibpythonista.a(callbacks.o)
    "_ffi_call", referenced from:
    __ctypes_callproc in liblibpythonista.a(callproc.o)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Are there any ideas, what will be wrong ?

    THX, Stefan

    Hi Stefan,

    Take a look here:
    [https://forum.omz-software.com/topic/1912/problem-with-xcode-template](link url)

    Summary: Change "Enable bitcode" to "No" in the project settings. I think.

    Good luck,

  • The extension runs in its own sandbox.. As I recall there was an extensions site packages? You have to separately install packages to both locations.

  • @omz - could you discuss what the background is with cffi and how it relates to the ctypes - ffi combination? I keep seeing references to it as an active project that makes writing the python code simpler somehow but does basically the same thing as ctypes and ffi in combination. Is this old stuff - or new? If new - maybe it solves the 64-bit issues already. Just curious.

    UPDATE: I just noticed that cffi is included in Pythonista under pylib/site_packages along with a copy of pycparser. Interesting.

    ./pylib/site-packages/cffi/__init__.py ./pylib/site-packages/cffi/api.py ./pylib/site-packages/cffi/backend_ctypes.py ./pylib/site-packages/cffi/commontypes.py ./pylib/site-packages/cffi/cparser.py ./pylib/site-packages/cffi/ffiplatform.py ./pylib/site-packages/cffi/gc_weakref.py ./pylib/site-packages/cffi/lock.py ./pylib/site-packages/cffi/model.py ./pylib/site-packages/cffi/vengine_cpy.py ./pylib/site-packages/cffi/vengine_gen.py ./pylib/site-packages/cffi/verifier.py
Internal error.

Oops! Looks like something went wrong!