[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.py

[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 asso

[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 wo

[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. T

[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

[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

[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 @@ tr

[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

[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() == """

[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, wh

[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 Pyt

[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 Unsu

[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

[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 _

[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

[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 ___

[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.o

[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.o

[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.o

[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.o

[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.o

[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.o

[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/

[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

[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 sh

[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 ___ _

[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.pyt

[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 o

[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 _

[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 ___ __

[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-lis

[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

[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 lis

[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 U

[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 ___

[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: ->

[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

[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 ___

[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

[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

[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

[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. -- ___

[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://bu

[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 y

[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. Effec

[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 __