[issue3080] Full unicode import system

2011-01-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I haven't investigated in detail yet, but this is the final line showing the failing test: test_module (importlib.test.builtin.test_loader.LoaderTests) ... Segmentation fault -- ___ Python tracker

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-01-21 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10775 ___ ___ Python-bugs-list

[issue10969] Make Tcl recommendation more prominent

2011-01-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I'm a little concerned about that wording change. I proposed the current wording and footnote because the situation is dynamic and is not so cut and dried. For one, Apple could at anytime fix their Tcl/Tk. Another, ActiveState could issue a new (and

[issue3080] Full unicode import system

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: except for the segfault in test_importlib. Yes, as reported in my previous comment :-) Let's update the patch for practical reasons. But I don't want to touch http://codereview.appspot.com/1874048 (based on patch version 4).

[issue3080] Full unicode import system

2011-01-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file20474/issue3080-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3080 ___

[issue3080] Full unicode import system

2011-01-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file20475/issue3080-4-svn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3080 ___

[issue4819] Misc/cheatsheet needs updating

2011-01-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Raymond Hettinger wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Perhaps the cheatsheet can be transferred to a wiki page and we can put out a comp.lang.python call for updates. Good idea. I just want

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: The provided example has two problems: The DLL should be loaded as cdll, not windll. C_METHOD_TYPE4 uses c_int32 as parameter type while pyFunc4Type in testPy2.cpp uses LPVOID (64 bit on win-amd64). Even with those corrections the issue

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Owen
Owen j2.n...@gmail.com added the comment: yes, I tried lots of types. The issue still happens. The same case in Ubuntu and Mac were works well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: The patch attached to #8275 fixes this issue and possibly also #9266. Tested with Python 2.7.1 64 bit on Windows 7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-21 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: This patch fixes issue #9884 and possibly #9266. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8275 ___

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Owen
Owen j2.n...@gmail.com added the comment: wow~~~ It works on my PC too (Windows 2003 STD x64). Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, your change is in the read_directory() function, which reads the whole archive the first time it's used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10955

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: No, your change is in the read_directory() function, which reads the whole archive the first time it's used. Oh, I though that read_directory() only reads files one by one. -- ___

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ronald Oussoren and Amaury Forgeot d'Arc: do you think that it is an acceptable limitation to only accept ASCII filenames in python32.zip? (not in all ZIP files, just in the file loaded at startup) All possible solutions: a)

[issue10971] python Lib/test/regrtest.py -R 3:3: test_zipimport_support fails

2011-01-21 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: ./python Lib/test/regrtest.py test_zipimport_support pass, but not with the -R option. $ ./python Lib/test/regrtest.py -R 3:3: test_zipimport_support [1/1] test_zipimport_support beginning 6 repetitions 123456 test

[issue10968] Timer class inheritance issue

2011-01-21 Thread Benjamin VENELLE
Benjamin VENELLE gu0su...@gmail.com added the comment: I've tested it with Python 3.1.2 under Windows 7 32 bits. It raises the following TypeError exception function() argument 1 must be code, not str -- ___ Python tracker rep...@bugs.python.org

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: What about tools that builds one .zip file for all modules, like py2exe? A cp437 decoder is not so ugly to implement in C. It's just a charmap. -- ___ Python tracker rep...@bugs.python.org

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, py2app is implemented in Python and use the zipfile module. So if we can control how the filename is encoded, we can fix py2app to workaround this limitation :-) 7zip and WinRAR uses the same algorithm than

[issue10968] Timer class inheritance issue

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I can't reproduce the error. Do you have a script that shows the issue? What is the complete traceback? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue10968] Timer class inheritance issue

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ah, got it. It's about threading.Timer, which looks like a class, but is actually a function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10968

[issue10972] zipfile: add unicode option to the choose filename encoding

2011-01-21 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: ZipInfo._encodeFilename() tries cp437 encoding or use UTF-8. It is not possible to decide the encoding. To workaround #10955 (bootstrap issue with python32.zip), it would be nice to be able to create a ZIP file using only UTF-8

[issue10972] zipfile: add unicode option to the choose filename encoding

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, this patch fixes also a bug: ZipFile._RealGetContents() doesn't keep the unicode flag, so open a ZIP file and then write it somewhere else may change the unicode flag if unicode flag was set but the filename is also encodable

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: #10972 has a patch for zipfile to set the filename encoding if a ZipInfo object (to force the encoding to UTF-8). -- ___ Python tracker rep...@bugs.python.org

[issue10972] zipfile: add unicode option to the choose filename encoding

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: 7zip and WinRAR uses the same algorithm than ZipFile._encodeFilename(): try cp437 or use UTF-8. Eg. if a filename contains ∞ (U+221E), it is encoded to UTF-8. WinZIP encodes all filenames to cp437: ∞ (U+221E) is replaced by 8

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: zipfile: add unicode option to the choose filename encoding - zipfile: add unicode option to the force the filename encoding to UTF-8 ___ Python tracker rep...@bugs.python.org

[issue10968] Timer class inheritance issue

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It seems to be by design: from the documentation: http://docs.python.org/py3k/library/threading.html Timer is a subclass of Thread, and a Thread subclass should only override the __init__() and run() methods. What are you trying to do

[issue10042] total_ordering stack overflow

2011-01-21 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: This also affects Python 2.7, where it hasn't been fixed. Maybe reopen it? -- nosy: +lregebro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10042

[issue10968] Timer class inheritance issue

2011-01-21 Thread Benjamin VENELLE
Benjamin VENELLE gu0su...@gmail.com added the comment: Yes that's it. I Should precise it. I've taken a screenshot from my python's interpreter to spot it. -- Added file: http://bugs.python.org/file20479/issue10968.png ___ Python tracker

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What kind of problem are you trying to solve? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10972 ___

[issue10968] Timer should be a class so that it can be derived

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: AFAIK this is by design. Not that I agree with this decision anyway. -- assignee: collinwinter - nosy: +pitrou title: Timer class inheritance issue - Timer should be a class so that it can be derived type: behavior - feature request

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: On Linux, the zip command line program (InfoZIP zip program) only sets the unicode flag if it is able to set the locale to en_US.UTF-8. It can do better: check if the locale encoding is UTF-8, and only en_US.UTF-8 locale if the

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What kind of problem are you trying to solve? Support non-ASCII filenames in python32.zip (#10955): at bootstrap, Python 3.2 can only use UTF-8 codec (not cp437). But I suppose also that forcing the encoding to UTF-8 gives a

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Support non-ASCII filenames in python32.zip (#10955): at bootstrap, Python 3.2 can only use UTF-8 codec (not cp437). But I suppose also that forcing the encoding to UTF-8 gives a better Unicode support (when you decompress the archive). The

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch version 2: display a more useful error message: $ python Fatal Python error: Py_Initialize: Unable to get the locale encoding NotImplementedError: bootstrap issue: python32.zip contains non-ASCII filenames without the unicode

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Victor's second patch looks good to me. Georg, is this a release blocker? -- nosy: +pitrou stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org

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

2011-01-21 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Fri, Jan 21, 2011 at 2:58 AM, Christopher Dunn rep...@bugs.python.org wrote: For narrow-width screens, there really shouldn't be a sidebar. Maybe a dynamic element would be better. Right. I'd be in favor of removing the sidebar and

[issue10968] threading.Timer should be a class so that it can be derived

2011-01-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith title: Timer should be a class so that it can be derived - threading.Timer should be a class so that it can be derived ___ Python tracker rep...@bugs.python.org

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Nestor Aguilera
New submission from Nestor Aguilera aguil...@santafe-conicet.gov.ar: When trying to type 'ñ' in idle 3.2 (no problem in terminal), python quits unexpectedly when started from terminal: $ idle3 2011-01-21 11:21:55.883 Python[5228:a07] setCanCycle: is deprecated. Please use

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The python32.zip file generated by py2app contains both files from the stdlib and application files. I cannot avoid haveing non-ascii filenames when a python package contains data files that have such names. The patch in Issue10972

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10973 ___ ___

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The python32.zip file generated by py2app contains both files from the stdlib and application files. I cannot avoid haveing non-ascii filenames when a python package contains data files that have such names. I don't think this is a problem.

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10973 ___ ___ Python-bugs-list mailing

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: We are only talking about bootstrap-time importing of encodings modules. Again, the whole zip central directory is loaded on first import. If the zip file contains non-ascii filenames, nothing can be imported. --

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Again, the whole zip central directory is loaded on first import. If the zip file contains non-ascii filenames, nothing can be imported. Does it have to be decoded eagerly, though? -- ___ Python

[issue10955] Possible regression with stdlib in zipfile

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I cannot avoid haveing non-ascii filenames when a python package contains data files that have such names. Are data files Python modules (.py files)? Or can it be anything? -- ___

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The question is, rather, why you need an external flag for that. Because I don't want to change the default encoding. I am not sure that all applications support UTF-8 encodings. But if you control your environment, force UTF-8

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The question is, rather, why you need an external flag for that. Because I don't want to change the default encoding. I am not sure that all applications support UTF-8 encodings. If this is a ZIP standard flag, why should we care about

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10972 ___ ___

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, we recently added support for parsing binary data streams to the email module (or added back, if you are looking at it from a python2 perspective), exactly because in the wild headers are not always RFC compliant ASCII, and

[issue8713] multiprocessing needs option to eschew fork() under Linux

2011-01-21 Thread dholth
dholth dho...@fastmail.fm added the comment: +1 -- nosy: +dholth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list

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

2011-01-21 Thread Phillip J. Eby
Phillip J. Eby p...@telecommunity.com added the comment: Implicit knowledge in your own head about what might or might not be a good idea to program is not the same thing as a specification. type(x) is str is a good specification in this context, while string subclasses, but only if they're

[issue8713] multiprocessing needs option to eschew fork() under Linux

2011-01-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +asksol stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-21 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Yep, I agree, and in light of this, we should probably just close this issue and work toward reviewing/improving imaplib in the ways you are suggesting. As I migrate my imap stuff more to Python3, I'll see if I run into any problems with using

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

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Implicit knowledge in your own head about what might or might not be a good idea to program is not the same thing as a specification. type(x) is str is a good specification in this context, while string subclasses, but only if they're really

[issue3080] Full unicode import system

2011-01-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Oops, missed that post - that was indeed the problem. With that fixed, tests are all good on this system. I'll give the patch a look anyway, but I'm going to have trouble diagnosing things that don't fail on my development machine. As far as

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: No problem on Linux (Debian Sid): I tried ŁñØ=1 in IDLE interpreter (written using the compose key). It looks like the bug is specific to Mac OS X and comes from Tk directly:

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I cannot start IDLE by double-clicking its icon in the Finder. You may open a new issue for this proble. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10973

[issue3080] Full unicode import system

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: but I'm going to have trouble diagnosing things that don't fail on my development machine. On Windows, try any character not encodable into your ANSI code page (eg. Ł with cp1252) in the module path and non-ASCII characters in

[issue3080] Full unicode import system

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I tried issue3080-5.patch. The whole test suite pass on Windows. It pass also on Linux with -Wd -Werror -R 3:3: (except #10971 which is unrelated to this issue). I should maybe add some unit tests for non-ASCII module paths and

[issue8754] ImportError: quote bad module name in message

2011-01-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: My patch for #3080 uses repr() to format module name in all error messages. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (Regarding the second problem: if IDLE does not launch when you double-click on it, please check for and report any error messages from /var/log/system.log at the time. You can use /Applications/Utilities/Console.app to view system.log.) --

[issue10972] zipfile: add unicode option to the force the filename encoding to UTF-8

2011-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This looks similar to issue10614 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10972 ___

[issue3080] Full unicode import system

2011-01-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: On Sat, Jan 22, 2011 at 3:08 AM, STINNER Victor rep...@bugs.python.org wrote: I should maybe add some unit tests for non-ASCII module paths and non-ASCII module names :-) Indeed. There are a few tests in test_runpy that could be adapted to

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

2011-01-21 Thread Phillip J. Eby
Phillip J. Eby p...@telecommunity.com added the comment: 1. WSGI is a *Python* spec, not a *CPython* spec, so CPython implementation details have little bearing on how the spec should work. Most non-CPython implementations have a native string type optimized for their runtime or VM (i.e.

[issue10973] 'ñ' not working with IDLE 3.2rc1 - OSX 10.6.6

2011-01-21 Thread Nestor Aguilera
Nestor Aguilera aguil...@santafe-conicet.gov.ar added the comment: Thanks Victor and Ned, I'll send a report on the second issue as well (I thought it was known). Néstor Aguilera -- ___ Python tracker rep...@bugs.python.org

[issue10968] threading.Timer should be a class so that it can be derived

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Adding Guido, who checked the module in, to nosy. Guido: Could you tell us whether the fake classes in threading.py should stay as is or can be fixed? The whole _Verbose business and Thing/_Thing indirection seem a bit outdated and unneeded.

[issue10974] IDLE 3.2 not loading on double-click in Finder, OSX 10.6

2011-01-21 Thread Nestor Aguilera
New submission from Nestor Aguilera aguil...@santafe-conicet.gov.ar: Here is the report from Console (date/time removed): [0x0-0x1a11a1].org.python.IDLE[5541]Traceback (most recent call last): [0x0-0x1a11a1].org.python.IDLE[5541] File /Applications/Python

[issue10975] #10961: Pydoc touchups in new 3.2 Web server (issue4090042)

2011-01-21 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: Some comments. Haven’t tested the patch yet. http://codereview.appspot.com/4090042/diff/1/Lib/pydoc.py File Lib/pydoc.py (right): http://codereview.appspot.com/4090042/diff/1/Lib/pydoc.py#newcode2507 Lib/pydoc.py:2507: div

[issue10975] #10961: Pydoc touchups in new 3.2 Web server (issue4090042)

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: One day, email from rietveld will go to the right roundup report. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Some comments on http://codereview.appspot.com/4090042 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10961 ___

[issue9723] pipes.quote() needs to be documented

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Why do you want to move quote from pipes to shlex? The function is available, the issue here is lack of documentation. -- stage: - unit test needed type: feature request - ___ Python tracker

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

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Also, laptops and handheld devices have a limited screen size. -1 on a pop-up, for obvious usability reasons. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue9723] pipes.quote() needs to be documented

2011-01-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9723 ___ ___

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

2011-01-21 Thread Christopher Dunn
Christopher Dunn cdunn2...@gmail.com added the comment: @eric.araujo: Not a 'pop-up', that you would have to click to close. But something dynamic, based on mouse location. -- ___ Python tracker rep...@bugs.python.org

[issue10968] threading.Timer should be a class so that it can be derived

2011-01-21 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: IIRC: The design started out this way because it predates new-style classes. When this was put in one couldn't subclass extension types, and there were plans/hopes to replace some of the lock types with platform-specific built-in versions

[issue10976] json.loads() throws TypeError on bytes object

2011-01-21 Thread hhas
New submission from hhas h...@users.sourceforge.net: json.loads() accepts strings but errors on bytes objects. Documentation and API indicate that both should work. Review of json/__init__.py code shows that the loads() function's 'encoding' arg is ignored and no decoding takes place before

[issue10948] Trouble with dir_util created dir cache

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: So It is better to define what a public function is. That is no easy task. See #10894 for a general discussion. For the particular case of distutils, there is no distinction between internal helpers that we should be free to change and public

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

2011-01-21 Thread Christopher Dunn
Christopher Dunn cdunn2...@gmail.com added the comment: I was just trying to help fix the CSS, and I think I've done that. If we're reconsidering the behavior of the nav sidebar, then I'd like to point out that if you're far down the page, the sidebar is blank to your right. From a usability

[issue10822] test_getgroups failure under Solaris

2011-01-21 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Antoine, can you confirm that the problem is solved, and mark this issue as closed/fixed?. Thanks. -- nosy: -rosslagerwall resolution: fixed - stage: committed/rejected - needs patch status: closed - open

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

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: 4. The explicit-vs-implicit is about the contract defined in the spec (making explicit what, precisely, is required of both parties), not the type test. Perhaps a clarification in the () spec that 'type str' means type(s) is str

[issue10822] test_getgroups failure under Solaris

2011-01-21 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Sorry, Firefox insists in cache-ing the tracker, with bad results. I beg your pardon. -- nosy: +rosslagerwall resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___

[issue10966] eliminate use of ImportError implicitly representing TestSkipped

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: How is this different from issue 2409? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10966 ___

[issue10966] eliminate use of ImportError implicitly representing TestSkipped

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On second reading I see one way it is different: you suggest to move the list of expected skips out of regrtest. So, are you suggesting, essentially, that support.import_module be replaced by an optional_import that takes arguments to

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think we have already been moving in this director for quite some time. Past policy is to only change things when we are working on that area of code anyway. If someone wants to make some specific proposals to simplify regrtest by

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think we have already been moving in this direction for quite some time. Past policy is to only change things when we are working on that area of code anyway. If someone wants to make some specific proposals to simplify regrtest by

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg126780 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10967 ___

[issue10976] json.loads() throws TypeError on bytes object

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. According to issue 4136, all bytes support was supposed to have been removed. -- nosy: +pitrou, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976

[issue10966] eliminate use of ImportError implicitly representing TestSkipped

2011-01-21 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yes. So for _winreg (if we even have tests) it would be skipped on all OSs other than Windows, on on Windows it would be a test failure if it didn't work as it is expected to exist. -- ___ Python

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-21 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yes, I somewhat view this as an index issue. I don't expect a wholesale move but a more step-by-step move. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10967

[issue3831] Multiprocessing: Expose underlying pipe in queues

2011-01-21 Thread Forest Wilkinson
Changes by Forest Wilkinson pyth...@tibit.com: -- nosy: +forest ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3831 ___ ___ Python-bugs-list

[issue10976] json.loads() throws TypeError on bytes object

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Indeed, the documentation (and function docstring) needs fixing instead. It's a pity we didn't remove the useless `encoding` parameter. -- assignee: - docs@python components: +Documentation -Library (Lib) nosy: +docs@python

[issue10976] json.loads() throws TypeError on bytes object

2011-01-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Georg: Is it still time to deprecate the encoding parameter in 3.2? -- nosy: +eric.araujo, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976

[issue10042] total_ordering stack overflow

2011-01-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- status: closed - open versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10042 ___

[issue10966] eliminate use of ImportError implicitly representing TestSkipped

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I see what you are getting at now. I was confused by the raise SkipTest directly part, since the test suite currently does raise SkipTest instead of ImportError. So the key change here is to make the test show as a *failure* on

[issue10976] json.loads() throws TypeError on bytes object

2011-01-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed a doc fix in r88137. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976 ___

[issue10943] abitype: Need better support to port C extension modules to the stable C API

2011-01-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10943 ___ ___ Python-bugs-list

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10949 ___ ___

[issue10960] os.stat() does not mention that it follow symlinks by default

2011-01-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I almost closed this as invalid, since the name is, after all 'os.stat' and the docs clearly say that it calls the 'stat' system call. However, I see that our docs do not contain the more explicit language used by the 'stat' system call

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: What happens if you run your program without IDLE? (either with right-click and run or run from Command Prompt window?) I would not be surprised if your problems go away. IDLE runs a saved file in a separate pythonw process. Printing (or

  1   2   >