[issue5497] openssl compileerror with original source

2009-03-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I ported compile openssl without perl scheme into PC/VC6 from PCBuild. And I noticed openssl compilation fails with a message IDEA is disabled if I use original source code from openssl homepage. I hope attached patch will fix

[issue5494] Failure in test_httpservers on Linux

2009-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The SyntaxError show that you are running python version 2.x. Run testscript in verbose mode: $ sudo ./regrtest.py -v server.py Your sudo command is wrong: it should specify the path to the tested python executable, and not rely on

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: What needs to happen next for this patch to go forward? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4136 ___

[issue2110] Implement __format__ for Decimal

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Mark, this looks fine. Can you add support for PEP 378? -- assignee: rhettinger - marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2110

[issue5139] Add combinatoric counting functions to the math module.

2009-03-17 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5139 ___

[issue5494] Failure in test_httpservers on Linux

2009-03-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5494 ___

[issue3565] array documentation, method names not 3.0 compliant

2009-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Benjamin, do you think this should be fixed in 3.1? -- nosy: +benjamin.peterson, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3565

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2009-03-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-03-14 02:32, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Based on the feedback above, it seems this should be committed, shouldn't it? +1 As mentioned several times on the ticket: static C data is not

[issue3565] array documentation, method names not 3.0 compliant

2009-03-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It would be nice to deprecate the old names in 3.1 and remove them in 3.2, but I think it should get approval on python-dev. -- assignee: georg.brandl - ___ Python tracker

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-03-17 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Neyro, your problem is caused by having two handlers (a FileHandler and a RotatingFileHandler) pointing to the same file. Because of this, rollover fails (the file is still open because there is a handle open to it from the FileHandler).

[issue5498] Can SGMLParser properly handle empty/ tags?

2009-03-17 Thread once-off
New submission from once-off once-...@mailinator.com: The attached script (sgml_error.py) was designed to output XML files unchanged, other than expanding empty/ tags into an opening and closing tag, such as empty/empty. It seems the SGMLParser class recognizes an empty tag, but does not emit

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2009-03-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2066 ___ ___

[issue3446] center, ljust and rjust are inconsistent with unicode parameters

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: About Python3, bytes.center accepts unicode as second argument, which is an error for me: bx.center(5, b\xe9) b'\xe9\xe9x\xe9\xe9' bx.center(5, \xe9) b'\xe9\xe9x\xe9\xe9' The second example must fail with a TypeError.

[issue3565] array documentation, method names not 3.0 compliant

2009-03-17 Thread Matt Giuca
Matt Giuca matt.gi...@gmail.com added the comment: Note that, irrespective of the changes to the library itself, the documentation is out of date since it still uses the old string/unicode nomenclature, rather than the new bytes/string. I have provided a separate documentation patch which should

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2009-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mardi 17 mars 2009 à 10:56 +, Marc-Andre Lemburg a écrit : +1 As mentioned several times on the ticket: static C data is not really something to worry about these days. Well, I suggest that someone familiar with the codec-building

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2009-03-17 Thread Hye-Shik Chang
Hye-Shik Chang hyes...@gmail.com added the comment: When I asked Taiwanese developers how often they use these character sets, it appeared that they are almost useless in the usual computing environment in Taiwan. This will only serve for a historical compatibility and literal standard

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I checked the speed of the proposed patch, and found that it was definitely slower than the original code. So I took another look at the original, and refactored it in a different way: instead of moving the sibling relinking into a second

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2009-03-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-03-17 13:30, Hye-Shik Chang wrote: Hye-Shik Chang hyes...@gmail.com added the comment: When I asked Taiwanese developers how often they use these character sets, it appeared that they are almost useless in the usual computing

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: To avoid byte/character mixture, getarg('c') must only accept a byte string of 1 byte and getarg('C') only an unicode string of 1 character. Impacted methods: - datetime.datetime.isoformat(sep), array.array(type, data): don't

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In the python-dev thread, most people agree to use bytes in mmap. Did anyone reviewed the patch? Can you commit it to py3k than then to the 3.0 branch? -- ___ Python tracker

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: In the python-dev thread, most people agree to use bytes in mmap. Did anyone reviewed the patch? Well, there is no conclusion which of your choices (a or b) is preferred.

[issue5353] Improve IndexError messages with actual values

2009-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This issue was discussed two years ago in this thread: http://mail.python.org/pipermail/python-list/2006-December/588224.html Most of the messages under that subject are noise about politeness or lack thereof (including a post by the

[issue5500] tarfile: path problem in arcname under windows

2009-03-17 Thread Elijah Merkin
New submission from Elijah Merkin e...@transas.com: Tested on Python 2.5.4. 1. Use tarfile.open(fname, w|gz) to create an archive. 2. Add a file using TarFile.add(name, arcname=None, recursive=True, exclude=None) by specifying 2 params: absolute path to a source file as 'name' and something

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Malte Helmert helm...@informatik.uni-freiburg.de added the comment: I eyeballed the new patch and wonder if the case where text nodes are collapsed is handled correctly. Assume that self.childNodes contains nodes [A, B, C], where A and B are non-empty text nodes and C is a non-text node. The

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-03-17 Thread Neyro
Neyro neyro.gi...@gmail.com added the comment: @vsajip thank you very much for correcting me. I always thought that since I was not using that FileHandler it didn't count, as if the handler was not created. Now I see that there are no reasons for the config loader to ignore it, especially since

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are absolutely right. I will write a test case and fix the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2170 ___

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le Tuesday 17 March 2009 14:39:59 Hirokazu Yamamoto, vous avez écrit : Well, there is no conclusion which of your choices (a or b) is preferred. Guido just wrote in other mail thread (py3k: accept unicode for 'c' and byte for 'C'

[issue5410] msvcrt bytes cleanup

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: msvcrt.ungetwch() calls _ungetch not _ungetwch ... are you sure that someone already used these functions? :-) If you suppose that issue5499 is fixed, you can leave msvcrt_putch() and msvcrt_ungetch unchanged and use C format in

[issue5410] msvcrt bytes cleanup

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch implementing my proposition (depends on issue5499). -- Added file: http://bugs.python.org/file13351/msvcrt_wchar.patch ___ Python tracker rep...@bugs.python.org

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: unicode methods center(), ljust(), rjust() use a callback (convert_uc) to get an unicode character (unicode string of 1 character). If 'C' is fixed, convert_uc() callback can be removed. --

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Ah, no, this should not be backported to 3.0. Martin saids so in msg82904, and I agreed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5391

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Added several more tests, to validate the sibling link code more, and fixed the bug. -- Added file: http://bugs.python.org/file13352/issue2170.patch ___ Python tracker rep...@bugs.python.org

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file13349/issue2170.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2170 ___

[issue5501] Update multiprocessing docs re: freeze_support

2009-03-17 Thread Brandon Corfman
New submission from Brandon Corfman bcorf...@fastmail.fm: Indicate in docs whether freeze_support() can be called without issues on Unix or OS X, so the user knows whether they can have a single code base that works correctly on all platforms. -- assignee: georg.brandl components:

[issue5501] Update multiprocessing docs re: freeze_support

2009-03-17 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- assignee: georg.brandl - jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5501 ___ ___

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Le Tuesday 17 March 2009 14:39:59 Hirokazu Yamamoto, vous avez écrit : Well, there is no conclusion which of your choices (a or b) is preferred.

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5499 ___ ___

[issue2531] float compared to decimal is silently incorrect.

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Imri, I don't think the 3.0 model for cross-type comparisons can be backported without breaking code, so it probably isn't going to happen. The whole purpose of the 3.x series was to allow improvements that weren't backwards

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: How does that answer the question? We know what data type to use for multiple bytes - but what data type should be used for a single byte? Hum, what was the question? :-) Quote of my email: « About m.read_byte(), we have two

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Oh, I though that the question was about bytes vs str :-/ Ocean-city and I prefer the solution (a). And you Martin? I also think that ints should be used to represent individual bytes. However, your list of alternatives is incomplete: we

[issue2110] Implement __format__ for Decimal

2009-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: New version of decimal_n_format.patch, with support for the thousands separator (PEP 378). As discussed on python-dev, during zero-padding the patched code adds an extra '0' on the left to avoid a leading ',' if necessary. For example:

[issue4015] [patch] make installed scripts executable on windows

2009-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I sometimes use this trick on Windows: name the script with a .bat extension, and put these lines on top of the file: @echo off rem = rem run python on this bat file. rem The -x causes python to skip the first line of the file:

[issue2110] Implement __format__ for Decimal

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The tests you submitted are reassuring. I think you should go ahead and commit this. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Proof of concept of patch fixing this issue: - parse_syntax_error() reads the text line into a PyUnicodeObject* instead of a const char** - create utf8_to_unicode_offset(): convert byte offset to a number of characters. The

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Please remove the whitespace changes in the patch (around _cache_lock). Otherwise it is good. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-17 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Thanks for the comments all and sorry for the delay -- life! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5236 ___

[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-17 Thread Tennessee Leeuwenburg
Changes by Tennessee Leeuwenburg tleeuwenb...@gmail.com: Added file: http://bugs.python.org/file13355/strptime_patch_v2.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5236 ___

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, if Bob has addressed all of Martin's comments, I suppose it can get in. The second step will be to port it to py3k... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4136

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: All of the comments are addressed. I am not going to go through the trouble of creating a new patch to remove the remaining backwards compatibility cruft in the C code and struct function. That is easier to remove later. --

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch in its current form is fine with me, please apply (OTOH, I don't see the need for urgency - 2.7 is still many months away, and likely, we will see another update to the same code before it gets released) --

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Bob, please go ahead and commit. I don't see any advantage to letting the code continue sit in the tracker. Also, having it in will let me go forward with issue 5381 which has been held-up until this was complete. Thanks

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Malte Helmert helm...@informatik.uni-freiburg.de added the comment: While we're cleaning up: data = child.data if not data: could be if not child.data: since data is not used again. Alternatively, you could use data in place of child.data later on for a small speed-up, but

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Changes by Malte Helmert helm...@informatik.uni-freiburg.de: Removed file: http://bugs.python.org/file9513/minidom.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2170 ___

[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-17 Thread Rudd-O
Rudd-O rud...@rudd-o.com added the comment: I am considering some changes in the auto-dependency part of the patch. Keep tuned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5474 ___

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Malte Helmert helm...@informatik.uni-freiburg.de added the comment: I removed my original patch which has been superseded by David's patch. David, I suggest that you also remove test_minidom.patch which is superseded by your later patch (see http://bugs.python.org/msg77766 for policy on this).

[issue2110] Implement __format__ for Decimal

2009-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Committed, r70439 and r70440. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2110 ___

[issue5481] Expand Decimal.__format__() support to include n

2009-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing as duplicate of issue 2110. -- resolution: - duplicate status: open - closed superseder: - Implement __format__ for Decimal ___ Python tracker rep...@bugs.python.org

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: For an easier review, I splitted my patch in multiple small patches: - unicode_utf8size.patch: create _PyUnicode_UTF8Size() function: Number of bytes needed to encode the unicode character as UTF-8 - unicode_width.patch: create

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file13357/unicode_width.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2382 ___

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file13358/adjust_offset.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2382 ___

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file13359/print_exception.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2382 ___

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: r70443 in trunk -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4136 ___

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Comments about my own patches. unicode_width.patch: * error messages should be improved: ValueError(Unable to compute string width) for Windows IOError(strerror(errno)) otherwise adjust_offset.patch: *

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Reopening so that we don't forget to merge it in py3k :) (I have the feeling it won't be trivial, although I hope to be proven wrong) -- status: closed - open versions: -Python 2.7 ___ Python tracker

[issue5374] optparse special usage tokens conflict with formatting characters

2009-03-17 Thread Andy Buckley
Andy Buckley a...@insectnation.org added the comment: Doc patch for Doc/library/optparse.rst attached. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5374 ___

[issue5374] optparse special usage tokens conflict with formatting characters

2009-03-17 Thread Andy Buckley
Andy Buckley a...@insectnation.org added the comment: Sorry, browser error last time. Should work now (fingers crossed). -- keywords: +patch Added file: http://bugs.python.org/file13360/optparse-prog-escape.patch ___ Python tracker

[issue3022] mailbox module, two small fixes

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ping. Nobody is interested by the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3022 ___

[issue4034] traceback attribute error

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ping. benjamin.peterson's patch fixes the very strange issue, and I would like to see it upstream. About clearing the frame/traceback, it's another issue (#1565525). -- ___ Python

[issue4358] Segfault in stringobject.c

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: farshad: Is the bug still open? If yes, can you give more informations? If you don't answer, I will have to close this issue because it's not possible find the bug with so few informations :-/ --

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: It might not be bad. I read through the patch a saw that it uses only the most basic C APIs and already has unicode aware sections. It may be a matter of switching the PyString functions. Will look at it in more detail

[issue1520662] support all of strftime(3)

2009-03-17 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: I'd be happy to look at this. Would you be able to detail what is missing for me, so that it is easier for me to get to grips with what is involved? I'm not intimately familiar with all of the functionality of these modules, so if

[issue4194] default subprocess.Popen buffer size

2009-03-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I just wanna say that buffering can be a problem when writing, but not when reading. If you read() from a buffered file, you still get the available contents immediately, you don't have to wait for the buffer to be full. -- nosy: +pitrou

[issue5502] io-c: TextIOWrapper is faster than BufferedReader but not protected by a lock

2009-03-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: TextIOWrapper.readline() is much faster (eg. 72 ms vs 95 ms) than BufferedReader.readline(). It's because BufferedReader always acquires the file lock, whereas TextIOWrapper only acquires the file lock when the buffer is empty.

[issue1520662] support all of strftime(3)

2009-03-17 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: http://linux.die.net/man/3/strftime or this link may be in USA, if you care: http://www.manpagez.com/man/3/strftime/ -- nosy: +LambertDW ___ Python tracker rep...@bugs.python.org

[issue5374] optparse special usage tokens conflict with formatting characters

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I don't think this patch should be applied for two reasons. First, this is just a general comment on % formatting that could apply everywhere % formatting is used (the correct place for it is in docs for % formatting).

[issue5502] io-c: TextIOWrapper is faster than BufferedReader but not protected by a lock

2009-03-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I wrote a short script to test TextIOWrapper.readline() with 32 threads. After 5 seconds, I found this issue in Python trunk (2.7): Exception in thread Thread-26: Traceback (most recent call last): File

[issue5381] json needs object_pairs_hook

2009-03-17 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13244/json_ordered.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5381 ___

[issue1520662] support all of strftime(3)

2009-03-17 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: (with similar links for strpfime). These are reasons a patch may be worth while: x difficult to work around using ctypes module with c library. x help(strftime) advises the programmer to see the reference manual for formatting

[issue5503] multiprocessing/connection.py wrong pipe name under win32

2009-03-17 Thread jq
New submission from jq jqcn2...@hotmail.com: def arbitrary_address(family): elif family == 'AF_PIPE': return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' % (os.getpid(), _mmap_counter.next())) #works after removed tempfile.mktemp return

[issue1520662] support all of strftime(3)

2009-03-17 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: (I have no clue where the servers are.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1520662 ___

[issue5232] Setting font from preference dialog in IDLE on OS X broken

2009-03-17 Thread Brad Miller
Brad Miller bonel...@gmail.com added the comment: I get the same problem when I try to change the key set. This is on on intel build using Tk 8.5, and the latest 3.1 source checked out with bzr. I too changed the order of /Library/Frameworks and /System/Library/Frameworks in setup.py A

[issue5381] json needs object_pairs_hook

2009-03-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Bob would you please take a look at the attached patch. -- assignee: rhettinger - bob.ippolito priority: normal - high Added file: http://bugs.python.org/file13362/json_hook.diff

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-03-17 Thread Adam Goode
New submission from Adam Goode a...@spicenitz.org: On Fedora systems, it is invalid to mmap something with PROT_WRITE and PROT_EXEC. libffi has been updated to support this, but ctypes has not been updated to use this new functionality. Attached is a patch which currently only works if system

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2009-03-17 Thread Adam Goode
Adam Goode a...@spicenitz.org added the comment: Issue #5504 shows a possibly more future proof way to fix this issue. -- nosy: +agoode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3265 ___