[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I was building it just the way python2.x is being built, should I try it without cxx-main? But, does it solve the actual problem? -- ___ Python tracker ___

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Security issues are for example buffer overflows that can be used to cause rights escalation or system corruption. They’re typically discovered by third parties who publish notices like CVE or DSA. What your patch is addressing is a behavior bug, not a securit

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: The regression tests do not work anymore in test_sqlite with the patch, I will check more in details why... sorry. -- ___ Python tracker

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: No, I made a mistake in my build, test_sqlite runs actually fine before and after the patch. -- ___ Python tracker ___ __

[issue1466065] base64 module ignores non-alphabet characters

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Here is an updated patch that addresses the concerns I noted. I modified the tests: given that I've changed the code to raise binascii.Error as discussed, we don't really care from an API point of view what the error text is, just that the error is raised i

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-08 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Uploading a new release of one of my libraries to PYPI I got this error: """ Submitting dist/bsddb3-5.1.1.tar.gz to http://pypi.python.org/pypi Upload failed (400): A file named "bsddb3-5.1.1.tar.gz" already exists for bsddb3-5.1.1. To fix problems with th

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
Typo added the comment: Ah I see. I didn't know that the editor window was part of Idle. Sorry for the confusion. I am also receiving this problem in Python 2.5.1. -- ___ Python tracker _

[issue10368] "python setup.py sdist upload --show-response" fails

2010-11-08 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Uploading a new module/update to PYPI, when requesting "--show_response" in the command line, will fail: """ Traceback (most recent call last): File "setup.py", line 5, in import setup2 File "/home/pybsddb/setup2.py", line 415, in 'Programming

[issue10331] test_gdb failure when warnings printed out

2010-11-08 Thread Dave Malcolm
Dave Malcolm added the comment: Closing "won't fix", since this was misconfiguration; filtering out such warnings might mask a security issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue10299] Add index with links section for built-in functions

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Using cell spanning breaks “make latex” (and thus PDF), you may want to rework the reST table markup. -- ___ Python tracker ___ _

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you paste your message and exact Python version on #9199? -- nosy: +eric.araujo resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> distutils upload command crashes when dis

[issue9199] distutils upload command crashes when displaying server response

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Reopening because of #10367. -- nosy: +jcea resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open ___ Python tracker

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I take that as a yes, IDLE edit window. 2.5 is beyond fixing at this point, but that is useful data. I will look out for this problem when I load Python on Win7. -- components: +IDLE versions: +Python 2.7, Python 3.2 _

[issue10363] Embedded python, handle (memory) leak

2010-11-08 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: It should certainly work around the problem you are reporting. -- ___ Python tracker ___ ___ Pytho

[issue10368] "python setup.py sdist upload --show-response" fails

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment" type: crash -> beh

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: You may be correct, (since I have not tested it), but isn't the error that gcc complains about, an issue? a minor one I am sure. I have gotten around it by just updating the file. Correct me if I am wrong here please, --with-cxx_main is not a supported op

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-11-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This makes some sense (I think ;). Include files are going to be tied specifically to the Python version but Python 3 packages are (with the addition of PEPs 3147 and 3149) sharable between Python 3 versions. The plan IIUC is to backport those PEPs to Pyth

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I wasn't really discussing (yet) whether this is a bug. I was just trying to find out what specifically made you use this configure option. The need for it should have gone away ten years ago or so. -- ___ Python

[issue5131] pprint doesn't know how to print a defaultdict

2010-11-08 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel : -- nosy: +rbp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I understand, Ill run it without cxx_main option tonight. -- ___ Python tracker ___ ___ Python-b

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Fergal Daly
Fergal Daly added the comment: Even if the glossary pointed to collections.html, there are far more methods specified there than are needed to be **able. The code just calls into the same code as dict.update(dict) (although .update can also work on a sequence of twouples). dict.update's doc s

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: > Fatal Python error: Py_Initialize: Unable to get the locale encoding > SystemError: NULL result without error in PyObject_Call Gotcha! r86341 fixes PyUnicode_EncodeFS(): raise an error if _Py_char2wchar_() fails. The real problem is that PREFIX is not decod

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Even if the glossary pointed to collections.html, > there are far more methods specified there than > are needed to be **able. That is an implementation detail and is subject to change. If someone supplies an argument satisfying collections.Mapping, tha

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Sorry: gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o libpython3.2dmu.a -lpthread -ldl -lutil -lm Fatal Python error: Py_Initialize: Unable to get the locale encoding SystemError: NULL result without error in PyObject_Call Aborted make: *

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: I should have worn my Stupid Hat today, because I’ve made stupid commits and emails. I hadn’t updated my checkout when I made my test. The bad news is that I still have a bug after svn up: gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o lib

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg120820 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9199] distutils upload command crashes when displaying server response

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Éric, I see this in Python 2.7, standard release. Your fix in SVN seems OK, but I am not sure that using "\n" be very platform agnostic. -- ___ Python tracker __

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This is not issue9199, even covering the same line code. In this case the problem is an exception leaving a local variable undefined, crashing later. -- ___ Python tracker

[issue9199] distutils upload command crashes when displaying server response

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This fix doesn't solve issue10367. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread Dan Stromberg
New submission from Dan Stromberg : The tarfile module's gettarinfo callable insists on stat'ing the file in question, preventing one from dynamically generating file content by passing a file-like object for addfile's fileobj argument. I believe the attached patch fixes this issue. I generat

[issue2927] expose html.parser.unescape

2010-11-08 Thread Tom Pinckney
Tom Pinckney added the comment: New patch attached, tested against Python 3.2. This is my first Python patch so apologies if I've done something wrong here. Feedback appreciated! Changes: * fit everything to 80 cols * just made changes to the HTMLParser.unescape function instead of providing

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: > The real problem is that PREFIX is not decoded using _Py_charw2char() ... Fixed by r86345. -- ___ Python tracker ___

[issue10354] tempfile.template is broken

2010-11-08 Thread Eric Smith
Eric Smith added the comment: I sort of agree with David. The global "template" is a bad name and a bad design. And since it doesn't work I don't think anything would be lost by modifying the code to ignore it; document that it's unused and deprecated; and remove it in a future version.

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- type: -> feature request versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pyt

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: Now I get an error in copy_scripts() function of Lib/distutils/command/build_scripts.py: this function adjusts Python shebang of installed Python scripts. The problem is that the shebang contains a non-ASCII character whereas the script is written into the lo

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-08 Thread Brian Warner
New submission from Brian Warner : I noticed that the UnicodeDecodeError exception produced by trying to do open(fn).readlines() (i.e. using the default ASCII encoding) on a file that's actually UTF-8 reports the wrong offset for the first undecodeable character. From what I can tell, it repor

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10335] tokenize.open(): open a file with encoding detected from a coding cookie

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: Commited to Python 3.2 (r86346 + r86347). Thanks for your reviews. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: The error occurs in .readline(): .readline() fills a buffer by reading the file chunk by chunk. Each time a chunk is read, it is decoded by the stateful decoder. The problem is that the decoder doesn't know the file offset. Even if it knew, start and end attr

[issue10371] Deprecate trace module undocumented API

2010-11-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Following python-dev discussion on the issue, I would like to propose trace-deprecations.diff patch for review. I would like to make these changes before turning to issue10342 which will require changing many of these APIs that take a source path to t

[issue10354] tempfile.template is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: It has been documented as deprecated since 2.0. I'm sure the intent was for all mention of it to have been deleted from the 3.x docs already, but that first paragraph was overlooked. -- ___ Python tracker

[issue10354] tempfile.template is broken

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for just deleting it. nothing is lost by deleting code that never worked in the first place ;-) -- nosy: +rhettinger ___ Python tracker __

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This is far more complicated that expected, because I would like to modify "file.seek()" to be able to support these flags too. Analizing "Modules/_io/bufferedio.c:buffered_seek()", the logic is pretty convoluted and the ramifications are extensible. Should

[issue7061] Improve 24.5. turtle doc

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >From IRC (raymondh): in the turtle docs, can you add a quick start guide (like we have in the unittest docs) the turtle docs have grown into a small book and is intimidating to get started with. -- nosy: +rhettinger __

[issue10205] Can't have two tags with the same QName

2010-11-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r86348 for py3k and r86349 for release27-maint. In release31-maint, I see that there are missing features, like support for xml_declaration and default_namespace, which are however available in release27-maint. This is not a desirable scenario and I

[issue3620] test_smtplib is flaky

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Looking back over the logs (via bbreport) I don't see any failures of test_smtplib that match the report in this issue. There were three in the last while, two of which look like network issues on the same machine (and thus probably not a test problem per s

[issue7061] Improve turtle module documentation

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: Improve 24.5. turtle doc -> Improve turtle module documentation ___ Python tracker ___ ___

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Deprecate trace module undocumented API ___ Python tracker ___ ___ Python-bugs-lis

[issue2001] Pydoc interactive browsing enhancement

2010-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: As per python-dev discussion, we'll keep the old server and GUI implementations intact (but deprecated). The -g command line option will start the old implementation, -p and -b will start the new one. The APIs to activate the new implementation will start with

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-08 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: jrodman2, in the socketserver TCPServer code you will find that shutdown_request does a socket.SHUT_WR before calling close_request. If the application or code in your description used shutdown_request, instead of close_request would you still require the kin

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-08 Thread jrodman2
jrodman2 added the comment: shutdown isn't the same as close. I'm not sure that's correct behavior in BaseHTTPServer depending upon whether it wants to keep the door open to weird pipeline behaviors. Honestly, I'm having to read through tcp/ip illustrated because of this, so I'm not really th

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I ran the build "without" cxx_main, I did _not_ see the same error. -- ___ Python tracker ___ __

<    1   2