Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73520 > unrolled thread
| Started by | kenakahn@gmail.com |
|---|---|
| First post | 2014-06-23 13:12 -0700 |
| Last post | 2014-06-24 08:13 +0000 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.python
Adding thread module support to Ubuntu 3 for Python3 kenakahn@gmail.com - 2014-06-23 13:12 -0700
Re: Adding thread module support to Ubuntu 3 for Python3 kenakahn@gmail.com - 2014-06-23 13:34 -0700
Re: Adding thread module support to Ubuntu 3 for Python3 Chris Angelico <rosuav@gmail.com> - 2014-06-24 07:50 +1000
Re: Adding thread module support to Ubuntu 3 for Python3 Larry Hudson <orgnut@yahoo.com> - 2014-06-23 19:40 -0700
Re: Adding thread module support to Ubuntu 3 for Python3 Chris Angelico <rosuav@gmail.com> - 2014-06-24 13:25 +1000
Re: Adding thread module support to Ubuntu 3 for Python3 alister <alister.nospam.ware@ntlworld.com> - 2014-06-24 08:13 +0000
| From | kenakahn@gmail.com |
|---|---|
| Date | 2014-06-23 13:12 -0700 |
| Subject | Adding thread module support to Ubuntu 3 for Python3 |
| Message-ID | <5c703f0b-ca70-48be-94e7-bbacedf854e0@googlegroups.com> |
What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3?
[toc] | [next] | [standalone]
| From | kenakahn@gmail.com |
|---|---|
| Date | 2014-06-23 13:34 -0700 |
| Message-ID | <af534521-d057-4413-84fc-63a593625765@googlegroups.com> |
| In reply to | #73520 |
On Monday, June 23, 2014 4:12:34 PM UTC-4, kena...@gmail.com wrote: > What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? Found it. The import statement changed to "import _thread" for python3.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-06-24 07:50 +1000 |
| Message-ID | <mailman.11205.1403560243.18130.python-list@python.org> |
| In reply to | #73521 |
On Tue, Jun 24, 2014 at 6:34 AM, <kenakahn@gmail.com> wrote: > On Monday, June 23, 2014 4:12:34 PM UTC-4, kena...@gmail.com wrote: >> What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? > > Found it. The import statement changed to "import _thread" for python3. Actually, that should give you a strong hint that you shouldn't be using that module. The leading underscore says that the module is private/internal. The thread module's docstring under Python 2 suggests that you should instead be using "import threading", which works on both versions. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Larry Hudson <orgnut@yahoo.com> |
|---|---|
| Date | 2014-06-23 19:40 -0700 |
| Message-ID | <fPedncHA3ZmFeDXOnZ2dnUVZ_uGdnZ2d@giganews.com> |
| In reply to | #73520 |
On 06/23/2014 01:12 PM, kenakahn@gmail.com wrote:
> What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3?
>
Just curious... Ubuntu 3 -- Are you really running a version that old, or is that a typo?
Current version is 14.04
OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find that very awkward to
use. Just personal opinion, of course, and I know there are others who like it -- that's fine
with me as well. (But I switched to Mint.)
-=- Larry -=-
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-06-24 13:25 +1000 |
| Message-ID | <mailman.11207.1403580340.18130.python-list@python.org> |
| In reply to | #73526 |
On Tue, Jun 24, 2014 at 12:40 PM, Larry Hudson <orgnut@yahoo.com.dmarc.invalid> wrote: > OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find that > very awkward to use. Just personal opinion, of course, and I know there are > others who like it -- that's fine with me as well. (But I switched to > Mint.) Likewise, though with me it was Debian I went to, with Xfce as my desktop. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | alister <alister.nospam.ware@ntlworld.com> |
|---|---|
| Date | 2014-06-24 08:13 +0000 |
| Message-ID | <Hqaqv.508490$hN6.443648@fx22.am4> |
| In reply to | #73526 |
On Mon, 23 Jun 2014 19:40:24 -0700, Larry Hudson wrote: > On 06/23/2014 01:12 PM, kenakahn@gmail.com wrote: >> What package do I need to install to get thread support (import thread) >> for Python 3 running under ubuntu 3? >> >> > Just curious... Ubuntu 3 -- Are you really running a version that old, > or is that a typo? Current version is 14.04 must be a typo, the first release of unbuntu was 4.10 (numbering is Year.Month) > > OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find > that very awkward to use. Just personal opinion, of course, and I know > there are others who like it -- that's fine with me as well. (But I > switched to Mint.) > > -=- Larry -=- -- You possess a mind not merely twisted, but actually sprained.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web