[issue10035] sgmllib fail to parse html containing !- .... -

2010-10-06 Thread halfjuice
halfjuice halfju...@gmail.com added the comment: well, !-- ... - is ok since it's comment. !- ... - is probably a IE hack. see http://www.google.com/dictionary?langpair=en|zh-CNq=vaguehl=enaq=f -- status: pending - open ___ Python tracker

[issue10035] sgmllib fail to parse html containing !- .... -

2010-10-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Is that URL really what you wanted to show me? Also, I'm not intimate with all of SGML's syntax, but ISTM that what you show here is invalid SGML, and as such SGMLParser is not required to parse it. --

[issue10035] sgmllib fail to parse html containing !- .... -

2010-10-06 Thread halfjuice
halfjuice halfju...@gmail.com added the comment: Sorry, the URL on the page is sort of broken. The URL contains the !- ... - stuff. I think you're right, the !- is probably just a mistake which is not in the SGML standard. But I'm wondering if the SGMLParser can SKIP such an invalid

[issue10035] sgmllib fail to parse html containing !- .... -

2010-10-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The browser needs to be very liberal in what it accepts, since nobody wants their page view to break because of such a technicality. This is different for a tool like SGMLParser. In light of this, and because sgmllib is removed anyway in Python

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread harobed
harobed steph...@harobed.org added the comment: doctest.SKIP is like #doctest: +DISABLE but he don't have #doctest: +ENABLE feature. doctest.SKIP disable all the bottom of test, DISABLE/ENABLE can SKIP only one part of test. Regards, Stephane --

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-06 Thread Tjeerd Pinkert
Tjeerd Pinkert t.j.pink...@alumnus.utwente.nl added the comment: Indeed I use Linux, sorry for the inconvenience of not mentioning. Thanks Ned, I think this is indeed the case. Using os.setgroups with a list of group ids (one for the file access, one for the serial port) before switching user

[issue10028] test_concurrent_futures fails on Windows Server 2003

2010-10-06 Thread Brian Quinlan
Changes by Brian Quinlan br...@sweetapp.com: -- assignee: - bquinlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10028 ___ ___ Python-bugs-list

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm not a great doctest user, but did you try to disable the SKIP directive at the end? something like doctest: -SKIP -- ___ Python tracker rep...@bugs.python.org

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: AFAIR +SKIP always only refers to one Example anyway. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9017 ___

[issue10029] Equivalent to code for zip is wrong in Python 3

2010-10-06 Thread Douglas Leeder
Changes by Douglas Leeder douglas.lee...@gmail.com: -- nosy: +Douglas.Leeder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10029 ___ ___

[issue10028] test_concurrent_futures fails on Windows Server 2003

2010-10-06 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Hey Brian, Could you try applying the patch that I attached and let me know what error message you get? Cheers, (the other) Brian -- keywords: +patch Added file: http://bugs.python.org/file19137/error.diff

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread harobed
harobed steph...@harobed.org added the comment: Ok, option +SKIP and -SKIP work well, look test.py file I need maybe improve the documentation with an +SKIP and -SKIP example ? Documentation section about SKIP option is here :

[issue10037] multiprocessing.pool processes started by worker handler stops working

2010-10-06 Thread Ask Solem
New submission from Ask Solem a...@opera.com: While working on an autoscaling (yes, people call it that...) feature for Celery, I noticed that the processes created by the _handle_workers thread doesn't always work. I have reproduced this in general, by just using the maxtasksperchild

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: harobed, the -SKIP solution does not work. Doctest directives only apply to a single line. After a quick search, I found two workarounds there: http://stackoverflow.com/questions/1809037/python-doctest-skip-entire-block - Replace with

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-06 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: There are some questions. 1. About my patch, I noticed it removed following code. Isn't this needed? I like clean code, but I don't want to break anything. /* Get WIN32_FIND_DATA structure for the path to determine if

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-10-06 Thread amiadb
amiadb ami...@gmail.com added the comment: This bug is very disturbing in Hebrew too. I need to translate % hour to ‫% שעה‬ and its wrong in Hebrew. in Hebrew I need to write שעה אחת (one hour). -- nosy: +amiadb ___ Python tracker

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-06 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: P.S. Thank you for acceptance. I really wanted to commit that code! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2010-10-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9325 ___ ___

[issue9903] test_concurrent_futures writes on stderr

2010-10-06 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Fixed in r85288 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9903 ___

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-10-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If nobody objects, I will commit this (with docs) soon. Then I will open a separate issue for the http.client / urllib.request integration, since the discussion is already quite long here. -- ___

[issue10038] Returntype of json.loads() on strings

2010-10-06 Thread Nik Tautenhahn
New submission from Nik Tautenhahn n...@livinglogic.de: Hi, before 2.7, an import json json.loads('abc') yielded uabc. in 2.7 I get abc (a byte string). I would have expected an entry in news or What's new in 2.7 why this change happened. In addition, all examples at

[issue10038] Returntype of json.loads() on strings

2010-10-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: d...@python - bob.ippolito nosy: +bob.ippolito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10038 ___

[issue10038] Returntype of json.loads() on strings

2010-10-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This is related to this issue from simplejson: http://code.google.com/p/simplejson/issues/detail?id=28 This problem is why I still use simplejson 1.x; moving forward to simplejson 2.x or Python's json is unlikely. -- nosy: +fdrake

[issue10038] Returntype of json.loads() on strings

2010-10-06 Thread Nik Tautenhahn
Nik Tautenhahn n...@livinglogic.de added the comment: Well, Ok, if I take bob's comment from the simplejson Issue, I can understand that some people want byte strings. But then I would like to have something like a parse_str hook, to enhance my json-Decoder or maybe a keyword argument for the

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It could be a feature of os that the groups of the user are set on a os.setuid call? Or would this break compatibility with the standard unix library behaviour? The POSIX system interface specification specifically prohibits that: The setuid()

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-10-06 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: I'm sorry to make the discussion longer ... From a Python user/programmers point of view it would be nice if http://docs.python.org/library/ssl.html also clarified what validation means (apparently that the cert chain all the way from one

[issue9163] test_gdb fails

2010-10-06 Thread Tom Morris
Tom Morris tfmor...@gmail.com added the comment: Did this fix actually make the 2.7 release? I just installed 2.7 on 64-bit Ubuntu and ran into the same problem. python -c import sysconfig; print sysconfig.get_config_vars()['PY_CFLAGS'] -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-10-06 Thread 5houston
5houston cadab...@gmail.com added the comment: Yes I could. You can find it attached. -- Added file: http://bugs.python.org/file19140/minCrashing.py.bz2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8028

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-10-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: From a Python user/programmers point of view it would be nice if http://docs.python.org/library/ssl.html also clarified what validation means (apparently that the cert chain all the way from one of ca_certs is valid and with valid dates,

[issue9163] test_gdb fails

2010-10-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Did this fix actually make the 2.7 release? Are you sure you posted to the right issue? I fail to see the relationship between your message and the original report. If you found a bug in Python 2.7, please report it as a separate issue.