[issue10930] dict.setdefault: Bug: default argument is ALWAYS evaluated, i.e. no short-circuit eval

2011-01-18 Thread Albert
New submission from Albert : Hello! Is it intentional, that the default argument is ALWAYS evaluated, even if it is not needed??? Is it not a bug, that this method has no short-circuit eval (http://en.wikipedia.org/wiki/Short-circuit_evaluation) ?? Example1: = infinite = 1e100 one_d

[issue10931] print() from pipe enclosed between 'b and 'pair on python3

2011-01-18 Thread ricardw
New submission from ricardw : The following script produces different output on python2.6.6 vs. python3.1.2: - import subprocess, sys ls = subprocess.Popen(['ls', '-l', '/etc/motd'], stdout=subprocess.PIPE,) end_of_pipe = ls.stdout print('Result:') for line in end_of_pipe: pri

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20428/python-underscore_crypt-3.patch ___ Python tracker ___ ___ Pyth

[issue10930] dict.setdefault: Bug: default argument is ALWAYS evaluated, i.e. no short-circuit eval

2011-01-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: setdefault() is a method, its arguments are evaluated then the function is called. This is not a bug, and this behavior cannot change. If you are trying to "cache" the computation of a function, you should try "memoizing" techniques, like the one mentio

[issue10932] distutils.core.setup - data_files missbehaviour ?

2011-01-18 Thread Thorsten Simons
New submission from Thorsten Simons : Hi ! when specifying additional files to be distributed by distutils.core.setup, documentation says that: "Each file name in files is interpreted relative to the setup.py script at the top of the package source distribution. No directory information from

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2011-01-18 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : It seems that tracing in the interpreter is lost after some recursion error is triggered (even if it's properly handled). This breaks any debugger working after any recursion error is triggered (which suppose shouldn't happen). The attached test case shows

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: >From what I can see, this issue is in memoryview and allows memoryview to >export a readonly buffer as writable (because memoryview.getbuffer() removes >the writable flag from flags before calling the underlying buffer). This causes segfaults when using mmap

[issue10931] print() from pipe enclosed between b' and 'pair on python3

2011-01-18 Thread ricardw
Changes by ricardw : -- title: print() from pipe enclosed between 'b and 'pair on python3 -> print() from pipe enclosed between b' and 'pair on python3 ___ Python tracker ___ __

[issue10931] print() from pipe enclosed between b' and '  pair on python3

2011-01-18 Thread ricardw
Changes by ricardw : -- title: print() from pipe enclosed between b' and 'pair on python3 -> print() from pipe enclosed between b' and ' pair on python3 ___ Python tracker ___ _

[issue10931] print() from pipe enclosed between {b'} and {'}-pair on python3

2011-01-18 Thread ricardw
Changes by ricardw : -- title: print() from pipe enclosed between b' and ' pair on python3 -> print() from pipe enclosed between {b'} and {'}-pair on python3 ___ Python tracker

[issue10931] print() from pipe enclosed between {b'} and {'}-pair on python3

2011-01-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's a feature. Subprocess output is binary data, not text; and since python3, the string type is now what python2 called unicode! Please read http://docs.python.org/py3k/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit for an explanation of t

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10934] imaplib: Internaldate2tuple() is documented to return UTC, but it returns local time

2011-01-18 Thread Joe Peterson
New submission from Joe Peterson : Patched documentation for Internaldate2tuple() to correctly state it returns local time. Also, Time2Internaldate() (its inverse) did not state that it needs local time as input, so patched this as well. Patches for 3.2 and 2.7 are attached. -- assig

[issue10934] imaplib: Internaldate2tuple() is documented to return UTC, but it returns local time

2011-01-18 Thread Joe Peterson
Changes by Joe Peterson : Added file: http://bugs.python.org/file20439/imaplib_Internaldate2tuple_doc_python27.patch ___ Python tracker ___ _

[issue10921] imaplib: Internaldate2tuple() string/bytes issues, does not handle negative TZ offsets, does not handle DST correctly

2011-01-18 Thread Joe Peterson
Joe Peterson added the comment: I have started splitting these up as recommended. First one (documentation) is: issue 10934. I will split out more later today... -- ___ Python tracker __

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you use "diff -u" (or simply "svn diff") when generating a patch? > 6) I don't know, I thought everything in Python 3 was a new style > class? It is indeed. -- ___ Python tracker

[issue10921] imaplib: Internaldate2tuple() string/bytes issues, does not handle negative TZ offsets, does not handle DST correctly

2011-01-18 Thread R. David Murray
R. David Murray added the comment: If I understand correctly, what Alexander means by "only work in the C locale" is that both strptime and strftime are locale dependent, and so if the locale is something other than C it may fail to parse the month name and may generate a non-standard month n

[issue10930] dict.setdefault: Bug: default argument is ALWAYS evaluated, i.e. no short-circuit eval

2011-01-18 Thread Eric Smith
Eric Smith added the comment: Or use a collections.defaultdict, which has a factory function as a constructor argument. It sort of depends on what you're trying to do. -- nosy: +eric.smith ___ Python tracker

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch produces a failure in test_getargs2, but that test is wrong and should be fixed: == ERROR: test_w_star (test.test_getargs2.Bytes_TestCase) ---

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is an updated patch with a simpler test. -- Added file: http://bugs.python.org/file20440/i10451_v2.patch ___ Python tracker ___ __

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: And a simple fix for the test_getargs2 test - it wraps the memoryview around a bytearray. -- Added file: http://bugs.python.org/file20441/testfix.patch ___ Python tracker ___

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread Tim Perevezentsev
New submission from Tim Perevezentsev : This code: assert type(val) is StringType,"Header values must be strings" (from here http://svn.python.org/view/python/tags/r271/Lib/wsgiref/handlers.py?revision=86833&view=markup) from "start_response" method, is not allowing to use str subclasses

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Georg Brandl
Georg Brandl added the comment: So, does "critical" mean "should be release blocker"? -- ___ Python tracker ___ ___ Python-bugs-list

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-01-18 Thread Ron Adam
Ron Adam added the comment: Yes, you are correct. Pulling the first value off of args would work. This is new for 3.2, can it still be changed? One more thing to consider... One of the things I look at for functions like these is, how easy is it to separate the data from the program interf

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So, does "critical" mean "should be release blocker"? It's up to you to decide. It's not a new bug AFAICT. -- ___ Python tracker ___ ___

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Georg Brandl
Georg Brandl added the comment: The patch looks trivial enough. You're the memoryview guru, so if you have no doubts about it, I would say it can go in. -- ___ Python tracker

[issue10451] memoryview can be used to write into readonly buffer

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch with modified tests committed in r88097 (3.2), r88098 (3.1) and r88099 (2.7). Thank you! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7 ___ Python tracker

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-18 Thread Christopher Dunn
New submission from Christopher Dunn : This is an easy one. When I zoom my browser in (with Ctrl+ or Apple+) the left-side navigation margin gets bigger and bigger, pushing the useful text off the screen. That has bothered me (and anyone else with 40+ year old eyes) ever since the switch to t

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread Éric Araujo
Éric Araujo added the comment: This is by design. PEP 333 and PEP contain more information about that. You’ll need to convert your objects to str before passing them to start_response. Sorry! -- nosy: +eric.araujo, pje resolution: -> invalid stage: -> committed/rejected stat

[issue10937] WinPE 64 bit execution results with errors

2011-01-18 Thread Jeremy Langley
New submission from Jeremy Langley : old versions of python worked on old versions of winpe by copying the c:\python25\ directory over to the mounted (iso,usb) filesystem, then rebooting with the media and running the python.exe from the ramdrive. This formula no longer works with 64 bit versio

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread Tim Perevezentsev
Tim Perevezentsev added the comment: str - immutable. So every str subclass object is normal string. I don't see any design violation here. -- ___ Python tracker ___ __

[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread Humberto Diogenes
New submission from Humberto Diogenes : On some systems, datetime.strftime() accepts a %s format string that returns epoch / UNIX timestamp, but this behavior is not documented at http://docs.python.org/library/datetime.html Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc.

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-01-18 Thread Adrian Dries
Adrian Dries added the comment: Have your cake and eat it: def submit(self, fn, args, kw): # submit implementation def sugar(*args, **kw): return args[0].submit(args[1], args[2:], kw) -- ___ Python tracker

[issue10937] WinPE 64 bit execution results with errors

2011-01-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread R. David Murray
R. David Murray added the comment: Eric, could you point out the part of the specification that requires exactly a string and makes a string subclass invalid? I did a quick scan and couldn't find it, and unfortunately don't have the time to re-read the whole spec right now. -- nosy:

[issue10937] WinPE 64 bit execution results with errors

2011-01-18 Thread Brian Curtin
Brian Curtin added the comment: Do you have any log files or screenshots of what exactly happens? I have zero experience with WinPE, so that's an obvious barrier here, but there's also nothing to go by in figuring out where the problem may be. -- nosy: +brian.curtin stage: -> needs p

[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread R. David Murray
R. David Murray added the comment: As you say, "on some systems". The variation is documented, and the documented codes are documented as being just those required by the C standard. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-01-18 Thread Georg Brandl
Georg Brandl added the comment: It could be changed, as it is not an incompatible API change. However, I'd like Brian to ok it. -- ___ Python tracker ___ _

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-18 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +ezio.melotti, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread Éric Araujo
Éric Araujo added the comment: See http://bugs.python.org/issue5800#msg121958 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread R. David Murray
R. David Murray added the comment: OK. So he is saying that when the spec says "an object of type str" he means 'type(x) is str' as opposed to 'isinstance(x, str)'. I would naively have expected the latter, as other people clearly do as well. I didn't participate in any of the discussions

[issue10898] posixmodule.c redefines FSTAT

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: How about adding "#undef FSTAT" instead? Would it work for you? -- components: +Extension Modules nosy: +pitrou stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue10898] posixmodule.c redefines FSTAT

2011-01-18 Thread Alan Hourihane
Alan Hourihane added the comment: On Tue, 2011-01-18 at 19:59 +, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > How about adding "#undef FSTAT" instead? Would it work for you? Sure. Alan. -- ___ Python tracker

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Sure thing, here's an "svn diff". I had switched to the diff because I couldn't get it to patch into a fresh trunk, but the format looked fine; not sure why it couldn't find the files. Anyway, here's a new version. -- Added file: http://bugs.pyt

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sure thing, here's an "svn diff". I had switched to the diff because > I couldn't get it to patch into a fresh trunk, but the format looked > fine; not sure why it couldn't find the files. Anyway, here's a new > version. You also have to "svn add" the relev

[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread Humberto Diogenes
Humberto Diogenes added the comment: David, as discussed on the IRC channel: maybe we could just add pointers to the OS-specific docs. Something like: """ If you want to use platform-specific format strings, search for strftime in your OS documentation (`man strftime` on POSIX systems). Linu

[issue10938] Provide links to system specific strftime/ptime docs

2011-01-18 Thread R. David Murray
R. David Murray added the comment: All right, I'll open it back up for that suggestion (I've changed the title accordingly) and let the docs folks decide. The most useful link would be one to the relevant Windows documentation, since that's the hardest one to find. Although this scheme avoid

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Not sure if that was meant to be a suggestion for why my local patching wasn't working from the "svn diff" output, but obviously -5 was messed up. Here's a new version that I can apply to my fresh trunk and passes "make test". If the suggestion was how t

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-01-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10920] cp65001, PowerShell, Python crash.

2011-01-18 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2011-01-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10937] WinPE 64 bit execution results with errors

2011-01-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: You need to install the MS CRT (msvcrt90.dll, along with its assembly manifests and stuff) as well; it's not surprising that copying over an installation doesn't work. I'll also point out that this is not a bug: copying over an installation is not supposed

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Not sure if that was meant to be a suggestion for why my local > patching wasn't working from the "svn diff" output, but obviously -5 > was messed up. Here's a new version that I can apply to my fresh > trunk and passes "make test". Thank you! The important

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2011-01-18 Thread Philip Winston
Philip Winston added the comment: We ran into this. Forking before importing Tkinter worked for us. We did the following which seems pretty clean: main.py import stdlib only if __name__ == 'main': from application import App App() application.py import Tkinter class App... --

[issue10939] imaplib: Internaldate2tuple fails to parse month and does not work with negative TZ offset due to bytes/str issues

2011-01-18 Thread Joe Peterson
New submission from Joe Peterson : There are two issues with conversion to Python 3: 1. It raise "KeyError". This is because the Mon2num dictionary keys are strings (str), not bytes objects (note that many other strings in imaplib have been updated, but not Mon2num). 2. The sign character of

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-18 Thread Joe Peterson
Changes by Joe Peterson : -- title: imaplib: Internaldate2tuple fails to parse month and does not work with negative TZ offset due to bytes/str issues -> imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues __

[issue10940] IDLE hangs with Cmd-M hotkey on Mac O/S

2011-01-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: ned.deily components: IDLE nosy: brett.cannon, ned.deily, rhettinger priority: high severity: normal status: open title: IDLE hangs with Cmd-M hotkey on Mac O/S type: crash versions: Python 3.2 ___ Python tr

[issue10940] IDLE hangs with Cmd-M hotkey on Mac O/S

2011-01-18 Thread Ned Deily
New submission from Ned Deily : Is this on OS X 10.6 with ActiveState 8.5.9 installed? -- ___ Python tracker ___ ___ Python-bugs-list

[issue10940] IDLE hangs with Cmd-M hotkey on Mac O/S

2011-01-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: On the Mac O/S 64-bit install, Idle hangs when the Cmd-M hotkey is pressed, but selecting OpenModule directly from the File menu works fine. For me, it hangs with the pinwheel of death and requires a force-quit. For Brett, it changes colors as if an unhan

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-18 Thread Ned Deily
Changes by Ned Deily : -- title: IDLE hangs with Cmd-M hotkey on Mac O/S -> IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5 ___ Python tracker ___

[issue4106] multiprocessing occasionally spits out exception during shutdown

2011-01-18 Thread Brian Thorne
Brian Thorne added the comment: With the example script attached I see the exception every time. On Ubuntu 10.10 with Python 2.6 Since the offending line in multiprocesing/queues.py (233) is a debug statement, just commenting it out seems to stop this exception. Looking at the util file show

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-18 Thread Joe Peterson
New submission from Joe Peterson : DST is not handled correctly. Specifically, when the input date/time, ignoring the TZ offset (and treated as if it is local time) is on the other side of the DST changeover from the actual local time represented, the result will be off by one hour. This can

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-18 Thread Joe Peterson
Changes by Joe Peterson : -- keywords: +patch Added file: http://bugs.python.org/file20446/imaplib_Internaldate2tuple_dst_fix_python32.patch ___ Python tracker ___ _

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-18 Thread Joe Peterson
Changes by Joe Peterson : Added file: http://bugs.python.org/file20447/imaplib_Internaldate2tuple_dst_fix_python27.patch ___ Python tracker ___ _

[issue10921] imaplib: Internaldate2tuple() string/bytes issues, does not handle negative TZ offsets, does not handle DST correctly

2011-01-18 Thread Joe Peterson
Joe Peterson added the comment: Two more issues split out into their own issues: issue 10939 (bytes/str issues) issue 10941 (DST handled incorrectly) -- ___ Python tracker ___

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Kira Erethon added the comment: Sorry to re-open this, but I consider it an important bug. Tried it in 3.1 also and it's still there. To sum up what's happening, zipfile sometimes considers a false password to be correct and proceeds with decrypting the file. Is there a workaround in this? Or

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Changes by Kira Erethon : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10942] xml.etree.ElementTree.tostring returns type bytes, expected type str

2011-01-18 Thread J_Tom_Moon_79
New submission from J_Tom_Moon_79 : method xml.etree.ElementTree.tostring from module returns type bytes. The documentation reads """Returns an encoded string containing the XML data.""" (from http://docs.python.org/py3k/library/xml.etree.elementtree.html#xml.etree.ElementTree.tostring as of 20

[issue10942] xml.etree.ElementTree.tostring returns type bytes, expected type str

2011-01-18 Thread J_Tom_Moon_79
J_Tom_Moon_79 added the comment: Some other bugs affecting the tostring method (for consideration by the reviewer): http://bugs.python.org/issue6233#msg89718 http://bugs.python.org/msg101037 http://bugs.python.org/issue9692 -- ___ Python tracker

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I already explained: * why it doesn't detect that the password is bad is because the ZIP format is not well-designed enough * you can catch the zlib error which indicates that decryption returned junk -- resolution: -> invalid status: open -> close

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Thanks for the pointer about "patch -p0". I *HAD* tried that, but it didn't seem to work either. I'll double check that though... "svn diff" is what I'd prefer, because then I can "svn commit" it when it's ready. Any other review feedback? I'll probab

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for the pointer about "patch -p0". I *HAD* tried that, but it > didn't seem to work either. I'll double check that though... "svn > diff" is what I'd prefer, because then I can "svn commit" it when it's > ready. Ok, it seems the code inside crypt.py

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Kira Erethon added the comment: I'm catching all errors and exceptions and zipfile still decompresses it, that's what I've been trying to tell you. I don't face my original problem anymore, I'm catching that exception, now zipfile considers some passwords to be correct and throw no exception,

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm catching all errors and exceptions and zipfile still decompresses > it, that's what I've been trying to tell you. I don't face my original > problem anymore, I'm catching that exception, now zipfile considers > some passwords to be correct and throw no exc

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Kira Erethon added the comment: I'm a newbie in python and tried this in order to learn.I created all the zip files (first created a .txt file and zipped it with a password), so I know the file inside the zip is encrypted ( ofc I know the password too). Tried this with different .txt files an

[issue3080] Full unicode import system

2011-01-18 Thread STINNER Victor
STINNER Victor added the comment: Here is a work-in-progress patch: issue3080-3.patch. The patch is HUGE and written for Python 3.3. $ diffstat issue3080-3.patch Doc/c-api/module.rst | 24 Include/import.h | 73 + Include/moduleobject.h |2 Include/pycapsule.h|4 M

[issue3080] Full unicode import system

2011-01-18 Thread STINNER Victor
STINNER Victor added the comment: This patch changes more lines of code than my previous crazy unicode patch (msg103663, issue #8242 #8611 #9425), but it changes less files. -- ___ Python tracker _

[issue3080] Full unicode import system

2011-01-18 Thread STINNER Victor
STINNER Victor added the comment: Oh, msg103663 was not the final patch. A more recent version of my patch for #8611 / #9425 is http://codereview.appspot.com/1874048: Doc/library/sys.rst |6 Include/Python.h|4 Include/fileobject.h| 20 Include/import.

[issue10942] xml.etree.ElementTree.tostring returns type bytes, expected type str

2011-01-18 Thread R. David Murray
R. David Murray added the comment: This is indeed a doc problem, although there was some discussion of working toward a method rename. See issue 8047 (but be prepared to read a novel to understand why tostring returns bytes...) The doc for 3.2 is slightly clearer, but both 3.1 and 3.2 could

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Affirmative on the "svn mv" for the C module. The duplicated code, thanks for pointing that out. Someone else mentioned it, but I didn't understand what they were saying and they didn't reply to my request for clarification. Fixed. On the modules() lis

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20433/python-underscore_crypt-4.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20442/python-underscore_crypt-5.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20443/python-underscore_crypt-6.patch ___ Python tracker ___ ___ Pyth