[issue10676] Confusing note in Numeric Types

2010-12-11 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r87169. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10677] "make altinstall" includes ABI codes in versioned executable name

2010-12-11 Thread Nick Coghlan
New submission from Nick Coghlan : "make altinstall" is currently installing python3.2m rather than python3.2. Since PEP 3149 makes no mention of changing the executable name, this should be fixed to correctly install the executable as python3.2. I suspect this will also affect a "make install

[issue10677] "make altinstall" includes ABI codes in versioned executable name

2010-12-11 Thread Nick Coghlan
Changes by Nick Coghlan : -- components: +Build stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate .

2010-12-11 Thread Phyo Arkar Lwin
New submission from Phyo Arkar Lwin : DESCRIPTION: I am trying to parse Time Zone information out of email messages and i found out that mktime_tz is totally ignoring TimeZone information from parsedate_tz. VERSION: 2.6.5 CODE and RESULTS: from time import mktime from email.utils import par

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

2010-12-11 Thread Phyo Arkar Lwin
Changes by Phyo Arkar Lwin : -- title: email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate . -> email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

[issue10679] "make altinstall" will clobber OS provided scripts

2010-12-11 Thread Nick Coghlan
New submission from Nick Coghlan : "make altinstall" installs "2to3", "pydoc3" and "idle3" without version specific names. This was at least a deliberate decision in the case of 2to3, but there doesn't appear to be any reason not to use a properly qualified version suffix on the pydoc and idl

[issue10679] "make altinstall" may clobber OS provided scripts

2010-12-11 Thread Nick Coghlan
Nick Coghlan added the comment: Softened the wording, since OS packages will often omit installing any executable files other than the main python binary. -- title: "make altinstall" will clobber OS provided scripts -> "make altinstall" may clobber OS provided scripts ___

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

2010-12-11 Thread Phyo Arkar Lwin
Changes by Phyo Arkar Lwin : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10677] "make altinstall" includes ABI codes in versioned executable name

2010-12-11 Thread Nick Coghlan
Nick Coghlan added the comment: The other thing that makes this clearly an error is, of course, the fact that all the shebang lines expect the executable to be called "python3.2" -- ___ Python tracker ___

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-11 Thread Skip Montanaro
Skip Montanaro added the comment: >From the comment in the test_csv.py: +# XXX: I don't know what the correct behavior should be for these. +# Currently the first one raises an error that the delimiter can't +# be determined while the second one returns '\r'. The second

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Milko Krachounov added the comment: I attached unit tests that test that cloexec is properly set. I can't test my tests too well with the unpatched version because runtests.sh is too complicated to use, and doesn't print any useful output by default. -- Added file: http://bugs.python

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Removed file: http://bugs.python.org/file20007/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker ___ __

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20008/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker ___

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Removed file: http://bugs.python.org/file20008/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker ___ __

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20009/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker ___

[issue969718] BASECFLAGS are not passed to module build line

2010-12-11 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I suggest to: - Print path to the .pth file, which causes exception. Current traceback doesn't help in finding the cause of problem: # echo "import nonexistent" > /usr/lib64/python3.2/site-packages/some_file.pth # python3.2 -c pass Traceba

[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

2010-12-11 Thread Milko Krachounov
Milko Krachounov added the comment: The patch doesn't seem to work. I added this before closerange in _close_all_but_a_sorted_few_fds: print("Closing", start_fd, "up to", fd, "exclusive") And used the attached script to run as a subprocess to check for open fds (taken from my tests patch for

[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20011/test_pass_fds.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20012/subprocess-pass_fd_fix_example.patch ___ Python tracker ___ ___ Pyt

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-11 Thread R. David Murray
R. David Murray added the comment: Yeah, obviously wrong. I forgot to finish editing the comment. I think a fallback of ',' makes more sense than ''. What would a delimiter of nothing mean? I don't think the unquoted case can be changed for backward compatibility reasons, so those tests I

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Milko Krachounov added the comment: I add a patch that tests close_fds (there's no test for close_fds), that requires the tests1 patch. By the way, should there be a test for the atomicity of the operations? -- Added file: http://bugs.python.org/file20013/subprocess-cloexec-atomic-py

[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-11 Thread R. David Murray
R. David Murray added the comment: I like the suggestion of turning it into a warning, myself, but you are right that at the least the error message should be improved. -- resolution: invalid -> stage: committed/rejected -> needs patch status: closed -> open _

[issue10677] "make altinstall" includes ABI codes in versioned executable name

2010-12-11 Thread Georg Brandl
Georg Brandl added the comment: Nice, definitely a blocker. (BTW, if you configured without any specific --prefix, you shouldn't clobber anything installed by the distribution...) -- ___ Python tracker _

[issue10679] "make altinstall" may clobber OS provided scripts

2010-12-11 Thread Georg Brandl
Georg Brandl added the comment: Yes, this already irked me with previous versions. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

2010-12-11 Thread R. David Murray
R. David Murray added the comment: mktime_tz is documented as turning the input into a *UTC* timestamp. That's what your example shows it doing. There is an open issue elsewhere in this tracker for providing a way to round-trip RFC2822 timestamps. -- nosy: +r.david.murray resolution

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-11 Thread Mads Michelsen
New submission from Mads Michelsen : This is a follow-up to Issue 58 from the Google Project Hosting bug tracker (http://code.google.com/p/argparse/issues/detail?id=58). I couldn't find any equivalent/re-posting of it here, so I took the liberty of creating a new one - despite the bug being ma

[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-11 Thread Éric Araujo
Éric Araujo added the comment: Aren’t there studies that show that people don’t read warnings? I’m +0 on a warning and +1 on an error. -- ___ Python tracker ___ __

[issue10677] "make altinstall" includes ABI codes in versioned executable name

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

[issue10679] "make altinstall" may clobber OS provided scripts

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

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please formulate that is a test case? Use this structure: 1. do this 2. this happens 3. this should happen instead -- nosy: +loewis ___ Python tracker __

[issue10631] ZipFile and current directory change

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

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-11 Thread Mads Michelsen
Mads Michelsen added the comment: Okay, I'll try: Save the following code as argparse_test.py: [CODE] #! /usr/bin/env python2 import argparse def args_config(about): parser = argparse.ArgumentParser(description=about) dummy_group = parser.add_argument_group(title='mutually exclusive'

[issue10642] Improve the error message of addpackage() (site.py) for defective .pth file

2010-12-11 Thread STINNER Victor
Changes by STINNER Victor : -- title: site.py crashes on python startup due to defective .pth file -> Improve the error message of addpackage() (site.py) for defective .pth file ___ Python tracker

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor added the comment: subprocess-cloexec-atomic-py3k-tests2-close_fds.patch adds a test called to Win32ProcessTestCase which is specific to Windows. And this class has already a test with the same name. You should move your test to ProcessTestCase (and so it will test the C implem

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor added the comment: > subprocess-cloexec-atomic-py3k-tests2-close_fds.patch adds a test > called [test_close_fds] to Win32ProcessTestCase ... Oops, forget my last comment, I didn't applied the patches in the right order. There are too much patches :-p Can you try to create one un

[issue7695] missing termios constants

2010-12-11 Thread Rodolpho Eckhardt
Rodolpho Eckhardt added the comment: Because these constants might not exist on all platforms, the patch uses ifdef's around them. -- keywords: +patch nosy: +Rodolpho.Eckhardt Added file: http://bugs.python.org/file20015/patch_termios_consts_issue7695.diff

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor added the comment: subprocess-cloexec-atomic-py3k.patch: +case $ac_sys_system in + GNU*|Linux*) + AC_CHECK_FUNC(pipe2, AC_DEFINE(HAVE_PIPE2, 1, [Define if the OS supports pipe2()]), ) +esac I think that you can remove the test on the OS name. AC_CHECK_FUNC() doesn't hur

[issue10502] Add unittestguirunner to Tools/

2010-12-11 Thread Mark Roddy
Mark Roddy added the comment: Attaching patch that adds the unittestgui to Tools/scripts. Also has updates to the unittest documentation which includes a note that this tool is for beginners and a CI system should be used in general. -- keywords: +patch nosy: +MarkRoddy Added file: h

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor added the comment: test_pipe_cloexec_unix_tools() is specific to UNIX/BSD because it requires cat and grep programs. You should try to reuse the Python interpreter to have a portable test (eg. working on Windows), as you did with fd_status.py. +data = b'aaa

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: Also this class, because it defines __del__ too simply, will display a user-unfriendly error message when cleaning up a TemporaryDirectory object whose constructor raised an exception when attempting to create its temporary folder. For example try to cr

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: Clicked send too soon on the previous comment. :-( The simplest way I see you can fix the __del__ issue is to patch TemporaryDirectory.__init__() as follows: def __init__(self, suffix="", prefix=template, dir=None): self._closed = True

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
New submission from Phil Thompson : In Python v3.2b1 the type of the first argument of PySlice_GetIndices() and PySlice_GetIndicesEx() has changed from PySliceObject* to PyObject*. The documentation does not reflect this change. Which is correct, the source code or the documentation?

[issue10677] "make altinstall" includes ABI codes in versioned executable name

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: The source is correct. Fixed in r87171. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10679] "make altinstall" may clobber OS provided scripts

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10663] configure shouldn't set a default OPT

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue969718] BASECFLAGS are not passed to module build line

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
Phil Thompson added the comment: You might want to add a "Changed in Python v3.2" because as it is an incompatible change. -- ___ Python tracker ___ ___

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Georg Brandl
Georg Brandl added the comment: Applied the fix from msg123808 in r87172. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bu

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's not an incompatible change, but I added the versionchanged anyway in r87173. -- ___ Python tracker ___ _

[issue10642] Improve the error message of addpackage() (site.py) for defective .pth file

2010-12-11 Thread R. David Murray
R. David Murray added the comment: My guess is people don't read warnings when they are a common occurrence. A working Python should not emit any warnings, and a properly working Python program (post 2.6/3.1 (or whenever it was we decided to suppress deprecation warnings by default)) should

[issue10677] "make altinstall" includes ABI codes in versioned executable name

2010-12-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: r87174 moves the creation of the hard link between python-3.2m and python-3.2 from the bininstall target to the altbininstall target. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue8911] regrtest.main should have a test skipping argument

2010-12-11 Thread Jerry Seutter
Jerry Seutter added the comment: Hi Tarsis, I looked at your patch. It looks like it only does step 1 and doesn't move away from parse_command_line directly modifying sys.argv. Was this the patch file that you intended to upload? -- ___ Python t

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Milko Krachounov added the comment: OK, I have created new updated patches. I haven't combined them in one patch because some of the changes can be applied independently, the three patches can be cat'ed together if anyone sees separate patches a problem. ;) I. Changes: * Now pipe2 would be us

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20018/subprocess-01-atomic_cloexec_pipe2.patch ___ Python tracker ___ ___

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20019/subprocess-02-cloexec_tests.patch ___ Python tracker ___ ___ Python-

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Removed file: http://bugs.python.org/file20019/subprocess-02-cloexec_tests.patch ___ Python tracker ___ ___ Pytho

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file20020/subprocess-02-cloexec_tests.patch ___ Python tracker ___ ___ Python-

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Removed file: http://bugs.python.org/file20005/subprocess-cloexec-atomic-py3k.patch ___ Python tracker ___ ___ P

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Removed file: http://bugs.python.org/file20009/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker ___ __

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov : Removed file: http://bugs.python.org/file20013/subprocess-cloexec-atomic-py3k-tests2-close_fds.patch ___ Python tracker ___

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Paul & Giovanni: yes I hadn't given the windows side of things any thought when I made the change for beta1. Milko: The DISREGARD_FDS approach is basically what I was intending to do. Also, there really wasn't any objection to going ahead and changing the

[issue2690] Precompute range length and enhance range subscript support

2010-12-11 Thread SilentGhost
SilentGhost added the comment: here is the patch for the py3k docs. -- Added file: http://bugs.python.org/file20021/stdtypes.rst.diff ___ Python tracker ___ _

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
Phil Thompson added the comment: It's source level incompatible - my extension modules compiled fine with v3.2a but failed with v3.2b1. -- ___ Python tracker ___ __

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Nick Coghlan
Nick Coghlan added the comment: I have a slightly better fix for that coming soon. There's a subtle race condition in the proposed approach that can lead to the temporary dir not being deleted if an asynchronous exception, such as KeyboardInterrupt, arrives after mkdtemp completes successfull

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Nick Coghlan
Nick Coghlan added the comment: Although it may be better to just raise a new, more meaningul, exception and let the runtime take care of ignoring it (since it happens in __del__) -- ___ Python tracker __

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-11 Thread Jan Kaliszewski
New submission from Jan Kaliszewski : Let examples speak: def x(a, z): pass # this is ok def x(a, z,): pass # this is ok def x(a, *, z): pass # this is ok in Py3k def x(a, *, z,): pass # but this causes SyntaxError (!) def x(a, *args): pass # this is ok

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-11 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: s/**{5: 6}/**{'5': 6}/g (but it's a detail) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-11 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: Oops, I see the problem was partly addressed @ issue9232. But: * the proposed patch doesn't fix calls (but defs only), * shouldn't be the issue considered as a bug -- and fixed also in 2.7 and 3.1? -- ___ Python

[issue10683] PreLinkEvent error under VC2010

2010-12-11 Thread honglei jiang
New submission from honglei jiang : 1>PreLinkEvent: 1> Description: Generate build information... 1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 1> Copyright (C) Microsoft Corporation. All rights reserved. 1> 1> cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WIN

[issue10683] PreLinkEvent error under VC2010

2010-12-11 Thread honglei jiang
Changes by honglei jiang : -- versions: +Python 3.2 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: > It's source level incompatible - my extension modules compiled fine with > v3.2a but failed with v3.2b1. That's because you are using C++, right? In C, there shouldn't be any problems. -- ___ Python tracker

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's clearly not a bug: the documented grammar matches the implemented grammar. Asking for more abstract consistency is a feature request. This also clearly falls under the PEP 3003 moratorium. -- nosy: +loewis type: behavior -> feature request versi

[issue9232] Allow trailing comma in any function argument list.

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: Retargetting, as this falls under the moratorium, and also because 3.2b1 has been released. -- nosy: +loewis versions: +Python 3.3 -Python 3.2 ___ Python tracker