[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

[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

[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

[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

[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

[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:

[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.

[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

[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

[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 -- ___

[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

[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

[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 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. -

[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 _

[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

[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

[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://

[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

[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

[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

[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

[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 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

[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

[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 ___

[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

[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 _

[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

[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: 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

[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

[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 ___ ___

[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

[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: Not sure why this is marked for 3.3. -- versions: +Python 3.2 -Python 3.3 ___ Python tracker ___

[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 ___ _

[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

[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

[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:/

[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' : -- nosy: +giampaolo.rodola status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing l

[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:/

[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

[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

[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

[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 STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16503/utf8_surrogate_error.patch ___ Python tracker ___ ___ Python-bugs-li

[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

[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

[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:

[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

[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

[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

[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)? -- __

[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 ___ _

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

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The test passes just fine on my machine. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: accepted -> versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___ __

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

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a patch that fixes this issue to issue 7724. -- ___ Python tracker ___ ___ Python-bug

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: I added an additional invalid test which David pointed out and made changes to invalid url checking code. I moved it more higher level. - The reason for doing this is, invalid url test code (which is very specific for '[' enclosed ']' ipv6 url is concentrate

[issue7724] setup.py ignores SDK root on OSX

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch (for the trunk) fixes this issue on my machine. The patch also fixes issue 8444. I wouldn't mind some review of the patch, it does affect core bits of setup.py. -- keywords: +needs review stage: needs patch -> patch review Added fi

[issue4470] smtplib SMTP_SSL not working.

2010-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8461] PythonLauncher universal build fails due to missing -arch and -sysroot

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've fixed this issue in all branches and can now do clean builds. BTW. Builds with the 10.4u SDK on OSX fail at the moment for 2.7 and 3.2, that's due to issue 7724, I've attached a patch to that issue that should fix it (for the trunk, porting it to 3.2 sh

[issue1926] NNTPS support in nntplib

2010-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9309/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue1926] NNTPS support in nntplib

2010-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9298/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue8109] Support for TLS Server Name Indication extension

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Duplicate of issue5639. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> Support TLS SNI extension in ssl module ___ Python tracker ___

[issue5238] ssl makefile never closes socket

2010-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue7927] SSL socket is not closed properly

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Probably a duplicate of issue5238. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> ssl makefile never closes socket ___ Python tracker ___

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

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: The new "ciphers" argument in trunk and py3k should do the trick, shouldn't it? Do note that starting with OpenSSL 1.0.0, SSLv2 is disabled by default when using the "SSLv23" client method (you can re-enable it by specifying "ALL" for the cipher list). --

[issue5639] Support TLS SNI extension in ssl module

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Too late for 2.7 now, but looks like a good idea. -- nosy: +pitrou priority: -> normal stage: -> patch review versions: -Python 2.7 ___ Python tracker __

[issue8263] regrtest stops prematurately on FreeBSD buildbot, with "success" result.

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: Confirmed on FreeBSD-6.4/py3k. Threading causes the problem, the skip works here, too. -- nosy: +skrah ___ Python tracker ___ _

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Amaury, I'm closing this for the same reason I explained in msg103745 -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Amaury, I fail to see how the error you get on Windows is related to this issue. AFAICT, neither the issue nor the patch affects Windows at all. Closing the issue as fixed. If you think there is also an issue on Windows, please submit a new bug report. Howe

[issue3597] Allow application developers to select ciphers, and default to strong in ssl lib

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I had never seen this issue but committed almost exactly the same feature in r80151. The parameters is named "ciphers" rather than "cipher_list" and allows you to override the allowed ciphers when creating an SSL object. It will be available in Python 2.7 and

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Bill, I think we should move forward with this. Do you agree that removing the timeout dance is the right solution? -- nosy: +pitrou priority: -> high versions: +Python 2.7 ___ Python tracker

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

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm attaching the full output. It's the same as the one in the original report (msg103442) still. -- Added file: http://bugs.python.org/file17011/test_gdb.txt ___ Python tracker

[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: New version without the hardcoded limit: don't use goto encodeUCS4;, chain if to limit indentation depth: it only costs one copy of the UCS4 (5 lines are duplicated). The buffer is now reallocated each time a surrogate escape is longer than 4 bytes. I don't

[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Suggestion for Py2.x: See :func:`itertools.ifilter` and :func:`itertools.ifilterfalse` for iterator versions of this function, including a variation that filters for elements where the *function* returns *False*). -- __

[issue3132] implement PEP 3118 struct changes

2010-04-20 Thread Noufal
Changes by Noufal : -- nosy: +noufal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue8474] Duplicate tests in email test suite

2010-04-20 Thread Shashwat Anand
New submission from Shashwat Anand : In trunk/Lib/email/test/test_email.py, test_default_cte() is repeated twice, one being the subset of other. Attached patch resolve the duplicity. -- components: Library (Lib) files: test_email.patch keywords: patch messages: 103739 nosy: barry, l0nwl

[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Alexander Myodov
Alexander Myodov added the comment: In this case, I'd suggest to rephrase it to "See :func:`itertools.ifilterfalse` for the complementary function that returns the iterator over the elements of *iterable* for which *function* returns false.", or even remove this line at all (because, ifilterf

[issue4843] make distutils use shutil

2010-04-20 Thread Éric Araujo
Éric Araujo added the comment: This has been done in Distutils2, see http://hg.python.org/distutils2/rev/18dc3dba4075 and http://hg.python.org/distutils2/rev/98b70f92bf0a Changing component and closing the bug, please reopen if I’m wrong :) Regards -- resolution: -> accepted stage

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

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16998/test_gdb-2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16997/add-conditions-for-gdb.Frame.select-to-trunk.patch ___ Python tracker ___ _

[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: That line has been added first on py3k where the function is called 'itertools.filterfalse' and then ported to 2.x. Most likely the 'i' has been forgotten. A new filterfalse function can't be added to 2.7 because it's already in beta. I fixed the link to point t

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-20 Thread Andres Moreira
Changes by Andres Moreira : -- nosy: +andrix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Alexander Myodov
Changes by Alexander Myodov : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8473] doctest fails if you have inconsistent lineendings

2010-04-20 Thread Lennart Regebro
New submission from Lennart Regebro : If the doctest file has both Windows and unix lineendings you get an error. Yeah, I know, it's not a serious bug, but it's also easy to fix. Attached patch with test. Seems to not be an issue on Python 3. -- components: Extension Modules, Tests fil

[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2010-04-20 Thread Facundo Batista
Facundo Batista added the comment: I'm ok with the proposed changes from Sidnei (yes, a patch is needed). -- ___ Python tracker ___ __

[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Alexander Myodov
New submission from Alexander Myodov : The documentation (eg at http://docs.python.org/release/2.6.5/library/functions.html#filter) tells that there should be an itertools.filterfalse() function complementary to builtin filter() function, that returns the list of elements (instead of the itera

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: BTW, it does not bother me that "date.strptime() seems a bit odd, given that it cannot accept a time part." To me "time" in strptime means time specification that may include date, time or even just month. If parsed specification does not fit in date

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am +1 for adding these features and I have only one comment on the code: It is documented in time.strptime() documentation that """ The default values used to fill in any missing data when more accurate values cannot be inferred are (1900, 1, 1, 0, 0,

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

2010-04-20 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue5302] Allow package_data globs match directories

2010-04-20 Thread Éric Araujo
Éric Araujo added the comment: Hello Tarek, could you briefly explain the arguments that convinced you? If MANIFEST.in is removed, perhaps we could use convention instead of configuration to categorize files, like what DistutilsExtra does: http://bazaar.launchpad.net/~python-distutils-extra-

[issue8274] test_run failing

2010-04-20 Thread Alexandre Conrad
Alexandre Conrad added the comment: worksforme: test_run (distutils2.tests.test_build_clib.BuildCLibTestCase) ... ok Python 2.6.2 on Ubuntu 9.04 -- nosy: +aconrad ___ Python tracker __

[issue5243] Missing dependency in distutils build

2010-04-20 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 -Distutils versions: +Python 2.5, Python 3.1, Python 3.3 ___ Python tracker ___ ___

[issue8471] Unicode returns in doctest can make subsequent tests fail

2010-04-20 Thread Lennart Regebro
New submission from Lennart Regebro : If we return unicode, SpoofOut's buf variable becomes automagically converted to unicode. This means all subsequent output becomes converted to unicode, and if the output contains non-ascii characters that fails. That means that >>> print u'\xe9'.enc

[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-20 Thread Aaron Sherman
Aaron Sherman added the comment: Matthew, thank you for replying. I still think the primary issue is the potential for confusion between single digit escapes and backreferences, and the ease with which they could be addressed, but to cover what you said: Quote: the normal way to handle "\41"

[issue8470] Let cmd.cmd.intro be unicode friendly

2010-04-20 Thread phep
New submission from phep : Since cmd.cmdloop() says: # ... self.stdout.write(str(self.intro)+"\n") # one cannot use unicode characters in cmd.cmd.intro, for example the copyright (©) character (u'\xa9'). TIA -- messages: 103726 nosy: phep severity: normal status: open title: Let

  1   2   >