[issue15451] PATH is not honored in subprocess.Popen in win32

2012-07-26 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15453] ctype with packed bitfields does not match native compiler

2012-07-26 Thread Mike Castle
New submission from Mike Castle : On debian/testing with python 2.7.3rc2 and gcc 4.7.1. I was trying to use ctypeslib to wrap libdvdnav and running into some issues porting my test C code to Python, eventually tracking it down to this difference between how ctypes and gcc handles bitfields in

[issue15453] ctype with packed bitfields does not match native compiler

2012-07-26 Thread Mike Castle
Mike Castle added the comment: And the C version -- Added file: http://bugs.python.org/file26522/t.c ___ Python tracker ___ ___ P

[issue15453] ctype with packed bitfields does not match native compiler

2012-07-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue15454] Allow dircmp.report() output stream to be customized

2012-07-26 Thread Chris Jerdonek
New submission from Chris Jerdonek : Currently, filecmp.dircmp's report(), report_partial_closure(), and report_full_closure() methods all only allow printing to stdout. This issue is to provide some way for the caller to control the stream to which these methods print their output (e.g. a 'st

[issue15269] Document dircmp.left and dircmp.right

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Sounds good. And for the record, new issue created here: issue 15454 -- ___ Python tracker ___ ___

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: This is a tricky one. Long term, the right approach is to migrate all the "scripts that run other scripts" over to runpy, but the runpy API needs work before we can do that (see #9325). For bug fix purposes though, these modules can borrow some of runpy's infr

[issue15455] index entries not showing up in glossary

2012-07-26 Thread Chris Jerdonek
New submission from Chris Jerdonek : I haven't tracked down the reason for this, but certain index entries seem to be getting skipped in the Glossary. If you view source on the Glossary page and search for "index-": http://docs.python.org/dev/glossary.html You will find that it skips from 'i

[issue15452] Eliminate the use of eval() in the logging config implementation

2012-07-26 Thread Vinay Sajip
Vinay Sajip added the comment: It's not actually the PEP 391 implementation - dictConfig() - that uses eval(). Rather, it's the older fileConfig() API which was part of the original logging package when added to Python 2.3. The use of eval() by fileConfig() was documented at that time, IIRC.

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Here is a patch that implements __sizeof__ for code objects (PyCodeObject) counting co_cell2arg array. -- components: Interpreter Core files: code_sizeof.patch keywords: patch messages: 166469 nosy: storchaka priority: normal severity: normal statu

[issue15455] index entries not showing up in glossary

2012-07-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.araujo, ezio.melotti, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue12399. -- nosy: +benjamin.peterson, ncoghlan ___ Python tracker ___ ___ Python-bugs

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread STINNER Victor
STINNER Victor added the comment: +@unittest.skipIf(sys.platform == 'win32', +"Win32 can fail cwd() with invalid utf8 name") def test_nonascii_abspath(self): You should not always skip the test on Windows: the filename is decodable in code pages other than cp932. It would be b

[issue15355] generator.__next__() docs should mention exception if already executing

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: This is a very simple patch. -- keywords: +patch Added file: http://bugs.python.org/file26525/issue-15355-1.patch ___ Python tracker ___ __

[issue15451] PATH is not honored in subprocess.Popen in win32

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: I think env is used for specifying the environment used by the child process once it has started. env['PATH'] is not used by the parent process to find program to run. Having said that, maybe if you used "shell=True" as well then the shell would find the

[issue15457] consistent treatment of generator terminology

2012-07-26 Thread Chris Jerdonek
New submission from Chris Jerdonek : The documentation on generators (outside of PEP 255) does not currently educate the reader on the more specific "generator function" and "generator iterator" terminology, or at least not in any consistent or systematic way. For example, the glossary includ

[issue15355] generator.__next__() docs should mention exception if already executing

2012-07-26 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15457] consistent treatment of generator terminology

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file26526/issue-15457-1.patch ___ Python tracker ___ __

[issue15438] Incredible issue in math.pow

2012-07-26 Thread andrea bergamini
andrea bergamini added the comment: Ok guys, ticket closed, but I'm still confused: I'm not a Python expert, I've understood that math is a sort of wrapper of C math.h or something like this, but: - I can't find any reason in using math.pow if I can get errors like the one explained. - I've u

[issue15457] consistent treatment of generator terminology

2012-07-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15355] generator.__next__() docs should mention exception if already executing

2012-07-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: I see that the originally proposed patch is more or less what I suggested above. Since this has been a critical issue for 5 years, I think such a minimal patch should be committed even though it is not a complete solution. It seems to me that the more compl

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > - I can't find any reason in using math.pow if I can get errors like the one > explained. The reason is your intention to get the error. >>> pow(-1, 0.5) (6.123031769111886e-17+1j) >>> math.pow(-1, 0.5) Traceback (most recent call last): File "", line 1

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Mark Dickinson
Mark Dickinson added the comment: - I can't find any reason in using math.pow if I can get errors like the one explained. Yep---don't use math.pow if you want *exact* integer results. If you're doing numerical calculations and errors of around 1 part in 1 thousand million million are accept

[issue14501] Error initialising BaseManager class with 'authkey' argument of string type.

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: You could just do Server_1=TestServer(address=("127.0.0.1",5),authkey=b"passkey") so this is probably a documentation issue. The examples in the documentation should at least be updated. -- ___ Python tr

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: Any objection if I commit the last patch before the next beta? This is the one which on installed Pythons have get_config_var('srcdir') == os.path.dirname(get_makefile_filename()) on posix systems. -- ___ Py

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: > chcp does only change the OEM code page, whereas Python uses the ANSI code > page for sys.getfilesystemencoding(). Sorry, I should have investigated the code more carefully. > Attached patch win32_bytes_filename.patch tries to solve both issues: the > test

[issue15041] tkinter documentation: update "see also" list

2012-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa296d685e02 by Andrew Svetlov in branch '3.2': Issue #15041: update "see also" list in tkinter documentation. http://hg.python.org/cpython/rev/aa296d685e02 New changeset e2ab56295b56 by Andrew Svetlov in branch 'default': Issue #15041: update "see

[issue10296] ctypes catches BreakPoint error on windows 32

2012-07-26 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15452] Eliminate the use of eval() in the logging config implementation

2012-07-26 Thread Vinay Sajip
Vinay Sajip added the comment: Initial evaluation indicates that ast.literal_eval doesn't cut the mustard: it doesn't do any name lookups, so you can't for example successfully evaluate something like 'handlers.WatchedFileHandler' or even 'FileHandler'. However, a limited evaluator which goe

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > What if use totalsize = object.__sizeof__(struct_obj) ? That would defeat the purpose of the test. We want to test whether __sizeof__ is correct, so we shouldn't use __sizeof__ in the test to compute the expected result. I understand that object.__sizeof__

[issue10296] ctypes catches BreakPoint error on windows 32

2012-07-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: On Windows, 'target_is_directory' is required for directory symlink. python -c "import os; os.mkdir('bar'); os.symlink('bar', 'foo', target_is_directory=True); print(os.path.isdir('foo'))" True Should we automatically specify target_is_directory if target exi

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should we automatically specify target_is_directory if target exists and the > target is a directory? No, see issue14917 and issue13772. -- nosy: +pitrou ___ Python tracker __

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: ah, thank you for pointer! I should have googled before I wrote. -- ___ Python tracker ___ ___ Pyth

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Jason: You can re-activate test you disabled if you use target_is_directory. Please take a look at a issue15093.patch. -- keywords: +patch Added file: http://bugs.python.org/file26527/issue15093.patch ___ Python tra

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I think we can close this ticket as "won't fix". -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue7996] concurrency problem in regrtest -jX

2012-07-26 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> duplicate status: open -> closed superseder: -> thread-safety issue in regrtest.main() ___ Python tracker ___ _

[issue11602] python-config code should be in sysconfig

2012-07-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15458] Add python-config --configdir option

2012-07-26 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : To assist with vendor builds, Matthias has requested added a --configdir option to the python3-config script. This would return sysconfig.get_config_var('LIBPL'). The value is embedded in the output for --ldflags, but not in a convenient way. The change

[issue15458] Add python-config --configdir option

2012-07-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15360] Behavior of assigning to __dict__ is not documented

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think assigning to __dict__ is an implementation detail; we shouldn't document it before it is clearly agreed what it should do (which probably deserves asking on python-dev). -- nosy: +pitrou ___ Python tracker

[issue15454] Allow dircmp.report() output stream to be customized

2012-07-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: C comparison rules are different from Python's. In the program below (which outputs 1), the mixed comparison will first convert the literal to a double, and lost some precision. Python does the opposite: the (imprecise) float is converted to a long, so al

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-07-26 Thread Christian Rickert
Christian Rickert added the comment: Noticed this odd behaviour with BooleanVar.get() as well: class MyCheckbutton(Checkbutton): def __init__(self, parent, **options): Checkbutton.__init__(self, parent, **options) self.var = BooleanVar() s

[issue15452] Eliminate the use of eval() in the logging config implementation

2012-07-26 Thread Vinay Sajip
Vinay Sajip added the comment: Having reflected on this further, ISTM that limiting the scope of evaluation is not the correct answer. For example, a malicious user could still send a bogus configuration which, for example, just turns the verbosity of all loggers off, or configures a huge num

[issue15459] ctypes Structures with subclassed types in the _fields_ list

2012-07-26 Thread Thomas Heller
New submission from Thomas Heller : When a ctypes Structure uses a subclass of c_int, c_short, c_byte in the _fields_ list to define bitfields, the results are wrong. The attached script showbug.py demonstrates this behaviour. -- components: ctypes files: showbug.py keywords: needs rev

[issue15459] ctypes Structures with subclassed types in the _fields_ list

2012-07-26 Thread Thomas Heller
Thomas Heller added the comment: The attached patch for branch default fixes this issue. It also contains a unittest. -- Added file: http://bugs.python.org/file26530/bitfields.patch ___ Python tracker __

[issue15460] SQLite cursor.description is not DB-API compatible

2012-07-26 Thread Charlie Clark
New submission from Charlie Clark : It says in the docs: """This read-only attribute provides the column names of the last query. To remain compatible with the Python DB API, it returns a 7-tuple for each column where the last six items of each tuple are None.""" According to the DB-API, howev

[issue15403] Refactor package creation support code into a common location

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: It occurs to me that the filecmp/dircmp tests in Lib/test/test_filecmp.py would also benefit from code like this (i.e. being able to create a nested directory of files in one or two lines). And perhaps elsewhere in the tests. This is an argument for slightly

[issue15459] ctypes Structures with subclassed types in the _fields_ list

2012-07-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: I apologize I missed this issue when it arose, so my comments come late. The reason for inferring the directory status of the targets was so that use of os.symlink(link, target) would behave much the same on Unix as on Windows for the most common use cases.

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5bf7afd944a2 by Jason R. Coombs in branch 'default': Restored test by specifying that the symlink links to a target (currently required for Windows symlinks). See issue15093 for details. http://hg.python.org/cpython/rev/5bf7afd944a2 -- __

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks ishimoto for getting to the bottom of this. Thanks pitrou for the links to the symlink implementation changes. Yes, this issue as reported was invalid. -- resolution: -> invalid status: open -> closed ___

[issue15041] tkinter documentation: update "see also" list

2012-07-26 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Adding a patch with a failing test for the issue. -- keywords: +patch stage: -> needs patch Added file: http://bugs.python.org/file26531/issue-15450-failing-test.patch ___ Python tracker

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Mark Dickinson
Mark Dickinson added the comment: Ah yes; a comparison like that could indeed give the impression that C/C++ was computing things exactly. :-) -- ___ Python tracker ___ ___

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching full patch (though Misc/NEWS would need to be moved a new section is created for pre-alpha). -- Added file: http://bugs.python.org/file26532/issue-15450-1.patch ___ Python tracker

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2012-07-26 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Ned Deily
Ned Deily added the comment: LGTM -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Actually, this should also be documented. -- stage: patch review -> needs patch ___ Python tracker ___

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > That would defeat the purpose of the test. We want to test whether > __sizeof__ is correct, so we shouldn't use __sizeof__ in the test to > compute the expected result. I understand that object.__sizeof__ is > actually a different implementation, but still:

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: I still would prefer if only one issue at a time gets fixed, in particular if the two issues require independent changes. This issue is about test_nonascii_abspath failing on the Japanese edition of Windows (see the first sentence of the first message from A

[issue15458] Add python-config --configdir option

2012-07-26 Thread Georg Brandl
Georg Brandl added the comment: I guess we can do this, looks fine to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I do not think that the purpose of testing is a testing of object.__sizeof__. > Memory consumption consists of two parts -- memory for C structure (and the > base object implementation works for this) Note that object.__sizeof__ does something slightly dif

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Interestingly, the original patch did change the sizeof test, but incorrectly (adding the extra pointer to the struct spec, but failing to recognize that there is additional memory allocated). This tells me a) we *absolutely* need to preserve the current te

[issue12399] simplify cell var initialization by storing constant data on the code object

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: See issue15456 for a follow-up issue. -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5093cfdff2a9 by Martin v. Löwis in branch 'default': Issue #15456: Fix code __sizeof__ after #12399 change. http://hg.python.org/cpython/rev/5093cfdff2a9 -- nosy: +python-dev ___ Python tracker

[issue12399] simplify cell var initialization by storing constant data on the code object

2012-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5093cfdff2a9 by Martin v. Löwis in branch 'default': Issue #15456: Fix code __sizeof__ after #12399 change. http://hg.python.org/cpython/rev/5093cfdff2a9 -- ___ Python tracker

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Note that object.__sizeof__ does something slightly different, though: > it uses basicsize (which may or may not contain the sizeof() invocation > of the correct C structure), and it considers tp_itemsize (which may or > may not have a correct value). All s

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > All such cases are bugs (memory manager works with tp_basicsize and > tp_itemsize, not with __sizeof__ result) and tests do not test it. In > paranoidal mode we should tests both __sizeof__ and object.__sizeof__. For > all > classes, even for those that d

[issue15461] os.stat() 's inappropriate behavior when dealing with a broken link in linux systems.

2012-07-26 Thread coder.maliubiao
New submission from coder.maliubiao : the code: import os,stat mode=os.stat("a broken link file").st_mode then i got :OSError: [Errno 2] No such file or directory. why not just treat a broken link as something existing and don't report any error. -- components: Library (Lib) messages:

[issue15462] UTF8 BOM incorrectly prepended syslog messages when using rsysolog

2012-07-26 Thread Aimon Bustardo
New submission from Aimon Bustardo : Ubuntu 12.0.4 LTS 64bit python2.7-minimal 2.7.3-0ubuntu3 rsyslog 5.8.6-1ubuntu8 Python converts all syslog messages to UTF8 before sending to syslog. It also prepends the Byte Order Mark (BOM) of the Unicode Standard. This prepended BOM causes bad character

[issue15041] tkinter documentation: update "see also" list

2012-07-26 Thread Éric Araujo
Éric Araujo added the comment: FYI, there is no need to add a Misc/NEWS entry for such small doc changes (and especially not in the Library section :) The Documentation section of Misc/NEWS is used for important changes to the doc or the toolchain, not the everyday changes we do. --

[issue15459] ctypes Structures with subclassed types in the _fields_ list

2012-07-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge stage: -> patch review versions: +Python 3.2 -Python 3.4 ___ Python tracker ___ __

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Éric Araujo
Éric Araujo added the comment: Does get_config_var('srcdir') always return a string or sometimes None? -- ___ Python tracker ___ ___

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-07-26 Thread Brett Cannon
Brett Cannon added the comment: While I would be happy to see this issue finally closed, but it's up to Georg if this goes into 3.3 or not as one could argue it's a feature or a bugfix/oversight. As for the actual fix, classic classes shouldn't hold back a good solution since that is a 2.x t

[issue15458] Add python-config --configdir option

2012-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ddf15cd9be4a by Barry Warsaw in branch 'default': - Issue #15458: python-config gets a new option --configdir to print the http://hg.python.org/cpython/rev/ddf15cd9be4a -- nosy: +python-dev ___ Python tr

[issue15458] Add python-config --configdir option

2012-07-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: > Does get_config_var('srcdir') always return a string or sometimes None? Always a string. distutils.support._get_xxmodule_path() is one place which (currently) would throw an exception if it returned None. -- __

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: I realize now that the idea of using object.__reduce__(..., 2) would not really work since many exception classes use non-slot descriptors (unless '__slots__' attributes were also added as hints of what to serialize). I think there are two options simple eno

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I think there are two options simple enough to sneak in to 3.3: > > (1) The trivial patch of initially setting self->args in __new__(). > > (2) Georg's idea of additionally setting a __newargs__ attribute in > __new__() and using it in __reduce__(). However

[issue11602] python-config code should be in sysconfig

2012-07-26 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15454] Allow dircmp.report() output stream to be customized

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: For discussion purposes, I'd like to mention an alternate approach. (I haven't yet formed an opinion on what approach is preferable.) Python's built-in print() function accepts more than just a 'file' keyword argument: http://docs.python.org/dev/library/fun

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 26 juillet 2012 à 19:12 +, Jason R. Coombs a écrit : > Without the directory feature, many uses of os.symlink are not > portable and will fail (with ugly results) on Windows. The target_is_directory argument is supposed to be "supported" (i.e. igno

[issue9269] Cannot pickle self-referencing sets

2012-07-26 Thread Stefan Mihaila
Stefan Mihaila added the comment: I have attached a fix to this issue (and implicitly issue1062277). This patch allows pickling self-referential sets by implementing a set.__reduce__ which uses states as opposed to ctor parameters. Before: >>> s=set([1,2,3]) >>> s.__reduce__() (, ([1, 2, 3],)

[issue1062277] Pickle breakage with reduction of recursive structures

2012-07-26 Thread mike bayer
Changes by mike bayer : -- nosy: +zzzeek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15463] test_faulthandler can fail if install path is too long

2012-07-26 Thread Ned Deily
New submission from Ned Deily : == FAIL: test_dump_traceback_threads (test.test_faulthandler.FaultHandlerTests) -- Traceback (most recent call last): File "/p

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread Thiébaud Weksteen
New submission from Thiébaud Weksteen : I wrote a patch for Python 3 to expose the function SSL_CTX_set_msg_callback in the module ssl. Here is a description of this function: "SSL_CTX_set_msg_callback() or SSL_set_msg_callback() can be used to define a message callback function cb for observing

[issue15461] os.stat() 's inappropriate behavior when dealing with a broken link in linux systems.

2012-07-26 Thread R. David Murray
R. David Murray added the comment: Because we are doing what the linux stat call (and command) does . See man stat. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue15462] UTF8 BOM incorrectly prepended syslog messages when using rsysolog

2012-07-26 Thread R. David Murray
R. David Murray added the comment: I believe this is a duplicate of issue 14452. -- components: -IO, Library (Lib) nosy: +r.david.murray, vinay.sajip resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> SysLogHandler sends invalid messages when

[issue15463] test_faulthandler can fail if install path is too long

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: This might be obvious to some people, but for background purposes, this seems to be where the file name gets truncated (in the dump_frame() function): write(fd, "\"", 1); dump_ascii(fd, code->co_filename); write(fd, "\"", 1); http://hg.python.org/

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15463] test_faulthandler can fail if install path is too long

2012-07-26 Thread Ned Deily
Ned Deily added the comment: Without investigating further, my instinct would be to prefer to truncate in the middle, if possible, otherwise truncate the head of the path, rather than truncate the tail. -- ___ Python tracker

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: In your test, is there a reason you don't need to verify that your callback is actually called? +def cb(packet): + self.assertGreater(len(packet), 0) +ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) +ctx.set_msg_callb

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread Thiébaud Weksteen
Thiébaud Weksteen added the comment: I'm not sure what would be the best way to verify that. What about: def test_connect_with_msg_callback(self): with support.transient_internet("svn.python.org"): self.called = False def cb(packet): self.ass

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-26 Thread Eli Bendersky
Eli Bendersky added the comment: Éric - what is missing? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch to cache result of check_GetFinalPathNameByHandle(). -- keywords: +patch nosy: +ishimoto Added file: http://bugs.python.org/file26535/issue12034.patch ___ Python tracker ___

  1   2   >