[issue967275] Better SSL support in socket module

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Too vague and probably outdated, closing. -- nosy: +pitrou resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: > in any case, I can report that it doesn't fix *this* issue Did you applied the patch version 3? The first version didn't fixed is_evalframeex(), but the version 3 does. Could you retry with the last patch (version 3)? -- __

[issue7852] [PATCH] Drop "Computer" from "Apple Computer" in plistlib

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that the DTD should be changed. Fixed in r80279 (trunk) and r80280 (3.2). I won't backport to 2.6 and 3.1 because this is a mostly cosmetic issue and I do not want to risk breaking existing scripts. -- resolution: -> fixed stage: patch rev

[issue8459] buildbot: test_select failure (test_returned_list_identity) on Python 2.6, Windows

2010-04-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r80281. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue1289118] timedelta multiply and divide by floating point

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is in a way more similar to issue1083 than to issue2706. I am -1 on this RFE for the same reason as I am opposing allowing true division of timedelta by an int. The timedelta type is fundamentally an integer type. A type delta is just a certain

[issue8447] buildbot: test_httpservers failure (No module named operator)

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's probably something wrong in the way test_httpservers sets up its own environment (can it impact the import mechanism?). The operator module exists and imports correctly in other conditions, e.g. test_operator passes on that buildbot. -- nosy:

[issue8444] openssl version detection doesn't work properly when using OSX SDK

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like you forgot your patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue1289118] timedelta multiply and divide by floating point

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I meant rejecting issue1083, of course. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16503/utf8_surrogate_error.patch ___ Python tracker ___ ___ Python-bugs-li

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Yes, I did try with version 3. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't know if "nallocated += repsize - 4;" can overflow or not. > If yes, how can I detect the overflow? Sure, if they are both Py_ssize_t, just use: if (nallocated > PY_SSIZE_T_MAX - repsize + 4) { /* handle overflow ... */ } -- nosy: +pitrou

[issue8444] openssl version detection doesn't work properly when using OSX SDK

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch is attached to issue 7724. As that issue notes the current version of setup.py ignores OSX SDKs during builds, the patch in that issue makes sure that setup.py looks in the SDK when looking for files (The patch also modifies distutils.unixccompiler

[issue7724] setup.py ignores SDK root on OSX

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: As a short explanation of OSX SDKs: those are basicly directories containing header files and stub libraries with the same directory structure as a real system. As an example, /Developer/SDKs/MacOSX10.4u.sdk contains the 10.4u SDK, that tree contains /Deve

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2010-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7724] setup.py ignores SDK root on OSX

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's a bunch of debug stuff in that patch ("if 1", commented out lines...). Also, the patch should not change behaviour on non-OS X platforms, which is not obvious right now. -- nosy: +pitrou ___ Python tracker

[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1289118] timedelta multiply and divide by floating point

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: > The timedelta type is fundamentally an integer type. I disagree strongly with this, and find this a bizarre point of view. Regardless of how the timedelta is stored internally, it's used to represent physical times. I doubt there are many applications tha

[issue1083] Confusing error message when dividing timedelta using /

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: I think it's fine to do the division and round the result to the nearest whole number of microseconds. I don't see any good reason for disallowing timedelta / int (or even timedelta / float). -- nosy: +mark.dickinson

[issue1083] Confusing error message when dividing timedelta using /

2010-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- type: behavior -> feature request versions: +Python 3.2 -Python 2.7, Python 3.0 ___ Python tracker ___ _

[issue1289118] timedelta multiply and divide by floating point

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Not sure why this is marked for 3.3. -- versions: +Python 3.2 -Python 3.3 ___ Python tracker ___

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: The patch does make a slight difference for me - I go from 14 failures down to 8 failures and 6 skipped. The post-patch failures appear to be the same ones Martin is getting: "test_gdb.get_stack_trace" is regularly failing due to the lack of "gdb.Frame.functio

[issue1289118] timedelta multiply and divide by floating point

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: I'll take a look at Skip's patch. -- assignee: -> skip.montanaro ___ Python tracker ___ ___ Pyth

[issue1289118] timedelta multiply and divide by floating point

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops. I meant to assign this to me, not Skip. -- assignee: skip.montanaro -> mark.dickinson ___ Python tracker ___ ___

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: I don't understand because after applying the patch, there is not occurence of ".function" in Tools/gdb/libpython.py nor Lib/test/test_gdb.py. Do you have an old python-gdb.py file in your Python root directory? I noticed that I had such file in my python tru

[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Oh no :-( I realized that I removed the first message of this issue! msg100687. Copy/paste of the message: --- This issue is a regression introduced by r72208 to fix the issue #3672. Attached patch fixes PyUnicode_EncodeUTF8() if unicode_encode_call_errorhand

[issue1083] Confusing error message when dividing timedelta using /

2010-04-20 Thread Skip Montanaro
Skip Montanaro added the comment: Mark> I think it's fine to do the division and round the result to the Mark> nearest whole number of microseconds. Right. Just think of a timedelta as a floating point number of seconds with very limited precision (1e-6 seconds). -- _

[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot the remove the reallocation in the unicode case in the patch version 2. Patch version 3: - micro-optimization: group both surrogates cases in the same if to avoid checking 0xD800 <= ch twice - check for integer overflow - (remove the duplica

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Do you have an old python-gdb.py file in your Python root directory? Ah, ok. That was the problem indeed. The patch actually works fine. -- ___ Python tracker _

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, yep - "rm python-gdb.py", "make" cleared up those remaining ".function" failures. The makefile could probably use a Modules/Setup.dist vs Modules/Setup style warning when libpython.py is newer than python-gdb.py to help prevent anyone else getting caught by

[issue8299] Improve GIL in 2.7

2010-04-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sorry Martin, I meant issue 8410. I have so many of these going on :) -- ___ Python tracker ___

[issue7852] [PATCH] Drop "Computer" from "Apple Computer" in plistlib

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: r80279 and r80280 caused many buildbot to fail: i386 Ubuntu 3.x AMD64 Ubuntu trunk AMD64 Ubuntu wide trunk x86 Ubuntu trunk x86 XP-4 trunk x86 XP-5 trunk == FAIL: test_appleformattin

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Dave Malcolm
Dave Malcolm added the comment: In msg103780 Martin v. Löwis wrote: > Ah, ok. That was the problem indeed. The patch actually works fine. Good to hear. Thanks for tracking this down and clarifying it. As I understand it, the current status of this bug is that file17000 fixes the reported issu

[issue8299] Improve GIL in 2.7

2010-04-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: It is interesting to see, David, the difference in the behaviour of the semaphore based and condition variable based lock on linux. It is clear that the semaphore and the condition varable have different queuing characteristics. I wouldn't be surpri

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Fixed: r80289 (trunk), r80290 (py3k). I will check the buildbots :-) Nick: Can you open a new issue for your last issue? I will open a new issue for my suggestions. I also realized that gdb is missing in the documentation! -- resolution: -> fixed st

[issue2706] datetime: define division timedelta/timedelta

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Stealing from Tennessee... Patch committed to py3k in r80290, r80291, with some minor tweaks and fixes: - rename delta_remailder to delta_remainder - fix memory leak in delta_remainder - add whatsnew entry for docs - note that timedelta // timedelta return

[issue2706] datetime: define division timedelta/timedelta

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Grr. s/whatsnew/versionadded/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Dave Malcolm
Dave Malcolm added the comment: > Fixed: r80289 (trunk), r80290 (py3k). I will check the buildbots :-) Please forgive my pedantry, but these appear to be off-by-one; the commits appear to have been: r80288 (trunk), r80289 (py3k) -- ___ Python tracke

[issue8439] test_linecache failing in py3k r80169

2010-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8475] build-installer fix for doc building on OSX 10.4

2010-04-20 Thread David Bolen
New submission from David Bolen : The attached suggested patch changes build-installer to pass along the same Python executable that it itself is running under to the documentation Makefile. This fixes an issue on OSX where pruning the PATH reverts to the system python (2.3.5) which is too ol

[issue8476] build-installer fix for setIcon when no script path specified

2010-04-20 Thread David Bolen
New submission from David Bolen : The attached suggested patch fixes a small bug where if you execute the build-installer script without an explicit path (e.g., "python build-installer.py") the setIcon compilation will fail since dirname(__file__) is an empty string, so it ends up looking for

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an adapted patch for py3k. It also adds a couple of test cases. -- nosy: +pitrou Added file: http://bugs.python.org/file17016/sslopts.patch ___ Python tracker _

[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames

2010-04-20 Thread STINNER Victor
New submission from STINNER Victor : _ssl.sslwrap() has 3 filename arguments: key_file, cert_file and cacerts_file. It uses "z" format to parse them. Attached patch uses PyUnicode_FSConverter() to support surrogates, bytes and bytearray. It fixes also test_decode_certificate() function. -

[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +_ssl: support surrogates in filenames, and bytes/bytearray filenames ___ Python tracker ___

[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some comments: - your ssl_convert_filename() function has a strange signature - using PyByteArray_AsString() is wrong, we release the GIL later and the buffer could be reallocated, leading to a crash; the right approach is to use PyObject_GetBuffer() and later

[issue3631] Improve gdbinit of Python 2.6

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Gdb7 now supports Python as a script language, and Python trunk/py3k has a gdb library to debug Python programs. It's much better than the old Misc/gdbinit script. Close this issue as "out of date". -- resolution: -> out of date status: open -> clos

[issue4036] Support bytes for subprocess.Popen()

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: subprocess accepts byte string in program arguments in py3k, so the issue can be closed. I opened other issues for the other arguments: - current working directory: #8393 - environment variables: #8391 - error message: #8467 -- ___

[issue4036] Support bytes for subprocess.Popen()

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8413] String interpolation doesn't work with sys.version_info

2010-04-20 Thread Eric Smith
Eric Smith added the comment: I think the right way to handle this is to modify the test: if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) && !PyObject_TypeCheck(args, &PyBaseString_Type)) to also exclude PyStructSequence's, but since they're all distinct types I don't see how to

[issue8451] syslog.syslog('msg') logs message with ident "python".

2010-04-20 Thread Sean Reifschneider
Sean Reifschneider added the comment: Ok, so I left the argument style in the docs as it was. *** NOTE ***: Sean: Change this for the 3 trunk commit. Setting the "python" string is outside of the argv function because we want to use "python" on any of the many places where the return is done.

[issue8478] tokenize.untokenize first token missing failure case

2010-04-20 Thread rb
New submission from rb : When altering tokens and thus not providing token location information, tokenize.untokenize sometimes misses out the first token. Failure case below. Expected output: 'import foo ,bar\n' Actual output: 'foo ,bar\n' $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:

[issue8188] Unified hash for numeric types.

2010-04-20 Thread Case Van Horsen
Case Van Horsen added the comment: I've spent some time working through the new hash function by re-implementing it for gmpy. Very elegant design. I like _PyHASH_MODULUS better, too. Regarding a hash function for complex types, I think documenting the existing behavior for PyComplex is suffi

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-20 Thread Steven Bethard
Steven Bethard added the comment: Thanks for the patch! One concern I have is that adding --help-options by default has the potential to break existing code, e.g. if someone using optparse or argparse was already defining their own --help-options flag. The backward compatible solution is to h

[issue8479] test_gdb: No stack

2010-04-20 Thread Martin v . Löwis
New submission from Martin v. Löwis : test_gdb currently fails on 3k; some tests with a "No stack" message. I'll attach the full output, but would like this issue to focus on the "No stack" failures. -- files: test_gdb.txt messages: 103802 nosy: loewis severity: normal status: open tit

[issue8479] test_gdb: No stack

2010-04-20 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- assignee: -> dmalcolm nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8480] test_gdb: No frame is currently selected.

2010-04-20 Thread Martin v . Löwis
New submission from Martin v. Löwis : test_gdb fails on 3k; some tests with a message "Error occurred in Python command: No frame is currently selected." A separate problem was reported as #8479; I'm attaching the full test_gdb output. -- assignee: dmalcolm files: test_gdb.txt message

<    1   2