×

Discussion Board

Search:

Type: Posts; User: yemir; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    7,009

    What's actually useful is to call it before a...

    What's actually useful is to call it before a long import.

    -Ken
  2. Replies
    3
    Views
    6,008

    Your listener class creates a socket in one...

    Your listener class creates a socket in one thread and then tries to receive from it in another. This is not allowed; you can't share file descriptors between threads.

    -Ken
  3. creeping boilerplate

    One of the virtues of Python for Series 60 is supposed to be that simple scripts are short and relatively free of required boilerplate. However, it has been standard practice from the beginning to...
  4. include _weakref to make xml package work given pyexpat

    It was recently pointed out to me that xml.dom.minidom.parse() fails trying to import _weakref even if you have installed HIIT's pyexpat port, weakref.py, and UserDict.py. Although I would highly...
  5. Thread: Thread example

    by yemir
    Replies
    10
    Views
    8,556

    Sure, UI changes will be processed and made...

    Sure, UI changes will be processed and made visible as long as you are blocked on wait(). The tricky part is making the changes to the UI state, which is only safe to access in the main thread. ...
  6. Thread: Thread example

    by yemir
    Replies
    10
    Views
    8,556

    Having a thread write something to a text file...

    Having a thread write something to a text file occasionally should not be a problem. The problem may lie elsewhere. Could you please post the code in question? The snippet you included in your...
  7. Thread: Thread example

    by yemir
    Replies
    10
    Views
    8,556

    But sorry, I didn't read your code snippet when I...

    But sorry, I didn't read your code snippet when I wrote the reply above. The code seems to have a number of problems, and I'm not sure how it relates to your question. You'll need to clarify.
    ...
  8. Thread: Thread example

    by yemir
    Replies
    10
    Views
    8,556

    Python for Series 60 only allows you to access an...

    Python for Series 60 only allows you to access an open file from the thread in which you opened it. Could you perhaps open the file in the worker thread?

    For logging to a file from several...
  9. Replies
    1
    Views
    5,304

    The lambda closes over the variable i, which is...

    The lambda closes over the variable i, which is assigned the values 0, 1, 2, 3 and then 4 successively by the for-loop. It turns out that all of your callbacks executed after i already had the value...
  10. Replies
    4
    Views
    6,080

    checking free disk space

    There is a function for checking the free disk space buried in the PDIS code. Here's how to use it. -Ken Rimey

    # The following requires aosocket-series60_v20.sis from the PDIS
    # distribution. ...
Results 1 to 10 of 10