Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Threading KeyError in Python 3.3 beta 2?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Blind Anagram  
View profile  
 More options Aug 13 2012, 6:36 am
Newsgroups: comp.lang.python
From: "Blind Anagram" <non...@nowhere.com>
Date: Mon, 13 Aug 2012 11:36:44 +0100
Local: Mon, Aug 13 2012 6:36 am
Subject: Threading KeyError in Python 3.3 beta 2?
I thought I would try out Python 3.3 beta 2.  

This works well so far but I keep getting the message:

Exception KeyError: KeyError(6308,) in <module 'threading'
    from 'c:\\Program Files\\Python33\\lib\\threading.py'> ignored

after some of my python code completes.  

Is this an issue worth reporting?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Angelico  
View profile  
 More options Aug 13 2012, 7:13 am
Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Mon, 13 Aug 2012 21:13:24 +1000
Local: Mon, Aug 13 2012 7:13 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?

On Mon, Aug 13, 2012 at 8:36 PM, Blind Anagram <non...@nowhere.com> wrote:
> I thought I would try out Python 3.3 beta 2.
> This works well so far but I keep getting the message:

> Exception KeyError: KeyError(6308,) in <module 'threading'    from
> 'c:\\Program Files\\Python33\\lib\\threading.py'> ignored

> after some of my python code completes.
> Is this an issue worth reporting?

It might be, but it depends on what your code is and is doing. Can you
put together a minimal test case?

ChrisA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Blind Anagram  
View profile  
 More options Aug 13 2012, 7:24 am
Newsgroups: comp.lang.python
From: "Blind Anagram" <non...@nowhere.com>
Date: Mon, 13 Aug 2012 12:24:55 +0100
Local: Mon, Aug 13 2012 7:24 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?
"Chris Angelico"  wrote in message

news:mailman.3222.1344856408.4697.python-list@python.org...

On Mon, Aug 13, 2012 at 8:36 PM, Blind Anagram <non...@nowhere.com> wrote:
> I thought I would try out Python 3.3 beta 2.
> This works well so far but I keep getting the message:

> Exception KeyError: KeyError(6308,) in <module 'threading'    from
> 'c:\\Program Files\\Python33\\lib\\threading.py'> ignored

> after some of my python code completes.
> Is this an issue worth reporting?

It might be, but it depends on what your code is and is doing. Can you
put together a minimal test case?

===========
Thank you for your response.

Here is a fairly short bit of code which produces the exception:

for pre in ('12', '13', '14', '15', '21' ):
  n = int(pre + '543')
  s = str(n * n)
  if len(set(s)) == 9:
    print(n, s)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven D'Aprano  
View profile  
 More options Aug 13 2012, 7:38 am
Newsgroups: comp.lang.python
From: Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info>
Date: 13 Aug 2012 11:38:53 GMT
Local: Mon, Aug 13 2012 7:38 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?

On Mon, 13 Aug 2012 12:24:55 +0100, Blind Anagram wrote:
> Here is a fairly short bit of code which produces the exception:

> for pre in ('12', '13', '14', '15', '21' ):
>   n = int(pre + '543')
>   s = str(n * n)
>   if len(set(s)) == 9:
>     print(n, s)

Um, I don't think so.

>>> for pre in ('12', '13', '14', '15', '21' ):

...   n = int(pre + '543')
...   s = str(n * n)
...   if len(set(s)) == 9:
...     print(n, s)
...
12543 157326849

Since your code doesn't even import threading, let alone use it, I can't
imagine how you get an error in threading.

--
Steven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Angelico  
View profile  
 More options Aug 13 2012, 7:39 am
Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Mon, 13 Aug 2012 21:39:13 +1000
Local: Mon, Aug 13 2012 7:39 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?

On Mon, Aug 13, 2012 at 9:24 PM, Blind Anagram <non...@nowhere.com> wrote:

> Here is a fairly short bit of code which produces the exception:

> for pre in ('12', '13', '14', '15', '21' ):
>  n = int(pre + '543')
>  s = str(n * n)
>  if len(set(s)) == 9:
>    print(n, s)

Interesting. I just downloaded a clean 3.3 onto this Windows box,
saved your script to a file ("booom.py" hehe), and ran it - no
exception. Same thing pasting that code into the interactive
interpreter or idle. Did you import anything before running that code?
If not, it may be a site.py problem or something.

ChrisA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Angelico  
View profile  
 More options Aug 13 2012, 7:47 am
Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Mon, 13 Aug 2012 21:47:52 +1000
Local: Mon, Aug 13 2012 7:47 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?
On Mon, Aug 13, 2012 at 9:38 PM, Steven D'Aprano

<steve+comp.lang.pyt...@pearwood.info> wrote:
> Since your code doesn't even import threading, let alone use it, I can't
> imagine how you get an error in threading.

Hey, I try not to get scornful until at least the sixth post :)

ChrisA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Blind Anagram  
View profile  
 More options Aug 13 2012, 7:51 am
Newsgroups: comp.lang.python
From: "Blind Anagram" <non...@nowhere.com>
Date: Mon, 13 Aug 2012 12:51:10 +0100
Local: Mon, Aug 13 2012 7:51 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?
"Chris Angelico"  wrote in message

news:mailman.3223.1344857956.4697.python-list@python.org...

On Mon, Aug 13, 2012 at 9:24 PM, Blind Anagram <non...@nowhere.com> wrote:

> Here is a fairly short bit of code which produces the exception:

> for pre in ('12', '13', '14', '15', '21' ):
>  n = int(pre + '543')
>  s = str(n * n)
>  if len(set(s)) == 9:
>    print(n, s)

Interesting. I just downloaded a clean 3.3 onto this Windows box,
saved your script to a file ("booom.py" hehe), and ran it - no
exception. Same thing pasting that code into the interactive
interpreter or idle. Did you import anything before running that code?
If not, it may be a site.py problem or something.

===============
Thanks to you both for your responses.

Its an IDE issue of some kind (I am using WING).

When I run under a command prompt (or IDLE) all is well.

Sorry to have bothered you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Angelico  
View profile  
 More options Aug 13 2012, 7:59 am
Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Mon, 13 Aug 2012 21:59:19 +1000
Local: Mon, Aug 13 2012 7:59 am
Subject: Re: Threading KeyError in Python 3.3 beta 2?

On Mon, Aug 13, 2012 at 9:51 PM, Blind Anagram <non...@nowhere.com> wrote:
> Thanks to you both for your responses.

> Its an IDE issue of some kind (I am using WING).

> When I run under a command prompt (or IDLE) all is well.

Next time, do mention that sort of environmental consideration in the
original post :)

As a general rule, be careful of threading and windowing toolkits;
quite a few of them have restrictions on what you can and can't do, or
even completely do not support threads.

ChrisA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »