[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Ned Deily
Ned Deily added the comment: Can we be sure it's harmless? A quick Google search turned up at least one package that depends on Tkinter.__version__ (granted, for Python 2). http://permalink.gmane.org/gmane.comp.python.matplotlib.general/24453 -- nosy: +ned.deily

[issue9858] Python and C implementations of io are out of sync

2011-06-01 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Mark Hammond
Mark Hammond added the comment: (OTOH though, I could tweak the patch to work in a built tree - it would mean appending "PCBuild" to the dir and retrying the DLL load if the other options fail...) -- ___ Python tracker

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, it's harmless, though. I've removed it for 3.3. -- priority: release blocker -> normal resolution: -> out of date status: open -> closed ___ Python tracker __

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-06-01 Thread Federico Schwindt
Federico Schwindt added the comment: Adding to this, the kqueue code (and test) heavily depends on the size of these members. kqueue_event_richcompare() uses a Py_intptr_t to store the result of substracting T_UINTs which is obviusly wrong on platforms where Py_intptr and T_UINTs are not the

[issue11798] Test cases not garbage collected after run

2011-06-01 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Sure, will try to get a patch for next week... -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Mark Hammond
Mark Hammond added the comment: Adding tests would be fairly painful - there is no test infrastructure in place for generating and running installers at all, and worse, the changes are likely to not work correctly when run from a Python "build" tree when the built DLL is not installed into Sy

[issue12196] add pipe2() to the os module

2011-06-01 Thread STINNER Victor
STINNER Victor added the comment: Your last support_linux_version.diff patch looks good. If you are motivated, this new function can also be added to test.support of Python 3.2 (test_socket.py has the original linux_version() function). -- ___ Pyth

[issue12196] add pipe2() to the os module

2011-06-01 Thread Charles-François Natali
Charles-François Natali added the comment: > requires_linux_version() should also be a decorator. Patch attached. -- Added file: http://bugs.python.org/file22219/support_linux_version.diff ___ Python tracker ___

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Ezio Melotti
Ezio Melotti added the comment: I think the only way to find it out is to try it and see. In the worst case, sphinx will give an error while building the doc, if we are lucky it will just pick one of the two (or even better the one defined with the function directive while using :func:`` and t

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Ned Deily
Changes by Ned Deily : -- nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker versions: +Python 3.1, Python 3.2 ___ Python tracker ___

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Jonas H.
Jonas H. added the comment: > Jonas, I owe you an apology [...] Thanks Éric, I got a bit worried about getting on your nerves... Based on Ezio's idea: What happens if we have both a ".. function:: foo" and ".. class:: foo" -- where do :func:`foo` and :class:`foo` link to (internally and usin

[issue5043] get_msvcr() returns None rather than []

2011-06-01 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-01 Thread Brian Curtin
Brian Curtin added the comment: I have this working when you stat the symlink from the directory it was created or above...but oddly it does not work when you open a symlink below the directory it exists in. DeviceIoControl isn't used for reparse tag handling anymore, and I'm using GetFinalP

[issue3014] file_dealloc() assumes errno is set when EOF is returned

2011-06-01 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-06-01 Thread Aldona Majorek
Aldona Majorek added the comment: Adding __exit__ will not make asyncore.file_wrapper close file descriptor when garbage collected. Here is clone of socket.py solution for the same problem. def close(self): if self.fd: os.close(self.fd) self.fd = None # or maybe self.fd = 0

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-01 Thread R. David Murray
R. David Murray added the comment: Well, IIUC the Setup lines indicate where to find the system version of the libraries (otherwise the included zlib is used). So I'm not at all sure that there is a bug here. If you change Setup, you need to change it correctly for your intended installatio

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Julian Taylor
New submission from Julian Taylor : ./Lib/lib-tk/Tkinter.py:33 has this svn keyword substitution: __version__ = "$Revision$" Due to the change to hg this field is not substituted and makes __version__ quite pointless. This affects the python 2.7.2rc1. -- components: Tkinter messages:

[issue12196] add pipe2() to the os module

2011-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4124d1f75b93 by Charles-François Natali in branch 'default': Issue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3" http://hg.python.org/cpython/rev/4124d1f75b93 -- ___ Python tracker

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: Hi, thanks for the report and patch. I think the code should not find byte-compiled files if sys.dont_write_bytecode is true, and it should not find pyo files when sys.flags.optimize has a certain value (I don’t remember if it’s 1 or 2). It also requires tests

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: > I was just asking given the "unusual" situation 2.7 is (i.e. a very > long support series) Support means bug fixes. Long-term means that the bugfix period (before going into security mode) is extended, not that it can get new features: that’s exclusively for 3

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-06-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12235] subprocess throws wrong exception if script can't be executed

2011-06-01 Thread Cal Leeming
Cal Leeming added the comment: Ah okay, shell=True is a good work around then :) Thanks! Cal -- ___ Python tracker ___ ___ Python-b

[issue12235] subprocess throws wrong exception if script can't be executed

2011-06-01 Thread R. David Murray
R. David Murray added the comment: Ah, I see. Agreed with the closing, then. Cal: one way to debug this kind of thing is to try the same command with shell=True. Then the shell will generate its special error message. Changing the title back to something that might be recognizable to others

[issue11416] netrc module does not handle multiple entries for a single host

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: Looks good, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: I cannot review the patch (I don’t know C), but I will trust you. Could you add a test to prevent regressions? -- versions: -Python 3.4 ___ Python tracker

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: Agreed. I experimented with tuple and tuple.count and it turns out that it’s not easily solved: the count method is documented in the table describing all sequences methods, which should not be duplicated IMO; I tried adding a .. method:: tuple.append directive

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW using the class directive also adds a 'class' before the name, and I -1 about having int()/float()/etc. prepended by 'class' in the functions.rst page. What happens if we leave ".. function::" there and use ".. class::" in another page where all the methods

[issue12235] subprocess loses stderr information when _execute_child fails

2011-06-01 Thread Charles-François Natali
Charles-François Natali added the comment: > I think it should at least include "bad interpreter", otherwise it is a tad > misleading. It just forwards the error raised by the exec system call: $ cat foo.sh #! /bin/foo $ strace ./foo.sh execve("./foo.sh", ["./foo.sh"], [/* 38 vars */]) = -1

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: Jonas, I owe you an apology: when I abruptly asked “Could you make an effort to accept” etc., I had misread your message and thought you were asking to change the roles, but you were speaking of directives, so my comment was out of line. Sorry. -- ___

[issue12235] subprocess loses stderr information when _execute_child fails

2011-06-01 Thread R. David Murray
R. David Murray added the comment: Subprocess is throwing the correct exception, what it isn't doing is preserving stderr. The stderr output in question is not coming from the *subprocess* (the process hasn't been created yet). It would be nice if that stderr output could be added to the ex

[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Cal Leeming
Cal Leeming added the comment: Yeah, I resolved the issue already. This bug report is focused primarily on the (somewhat misleading) exception message given back. I think it should at least include "bad interpreter", otherwise it is a tad misleading. Cal -- __

[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Charles-François Natali
Charles-François Natali added the comment: Python is not raising this error, your OS is. It doesn't find the interpreter, and if you look carefully, it's clear why: bash: ***/src/webapp/tools/grab.sh: /bin/sh^M: bad interpreter: No such file or directory See the ^M after /bin/sh? It's looks l

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Cal Leeming
Cal Leeming added the comment: Oh also, here is the version: simplicitymedialtd@sws01.internal [~/webapps/cdn06.prod/src/webapp/cmd] > python Python 2.7 Stackless 3.1b3 060516 (release27-maint, Aug 29 2010, 15:44:48) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for

[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Cal Leeming
New submission from Cal Leeming : If you attempt to call subprocess.check_output() on a file which is not executable, it gives a "file not found" exception, rather than "file not executable". Took me about 3 hours to figure out why it kept saying the file didn't exist, when it clearly did :|

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: On Wed, Jun 1, 2011 at 5:17 PM, Fred Drake wrote: > On Wed, Jun 1, 2011 at 11:14 AM, anatoly techtonik > wrote: >> Adding catalog-sig to CC. I can guarantee this for Windows. I'll be >> near Linux box tomorrow and will try upload to PyPI from there. It >> still

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: On Wed, Jun 1, 2011 at 11:14 AM, anatoly techtonik wrote: > Adding catalog-sig to CC. I can guarantee this for Windows. I'll be > near Linux box tomorrow and will try upload to PyPI from there. It > still will be more authoritative if more than one person c

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread anatoly techtonik
anatoly techtonik added the comment: On Wed, Jun 1, 2011 at 2:06 PM, Barry A. Warsaw wrote: > > Barry A. Warsaw added the comment: > > Given that 2.6.7 is rc2 with a final release scheduled in 2 days, I don't > want to apply this to 2.6 right now.  Can you guarantee this won't regress > for

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread anatoly techtonik
anatoly techtonik added the comment: On Wed, Jun 1, 2011 at 10:30 AM, Stefan Krah wrote: > >> Distutils doesn't validate PyPI server certificate, so this change >> doesn't prevent from MITM attacks, but at least it makes package >> submissions over wireless channels and public networks safer. >

[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-06-01 Thread Dan Stromberg
Dan Stromberg added the comment: Yes, I just needed to use 'w|' instead of 'w'. Thanks! -- resolution: -> works for me status: open -> closed ___ Python tracker ___ __

[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-06-01 Thread R. David Murray
R. David Murray added the comment: +1 to what Ezio said, though I'd rather have this than not have the functionality at all :) -- nosy: +r.david.murray ___ Python tracker ___ _

[issue12234] unittest2 could enable regex debugging for more information

2011-06-01 Thread Domen Kožar
New submission from Domen Kožar : When using self.assertRegexpMatches, it would be useful to see where did the matching stop. Maybe using re module debugging flag? -- components: Library (Lib) messages: 137432 nosy: iElectric priority: normal severity: normal status: open title: unittes

Re: [issue12225] current tip doesn't build without mercurial installed

2011-06-01 Thread Ned Deily
In article , Roundup Robot wrote: > Roundup Robot added the comment: > > New changeset 435eec7b41f0 by Ralf Schmitt in branch 'default': > disable ASDLGEN if hg won't work, or if python is not installed. > http://hg.python.org/cpython/rev/435eec7b41f0 > > -- > nosy: +python-dev > reso

[issue12196] add pipe2() to the os module

2011-06-01 Thread STINNER Victor
STINNER Victor added the comment: > support_linux_version.diff: cool, it's even better than the previous patch. > You can commit it, except if you are motived for a last change: display > the write also version in the SkipTest message (as it is done actually). I just added a very similar functi

[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 22457ac2c2df by Victor Stinner in branch '3.2': Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file http://hg.python.org/cpython/rev/22457ac2c2df New changeset 566c42b0e750 by Victor Stinner in branch 'default': (Merge 3.2) Cl

[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-06-01 Thread Ezio Melotti
Ezio Melotti added the comment: IMHO it would be better to tweak regrtest so that it understand test_file.TestClass.test_method, possibly supporting wildcards. E.g.: - ./python -m test test_subprocess.POSIXProcessTestCase - ./python -m test test_subprocess.POSIXProcessTestCase.test_pass_fds

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Given that 2.6.7 is rc2 with a final release scheduled in 2 days, I don't want to apply this to 2.6 right now. Can you guarantee this won't regress for anybody? If so, then I'm also +0 for 2.6 after the 2.6.7 release. -- __

[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread STINNER Victor
STINNER Victor added the comment: The leaking file descriptor is a the read end of a pipe created in the test (the test creates 5 pipes, 10 file descriptors). On creation (in the parent process), this file descriptor has the mode : st_mode=4528. In the child process, the file descriptor has t

[issue12225] current tip doesn't build without mercurial installed

2011-06-01 Thread Ralf Schmitt
Ralf Schmitt added the comment: Roumen Petrov writes: > Roumen Petrov added the comment: > > Check for python executable is not complete . What about if system has > only version 3+ installed ? The shebang in Parser/asdl_c.py reads '#! /usr/bin/env python'. That is what the makefile is calli

[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread Ross Lagerwall
Ross Lagerwall added the comment: > These failures were specific to Solaris/OpenIndiana: they were "door files" Yeah, I saw that but thought maybe the reason was similar, some library function in the child process was opening a file and not closing it properly. > using -m test -F test_io, and

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Stefan Krah
Stefan Krah added the comment: > Distutils doesn't validate PyPI server certificate, so this change > doesn't prevent from MITM attacks, but at least it makes package > submissions over wireless channels and public networks safer. Is that so? It's been a while, but I think e.g. ettercap is a hi

[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread STINNER Victor
STINNER Victor added the comment: > Could this be related to http://bugs.python.org/issue6559#msg123958? > Or Issue10826? These failures were specific to Solaris/OpenIndiana: they were "door files". Extract of fd_status.py: 1.34 +# Ignore Solaris door files 1.35 +if st

[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread STINNER Victor
STINNER Victor added the comment: I ran the test more than 1000 times on Linux (using -m test -F test_io, and manually patched test_io to only run this test, see also #12231 !!!) without being able to reproduce the failure. So it may be specific to Mac OS X Tiger. --