[issue5683] Speed up cPickle's pickling generally
Jerry Chen je...@3rdengine.com added the comment: Applied collinwinter's patch and svn up'd to r73872; replaced additional instances of self-write_func with _Pickler_Write. Passed test_xpickle.py as referenced by issue 5665. -- nosy: +jcsalterego Added file: http://bugs.python.org/file14466/cpickle_writes-r73872.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5683 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6420] Fix warning in nismodule.c on OpenBSD
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Thanks, fixed in r73873, r73874, r73875 and r73876. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6314] logging.basicConfig(level='DEBUG', ... and setLevel(DEBUG) result in no logging
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: The change that I made was in the wrong place - it should have been in the setLevel rather than in basicConfig itself. However, this would not have covered setLevel for Handlers... That setLevel behaves differently to basicConfig for the level argument could be seen as a bug. ISTM I should add a function _checkLevel as follows: def _checkLevel(level): if isinstance(level, int): rv = level elif str(level) == level: if level not in _levelNames: raise ValueError(Unknown level: %r % level) rv = _levelNames[level] else: raise TypeError(Level not an integer or a valid string: %r % level) return rv and then have all setLevel(level) methods do a level = _checkLevel(level) before actually setting the level. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6314 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vsajip status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6430] array.array falsely advertises support for 'w' in documentation
Ezio Melotti ezio.melo...@gmail.com added the comment: Apparently 'w' and 'u' were used for wide and narrow builds respectively. In r58441 the distinction was removed and now 'u' can be either 2 or 4 bytes, depending on the build. I think that 'w' can be removed. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6431] Fraction fails equality test with a user-defined type
Mark Dickinson dicki...@gmail.com added the comment: I agree this should be fixed. The conversion to float in the else clause seems wrong to me: it can lose precision, making two unequal values compare equal. I also agree that we should be getting NotImplemented here. Do you have a patch available? As an aside, I'm interested that you're implementing comparisons between mpf and Decimal; how does that work? Do you also implement binary arithmetic operations between mpf and Decimal? What's the result type? -- nosy: +jyasskin, marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6431] Fraction fails equality test with a user-defined type
Changes by Mark Dickinson dicki...@gmail.com: -- stage: - needs patch versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6430] array.array falsely advertises support for 'w' in documentation
Ezio Melotti ezio.melo...@gmail.com added the comment: The problem seems to affect Python 2 too. See also #1268. In the online doc 'w' is not mentioned but a note about the size of 'u' that changes depending on the build should be added too. Also in the table in the Python 2 doc [1] the Python Type for 'unsigned int' and 'signed long' seem swapped [2]. [1]: http://docs.python.org/library/array.html [2]: Modules/arraymodule.c under /* Description of types */ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6426] imaplib.IMAP4 command illegal in this state is unhelpful error message
Ezio Melotti ezio.melo...@gmail.com added the comment: Can you provide a patch? -- keywords: +easy nosy: +ezio.melotti priority: - low stage: - needs patch versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6426 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer
Kristján Valur Jónsson krist...@ccpgames.com added the comment: committed in revision 73877 and revision 73878 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6425] imaplib.IMAP4.fetch() is missing documentation for message_set parameter
Ezio Melotti ezio.melo...@gmail.com added the comment: The 4th paragraph in the section IMAP4 Objects [1] specifies that: The message_set options to commands below is a string specifying one or more messages to be acted upon. It may be a simple message number ('1'), a range of message numbers ('2:4'), or a group of non-contiguous ranges separated by commas ('1:3,6:9'). A range can contain an asterisk to indicate an infinite upper bound ('3:*'). A link to this paragraph could be added in the methods where message_set is used. [1]: http://docs.python.org/library/imaplib.html#imap4-objects -- nosy: +ezio.melotti priority: - low resolution: - invalid stage: - committed/rejected status: open - closed versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6422] timeit called from within Python should allow autoranging
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable
Marco Buccini marcu...@gmail.com added the comment: @r.david.murray: Does this works on Windows? Are you sure Oleg? :) Since you've done this: #ifndef MS_WINDOWS /* mode = ..*/ #endif but on Windows the compiler jumps over this code, so you can get a binding error, since it doesn't find the variable mode... E.g (on my Debian): #ifndef __GNUC__ #define X 10 #endif int main() { printf(%d\n, X); } it gives error: ‘X’ undeclared (first use in this function) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6070 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable
Oleg Broytmann p...@phd.pp.ru added the comment: I didn't test ifndef-version, I tested the full version (issue6070.patch) on both Linux and w32. You are right, 'mode' must be defined even on w32. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6070 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6333] logging: ValueError: I/O operation on closed file
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - test needed status: pending - open versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable
R. David Murray rdmur...@bitdance.com added the comment: Drat. I should have uploaded the revised patch first for testing. I'll update it to the tested patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6070 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6414] struct module : processor endianness descriptions misleading
Ezio Melotti ezio.melo...@gmail.com added the comment: Something like Motorola and Sun processors are usually big-endian; Intel and DEC processors are usually little-endian (or most of/several) might be enough. -- keywords: +easy nosy: +ezio.melotti priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6432] ImageTk.PhotoImage
New submission from Jean-Paul Miéville jpmievi...@gmail.com: When using the function ImageTk.PhotoImage. I got the following traceback. self.chart = ImageTk.PhotoImage(self.image) File C:\Python25\Lib\site-packages\PIL\ImageTk.py, line 116, in __init__ self.paste(image) File C:\Python25\Lib\site-packages\PIL\ImageTk.py, line 181, in paste import _imagingtk ImportError: DLL load failed: The specified module could not be found. _imagintk exists in the directory C:\Python25\Lib\site-packages\PIL I have re-installed python (ActivePython 2.5.4.4 (r254:67916, Apr 27 2009, 15:41:14)and PIL and still the same problem. -- components: Tkinter messages: 90225 nosy: jpmieville severity: normal status: open title: ImageTk.PhotoImage type: crash versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6432] ImageTk.PhotoImage
Ezio Melotti ezio.melo...@gmail.com added the comment: Can you provide a sample script to reproduce this or try it with a plain version of python? From the traceback it looks like ImageTk is something defined by the PIL, and since it's not part of the stdlib this is probably not the right place where to report this bug. It could be a problem of ActiveState Python or of the PIL itself, if you can't reproduce it with a plain Python try to report it on their bug trackers. FWIW I found in the doc the class Tkinter.PhotoImage(), if you can reproduce the problem using it instead of ImageTk.PhotoImage() then it might be a Python bug. -- nosy: +ezio.melotti priority: - normal stage: - test needed versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6399] Error reporting by logging.config.fileConfig()
Mike pyt...@amadron.com added the comment: Sorry, I only started learning Python a couple of weeks ago. Didn't know that there was a ConfigParser module. So this would really be a feature request of ConfigParser? Interesting you should mention Postel's Law. Being liberal about what you accept from others doesn't mean ignoring non-conformance. Jon Postel was clear that although you endeavour to continue when encountering non-conformance you should always report it, lest non-conformance propogates (sic). I can think of two ways ConfigParser could report these problems. Either you give it a callback function it can call as it encounters problems, or, after you have parsed a file you can call another function that gives a list of any problems encountered. If ConfigParser had this functionality it would then be straightforward for the logging.config.fileConfig module to send these warnings to the root logger. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6399 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6433] multiprocessing: pool.map hangs on empty list
New submission from Eric Eisner e...@mit.edu: In multiprocessing, if you give a pool.map a zero-length iterator and specify a nonzero chunksize, the process hangs indefinitely. Example: import multiprocessing pool = multiprocessing.Pool() pool.map(len, [], chunksize=1) # hang forever Attached simple testcase and simple fix. I observed this behavior on 2.6 and 3.1, but only verified the patch on 3.1. Unless the line numbers changed it will probably fix it on 2.6 as well. -- components: Library (Lib) files: map_testandfix.patch keywords: patch messages: 90228 nosy: ede severity: normal status: open title: multiprocessing: pool.map hangs on empty list type: crash versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14467/map_testandfix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6432] ImageTk.PhotoImage
Jean-Paul Miéville jpmievi...@gmail.com added the comment: You are right I think that the problem is related to PIL. I will reported to the mailing list of PIL. I have attached a script for testing this case. -- status: open - closed Added file: http://bugs.python.org/file14468/Script1.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6414] struct module : processor endianness descriptions misleading
Mark Dickinson dicki...@gmail.com added the comment: Maybe it's better to avoid the platform-specific statements altogether, and just point out the existence of sys.byteorder for those who want to check the endianness of the system they're currently working on. Or maybe just mention that the x86 and AMD64 (aka x86-64) architectures are little-endian; I'd guess that this covers a good proportion of the processors that people are currently running Python on. People using more exotic architectures probably already know their endianness. -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6433] multiprocessing: pool.map hangs on empty list
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm not familiar with multiprocessing but I gave a quick look at the patch. If the 'iterable' is an iterator/generator if len(iterable) == 0: may fail since these objects don't usually have a __len__. More tests for this situation are probably needed too. -- nosy: +ezio.melotti priority: - normal type: crash - behavior versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6433] multiprocessing: pool.map hangs on empty list
Eric Eisner e...@mit.edu added the comment: A few lines before this patch the code turns iterable into a list if it does not hasattr('__len__') for the purpose of calculating the chunksize. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5814] SocketServer: TypeError: waitpid() takes no keyword arguments
toxik ludvig.eric...@users.sourceforge.net added the comment: I don't really get how this could've ever worked. I tested using keyword arguments in py24 and py25, didn't work there either. I think the best approach would be fixing the SocketServer.py code (which obviously needs a test as well, because it's never run.) -- nosy: +ludvig.ericson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5814] SocketServer: TypeError: waitpid() takes no keyword arguments
R. David Murray rdmur...@bitdance.com added the comment: The socketserver code was changed on trunk in r69927 by neil.schemenauer (I can't find his roundup id or I'd make him nosy) so the bug no longer exists there or in the 3.x branch. I've backported it to 2.6 in r73887. -- nosy: +r.david.murray priority: - normal resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6433] multiprocessing: pool.map hangs on empty list
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6433] multiprocessing: pool.map hangs on empty list
Changes by Jesse Noller jnol...@gmail.com: -- assignee: - jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6399] Error reporting by logging.config.fileConfig()
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Well, there are other systems around (e.g. ConfigObj) which will allow you to validate against a schema, but it's not part of the core so logging can't rely on it. I'm not sure how much interest there'd be in adding this kind of validation to ConfigParser, but you could always try working up a patch and assigning it to whoever maintains ConfigParser, or contacting that person beforehand to see if it's worth it, or posting on c.lpy with the same objective. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6399 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue665336] win32 os.path.normpath not correct for leading slash cases
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: On Windows, os.path.normpath(r\\x\y\z) must return the string unchanged, because this is the syntax for UNC paths: \\server\share\file.txt Closing as invalid. -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue665336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1523] xdrlib fails to detect overflow (struct bug?)
Mark Dickinson dicki...@gmail.com added the comment: The deprecated overflow wrapping has been removed from trunk in r73891. (It was already removed in py3k a while ago.) I'd really like to remove the deprecated float coercion from trunk too, but since the warnings weren't functioning properly in 2.6, this probably has to wait until 2.8. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5864] format(1234.5, '.4') gives misleading result
Mark Dickinson dicki...@gmail.com added the comment: I'm not going to backport this to 2.6. The problem is that the fix for this issue is tied up with the corresponding change to str (str(1e11) produces '1e+11' in trunk and 1000.0 in release26-maint); I daren't change str() in 2.6, so backporting would mean separating out the str and format changes. I'm not opposed to the backport itself; it's just a lack of time and confidence of getting it right on my part. If anyone else wants to backport feel free. -- assignee: marketdickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5864 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5864] format(1234.5, '.4') gives misleading result
Mark Dickinson dicki...@gmail.com added the comment: ... and 3.0 is dead. -- versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5864 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5864] format(1234.5, '.4') gives misleading result
Eric Smith e...@trueblade.com added the comment: I agree that backporting it to 2.6 would be nice, but it would be a huge change. There's too much risk involved. So this will just be a new feature in 2.7. It's already in Misc/NEWS, so you're all set there. I'm closing the issue, marking it as wont fix because it's only assigned to 2.6 currently. -- assignee: - marketdickinson resolution: - wont fix stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5864 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6431] Fraction fails equality test with a user-defined type
Case Van Horsen cas...@gmail.com added the comment: On Tue, Jul 7, 2009 at 1:26 AM, Mark Dickinsonrep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: I agree this should be fixed. The conversion to float in the else clause seems wrong to me: it can lose precision, making two unequal values compare equal. I also agree that we should be getting NotImplemented here. Do you have a patch available? I'll upload a patch this evening. As an aside, I'm interested that you're implementing comparisons between mpf and Decimal; how does that work? Do you also implement binary arithmetic operations between mpf and Decimal? What's the result type? When I do binary operations (including comparison), I check the type of both operands. If both operands are Integer (mpz, int, long), I convert both operands to an mpz and then perform the operation. Otherwise, if both operands are Rational (mpz, int, long, mpq, Fraction), I convert both operands to an mpq. Finally, if both operands appear to be a Number (mpz, int, long, mpq, Fraction, mpf, Decimal), I convert both operands to an mpf. In the latest release of GMPY, I always return a GMPY type (unless you are converting to float or int/long). To do the conversions, I just do mpq(str(Fraction)) or mpf(str(Decimal)). I realize that the conversions aren't perfect but are probably what a user expects. The fact that GMP uses radix 2^32 or 2^64 floating point with (randomly) either [prec+1] or [prec+2] digits makes predictable floating point challenging. ;-) (prec = floor(precision_in_bits/limb_size).) In GMPY 1.04, I forced all mpf results to have [prec+1] digits but it's still messy. Time to start working on MPFR support. -- nosy: +jyasskin, marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file
New submission from segfault42 brice.na...@free.fr: Hello, I have a problem with the librairy zipfile.py http://svn.python.org/view/python/trunk/Lib/zipfile.py?revision=73565view=markup Zinfo structure limit the size of a file to an int max value with the ZIP64_LIMIT value ( equal to (1 31) - 1 so to 2147483647 . The problem is happening when you write a big file in the line 1095 : self.fp.write(struct.pack(lLL, zinfo.CRC, zinfo.compress_size, zinfo.file_size)) zinfo.file_size is limited to a int size and if you have a file bigger than ZIP64_LIMIT you make a buffer overflow even if you set the flag allowZip64 to true. -- components: Library (Lib) files: zipfile.py messages: 90242 nosy: segfault42 severity: normal status: open title: buffer overflow in Zipfile when wrinting more than 2gig file versions: Python 2.4, Python 3.0 Added file: http://bugs.python.org/file14469/zipfile.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file
segfault42 brice.na...@free.fr added the comment: look like issue 1182788 -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2977] truncation of text in tables in Library Reference PDF
Georg Brandl ge...@python.org added the comment: Yes, Sphinx should use longtables now where appropriate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2977 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6422] timeit called from within Python should allow autoranging
Scott David Daniels scott.dani...@acm.org added the comment: I've got the code working on trunk2 for my tests. Should I port to py3K before checking in, and give diffs from there, or what? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite
Peter Simanyi psima...@namcobandaigames.com added the comment: I verified that launching the script from a CMD.EXE window instead of from Cygwin also reproduces the can't overwrite ZZZ.pyc. Here's a sample of python -v showing this: # C:\depot\central\ntf\tools\bin\build1.pyc has bad mtime import build1 # from C:\depot\central\ntf\tools\bin\build1.py # can't create C:\depot\central\ntf\tools\bin\build1.pyc If you would like some help, I can discuss this with Windows expert programmers here and see whether they can suggest a solution you might find acceptable. Thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6074 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6435] logging: cache the traceback text on formatter, instead of record
New submission from Sridhar Ratnakumar sridh...@activestate.com: In Formatter.format(): # Cache the traceback text to avoid converting it multiple times # (it's constant anyway) if not record.exc_text: record.exc_text = self.formatException(record.exc_info) The result must ideally be cache on the formatter object (self) itself rather than the record object. Because, record object is reused in multiple handlers .. thus multiple formatters. If the first formatter, caches the traceback text, then subsequent formatters will use the same even though of them is apparently a custom Formatter with overridden `formatException`. -- components: Library (Lib) messages: 90247 nosy: srid, vsajip severity: normal status: open title: logging: cache the traceback text on formatter, instead of record versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6435] logging: cache the traceback text on formatter, instead of record
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6435] logging: cache the traceback text on formatter, instead of record
Sridhar Ratnakumar sridh...@activestate.com added the comment: For example, see: http://paste.pocoo.org/show/127167/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X
Ned Deily n...@acm.org added the comment: @keflavich: To include 64-bit support for Tcl/Tk on OSX, you'll need to modify python's setup.py file. Search down for All existing framework builds of Tcl/Tk don't support 64-bit around line 1500 in 2.6; there is explicit code there to prevent tkinter from attempting to link with x86_64 and ppc64 libraries. -- nosy: +nad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6431] Fraction fails equality test with a user-defined type
Case Van Horsen cas...@gmail.com added the comment: Change Fraction __eq__ method to give the other operand a chance to perform the comparison if Fraction doesn't understand the other operand. -- keywords: +patch Added file: http://bugs.python.org/file14470/fractions_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com