[issue8464] tarfile creates tarballs with execute permissions set

2010-04-20 Thread Lars Gustäbel
Lars Gustäbel added the comment: 0666 is the right mode and the patch is correct. @Tarek: Why does shutil.make_archive() use mode "w|..." instead of "w:..."? IMHO that is not necessary, because it works on regular files only. -- ___ Python tracker

[issue8190] Add a PyPI XML-RPC client module

2010-04-20 Thread Alexandre Conrad
Changes by Alexandre Conrad : -- nosy: +aconrad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: So, here's what I am planing to do after a little thought: When a dangling symlink occurs and symlinks=false, copytree() will just emit a warning, unless the onerror option (new option) is set to a callable. In that case it will receive the src/dst values, and i

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/optio

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: Please ignore my last message. I've written a test for your error, and it turns out that the error is caught and just raised at the end of the process, meaning that everything else was copied before you get the exception. So shutil.copytree didn't fail. Now, t

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: Committed fix (with the freebsd6 skips intact) in r80238, r80239, r80240 and r80241. David, is it intentional that py3k doesn't have the freebsd6 fixes? -- assignee: -> skrah resolution: -> accepted status: open -> pending ___

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-04-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've committed my proposed fix in r80243 (trunk) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: Added in r80244. This new option willl be available in the next 3.2 release. Until 3.2 is released, what you can do is catch the errors and re-raise the ones that are not due to dangling symlinks: (not tested) >>> from shutil import copytree, Error >>> try: ...

[issue7969] shutil.copytree error handling non-standard and partially broken

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: I agree with all your points. The copystat error can be fixed right away and applied for 2.6 to 3.x For other points, I'll change the way the Error works but this will require an heavy deprecation process. In the meantime I can document the behavior, and provi

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: Mart, I took over the maintenance of shutil, if you are interested in contributing a bullet-proof version of rmtree, please drop a line at python-ideas, and let's see what we can do in a new function maybe. I'll be happy to review and apply patches if we get a

[issue8466] typo in tp_name of cStringIO

2010-04-20 Thread Anthon van der Neut
New submission from Anthon van der Neut : if you execute the following code from cStringIO import StringIO x = StringIO() x.get_value() you will see that the AttributeError line has a typo it displays 'cStringIO.StringO' instead of 'cStringIO.StringIO' this error is in line 529 of the Modu

[issue1355826] shutil.move() does not preserve ownership

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: That's because there's no simple, portable way to copy all metadata. If you need to copy all of them you will need to use OS-specific APIs -- assignee: -> tarek nosy: +tarek resolution: -> wont fix status: open -> closed ___

[issue8460] Set a timeout in test_urllib2net

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Don't you port the fix to py3k? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue1145257] shutil.copystat() may fail...

2010-04-20 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek resolution: -> accepted versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 3.0 ___ Python tracker _

[issue1666318] shutil.copytree doesn't preserve directory permissions

2010-04-20 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8460] Set a timeout in test_urllib2net

2010-04-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, definitely it needs to be ported. I realized that, py3k was in a bad shape at moment. File "Lib/test/test_urllib2net.py", line 151, in _test_urls import logging File "/home/senthil/python/py3k/Lib/logging/__init__.py", line 43, in import threadi

[issue8466] typo in tp_name of cStringIO

2010-04-20 Thread Eric Smith
Eric Smith added the comment: >From issue 8121: That name is actually correct. cStringIO features two different types, depending on whether you call cStringIO.StringIO() with or without an argument. One is called "StringI", the other "StringO". -- nosy: +eric.smith resolution: ->

[issue8460] Set a timeout in test_urllib2net

2010-04-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: make distclean erased the problem. :) merged to py3k in r80256 and release31-maint in r80257. Had merged to release26-maint in r80237 -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed __

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +utf8, backslashreplace and surrogates ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Stefan, you move too fast! I was going to review that second patch, honest! I'm not 100% sure (David can probably confirm), but I think your sys.stdout.write should be a sys.stderr.write. -- status: pending -> open __

[issue8467] subprocess: surrogates of the error message (Python implementation on non-Windows)

2010-04-20 Thread STINNER Victor
New submission from STINNER Victor : On a non-Windows OS where _posixsubprocess is missing (subprocess uses the pure Python implementation), if the child fails with a Python exception and the exception message contains a surrogate character, message.encode() fails silently (exception while pro

[issue8467] subprocess: surrogates of the error message (Python implementation on non-Windows)

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +subprocess: surrogates of the error message (Python implementation on non-Windows) ___ Python tracker ___ __

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

2010-04-20 Thread Matthew Barnett
Matthew Barnett added the comment: Octal escapes are at most 3 octal digits, so the normal way to handle "\41" + "1" is "\0411". Some languages support variable-length hex escapes of the form "\x{1B}", so we could add that and also "\o{41}" for octal. BTW, in some languages "\e" is "\x1B".

[issue8468] bz2: support surrogates in filename, and bytes/bytearray filename

2010-04-20 Thread STINNER Victor
New submission from STINNER Victor : bz2 uses "s" format to parse the filename argument: it uses the default (unicode) encoding to encode the unicode filename to a byte string. It should use the default file system encoding instead. It should also support surrogates in unicode filename and byt

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

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

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

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: > I haven't reviewed the patch in detail yet, but it seems to me that > it fixes independent issues. Right. First I only wanted to fix import machinery, but then I fixed a lot of "indenpendent" issues to test the patch on import. All fixes are related to surr

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: Mark, sorry, let me know if I should revert anything. I took the stdout over from some similar print statements that once were in test_uuid (I agree that stderr would seem more natural). [http://svn.python.org/view/python/trunk/Lib/test/test_uuid.py?r1=50896&r2=5

[issue8469] struct - please make sizes explicit

2010-04-20 Thread Mads Kiilerich
New submission from Mads Kiilerich : The struct module is often used (at least by me) to implement protocols and binary formats. That makes the exact sizes (number of bits/bytes) of the different types very important. Please add the sizes to for example the table on http://docs.python.org/li

[issue6483] Modules are not deallocated correctly if m_size = -1

2010-04-20 Thread Julian Andres Klode
Julian Andres Klode added the comment: This bug still exists in Python 3.1.2. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: The Tiger buildbot triggers the message in build #31: test_signal test_itimer_virtual: timeout: likely cause: machine too slow or load too high. But build #23 is ok. -- ___ Python tracker

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Matthias Klose
Matthias Klose added the comment: > Does Ubuntu use a small stack size? it's 8192 on all architectures. -- nosy: +doko ___ Python tracker ___ ___

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Matthias Klose
Matthias Klose added the comment: I'm told it's 10240 on Fedora 12, x86 and x86_64 -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Allocate more than 16 bytes on the stack is never a good idea. Eg. Linux does never resize the size automatically, and the only way to catch "allocatation failed" error is to handle the SIGSEGV signal... Remove buf allocated on the stack by a buffer allocated

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: A 16KB stack buffer is tiny compared to a 8MB stack. I'm not sure removing that buffer would really fix the problems. Perhaps other threads get a smaller stack? -- ___ Python tracker

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

2010-04-20 Thread Eric Smith
Eric Smith added the comment: A couple of points: Didn't we decide that instead of using: openlog(ident[, logopt[, facility]]) we'd use: openlog(ident, logopt=None, facility=None) (or whatever the defaults are)? I can't find a reference, but the argument was that it's how Python signatures

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: What's the value of MAXPATHLEN and PATH_MAX on those systems? -- ___ Python tracker ___ ___ Python-b

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: The problem is highlighted with recursive imports: a module which imports another module, which imports another module, etc. PyMarshal_ReadLastObjectFromFile is not the only function to use stack-allocated buffers, there are also load_source_module, l

[issue6600] MemoryError in AiX 64-bit - PyMem_MALLOC fails in open/fdopen

2010-04-20 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: It really looks like a broken compiler: if you want to convince yourself, perform a disassembly of the crashing code. I'd suggest to close this one. -- nosy: +neologix ___ Python tracker

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem is highlighted with recursive imports: > a module which imports another module, which imports another module, > etc. PyMarshal_ReadLastObjectFromFile is not the only function to use > stack-allocated buffers, there are also load_source_module, > lo

[issue8124] mywrite() ignores PyFile_WriteString() errors

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Another solution: disable call to PyErr_CheckSignals() in mywrite(). -- ___ Python tracker ___ ___ P

[issue8469] struct - please make sizes explicit

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is very easy to generate the size table programmatically: >>> for c in "xcbB?hHiIlLqQfdspP": ... print(c, struct.calcsize(c)) ... x 1 c 1 b 1 B 1 ? 1 h 2 H 2 i 4 I 4 l 8 L 8 q 8 Q 8 f 4 d 8 s 1 p 1 P 8 However, all values above except trivial 1-b

[issue8395] shutil.copytree() add a copy_func parameter.

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have just added this feature yesterday, see #1540112. Thanks! -- resolution: -> duplicate status: open -> closed superseder: -> Allow choice of copy function in shutil.copytree ___ Python tracker

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Timothee Besset
Timothee Besset added the comment: Good stuff. Didn't occur to me that the operation could have successfully completed before raising the exception -- ___ Python tracker ___ ___

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: Thanks for your work on Quake btw ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread resc
resc added the comment: Hi, I'm working on reproducing this again, but it's always been a very sporadic bug, and I haven't gotten a bingo yet. - return the result of "ulimit -s" on their box 8192 - return the result of "ltrace -e pthread_attr_setstacksize " There's no output from ltrace when I

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Timothee Besset
Timothee Besset added the comment: My pleasure! We do use a lot of python. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7150] datetime operations spanning MINYEAR give bad results

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: My patch includes unit tests and I tested it on Mac OS X. Anand, what kind of testing do you have in mind? -- versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Matthias Klose
Matthias Klose added the comment: PATH_MAX/MAXPATHLEN is 4096 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8469] struct - please make sizes explicit

2010-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: As Alexander says, *all* the sizes except those for bytes are platform-dependent: there are platforms where sizeof(short) isn't 2, for example, or where sizeof(int) isn't 4. It would be possible to add the 'standard' sizes to that table (i.e. the sizes that

[issue8295] add unpack_archive to shutil

2010-04-20 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: -> accepted versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8469] struct - please make sizes explicit

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Apr 20, 2010 at 10:30 AM, Mark Dickinson wrote: .. > It would be possible to add the 'standard' sizes to that table (i.e. the > sizes that you get when using '<', '>', etc.);  would that be helpful? The documentation already includes standard si

[issue8453] build_installer.py breaks bzip compilation

2010-04-20 Thread R. David Murray
R. David Murray added the comment: I don't think bash itself has a default path, I think the default path is set by the system bash profile, and is therefore system dependant. I could be wrong, though. -- nosy: +r.david.murray ___ Python tracker

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread R. David Murray
R. David Murray added the comment: The only reason the freebsd6 skips aren't in py3k is that I wanted to make sure they worked first, and then I was on vacation and haven't gotten to the merge yet. If you want to merge your patch before I get to it, feel free to merge mine along with yours.

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

2010-04-20 Thread R. David Murray
R. David Murray added the comment: The argument documentation style change was made for py3k. The old convention is still used in the 2.x docs. -- nosy: +r.david.murray ___ Python tracker

[issue1083] Confusing error message when dividing timedelta using /

2010-04-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is certainly not a bug, so I don't think targeting 2.7 is appropriate. I have explained in a comment on issue2706 (see msg75917) why I believe true division of timedelta by int should not be supported. In short, true division of timedelta by int

[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

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

[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

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

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

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

[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

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

[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

[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

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

[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

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

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

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

[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

[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

[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

[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

[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

[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*). -- __

[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

[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

[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

[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

[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

[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

[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

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

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

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

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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

  1   2   >