[issue1596321] KeyError at exit after 'import threading' in other thread

2010-03-29 Thread Torsten Bronger

Changes by Torsten Bronger :


--
nosy: +bronger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8258] Multiple Python Interpreter Memory Leak

2010-03-29 Thread William

New submission from William :

Context:
I am embedding Python into a Windows based C++ application, where a new Python 
interpreter (using Py_NewInterpreter) is created for each user who connects to 
the system. When the user logs off, the function "Py_EndInterpreter" is used to 
free all the associated resources.

Problem:
After starting the application on a server, the memory usage increases rapidly 
as some users login and log-off from the system.

Some Tests:
I have conducted some tests along with the Python interpreter. I have written a 
simple C++ program which simply creates 100 Python interpreters and then ends 
them one by one. If we check the Windows Task Manager, the following are the 
observations:-

Memory usage before starting to create the Python Interpreters: 4316K
Memory usage after creating 100 Python Interpreters: 61248K
Memory usage after ending the 100 Python Interpreters: 47664K

This shows that there has been a memory leak of approximately 43348K

Please do consider this problem for fixing at the earliest or let me know if I 
am doing something wrong.

--
components: Interpreter Core, Windows
files: PythonCall.cpp
messages: 101885
nosy: ewillie007
severity: normal
status: open
title: Multiple Python Interpreter Memory Leak
type: resource usage
versions: Python 2.6
Added file: http://bugs.python.org/file16687/PythonCall.cpp

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8256] TypeError: bad argument type for built-in operation

2010-03-29 Thread Filip Gruszczyński

Filip Gruszczyński  added the comment:

The problem occurs in line in bltinmodule.c:

po = PyUnicode_AsEncodedString(stringpo,
_PyUnicode_AsString(stdout_encoding), NULL);

Where _PyUnicode_AsString returns NULL, since stdout_encoding is Py_None and 
that won't pass PyUnicode_Check in _PyUnicode_AsStringAndSize. To what object 
can _PyUnicode_AsString be turned and then passed to 
_PyUnicode_AsStringAndSize? Is there some default 'utf-8' encoding object?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8259] left shift operator doesn't accepts long as second argument

2010-03-29 Thread owirj

New submission from owirj :

python -V:
Python 2.6.5

Executing on 32-bit machine.

>From documentation ( http://docs.python.org/reference/expressions.html ), 
>"5.7. Shifting operations":
"These operators accept plain or long integers as arguments. The arguments are 
converted to a common type. They shift the first argument to the left or right 
by the number of bits given by the second argument."

In interpreter:
>>> x = 2677691728509L << 2147483648L
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: long int too large to convert to int

hint: 2147483648 = (1 << 31)

First argument is long, second is long too, so expected behavior was normal 
execution. But as seen from the code above interpreter gives overflow error. 
Looks like he tries to convert second argument to int type, because this code 
works gracefully:
>>> x = 2677691728509L << 2147483647L

--
components: None
messages: 101887
nosy: owirj
severity: normal
status: open
title: left shift operator doesn't accepts long as second argument
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8256] TypeError: bad argument type for built-in operation

2010-03-29 Thread R. David Murray

R. David Murray  added the comment:

Whatever the solution to this issue is, it certainly looks like a bug that the 
return value of that function isn't being checked for errors.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8259] left shift operator doesn't accepts long as second argument

2010-03-29 Thread R. David Murray

R. David Murray  added the comment:

This appears to be working as designed, and so is probably a doc issue.  Python 
3, which only has one integer type, has the same behavior:

>>> x = 2677691728509 << 2147483648
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: Python int too large to convert to C long

Adding Mark Dickinson as nosy to get his opinion on whether this is a doc bug 
or a feature request :)

--
components: +Interpreter Core -None
nosy: +mark.dickinson, r.david.murray
priority:  -> normal
stage:  -> test needed
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1596321] KeyError at exit after 'import threading' in other thread

2010-03-29 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I think the fix to Christian's issue is just:

Index: Lib/threading.py
===
--- Lib/threading.py(révision 79470)
+++ Lib/threading.py(copie de travail)
@@ -579,7 +579,7 @@
 try:
 # We don't call self.__delete() because it also
 # grabs _active_limbo_lock.
-del _active[_get_ident()]
+del _active[self.__ident]
 except:
 pass
 
@@ -615,7 +615,7 @@
 
 try:
 with _active_limbo_lock:
-del _active[_get_ident()]
+del _active[self.__ident]
 # There must not be any python code between the previous line
 # and after the lock is released.  Otherwise a tracing function
 # could try to acquire the lock again in the same thread, (in


Now we just need to add a test for it in test_threading.
And, yes, Amaury's test case looks like a different issue.

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8259] left shift operator doesn't accepts long as second argument

2010-03-29 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I get another error on a 64-bit build:

>>> x = 2677691728509L << 2147483648L
Traceback (most recent call last):
  File "", line 1, in 
ValueError: outrageous left shift count

(yes, Python is outraged by such a large amount of left shifting)

The reason you get an OverflowError in 32-bit mode is that 2**31 is too large 
to be represented as a (signed) C long, rather than unsigned.

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2010-03-29 Thread harobed

New submission from harobed :

This is an example, last assert return an error :

f = open('data.txt', 'w')
f.write("""line 1
line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
line 11
""")
f.close()


f = open('data.txt', 'r')
assert f.readline() == 'line 1\n'

assert f.read() == """line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
line 11
"""

f.close()

import codecs

f = codecs.open('data.txt', 'r', 'utf8')

assert f.read() == """line 1
line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
line 11
"""

f.close()

f = codecs.open('data.txt', 'r', 'utf8')

assert f.readline() == 'line 1\n'

# this assert return a ERROR
assert f.read() == """line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
line 11
"""

f.close()

Regards,
Stephane

--
components: Library (Lib)
messages: 101892
nosy: harobed
severity: normal
status: open
title: When I use codecs.open(...) and f.readline() follow up by f.read() 
return bad result
type: behavior
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8259] left shift operator doesn't accepts long as second argument

2010-03-29 Thread owirj

owirj  added the comment:

Antoine Pitrou:
The reason you get an OverflowError in 32-bit mode is that 2**31 is too large 
to be represented as a (signed) C long, rather than unsigned.

I understand that, but after reading documentation, was expecting it to convert 
second argument to long type, which is not concerned with architecture 
dependant implementation of int.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8261] License link for Python 2.6.5 release is broken

2010-03-29 Thread Jason Mobarak

New submission from Jason Mobarak :

The 'Python License' link at

http://www.python.org/download/releases/2.6.5/

results in a 404.

--
assignee: georg.brandl
components: Documentation
messages: 101894
nosy: georg.brandl, silverjam
severity: normal
status: open
title: License link for Python 2.6.5 release is broken
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] typo currect

2010-03-29 Thread Éric Araujo

Éric Araujo  added the comment:

s/framewors/frameworks/g

--
nosy: +merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Éric Araujo

Éric Araujo  added the comment:

The rest of the patch seems good to me. Note that “the majority of users is” is 
as correct as “the majority of users are”, choosing one is a matter of 
preference.

--
title: typo currect -> Fix typos and phrasing in the Web servers howto

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread R. David Murray

R. David Murray  added the comment:

'is' may be technically correct, however it will sound wrong to a native 
speaker's ear, at least in America.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1785] "inspect" gets broken by some descriptors

2010-03-29 Thread John Trammell

Changes by John Trammell :


--
nosy: +jotr

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8257] Decimal constructor to accept float

2010-03-29 Thread Éric Araujo

Éric Araujo  added the comment:

Will Decimal.from_float be deprecated and eventually removed?

Could you provide a link to said discussion thread for us outsiders? :)

Regards

--
nosy: +merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8190] Add a PyPI XML-RPC client module

2010-03-29 Thread Zubin Mithra

Changes by Zubin Mithra :


--
nosy: +zubin71

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8250] Implement pkgutil APIs as described in PEP 376

2010-03-29 Thread Zubin Mithra

Changes by Zubin Mithra :


--
nosy: +zubin71

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8252] add a metadata section in setup.cfg

2010-03-29 Thread Zubin Mithra

Changes by Zubin Mithra :


--
nosy: +zubin71

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8253] add a resource+files section in setup.cfg

2010-03-29 Thread Zubin Mithra

Changes by Zubin Mithra :


--
nosy: +zubin71

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8254] write a configure command

2010-03-29 Thread Zubin Mithra

Changes by Zubin Mithra :


--
nosy: +zubin71

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8255] step-by-step tutorial

2010-03-29 Thread Zubin Mithra

Changes by Zubin Mithra :


--
nosy: +zubin71

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8257] Decimal constructor to accept float

2010-03-29 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Éric, there is no place to deprecate Decimal.from_float().  It will be 
redundant but there is no need to break working code.  Also, it has the nice 
property of being explicit about what it is doing.


Link to my proposal:
  http://mail.python.org/pipermail/python-dev/2010-March/098699.html

Guido's "If you really want this I won't stop you":
  http://mail.python.org/pipermail/python-dev/2010-March/098701.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8256] TypeError: bad argument type for built-in operation

2010-03-29 Thread Filip Gruszczyński

Filip Gruszczyński  added the comment:

I have written a small patch, that solves the problem, but is disgusting. Could 
anyone tell me, how I can get some default encoding from Python internals (I 
have no idea where to look) and return it inside _PyUnicode_AsStringAndSize? 
Anyway, now when the error happens inside input, it raises an Exception 
properly. So now I only need to know, how to correct the bug in an elegant 
fashion.

--
keywords: +patch
Added file: http://bugs.python.org/file16688/8256_1.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-29 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

merged into py3k in r79333 and release31-maint revision 79490.
This specific issue can be closed.
But yes, I agree with issue 8158, there is a lot in OptParse Module 
documentation that could be improved and be made more helpful. If I have any 
thing more, I shall add it as part of issue 8158.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-29 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

merged into release26-maint as r79492. This issue can be closed.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8158] documentation of 'optparse' module incomplete

2010-03-29 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
nosy: +orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

It seems that a lot of non-native speakers (of English) are participating in 
this thread. By nature, this is something that native speakers should resolve. 
Unless I'm mistaken (and Ezio actually *does* speak English as a first 
language), I propose that one of the native speakers provide a patch (perhaps 
based on Ezio's patch), and that all non-native speakers abstain from 
commenting on what they believe is English grammar.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8256] TypeError: bad argument type for built-in operation

2010-03-29 Thread Filip Gruszczyński

Filip Gruszczyński  added the comment:

Ok, I have found Py_FileDefaultSystemEncoding and use it, however I had to cast 
it to (char *), because it's a const char *. Maybe I could do it better?

--
Added file: http://bugs.python.org/file16689/8256_2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8257] Decimal constructor to accept float

2010-03-29 Thread Éric Araujo

Éric Araujo  added the comment:

(Assuming “no place” means “no reason”) Apart from TOOTDI, there is 
indeed none.

Regards

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8203] IDLE about dialog credits raises UnicodeDecodeError

2010-03-29 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

idlelib_textView_encoding.patch fixes the problem.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2521] ABC caches should use weak refs

2010-03-29 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

Now that WeakSet has been backported to trunk, I've backported the fix for this 
reference-leak (patch with test case attached).

However, after making the patch, I discovered that old-style classes are not 
weak-referenceable.  Consequently, the patch is not suitable for commiting.  

If old-style classes can be made weak-referenceable, then the patch should 
work.  If not, then this bug is essentially impossible to solve in 2.x unless 
the ABC cache is done away with entirely.

Other notes:

Since abc.py is imported during bootstrapping before paths are set up, I needed 
to add _weakref as a built-in module.  (It's already a built-in module in the 
py3k branch.)

Since the patch tweaks Modules/Setup.dist, you need to "make distclean" and 
rerun ./configure after applying the patch.

Also, on unpatched trunk the example posted by Amaury no longer seems to 
trigger the issue.  However, the example I posted in Issue 8022 still triggers 
the leak.  I used that as the basis for the test case in the patch.

--
keywords: +patch
nosy: +stutzbach
Added file: http://bugs.python.org/file16690/abc_leak.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8193] test_zlib fails with zlib 1.2.4

2010-03-29 Thread Valerio

Valerio  added the comment:

I can pick up this bug.

--
nosy: +valerio.turturici

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8193] test_zlib fails with zlib 1.2.4

2010-03-29 Thread Valerio

Valerio  added the comment:

I confirm that the bug still exists on trunk.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8193] test_zlib fails with zlib 1.2.4

2010-03-29 Thread Valerio

Valerio  added the comment:

This is my first patch, i apologize if i make some mistakes.

--
Added file: http://bugs.python.org/file16691/8193.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8193] test_zlib fails with zlib 1.2.4

2010-03-29 Thread R. David Murray

R. David Murray  added the comment:

I imagine the problem exists in 3.x as well (unless someone proves otherwise), 
so I'm adjusting the versions to the places it can be fixed.

Does the patched test still work with the older zlib?

--
nosy: +r.david.murray
priority:  -> normal
stage:  -> patch review
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Brian Curtin

Brian Curtin  added the comment:

I went through and made a lot of grammar corrections and rewording throughout 
the file. See attached patch.

I have no idea if this doc is technically correct. I only made grammar changes 
since I'm not a big web developer, but it could probably use a look from 
someone who is pretty knowledgeable on the topic.

--
nosy: +brian.curtin
Added file: http://bugs.python.org/file16692/issue8218_v2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Éric Araujo

Éric Araujo  added the comment:

I noticed that “a user” is “he” in the current text; gender-neutral 
language may be more in conformity with the recent diversity statement.

Regards

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Brian Curtin

Changes by Brian Curtin :


Removed file: http://bugs.python.org/file16692/issue8218_v2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Brian Curtin

Brian Curtin  added the comment:

My first patch removed a lot of the he/him/his wording, but now that you 
mentioned it found another one. Updated the patch.

--
Added file: http://bugs.python.org/file16693/issue8218_v3.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8236] ./configure: ImportError: No module named asdl (when run from buildout's python)

2010-03-29 Thread R. David Murray

R. David Murray  added the comment:

Python is used to build python.  Theoretically you should be able to avoid that 
rebuild. cf the following thread:

http://mail.python.org/pipermail/python-dev/2006-April/063511.html

and the referenced issue 1465408.  asdl_c.py is going to be importing asdl.py 
from the same directory it is run from (it is run as a script).  So the 
question is, why is your buildout python failing to support that import?

--
priority: high -> normal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8236] ./configure: ImportError: No module named asdl (when run from buildout's python)

2010-03-29 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

> why is your buildout python failing to support that import?

I believe it is because "" (current directory) is not in sys.path for buildout 
python. Buildout explicitly sets sys.path. Perhaps that's why.

Feel free to close this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8218] Fix typos and phrasing in the Web servers howto

2010-03-29 Thread Aditya Bhargava

Aditya Bhargava  added the comment:

Another patch. This contains all the patches from Brian Curtin's 
issue8218_v3.diff patch along with more edits, including
an -> in
teh -> the
wordspushedtogether spaced out
unnecessary _a_ words _is_ taken out

--
nosy: +abhargava
Added file: http://bugs.python.org/file16694/issue8218_v4.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8262] bad wording in error message attempting to start a Thread twice

2010-03-29 Thread Gabriel Genellina

New submission from Gabriel Genellina :

Steve Holden, in , 
about the RuntimeError you get when  a Thread object is started twice:

«"thread already started" implies that the thread is running, but you
actually get the same message if you try to start any terminated thread
(including a canceled one), so "threads cannot be restarted" might be a
better message. Or, better still, "Threads can only be started once".»

This patch fixes the wording as suggested.

--
components: Library (Lib)
files: threading.diff
keywords: patch
messages: 101918
nosy: gagenellina
severity: normal
status: open
title: bad wording in error message attempting to start a Thread twice
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file16695/threading.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3326] py3k shouldn't use -fno-strict-aliasing anymore

2010-03-29 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

Attached is a patch for configure.in and configure that implements Benjamin's 
suggestion.  The patch sets things up to continue to use -fno-strict-aliasing 
on gcc versions that support -fno-strict-aliasing *and* generate spurious 
warnings without it.  Effectively, that means it adds -fno-strict-aliasing for 
gcc versions < 4.3.

I tested it with gcc-3.4.4 and gcc-4.3.2.  It added -fno-strict-aliasing with 
gcc-3.4.4 and did not with gcc-4.3.2, as desired.  

With the gcc-4.3.2 build, I did a "make test" and no tests failed.  

I also found that pybench ran around 1% faster with the patch.

--
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file16696/strict-aliasing.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8236] ./configure: ImportError: No module named asdl (when run from buildout's python)

2010-03-29 Thread R. David Murray

R. David Murray  added the comment:

That sounds like the likely explanation.

--
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com