Re: checking if a list is empty

2011-05-11 Thread Chris Torek
In article 4dc6a39a$0$29991$c3e8da3$54964...@news.astraweb.com Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: In English, [the word not] negates a word or statement: the cat is not on the mat -- the cat is on the mat is false. As a mostly off topic aside, English is considerably

Re: checking if a list is empty

2011-05-11 Thread Chris Angelico
On Thu, May 12, 2011 at 7:02 AM, Ian hobso...@gmail.com wrote: In the real world  lists of zero items do not exist. You don't go shopping with a shopping list of zero items. Actually, yes you do. You maintain your shopping list between trips; whenever you need something, you put it on the list

Re: unicode by default

2011-05-11 Thread John Machin
On Thu, May 12, 2011 11:22 am, harrismh777 wrote: John Machin wrote: (1) You cannot work without using bytes sequences. Files are byte sequences. Web communication is in bytes. You need to (know / assume / be able to extract / guess) the input encoding. You need to encode your output using

Re: checking if a list is empty

2011-05-11 Thread harrismh777
alex23 wrote: through intuitive language skills. Why not? Because the vast majority of them don't seem to want to be bothered? That could very well be... but I have a hope for them. I honestly think its not because they don't want to be bothered, rather they just think its too far past

Re: lightweight way to create new projects from templates

2011-05-11 Thread Chris Angelico
On Thu, May 12, 2011 at 4:34 AM, Jonathan Hartley tart...@tartley.com wrote: Hi. I'm looking for a quick way to create new Python projects from a template. I understand that 'Paste' (http://pythonpaste.org/) is one way to do this, but I find Paste very intimidating because of all the

Re: unicode by default

2011-05-11 Thread Ben Finney
MRAB pyt...@mrabarnett.plus.com writes: You need to understand the difference between characters and bytes. Yep. Those who don't need to join us in the third millennium, and the resources pointed out in this thread are good to help that. A string contains characters, a file contains bytes.

Re: unicode by default

2011-05-11 Thread Terry Reedy
On 5/11/2011 11:44 PM, harrismh777 wrote: Steven D'Aprano wrote: You need to understand the difference between characters and bytes. http://www.joelonsoftware.com/articles/Unicode.html is also a good resource. Thanks for being patient guys, here's what I've done: astr=pound sign asym=

Re: unicode by default

2011-05-11 Thread John Machin
On Thu, May 12, 2011 1:44 pm, harrismh777 wrote: By default it looks like Python3 is writing output with UTF-8 as default... and I thought that by default Python3 was using either UTF-16 or UTF-32. So, I'm confused here... also, I used the character sequence \u00A3 which I thought was

Re: unicode by default

2011-05-11 Thread Benjamin Kaplan
On Wed, May 11, 2011 at 8:44 PM, harrismh777 harrismh...@charter.net wrote: Steven D'Aprano wrote: You need to understand the difference between characters and bytes. http://www.joelonsoftware.com/articles/Unicode.html is also a good resource. Thanks for being patient guys, here's what

Re: unicode by default

2011-05-11 Thread John Machin
On Thu, May 12, 2011 2:14 pm, Benjamin Kaplan wrote: If the file you're writing to doesn't specify an encoding, Python will default to locale.getdefaultencoding(), No such attribute. Perhaps you mean locale.getpreferredencoding() -- http://mail.python.org/mailman/listinfo/python-list

Re: NewBie Doubt in Python Thread Programming

2011-05-11 Thread vijay swaminathan
I tried using QThread as well.. But the problem is, on the run method when i invoke the command prompt, it sends out the finished signal... I want it to send out the finished signal only on closing the command prompt that is invoked earlier in my process. guess some logic to be implement inside

Re: checking if a list is empty

2011-05-11 Thread Gregory Ewing
Roy Smith wrote: Hans Georg Schaathun h...@schaathun.net wrote: If both are numbers, they are converted to a common type. Otherwise, objects of different types always compare unequal That's just the default treatment for unrelated types that don't know anything about each other. I would

Re: checking if a list is empty

2011-05-11 Thread D'Arcy J.M. Cain
On Wed, 11 May 2011 16:24:47 -0500 harrismh777 harrismh...@charter.net wrote: D'Arcy J.M. Cain wrote: Non-programmers should not be expected to program in 'C' nor in lisp... ... but non-programmers were able to program in BASIC jes fine... They still had to learn the language. I

[issue12046] Windows build identification incomplete

2011-05-11 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ned: I agree this is desirable (i.e. the shipped binaries ought to carry proper build identification). I also think this is independent from this issue, though, since the changes to integrate build identification into the window build

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Senthil: Almost, but not quite. end_headers() needs to be called even if send_header() isn't called (though it may be being called behind the scenes, that's not necessarily obvious to a user). In my original unit-testing code, I had only

[issue6727] ImportError when package is symlinked on Windows

2011-05-11 Thread Waldemar Kornewald
Waldemar Kornewald wkornew...@gmail.com added the comment: I've tracked it down. It's caused by KB2467174 (http://support.microsoft.com/kb/2467174) and I can reliably reproduce it. Here's how to reproduce it: Install *only* the Microsoft Visual C++ 2008 Redistributable Package (x86) from

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-11 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hi Vinay, Normally, when one uses send_response() call, it is most often followed with (multiple) send_header() calls and I updated the documentation keeping that in mind. Just calling of send_response() without any send_header and

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4651bf40af8d by Senthil Kumaran in branch 'default': issue12039 - update the documentation of send_response method in http.server.rst. http://hg.python.org/cpython/rev/4651bf40af8d --

[issue9971] Optimize BufferedReader.readinto

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le mardi 10 mai 2011 à 19:06 +, John O'Connor a écrit : Victor: AFAIK its not actually downcasting. On Linux 32 bits, size_t is 32 bits, off_t is 64 bits. If the file size is 4 GB, the downcast may truncate the size of 0 byte.

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I didn't initially like the idea of __exit__ blocking on another process... but the zombie issue is real does make me think we should reconsider this and have it wait(). It is a backwards incompatible change if anyone has started using the

[issue6727] ImportError when package is symlinked on Windows

2011-05-11 Thread Waldemar Kornewald
Waldemar Kornewald wkornew...@gmail.com added the comment: That's really strange. We uninstalled Service Pack 1 from my friend's machine and now everything works. What I don't understand is why I don't have Service Pack 1 on my machine and why Windows Update also doesn't offer to install it.

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I asked if the change is correct on iconv mail list. Here is a copy of an answer. De: Bruno Haible À: [iconv mailing list] Cc: Victor Stinner Sujet: Re: [bug-gnu-libiconv] Invalid byte sequences and multiybyte

[issue9971] Optimize BufferedReader.readinto

2011-05-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: On Linux 32 bits, size_t is 32 bits, off_t is 64 bits. If the file size is 4 GB, the downcast may truncate the size of 0 byte. We are not talking about the file size here. -- ___ Python tracker

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, the HZ codec has no test! And what is this horrible BLOB, Lib/test/cjkencodings_test.py? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12016

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12018 ___ ___ Python-bugs-list

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12034 ___ ___ Python-bugs-list

[issue11882] test_imaplib failed on x86 ubuntu

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11882 ___ ___ Python-bugs-list

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12045 ___ ___ Python-bugs-list

[issue12055] doctest not working on nested functions

2011-05-11 Thread Dave Abrahams
New submission from Dave Abrahams d...@boostpro.com: The attached file demonstrates -- components: Library (Lib) files: bug.py messages: 135770 nosy: dabrahams priority: normal severity: normal status: open title: doctest not working on nested functions versions: Python 2.6, Python 2.7

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-11 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___

[issue12056] … (HORIZONTAL ELLIPSIS) should be an alternative syntax for ... (FULL STOP FULL STOP FULL STOP)

2011-05-11 Thread Xavier Morel
New submission from Xavier Morel xavier.mo...@masklinn.net: In Python 3, ... became useable as a normal expression, and translates into an ellipsis instance. Unicode defines an ellipsis character … (U+2026 HORIZONTAL ELLIPSIS) which is canonically equivalent to a 3-sequence of FULL STOP

[issue12056] … (HORIZONTAL ELLIPSIS) should be an alternative syntax for ... (FULL STOP FULL STOP FULL STOP)

2011-05-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12056 ___ ___ Python-bugs-list

[issue2857] add codec for java modified utf-8

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: utf_8_java.patch: Implement utf-8-java encoding. * It has no alias * 'a\0b'.encode('utf-8-java') returns b'a\xc0\x80b' * b'a\xc0\x80b'.decode('utf-8-java') returns 'a\x00b' * I added some tests to utf-8 codec (test_invalid,

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: All CJK codecs have tests except the chinese HZ codec, I don't know why. But to add a test, I need to add data to Lib/test/cjkencodings_test.py and the format of this file is not documented. It is not too difficult to understand

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6072db001b51 by Senthil Kumaran in branch 'default': Fix closes Issue #11799: urllib.request Authentication Handlers will raise a http://hg.python.org/cpython/rev/6072db001b51 -- nosy: +python-dev

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file21966/convert_cjkencodings.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- keywords: +patch Added file: http://bugs.python.org/file21967/cjkencodings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-05-11 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11799 ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file21967/cjkencodings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file21968/cjkencodings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: convert_cjkencodings.py is script to replace Lib/test/cjkencodings_test.py by a Lib/test/cjkencodings/ directory: --- big5hkscs.txt big5hkscs-utf8.txt big5.txt big5-utf8.txt cp949.txt cp949-utf8.txt euc_jisx0213.txt

[issue2857] add codec for java modified utf-8

2011-05-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Thanks for the patch, Victor. Some comments on the patch: * the codec will have to be able to work with lone surrogates (see the wikipedia page explaining this detail), which the UTF-8 codec in Python 3.x no longer does, so another

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: +HZ codec has no test ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: -HZ codec has no test ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: +HZ codec has no test ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12016 ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New files should be marked as binary in Mercurial: add Lib/test/cjkencodings/* = BIN in .hgeol. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057

[issue12056] … (HORIZONTAL ELLIPSIS) should be an alternative syntax for ... (FULL STOP FULL STOP FULL STOP)

2011-05-11 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: But if we allow for ellipsis, then would we not also have to start allowing characters like ≥ and ≤ in Python? And the problem with any of these (admittedly very attractive) substitutions is that they seem to abandon the principle

[issue12056] … (HORIZONTAL ELLIPSIS) should be an alternative syntax for ... (FULL STOP FULL STOP FULL STOP)

2011-05-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Making such substitutions is a good way to introduce subtle bugs. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11968] wsgiref's wsgi application sample code does not work

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e7c62e0981c7 by Senthil Kumaran in branch 'default': Fix closed Issue #11968 - the start_response header values in wsgiref shoudl be http://hg.python.org/cpython/rev/e7c62e0981c7 -- nosy: +python-dev

[issue11968] wsgiref's wsgi application sample code does not work

2011-05-11 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11968 ___

[issue11968] wsgiref's wsgi application sample code does not work

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 5add0c01933f by Senthil Kumaran in branch '3.2': Issue #11968 - the start_response header values in wsgiref shoudl be str not http://hg.python.org/cpython/rev/5add0c01933f New changeset 482f60d6a687 by Senthil Kumaran in branch

[issue12014] str.format parses replacement field incorrectly

2011-05-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review stage: - patch review versions: -Python 2.6, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12014 ___

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is the original bug still present in your new install? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12013 ___

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'm re-opening this issue, since Gregory agrees to change the current behaviour. Patch attached (along with test and documentation update). -- components: +Library (Lib) keywords: +patch resolution: rejected - status: closed -

[issue12058] Minor edits to comments in faulthandler

2011-05-11 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I fixed or improved some comments in faulthandler. The only non-trivial change is a replacement of “until” to “before” (until did not make sense). Please review and if you agree, commit. -- files: faulthandler-comments.diff

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Looking at cjkencodings.py the format is pretty clear. The file consists of one statement that creates one dict that maps encoding names to a pair of (encoded) byte strings. The bytes literals are entirely hex escapes, with a maximum of 16

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-05-11 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I have committed the fix for Distribute: https://bitbucket.org/tarek/distribute/changeset/97f12f8f6bf1 (However Distribute would fail to create entry points scripts if sys.executable contained unencodable

[issue12057] HZ codec has no test

2011-05-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Terry J. Reedy wrote: Terry J. Reedy tjre...@udel.edu added the comment: Looking at cjkencodings.py the format is pretty clear. The file consists of one statement that creates one dict that maps encoding names to a pair of (encoded)

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 82cfbe2ddfbb by Kurt B. Kaiser in branch '3.1': Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError. http://hg.python.org/cpython/rev/82cfbe2ddfbb -- nosy: +python-dev

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Looking at cjkencodings.py the format is pretty clear. The file consists of one statement that creates one dict that maps encoding names to a pair of (encoded) byte strings. The bytes literals are entirely hex escapes, with a

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le mercredi 11 mai 2011 à 17:27 +, Marc-Andre Lemburg a écrit : Victor, could you please contact Hye-Shik Chang pe...@freebsd.org before making significant changes to the test suite. Good idea, done. Wouldn't it be better to

[issue11935] MMDF/MBOX mailbox need utime

2011-05-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: For the record: On Mac OS X 10.6.7, ,HFS, case sensitive` updates st_atime by itself *once only*. It does so ~0.75 seconds after os.utime() (+) was called. A time.sleep(0.8) can be used to detect this automatic update reliably

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Lib/test/cjkencodings_test.py was created when CJK were introduced in Python: changeset 31386 by Hye-Shik Chang hyes...@gmail.com. Add CJK codecs support as discussed on python-dev. (SF #873597) Several style fixes are suggested

[issue12058] Minor edits to comments in faulthandler

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 5f407b5479f5 by Victor Stinner in branch 'default': Issue #12058: Minor edits to comments in faulthandler http://hg.python.org/cpython/rev/5f407b5479f5 -- nosy: +python-dev ___ Python

[issue12059] hashlib does not handle missing hash functions correctly

2011-05-11 Thread Ian Wienand
New submission from Ian Wienand i...@wienand.org: If one of the hash functions isn't defined in _hashlib, the code suggests it should just be skipped === # this one has no builtin implementation, don't define it pass === This doesn't happen however; due to ImportError

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm working on #2857 which adds the Modified UTF-8 (utf-8-java?) codec to Python. We can maybe use it instead of raising an error in 3.3? -- nosy: +haypo ___ Python tracker

[issue2857] add codec for java modified utf-8

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #1028. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2857 ___ ___

[issue12057] HZ codec has no test

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +hyeshik.chang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___ ___

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +hyeshik.chang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12016 ___ ___

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12050 ___ ___ Python-bugs-list mailing list

[issue2857] add codec for java modified utf-8

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Benchmark: a) ./python -m timeit (b'\xc3\xa9' * 1).decode('utf-8') b)./python -m timeit (''.join( map(chr, range(0, 128)) )*1000).encode('utf-8') c) ./python -m timeit f=open('Misc/ACKS', encoding='utf-8'); acks=f.read();

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-05-11 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I first would like to apologize if my comments were interpreted like I'd like to do a poor quality job, that's actually the opposite! I just get caught by surprise how a simple change in a word to better join two paragraphs grows up like

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-11 Thread Alex Lai
Alex Lai alex_...@scotiacapital.com added the comment: I haven't get time to upgarde my workstation yet. I don't know when I'm going to do it. I compile the software successfully on the other server. and that's enough for me. Thanks, Alex -- ___

[issue11888] Add C99's log2() function to the math library

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I wait for the following build to close this issue. http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/2507 Oh, it's the wrong build. The correct build is:

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12044 ___ ___

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Reading http://tools.ietf.org/html/rfc1843 suggests that the reason that there is no HZ pair in cjkencodings.py is that it is not a cjkencoding. Instead it is a formatter or meta-encoding for intermixing ascii codes and GB2312(-80) codes. (I

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Reading http://tools.ietf.org/html/rfc1843 suggests that the reason that there is no HZ pair in cjkencodings.py is that it is not a cjkencoding. Instead it is a formatter or meta-encoding for intermixing ascii codes and GB2312(-80) codes. (I

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg135802 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Ouch, ouch, ouch!! I'll have to send 11877.7.diff which extends 11877.6.diff. This is necessary because using fcntl(2) with F_FULLFSYNC may fail with ENOTTY (inapprobiate ioctl for device) in situations where a normal fsync(2)

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ssl_rand.patch adds RAND_bytes() and RAND_pseudo_bytes() functions to the ssl module. I moved /dev/urandom to /dev/urandom.xxx and /dev/random to /dev/random.xxx to test RAND_bytes() error path. In this case, RAND_pseudo_bytes()

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-11 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21924/11877.5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-11 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21953/11877.6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___

[issue9971] Optimize BufferedReader.readinto

2011-05-11 Thread John O'Connor
John O'Connor tehj...@gmail.com added the comment: I've attached the latest changes based on feedback (issue9971-v5.patch) for i in 1 4 128 256 1024 2048 4069 8192 16384; do echo -n buffer_size=$i ; ./python -m timeit -s f=open('LICENSE','rb');b=bytearray($i) f.seek(0) while f.readinto(b):

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: r70039 3.1 forward ported 3.2 default. Will be in 3.2.1. -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: Having a modified utf-8 codec will be useful. That said, it is an error for Tcl/Tk to expose modified utf-8 externally, and that was fixed at some point in Tk8.5. Since Tk is no longer sending 0xC080 for the %A char, switching codecs in

[issue12060] Python doesn't support real time signals

2011-05-11 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: If a real time signal is raised 2 times whereas the signal is blocked, unblock the signal will call the signal handler twice. The C signal handler of the Python signal module only stores a boolean to say if the Python signal

[issue12060] Python doesn't support real time signals

2011-05-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: example.py: example to demonstrate the problem. The Python signal handler is only called once, it should be called twice. -- Added file: http://bugs.python.org/file21977/example.py ___

[issue12060] Python doesn't support real time signals

2011-05-11 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12060 ___ ___

[issue12061] Remove duplicate 'key functions' entry in Glossary

2011-05-11 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hi, only on 2.7 there were 2 entries for 'key function': this patches remove the second occurrence, leaving that part of Glossary equals to the other branches. -- assignee: docs@python components: Documentation files:

[issue9971] Optimize BufferedReader.readinto

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a1d77c6f4ec1 by Antoine Pitrou in branch 'default': Issue #9971: Write an optimized implementation of BufferedReader.readinto(). http://hg.python.org/cpython/rev/a1d77c6f4ec1 -- nosy: +python-dev

[issue9971] Optimize BufferedReader.readinto

2011-05-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed a minimally modified version of the patch, thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12057] HZ codec has no test

2011-05-11 Thread Hyeshik Chang
Hyeshik Chang hyes...@gmail.com added the comment: Hello, everyone! The rationale why I chose to encode the test strings into a Python source code was that I wanted for them to be treated as text files which are trackable in CVS or subversion and to keep Python source codes free of any

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7a3f3ad83676 by Gregory P. Smith in branch 'default': - Issue #12044: Fixed subprocess.Popen when used as a context manager to http://hg.python.org/cpython/rev/7a3f3ad83676 -- nosy: +python-dev

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b00a64a5cb93 by Gregory P. Smith in branch '3.2': merge - 7a3f3ad83676 Fixes Issue #12044. http://hg.python.org/cpython/rev/b00a64a5cb93 -- ___ Python tracker rep...@bugs.python.org

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: did my commits in the reverse order (default before 3.2), oops. this is fixed. this wasn't ever in 2.7 so no need for the documentation note. i'm not worried about adding a note about 3.2.0 vs 3.2.1 beyond the mention in Misc/NEWS as this

[issue5723] Incomplete json tests

2011-05-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch refactors the tests to use import_fresh_module and different subclasses for Python and C tests. It also includes a fix to import_fresh_module to make it work with packages (it can be committed separately). --

[issue12061] Remove duplicate 'key functions' entry in Glossary

2011-05-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 534a9e274d88 by Georg Brandl in branch '2.7': #12061: remove duplicate glossary entry. http://hg.python.org/cpython/rev/534a9e274d88 -- nosy: +python-dev ___ Python tracker

[issue12061] Remove duplicate 'key functions' entry in Glossary

2011-05-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for the patch! -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12061

[issue12058] Minor edits to comments in faulthandler

2011-05-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12058 ___

[issue8824] Improve documentation of exec

2011-05-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In 3.x exec is a function, so the reference to 'in' should be removed/updated. On 2.x it might be better to just use ``in`` instead of :keyword:`in`, because the latter probably links to the 'in' operator that checks for containment.

<    1   2   3   >