[issue11592] Compilation warnings in os module

2011-03-17 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue11592] Compilation warnings in os module

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 071fb38c91e6 by Ross Lagerwall in branch 'default': Issue #11592: Fix compilation warnings in os module. http://hg.python.org/cpython/rev/071fb38c91e6 -- nosy: +python-dev ___ Python tracker

[issue11593] Add encoding parameter to logging.basicConfig

2011-03-17 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11593] Add encoding parameter to logging.basicConfig

2011-03-17 Thread Samuel Michaels
New submission from Samuel Michaels : Yes, you could just make a custom logging.FileHandler object, but this way is much easier for those who are following the basic logging tutorial. -- components: Library (Lib) files: __init__.patch keywords: patch messages: 131314 nosy: Samuel.Michae

[issue11567] http.server error message format

2011-03-17 Thread Ezio Melotti
Ezio Melotti added the comment: This is just nitpicking, but serving XHTML as text/html is wrong. Also XHTML is not necessary here, so I would just use an HTML 4.01 strict doctype (and remove the xmlns). -- nosy: +ezio.melotti ___ Python tracker

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-17 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-17 Thread Jeff McNeil
Jeff McNeil added the comment: Sounds good. I'll look at doing that, too. -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Mar 17, 2011 at 06:30:51PM +, Jeff McNeil wrote: > I went down the same path as AbstractHTTPHandler and added a Connection: > close header. This is fine for the moment, tough I wish that the TODO pending in urllib.request with HTTP1.1 persisten

[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

2011-03-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10860] Handle empty port after port delimiter in httplib

2011-03-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8450] httplib: false BadStatusLine() raised

2011-03-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10486] http.server doesn't set all CGI environment variables

2011-03-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: issue11442 is a security issue and I pushed to 2.5 for fixing that and encountered this problem with buildbot. I think, we may/may not fix this (buildbot issue) depending upon when the 2.5 release may be planned. -- ___

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Skip Montanaro
Skip Montanaro added the comment: Yes, but this is not a security issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Mar 17, 2011 at 8:03 PM, Antoine Pitrou wrote: .. > +1 for not having pragma statements in the stdlib, especially when they > target a third-party tool few of us know and use. "#pragma NO COVER" is recognized by stdlib trace module, so it is not

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Antoine, neither this issue, nor either version of my patch, was intended to assert that 100% test coverage indicates that a test of tests are complete. If you will point out where in the text this is implied, I will correct it. Thanks! --

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for not having pragma statements in the stdlib, especially when they target a third-party tool few of us know and use. Beside, while coverage measurements are useful, trusting them that actual coverage is complete is IMO a bit foolish. It's not just about r

[issue11578] Increase test coverage for timeit.py

2011-03-17 Thread Éric Araujo
Éric Araujo added the comment: Is there no resource (in the regrtest machinery) that could be used to flag those intensive tests? Nit: the NEWS entry lacks a “by”. -- nosy: +eric.araujo ___ Python tracker __

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Éric, the Makefile in Python trunk seems to include Objects/complexobject.o in the build unilaterally without any way to turn it off. What is leading you to believe that Python 3 can conditionally turn the "complex" type off during a build? I do not un

[issue10914] Python sub-interpreter test

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > distutils sure knows how to build .o or .so files, but I don’t know > about standalone executables (because I don’t know how the .o end up > making an executable). If you want to try to do it, I would advise > you not to use the config command but rather a co

[issue11589] Additional tests for email module

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> r.david.murray keywords: +needs review stage: -> patch review title: Unit test extensions for email module -> Additional tests for email module versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ P

[issue11588] Add "necessarily inclusive" groups to argparse

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo -BreamoreBoy versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-b

[issue11553] Docs for: import, packages, site.py, .pth files

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon, eric.araujo, ncoghlan, pje versions: +Python 2.7 ___ Python tracker ___ ___ Python-bu

[issue11573] Improve Unicode Documentation with Known Caveats

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: -Python 3.4 ___ Python tracker ___

[issue10914] Python sub-interpreter test

2011-03-17 Thread Éric Araujo
Éric Araujo added the comment: distutils sure knows how to build .o or .so files, but I don’t know about standalone executables (because I don’t know how the .o end up making an executable). If you want to try to do it, I would advise you not to use the config command but rather a compiler o

[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: high -> normal title: Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony)) -> Can't call Py_SetPath() on pointer returned by Py_GetPath() type: crash -> behavior ___ Python tracker

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the issue here is that you can't call Py_SetPath() on the point returned by Py_GetPath(), since the memory refered to that pointer is free()d at the beginning of Py_SetPath(). The following works, though: main(int argc, char **argv) { wchar_t *path, *ne

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Éric Araujo
Éric Araujo added the comment: Some code is removed by your patch, for example a check that prevented an error for builds that don’t include complex. If this type of builds still exist, the code should be compatible. Conversely, the code mentions unicode in some places, but it’s gone now. -

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Mar 17, 2011 at 05:16:43PM +, Skip Montanaro wrote: > See Issue 11439. Yes, that is relevant and applies probably to code in default and other branches. Just in case, this corner case in 2.5 does not overlooked (because it does not happen in other

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Mar 17, 2011 at 05:15:09PM +, Skip Montanaro wrote: > Should you be pushing anything to 2.5? I think, there is a security release planned in 2011. Also, see issue11442 which was the specific case for pushing to 2.5. -- __

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Crash fixed in a791dd7d51f3 (3.2) and b4104ffd5127 (3.3), but the original problem remains, or a variant of it. I now get: Init Fatal Python error: Py_Initialize: Unable to get the locale encoding LookupError: no codec search functions registered: can't find e

[issue10914] Python sub-interpreter test

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ouch, sorry, I got my commit message wrong. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10914] Python sub-interpreter test

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset a791dd7d51f3 by Antoine Pitrou in branch '3.2': Issue #10914: fix bogus memory management in Modules/getpath.c, leading to a possible crash when calling Py_SetPath() http://hg.python.org/cpython/rev/a791dd7d51f3 -- nosy: +python-dev _

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-17 Thread Carl Meyer
Carl Meyer added the comment: Adding a test is easier said than done. The behavior change here depends on python being run with -S. Currently test_site skips itself if the test suite is run with -S, and if I remove that skip it crashes under -S. Options as I see it: 1. Declare this one-liner

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, Palm's example even segfaults here: Program received signal SIGSEGV, Segmentation fault. 0x772452bc in free () from /lib64/libc.so.6 (gdb) bt #0 0x772452bc in free () from /lib64/libc.so.6 #1 0x0042a591 in Py_SetPath ( path=0x8

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sridhar: I'm sorry, but at this point you should investigate a bit more into the actual causes of the problem. I'm not going to dig in virtualenv myself. Also, since there's already #10743 for the virtualenv issue, perhaps further virtualenv-related comments

[issue11573] Improve Unicode Documentation with Known Caveats

2011-03-17 Thread STINNER Victor
STINNER Victor added the comment: Can you provide a patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-17 Thread STINNER Victor
STINNER Victor added the comment: In my experience (PYTHONFSENCODING, sys.setfilesystemencoding()): Python should just use the same encoding than the locale encoding because *all* other programs on the system use the locale encoding. If none of LANG, LC_ALL or LC_CTYPE env var is set: Python

[issue5421] Irritating error message by socket's sendto method

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you for the patch! This is now fixed in 3.x. -- nosy: +pitrou resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue5421] Irritating error message by socket's sendto method

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c61b72b0650d by Antoine Pitrou in branch '3.1': Issue #5421: Fix misleading error message when one of socket.sendto()'s http://hg.python.org/cpython/rev/c61b72b0650d New changeset 2af7a6d765fd by Antoine Pitrou in branch '3.2': Issue #5421: merge f

[issue11592] Compilation warnings in os module

2011-03-17 Thread Antoine Pitrou
New submission from Antoine Pitrou : Under Linux: ./Modules/posixmodule.c: In function ‘posix_readv’: ./Modules/posixmodule.c:6239: attention : implicit declaration of function ‘readv’ ./Modules/posixmodule.c: In function ‘posix_writev’: ./Modules/posixmodule.c:6583: attention : implicit declar

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-17 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Would you mind adding tests in test_site? -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker ___

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low versions: -Python 3.1, Python 3.2, Python 3.4 ___ Python tracker ___ ___ Py

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 I think this will make the code harder to understand and maintain. -- nosy: +rhettinger ___ Python tracker ___ _

[issue5421] Irritating error message by socket's sendto method

2011-03-17 Thread Matt Joiner
Matt Joiner added the comment: This bug is very misleading in Py3, as the TypeError makes one think that a string is being passed rather than bytes (how else do you get a 2 argument function call wrong?). Very difficult to determine that this is not in fact the bug in a dynamically typed lang

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread knickerkicker
knickerkicker added the comment: Creating a inline function would require passing the stackpointer variable so that the TOP() and POP() macros continue working, and creating variables for u, v and x. I am not sure if that will not have a performance impact - ideally it shouldn't, but can we tr

[issue10812] Add some posix functions

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8945e087a5a6 by Ross Lagerwall in branch 'default': Issue #10812: Revert os.lseek change. http://hg.python.org/cpython/rev/8945e087a5a6 -- ___ Python tracker

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-17 Thread Carl Meyer
Changes by Carl Meyer : -- keywords: +patch Added file: http://bugs.python.org/file21274/87df1d37c88e.diff ___ Python tracker ___ ___

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-17 Thread Carl Meyer
New submission from Carl Meyer : If python is run with the -S flag, that declares the intent of the user to not have site-specific additions to sys.path. However, some code in that process may have a legitimate need for a function defined in site.py - for instance, addsitedir. But the act of i

[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2011-03-17 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: up! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5421] Irritating error message by socket's sendto method

2011-03-17 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Robert Withrow
Robert Withrow added the comment: > it needs to be worded in a way that doesn't > imply that the struct implementation is broken or misdesigned. Agree. > A better note would focus on the basic (and obvious) > fact that downgrading from double precision to single > precision entails a loss of

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-17 Thread Jeff McNeil
Jeff McNeil added the comment: So, it turned out to be more complicated than that. The HTTPConnection object returns an HTTPResponse, but never closes the underlying socket after calling makesock. Since persistent connections aren't supported, nothing actually closes the socket itself, it

[issue10812] Add some posix functions

2011-03-17 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: The suggested examples are misleading because they use 6.24 which is not exactly representable in binary floating point. Representation issues are orthogonal to the OP's issue which is really just a simple rounding example: >>> x = float.fromhex('0x0.1234

[issue10812] Add some posix functions

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 525320df8afb by Ross Lagerwall in branch 'default': Issue #10812: Add some extra posix functions to the os module. http://hg.python.org/cpython/rev/525320df8afb -- nosy: +python-dev ___ Python tracker <

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c09ba72136e by Michael Foord in branch 'default': Closes issue 10979. unittest buffering now works with class and module setup and teardown http://hg.python.org/cpython/rev/9c09ba72136e -- resolution: -> fixed stage: -> committed/reject

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Robert Withrow
Robert Withrow added the comment: > If you agree that Python actually behaves correct, I fail to > understand what it is that you disagree with in msg131195 I don't agree that Python is behaving correctly as far as the documented contract for struct is concerned. I disagree with the statement

[issue11506] b'' += gives SystemError instead of SyntaxError

2011-03-17 Thread Andreas Stührk
Andreas Stührk added the comment: Added a test. Perhaps that should be done for other literals as well? -- Added file: http://bugs.python.org/file21272/issue_11506.patch ___ Python tracker

[issue11506] b'' += gives SystemError instead of SyntaxError

2011-03-17 Thread Andreas Stührk
Changes by Andreas Stührk : Removed file: http://bugs.python.org/file21140/issue_11506.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f7036ea0930 by Michael Foord in branch '3.2': Issue #10979. unittest stdout buffering now works with class and module setup and teardown. http://hg.python.org/cpython/rev/0f7036ea0930 -- ___ Python tra

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-17 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21088/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-l

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-17 Thread Thomas Wouters
Thomas Wouters added the comment: New version of the patch; instead of triggering at attribute *access*, this just checks when creating types and in type_setattro. It also makes the warning a newly added CompatibilityWarning. Also, instead of warning for all non-descriptors, it now only warns

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-17 Thread Skip Montanaro
Skip Montanaro added the comment: See Issue 11439. -- nosy: +skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Skip Montanaro
Skip Montanaro added the comment: Should you be pushing anything to 2.5? -- nosy: +skip.montanaro ___ Python tracker ___ ___ Python-b

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6abdd78d2af by Michael Foord in branch '2.7': Issue #10979. unittest stdout buffering now works for class and module fixtures. http://hg.python.org/cpython/rev/d6abdd78d2af -- nosy: +python-dev ___ Pyth

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Martin: in C I have the luxury of using 32 bit floats; not an option > in Python. Simple code doing the moral equivalent of NTOHL(HTONL()) > works in this case for C but wouldn't help for Python. If you agree that Python actually behaves correct, I fail to

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-17 Thread Michael Henry
New submission from Michael Henry : The attached patch adds unit tests and some minor fixes for the email module's quoprimime.py file. The header_encode() function did not properly return an empty string when given an empty string. The decode() function did not properly detect the input string'

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Robert Withrow
Robert Withrow added the comment: Martin: in C I have the luxury of using 32 bit floats; not an option in Python. Simple code doing the moral equivalent of NTOHL(HTONL()) works in this case for C but wouldn't help for Python. Mark: I understand about the precision truncation issue and how Py

[issue11588] Add "necessarily inclusive" groups to argparse

2011-03-17 Thread SilentGhost
Changes by SilentGhost : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11589] Unit test extensions for email module

2011-03-17 Thread Michael Henry
New submission from Michael Henry : The attached patch includes additional unit tests for the email module, and splits pre-existing test_header_encode() and test_decode() functions into individual test functions. -- components: Library (Lib) files: test_email_additional_tests.patch keywo

[issue11588] Add "necessarily inclusive" groups to argparse

2011-03-17 Thread John Didion
New submission from John Didion : Just as some options are mutually exclusive, there are others that are "necessarily inclusive," i.e. all or nothing. I propose the addition of ArgumentParser.add_necessarily_inclusive_group(required=True). This also means that argparse will need to support nes

[issue1681333] email.header unicode fix

2011-03-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Sadly, I agree with RDM. There are too many workarounds in the field for this bug so it can really only be fixed in email6. -- ___ Python tracker

[issue4492] httplib code thinks it closes connection, but does not

2011-03-17 Thread Ray.Allen
Changes by Ray.Allen : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread Brian Curtin
Brian Curtin added the comment: I made a bunch of the stat changes in 3.2 so I'll assign this to myself and take a look. -- assignee: -> brian.curtin stage: -> needs patch ___ Python tracker ___

[issue11577] testcase for exception binhex.Error

2011-03-17 Thread Nick Coghlan
Nick Coghlan added the comment: This is fixed on default as well, I just stuffed the merge so the history looks odd and the integration script didn't pick it up. You can see the additional changes I made in the linked changeset: - try/except with a flag to clean up implicitly created file obje

[issue11587] METH_KEYWORDS alone gives "METH_OLDARGS is no longer supported!"

2011-03-17 Thread Clive Darke
Clive Darke added the comment: Same error on 3.2 with Windows MSC v.1500 and Linux gcc version 4.1.2 -- ___ Python tracker ___ ___ Py

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok. It's probably not the most optimal thing we can do. It opens the directory with CreateFileW (specifying OPEN_EXISTING and BACKUP_SEMANTICS), then GetFileInformationByHandle. If we only want to find out whether the file is a directory, we could just to Fi

[issue11505] string.py increased test coverage

2011-03-17 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening to double check with Jerome's patch. -- resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open ___ Python tracker

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-17 Thread R. David Murray
R. David Murray added the comment: If the message contains 8bit bytes in a header, then getitem is going to return a Header object. decode_header does not operate on Header objects, as you have observed. Thinking about it some more, having decode_header operate on a Header and return its ch

[issue11587] METH_KEYWORDS alone gives "METH_OLDARGS is no longer supported!"

2011-03-17 Thread Ray.Allen
Ray.Allen added the comment: Looks like just the problem of error msg. -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> haypo nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11587] METH_KEYWORDS alone gives "METH_OLDARGS is no longer supported!"

2011-03-17 Thread Clive Darke
New submission from Clive Darke : In the PyMethodDef struct, METH_VARARGS | METH_KEYWORDS works fine. METH_KEYWORDS on its own gives: "SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no longer supported!" METH_KEYWORDS on its own tested OK on 2.6 and 2.7, fails as described on

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-17 Thread Ray.Allen
New submission from Ray.Allen : I guess there is a typo in the source of this function: Python/pythonrun.c: get_codec_name() diff -r 48970d754841 Python/pythonrun.c --- a/Python/pythonrun.cThu Mar 17 17:06:27 2011 +0800 +++ b/Python/pythonrun.cThu Mar 17 22:11:15 2011 +0800 @@ -

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10535] Enable warnings by default in unittest

2011-03-17 Thread Brian Curtin
Brian Curtin added the comment: I'm not seeing those warnings anymore, so I think the patch can be ignored. -- ___ Python tracker ___ ___

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Hmm, this kind of macros make it difficult to step line by line in a debugger. From this point of view, an inlined function would be better, I'm not sure if this can have a performance impact though. -- nosy: +amaury.forgeotdarc ___

[issue11383] compilation seg faults on insanely large expressions

2011-03-17 Thread SilentGhost
SilentGhost added the comment: 10**6 on the other hand seem to do the job -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11585] Documentation 1.8 shows Python 2 example

2011-03-17 Thread Clive Darke
Clive Darke added the comment: 1.8. Keyword Parameters for Extension Functions "Here is an example module which uses keywords, based on an example by Geoff Philbrick (philbr...@hks.com):" The example which follows will not compile on Python 3. --

[issue11585] Documentation 1.8 shows Python 2 example

2011-03-17 Thread Clive Darke
New submission from Clive Darke : Python 3.2 version attached -- assignee: docs@python components: Documentation files: parrot.c messages: 131246 nosy: cdarke, docs@python priority: normal severity: normal status: open title: Documentation 1.8 shows Python 2 example versions: Python 3.1,

[issue11383] compilation seg faults on insanely large expressions

2011-03-17 Thread SilentGhost
SilentGhost added the comment: 100k is, apparently, not enough on my system (linux2). test_crashers now fails. Are any system-specific details needed? -- nosy: +SilentGhost ___ Python tracker

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: -> test needed type: -> behavior versions: +Python 3.2 ___ Python tracker ___ __

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread R. David Murray
R. David Murray added the comment: I don't see a test case here, did you forget to attatch something? Also, in this: elf._msg[n] = email.header.make_header(email.header.decode_header(b)) unless 'b' is an ASCII-only string, it isn't going to work. -- ___

[issue1681333] email.header unicode fix

2011-03-17 Thread R. David Murray
R. David Murray added the comment: Yes, I can well understand that feeling. I've only relatively recently taken over maintaining the email package. I'm working my way through the old bug queue, and I can only deal with them in the context in which I find them. -- ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue847812] 64 bit solaris versus /usr/local/lib

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

  1   2   >