[issue11459] Python select.select does not correctly report read readyness

2011-03-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: yeah i figured importing io from os at the top level might be a problem. it is not important for the default to be that exact value, even something safely on the small side like 512 will work. but we could just have the default be set in

[issue11567] http.server error message format

2011-03-17 Thread Gennadiy Zlobin
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment: Hi guys, this is my first patch for the Python interpreter. Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP -- keywords: +patch Added file: http://bugs.python.org/file21262/11567.patch

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e9724d7abbc2 by Senthil Kumaran in branch '2.5': Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS attacks. http://hg.python.org/cpython/rev/e9724d7abbc2 -- nosy: +python-dev

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Senthil Kumaran
New submission from Senthil Kumaran orsent...@gmail.com: When pushed a change to 2.5 branch, I got an error, which I think has to do with buildbot not available for 2.5 codeline. It asked me to notify the tracker and here it is. remote: state = method(*args, **kw) remote: File

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

2011-03-17 Thread knickerkicker
New submission from knickerkicker knicker.kic...@gmail.com: Replaced boilerplate implementations of several BINARY_* and INPLACE_* opcodes with two macros. The result shaves off 154 lines from Python/ceval.c. -- components: Interpreter Core files: 20110317_ceval.patch keywords: patch

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in all the relevant code lines. -- assignee: - orsenthil priority: release blocker - resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I don't have any better suggestions at the moment so let's go with it. Perhaps we'll get more insight to the root cause later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11088

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The actual unwanted event is being generated as a result of the menu add command accelerator. You can see that by playing with Wish. set w .menu catch {destroy $w} toplevel $w wm title $w Menu Shift menu $w.menu -tearoff 0 set m $w.menu.basic $w.menu

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I don't think this needs to be documented beyond the limitations of floating-point that are already documented in the tutorial. It's the obvious behaviour: double to float (when packing) converts to the nearest float; the float to double

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Robert] I have to disagree. It seems entirely reasonable to expect that unpack should return the same value passed to pack. Robert: notice that a *Python* float (a *64-bit* C double internally) is here being stored as a *32-bit* float,

[issue11567] http.server error message format

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset db4967095f10 by Senthil Kumaran in branch '3.2': Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin. http://hg.python.org/cpython/rev/db4967095f10 -- nosy: +python-dev

[issue11567] http.server error message format

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in 3.3 and 3.2. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11567 ___

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

2011-03-17 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Report here: http://stackoverflow.com/questions/5316928/python-os-path-isdir-is-slow-on-windows It could be a problem with Windows itself, but I'm opening this to keep track of the issue, just to be on the safe side. -- components:

[issue11557] Increase coverage in logging module

2011-03-17 Thread Gennadiy Zlobin
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com: -- nosy: +gennad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list

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

2011-03-17 Thread Gennadiy Zlobin
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com: -- nosy: +gennad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4492 ___ ___ Python-bugs-list

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

2011-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: How do you expect this to be resolved? Or will it stay open until Microsoft improves the NTFS performance? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue11568] docstring of select.epoll.register() is wrong

2011-03-17 Thread Gennadiy Zlobin
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11568

[issue11568] docstring of select.epoll.register() is wrong

2011-03-17 Thread Gennadiy Zlobin
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment: The patch fixes the docstring -- keywords: +patch nosy: +gennad Added file: http://bugs.python.org/file21265/11568.patch ___ Python tracker rep...@bugs.python.org

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

2011-03-17 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: On Thu, Mar 17, 2011 at 12:46, Martin v. Löwis rep...@bugs.python.orgwrote: I opened this in order not to forget to look at the implementation of isdir on windows, making sure it's the most optimal thing we can do. If you know it is, the issue

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

2011-03-17 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file21266/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583 ___

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

2011-03-17 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: My minimal failing test case dragged yet another EMAIL error to the light!!! Man, man, man - it's really great that QNX fund money so that you have the time to fix this broken thing! It's got washed away, but

[issue11580] Add width and precision formatters to PyBytes_FromFormatV()

2011-03-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - haypo nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11580 ___ ___

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1628484 ___ ___ Python-bugs-list mailing

[issue1676121] Problem linking to readline lib on x86(64) Solaris

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1676121 ___ ___ Python-bugs-list mailing

[issue1733484] Solaris 64 bit LD_LIBRARY_PATH_64 needs to be set

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1733484 ___ ___ Python-bugs-list mailing

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

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue847812 ___ ___ Python-bugs-list mailing list

[issue1294959] Problems with /usr/lib64 builds.

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing

[issue1681333] email.header unicode fix

2011-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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.

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

2011-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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. --

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

2011-03-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray stage: - test needed type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11584

[issue11383] compilation seg faults on insanely large expressions

2011-03-17 Thread SilentGhost
SilentGhost ghost@gmail.com 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 rep...@bugs.python.org

[issue11585] Documentation 1.8 shows Python 2 example

2011-03-17 Thread Clive Darke
New submission from Clive Darke clive.da...@qa.com: 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

[issue11585] Documentation 1.8 shows Python 2 example

2011-03-17 Thread Clive Darke
Clive Darke clive.da...@qa.com 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. --

[issue11383] compilation seg faults on insanely large expressions

2011-03-17 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: 10**6 on the other hand seem to do the job -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11383 ___

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

2011-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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:

[issue10535] Enable warnings by default in unittest

2011-03-17 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I'm not seeing those warnings anymore, so I think the patch can be ignored. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10535 ___

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

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11582 ___ ___ Python-bugs-list mailing

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

2011-03-17 Thread Ray.Allen
New submission from Ray.Allen ysj@gmail.com: 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

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

2011-03-17 Thread Clive Darke
New submission from Clive Darke clive.da...@qa.com: 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,

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

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - haypo nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11586 ___ ___

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

2011-03-17 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Looks like just the problem of error msg. -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11587 ___

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

2011-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue11505] string.py increased test coverage

2011-03-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Reopening to double check with Jerome's patch. -- resolution: fixed - stage: committed/rejected - commit review status: closed - open ___ Python tracker rep...@bugs.python.org

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

2011-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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,

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

2011-03-17 Thread Clive Darke
Clive Darke clive.da...@qa.com added the comment: Same error on 3.2 with Windows MSC v.1500 and Linux gcc version 4.1.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11587 ___

[issue11577] testcase for exception binhex.Error

2011-03-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-03-17 Thread Brian Curtin
Brian Curtin br...@python.org 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 rep...@bugs.python.org

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

2011-03-17 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4492 ___ ___ Python-bugs-list mailing list

[issue1681333] email.header unicode fix

2011-03-17 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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 rep...@bugs.python.org

[issue11588] Add necessarily inclusive groups to argparse

2011-03-17 Thread John Didion
New submission from John Didion johndid...@gmail.com: 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

[issue11589] Unit test extensions for email module

2011-03-17 Thread Michael Henry
New submission from Michael Henry pyt...@drmikehenry.com: 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:

[issue11588] Add necessarily inclusive groups to argparse

2011-03-17 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11588 ___ ___ Python-bugs-list mailing

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Robert Withrow
Robert Withrow bigbaaad...@gmail.com 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

[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 pyt...@drmikehenry.com: 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

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue10979] setUpClass exception causes explosion with -b

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Should you be pushing anything to 2.5? -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11581 ___

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

2011-03-17 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: See Issue 11439. -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11579 ___

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-17 Thread Thomas Wouters
Thomas Wouters tho...@python.org 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,

[issue11470] Flag inappropriate uses of callable class attributes

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

[issue10979] setUpClass exception causes explosion with -b

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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 --

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

2011-03-17 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: Removed file: http://bugs.python.org/file21140/issue_11506.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11506 ___

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

2011-03-17 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de 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 rep...@bugs.python.org

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Robert Withrow
Robert Withrow bigbaaad...@gmail.com 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

[issue10979] setUpClass exception causes explosion with -b

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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: -

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

2011-03-17 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583 ___ ___ Python-bugs-list

[issue10812] Add some posix functions

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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 ___

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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

[issue10812] Add some posix functions

2011-03-17 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- assignee: - rosslagerwall resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-17 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net 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

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Robert Withrow
Robert Withrow bigbaaad...@gmail.com 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

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

2011-03-17 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: ping? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5421 ___ ___

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

2011-03-17 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: up! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195 ___ ___ Python-bugs-list

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

2011-03-17 Thread Carl Meyer
New submission from Carl Meyer c...@dirtcircle.com: 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,

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

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

[issue10812] Add some posix functions

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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 rep...@bugs.python.org

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

2011-03-17 Thread knickerkicker
knickerkicker knicker.kic...@gmail.com 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

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

2011-03-17 Thread Matt Joiner
Matt Joiner anacro...@gmail.com 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

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

2011-03-17 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: -1 I think this will make the code harder to understand and maintain. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11582

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

2011-03-17 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low versions: -Python 3.1, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11582 ___

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

2011-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks. Would you mind adding tests in test_site? -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11591

[issue11592] Compilation warnings in os module

2011-03-17 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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 :

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

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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':

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

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue11573] Improve Unicode Documentation with Known Caveats

2011-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you provide a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11573 ___

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

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-03-17 Thread Carl Meyer
Carl Meyer c...@dirtcircle.com 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.

[issue10914] Python sub-interpreter test

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull 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:

[issue10914] Python sub-interpreter test

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ouch, sorry, I got my commit message wrong. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10914 ___

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

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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. --

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

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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

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

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11320 ___ ___ Python-bugs-list mailing

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

2011-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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) {

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

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- 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

[issue10914] Python sub-interpreter test

2011-03-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue11573] Improve Unicode Documentation with Known Caveats

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - docs@python components: +Documentation nosy: +docs@python versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11573

  1   2   >