[issue14330] don't use host python, use host search paths for host compiler

2012-07-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14330 ___ ___

[issue15436] __sizeof__ is not documented

2012-07-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list

[issue15269] Document dircmp.left and dircmp.right

2012-07-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I think it can go into 3.3 but only if it gets reviewed by another core dev (we're in release candidate stage now). Senthil - can you review the patch together with me? As for customizing the stream, yes, go ahead and open a new issue for it,

[issue15360] Behavior of assigning to __dict__ is not documented

2012-07-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15360 ___ ___ Python-bugs-list

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

2012-07-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15451 ___ ___ Python-bugs-list

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

2012-07-26 Thread Mike Castle
New submission from Mike Castle dalg...@gmail.com: 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

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

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

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

2012-07-26 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson, meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15453 ___ ___

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

2012-07-26 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: 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

[issue15269] Document dircmp.left and dircmp.right

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Sounds good. And for the record, new issue created here: issue 15454 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15269 ___

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

2012-07-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue15455] index entries not showing up in glossary

2012-07-26 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: 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

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

2012-07-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: 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

[issue15455] index entries not showing up in glossary

2012-07-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.araujo, ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15455 ___

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: See also issue12399. -- nosy: +benjamin.peterson, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15456 ___

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

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

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

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

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com 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

[issue15457] consistent treatment of generator terminology

2012-07-26 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: 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

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

2012-07-26 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15355 ___ ___

[issue15457] consistent treatment of generator terminology

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file26526/issue-15457-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15457

[issue15438] Incredible issue in math.pow

2012-07-26 Thread andrea bergamini
andrea bergamini andrea.bergamini...@gmail.com 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

[issue15457] consistent treatment of generator terminology

2012-07-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15457 ___ ___ Python-bugs-list

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

2012-07-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15355 ___ ___ Python-bugs-list

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

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com 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

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com 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):

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: You could just do Server_1=TestServer(address=(127.0.0.1,5),authkey=bpasskey) so this is probably a documentation issue. The examples in the documentation should at least be updated. --

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com 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. --

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org 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

[issue15041] tkinter documentation: update see also list

2012-07-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue10296] ctypes catches BreakPoint error on windows 32

2012-07-26 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto ishim...@gembook.org: -- nosy: +ishimoto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10296 ___ ___ Python-bugs-list

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

2012-07-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue10296] ctypes catches BreakPoint error on windows 32

2012-07-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10296 ___ ___ Python-bugs-list

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org 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

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org added the comment: ah, thank you for pointer! I should have googled before I wrote. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15093 ___

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org 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

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org added the comment: I think we can close this ticket as won't fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15093 ___

[issue7996] concurrency problem in regrtest -jX

2012-07-26 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- resolution: - duplicate status: open - closed superseder: - thread-safety issue in regrtest.main() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7996

[issue11602] python-config code should be in sysconfig

2012-07-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11602 ___ ___ Python-bugs-list mailing

[issue15458] Add python-config --configdir option

2012-07-26 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: 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

[issue15360] Behavior of assigning to __dict__ is not documented

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 ___

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

2012-07-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15454 ___ ___

[issue15438] Incredible issue in math.pow

2012-07-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2012-07-26 Thread Christian Rickert
Christian Rickert m...@crickert.de 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()

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

2012-07-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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,

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

2012-07-26 Thread Thomas Heller
New submission from Thomas Heller thel...@ctypes.org: 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

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

2012-07-26 Thread Thomas Heller
Thomas Heller thel...@ctypes.org 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 rep...@bugs.python.org

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

2012-07-26 Thread Charlie Clark
New submission from Charlie Clark charlie.cl...@clark-consulting.eu: 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.

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

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com 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

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

2012-07-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15459 ___

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

2012-07-26 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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.

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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 andrew.svet...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15041

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

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com 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 dicki...@gmail.com added the comment: Ah yes; a comparison like that could indeed give the impression that C/C++ was computing things exactly. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15438

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

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com 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 chris.jerdo...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15450 ___

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: LGTM -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15364 ___ ___

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

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Actually, this should also be documented. -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15450

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com 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

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue15458] Add python-config --configdir option

2012-07-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I guess we can do this, looks fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15458 ___

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[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 mar...@v.loewis.de added the comment: See issue15456 for a follow-up issue. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12399 ___

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-07-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue15456] Correct __sizeof__ support for code objects

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15456 ___

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com 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

[issue15402] Correct __sizeof__ support for struct

2012-07-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[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 maliub...@gmail.com: 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:

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

2012-07-26 Thread Aimon Bustardo
New submission from Aimon Bustardo abusta...@morphlabs.com: 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

[issue15041] tkinter documentation: update see also list

2012-07-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-07-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge stage: - patch review versions: +Python 3.2 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15459

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

2012-07-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15151 ___ ___ Python-bugs-list

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Does get_config_var('srcdir') always return a string or sometimes None? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15364 ___

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

2012-07-26 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue15458] Add python-config --configdir option

2012-07-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue15458] Add python-config --configdir option

2012-07-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15458 ___

[issue15364] sysconfig confused by relative paths

2012-07-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com 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 shibt...@gmail.com 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

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

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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__().

[issue11602] python-config code should be in sysconfig

2012-07-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11602 ___ ___ Python-bugs-list mailing list

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

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com 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:

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

2012-07-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue9269] Cannot pickle self-referencing sets

2012-07-26 Thread Stefan Mihaila
Stefan Mihaila mstefa...@gmail.com 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__()

[issue1062277] Pickle breakage with reduction of recursive structures

2012-07-26 Thread mike bayer
Changes by mike bayer mike...@zzzcomputing.com: -- nosy: +zzzeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1062277 ___ ___ Python-bugs-list

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

2012-07-26 Thread Ned Deily
New submission from Ned Deily n...@acm.org: == FAIL: test_dump_traceback_threads (test.test_faulthandler.FaultHandlerTests) -- Traceback (most recent call

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread Thiébaud Weksteen
New submission from Thiébaud Weksteen thieb...@weksteen.fr: 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

[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 rdmur...@bitdance.com 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

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

2012-07-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2012-07-26 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com 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);

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15464 ___ ___ Python-bugs-list

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

2012-07-26 Thread Ned Deily
Ned Deily n...@acm.org 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 chris.jerdo...@gmail.com 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) +

  1   2   >