~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

Viewing changes to Modules/threadmodule.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 17:53:26 UTC
  • mfrom: (39025.1.14 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080921175326-92vaej2hc3yuecxb
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
                }
294
294
                
295
295
        }
296
 
        else if (self->dict != ldict) {
 
296
 
 
297
        /* The call to tp_init above may have caused another thread to run.
 
298
           Install our ldict again. */
 
299
        if (self->dict != ldict) {
297
300
                Py_CLEAR(self->dict);
298
301
                Py_INCREF(ldict);
299
302
                self->dict = ldict;