[issue3080] Full unicode import system

2011-01-20 Thread Nick Coghlan
Nick Coghlan added the comment: As for the more limited run, I get a clean run with -uall except for the segfault in test_importlib. I'll switch to a pydebug build and see how a verbose run of that test fares. -- ___ Python tracker

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

2011-01-20 Thread Christopher Dunn
Christopher Dunn added the comment: For narrow-width screens, there really shouldn't be a sidebar. Maybe a dynamic element would be better. Could it unhide and overlap the main body with a click or mouse-over? Then the main body could take the full screen width. Just an idea. -- ___

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

2011-01-20 Thread Christopher Dunn
Christopher Dunn added the comment: I see what @ezio means about the apparent overflow when the bodywrapper left margin is at 20%. (It's not really overflow, since the sidebar is actually the width of the screen.) How about this change to basic.css? 44 div.sphinxsidebar { 45 float: left

[issue10964] Mac installer need not add things to /usr/local

2011-01-20 Thread Ned Deily
Ned Deily added the comment: Adding the symlinks to /usr/local is an option in the OS X installer. Although it is enabled by default, you can easily disable it in Installer.app by selecting "Customize" and then unchecking the install of the "UNIX command-line tools" package. The main reason

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Georg Brandl
Georg Brandl added the comment: Sigh... that might have come a little earlier. As it is, I'll review it before rc2. -- assignee: -> georg.brandl priority: normal -> release blocker ___ Python tracker ___

[issue10906] wsgiref should mention that CGI scripts usually expect HTTPS variable to be set to 'on'

2011-01-20 Thread Georg Brandl
Georg Brandl added the comment: The doc for this function is not a place to discuss what CGI scripts do. It describes what guess_scheme() does, and it does so sufficiently. -- status: open -> closed ___ Python tracker

[issue3341] "Suggest a change" link

2011-01-20 Thread Georg Brandl
Georg Brandl added the comment: And still this is a thing that Sphinx needs to do (already does, but needs to be finalized.) -- status: open -> closed ___ Python tracker ___ ___

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

2011-01-20 Thread Owen
Owen added the comment: I tested this issue in Python2.7.1, Python3.1.3 and Python 3.2rc1. It's still can reproduce. Would you please check this "Callback functions" issue? -- ___ Python tracker __

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

2011-01-20 Thread Joe Peterson
Joe Peterson added the comment: These are all good comments. And I agree that the naming of the functions is not good (and the CamelCase). Overall, yes, it should be made consistent and the types returned and passed in should be appropriate. I did a little experimenting, using more imaplib

[issue10970] "string".encode('base64') is not the same as base64.b64encode("string")

2011-01-20 Thread Mahmoud Abdelkader
New submission from Mahmoud Abdelkader : Given a string, encoding it with .encode('base64') is not the same as using base64's b64encode function. I think this is very unclear and unintuitive. Here's some example code to demonstrate the problem. Before I attempt to submit a patch, is this done

[issue3080] Full unicode import system

2011-01-20 Thread Nick Coghlan
Nick Coghlan added the comment: After applying the patch, doing a make clean and rebuild, I found that test_importlib fails with a segmentation fault, but the default test suite otherwise runs without error (that's on Linux with a UTF-8 filesystem, though). I'll see how a -uall run fares. --

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-20 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10969] Make Tcl recommendation more prominent

2011-01-20 Thread Raymond Hettinger
New submission from Raymond Hettinger : On the releases page at http://www.python.org/download/releases/3.2/ the note about Tcl needs to be made more prominent for the 32/64 bit Mac OS installer. Right now, it's buried in another page referenced in a footnote at the bottom of the release. I

[issue10675] unittest should have an assertChanges context manager

2011-01-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Tests nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-01-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: I did some tests using 20% instead of 230px and found the following problems: 1) while zooming, even if the width of the sidebar doesn't change, the font size does, overflowing from the sidebar; 2) min-width can't be used because the width of the sidebar is given

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

2011-01-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: On Thu, Jan 20, 2011 at 11:18 PM, Ezio Melotti wrote: > If it gets too narrow it would start getting unusable and the text will start > overflowing. If someone is zooming that much, it's because they really need the size of the text more than anything (tr

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

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: The min-width is necessary in case the CSS is changed to resize the sidebar dynamically. If it gets too narrow it would start getting unusable and the text will start overflowing. Possible alternatives are: 1) use a percentage and min-width; 2) like 1) but also

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

2011-01-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: As Ezio noted, the coming versions of the Python 3 documentation provide a way to collapse the sidebar completely. Perhaps a min-width should be specified, but I'm not convinced that's a good idea. The sidebar problem is fairly significant, and the collaps

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: Not all the arg names in the doc match with the actual name of the args (probably because the methods are expected to be used with positional args only), that's why the changes affects only the doc. -- ___ Python tra

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2011-01-20 Thread Christoph Gohlke
Changes by Christoph Gohlke : -- nosy: +cgohlke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9196] Improve docs for string interpolation "%s" re Unicode strings

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: Python 3 checks the return types of __bytes__ and __str__, raising an error if it's not bytes and str respectively: >>> str(C()) TypeError: __str__ returned non-string (type bytes) >>> bytes(C()) TypeError: __bytes__ returned non-bytes (type str) The Python 2 do

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

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 20, 2011 at 10:08 PM, R. David Murray wrote: .. > (*) The asymetry in the names of these two functions is already a wart. Not to mention the use of CamelCase. -- ___ Python tracker

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

2011-01-20 Thread R. David Murray
R. David Murray added the comment: I think the module should be reviewed and made consistent, as Antoine did for nntplib. I don't know enough about the IMAP protocol to do such a review, or even weigh in meaningfully on the immediate question, nor am I likely to have time to learn enough bef

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

2011-01-20 Thread Christoph Gohlke
Changes by Christoph Gohlke : -- nosy: +cgohlke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: If the width is specified with a percentage, a min-width should be specified too. In the py3k doc the sidebar can be collapsed though, so I'm not sure it's worth changing this. Georg? -- keywords: +easy stage: -> needs patch __

[issue10968] Timer class inheritance issue

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Works for me: >>> from timeit import Timer >>> class A(Timer): pass ... (Tested with Python 3.1 and 3.2 on OSX.) -- nosy: +belopolsky ___ Python tracker _

[issue5380] pty.read raises IOError when slave pty device is closed

2011-01-20 Thread Zac Medico
Zac Medico added the comment: This issue no longer appears to be a problem for my purposes, since it seems that array.fromfile() does not lose any data as long as the input file is opened in unbuffered mode (I use fdopen with 0 for the bufsize argument). -- __

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: Leaving it in the wiki for a while so that the community can update and improve it might be a good idea, but ultimately I think it should go in the doc. -- ___ Python tracker __

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: test_runpy fails on Windows on make_legacy_pyc() (of test.support), I don't know why. -- ___ Python tracker ___ ___

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: test_reprlib fails on Windows, because '\' in quoted '\\' in the filename on repr(module). Workaround: *** index b0dc4d7..e476941 100644 --- a/Lib/test/test_reprlib.py +++ b/Lib/test/test_reprlib.py @@ -234,7 +234,7 @@ class LongReprTest(unittest.TestCase)

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Past experience has shown that a cheatsheet in the main repository gets neglected. How about we open it up via a wiki or somesuch so that the community if free to update it? -- ___ Python tracker

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: Oops, there is a dummy typo in imp_init_builtin() that makes test_importlib to crash (which proves that importlib has a good coverage :-)): replace "s:" by "U:" in if (!PyArg_ParseTuple(args, "s:init_builtin", &name)). --

[issue10968] Timer class inheritance issue

2011-01-20 Thread Benjamin VENELLE
New submission from Benjamin VENELLE : Hi, Due to Timer's object creation behavior, it is impossible to subclass it. This kind of declaration will result to an exception raising: class A(Timer): pass -- components: +Library (Lib) -Benchmarks versions: +Python 3.1

[issue10968] Timer class inheritance issue

2011-01-20 Thread Benjamin VENELLE
Changes by Benjamin VENELLE : -- assignee: collinwinter components: Benchmarks nosy: Kain94, collinwinter priority: normal severity: normal status: open title: Timer class inheritance issue type: behavior ___ Python tracker

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: You can review the patch with Rietveld: http://codereview.appspot.com/3972045 -- ___ Python tracker ___

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: FWIW, I updated the first couple of pages. If anyone finds my changes useful, here they are in issue4819.diff. -- keywords: +patch Added file: http://bugs.python.org/file20476/issue4819.diff ___ Python tracke

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

2011-01-20 Thread Matt Joiner
Matt Joiner added the comment: I agree, I discovered this function (pipes.quote) only through recommendation here: http://stackoverflow.com/questions/4748344/whats-the-reverse-of-shlex-split I suggest that it be added to shlex, perhaps as shlex.quote. While the quoting style it performs, and

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: Same patch (version 4) generated by svn. -- Added file: http://bugs.python.org/file20475/issue3080-4-svn.patch ___ Python tracker ___ __

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file20448/issue3080-3.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: Version 4 of the patch. -- Added file: http://bugs.python.org/file20474/issue3080-4.patch ___ Python tracker ___ ___

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: I agree that it would be nice to have a cheatsheet somewhere, possibly in the official doc and not as a plain txt file in Misc/. FWIW another cheatsheet updated to 2.6 can be found here: http://rgruet.free.fr/PQR26/PQR2.6.html -- keywords: +gsoc nosy: +

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Ron Adam
Changes by Ron Adam : -- nosy: +eric.araujo, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file20468/pydoc_misc_fix.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Ron Adam
Ron Adam added the comment: A few last minute changes.. I think this will be all. Run topic contents through html.markup. That makes ref:, pep:, and html: links if they exist. (I meant to this earlier.) Fix case where topic reference links are to objects rather than another topic. (applie

[issue10952] Don't normalize module names to NFKC?

2011-01-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Only Mac OS X and the HFS+ filesystem normalize filenames (to a variant > of NFD). But such normalization is a good thing! I mean that I don't > think that we have anything to do for that. That may well be - I don't have a case where this would cause problem

[issue10956] file.write and file.read don't handle EINTR

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch for Python 3.2+. -- keywords: +patch nosy: +amaury.forgeotdarc stage: -> patch review Added file: http://bugs.python.org/file20472/eintr_io.patch ___ Python tracker

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2011-01-20 Thread Brett Cannon
Brett Cannon added the comment: I have verified that if you add -no-integrated-as as a flag (e.g., through CFLAGS) then ctypes will build. -- ___ Python tracker ___ ___

[issue10952] Don't normalize module names to NFKC?

2011-01-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > There is also issue c) what if the filesystem encoding can only > represent a compatibility character, say U+00B5, but not its NFKC > equivalent, U+03BC? That should be considered as similar to file systems that just cannot represent certain characters at al

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-20 Thread Brett Cannon
New submission from Brett Cannon : test.regrtest is rather old and has not been updated to take advantage of all the latest features in unittest (e.g., test discovery). It might be a rather large undertaking with various bits requiring some changes (e.g., getting away from raising exceptions f

[issue10966] eliminate use of ImportError implicitly representing TestSkipped

2011-01-20 Thread Brett Cannon
Brett Cannon added the comment: Once the proper function in test.support comes about then a dev task to help move everything over can be created. And then once all needed test modules have been switched over the ImportError try/except statement in regrtest can be removed. -- ___

[issue10966] eliminate use of ImportError implicitly representing TestSkipped

2011-01-20 Thread Brett Cannon
New submission from Brett Cannon : test.regrtest considers an ImportError to be a test to skip. It then uses this info to decide what skipped tests were expected (or not) based on a list kepted in regrtest.py. For detecting compiler failures, an ImportError should be a test error or failure.

[issue10965] dev task of documenting undocumented APIs

2011-01-20 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Build 3.x documentation using python3.x ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10965] dev task of documenting undocumented APIs

2011-01-20 Thread Brett Cannon
New submission from Brett Cannon : Once the docs are built using Python 3, then the coverage results can be used by people wanting to contribute as something to do. Should also mention in the task that some APIs should probably be private: http://mail.python.org/pipermail/python-dev/2010-Novem

[issue10964] Mac installer need not add things to /usr/local

2011-01-20 Thread Russell Owen
New submission from Russell Owen : The Mac installer alters the user's $PATH to put /Library/Frameworks/Python.Framework/Versions/Current/bin on the $PATH before /usr/local/bin and /usr/bin. This is a good idea in my opinion. But the installer *also* installs numerous symlinks in /usr/local/bi

[issue3341] "Suggest a change" link

2011-01-20 Thread anatoly techtonik
anatoly techtonik added the comment: Still actual, esp. with this - http://google-opensource.blogspot.com/2011/01/make-quick-fixes-quicker-on-google.html and this http://codemirror.net/ -- status: closed -> open ___ Python tracker

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Raymond Hettinger
Raymond Hettinger 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. Also, +1 on the summer of code idea. -- nosy: +rhettinger ___ Python tracker

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2011-01-20 Thread Brett Cannon
Brett Cannon added the comment: Chris Lattner from LLVM says that this has been fixed in their mainline and that to work around it in LLVM 2.8 one should build with the -no-integrated-as flag. -- resolution: -> fixed status: open -> closed ___ Pyt

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2011-01-20 Thread Sam Bull
Sam Bull added the comment: I think there's a much simpler solution to this ticket than the retry logic that's currently in place. The code originally avoided the infinite recursion by checking to see if the previous request had already submitted the auth credentials that would be used in th

[issue10952] Don't normalize module names to NFKC?

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: > A packaging mechanism that prepares code developed on a Latin-1 > filesystem for distribution, would have to NFKC-normalize > filenames before encoding them using UTF-8. It causes portability issues: if you copy a non-ASCII module on a new host, the program

[issue10906] wsgiref should mention that CGI scripts usually expect HTTPS variable to be set to 'on'

2011-01-20 Thread Graham Dumpleton
Graham Dumpleton added the comment: As has been pointed out to you already in other forums, the correct way of detecting in a compliant WSGI application that a SSL connection was used is to check the value of the wsgi.url_scheme variable. If your code does not do this then it is not a complia

[issue10955] Possible regression with stdlib in zipfile

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 20 janvier 2011 à 18:15 +, Amaury Forgeot d'Arc a écrit : > But if the zip file contains the stdlib *and* some other custom > modules with cp437 names, the whole operation will fail; it can be the > case with py2exe applications. The ASCII fallback

[issue10906] wsgiref should mention that CGI scripts usually expect HTTPS variable to be set to 'on'

2011-01-20 Thread anatoly techtonik
anatoly techtonik added the comment: The problem that most scripts check for 'on', and not for '1'. http://www.cgi101.com/book/ch3/text.html More than that - I don't know any servers that set this to '1', except mod_wsgi, and perhaps other implementations that follow this wsgiref. mod_wsgi e

[issue10887] Add link to development ML

2011-01-20 Thread anatoly techtonik
anatoly techtonik added the comment: Link on group description page to FOTP project site. I thought that https://bitbucket.org/tarek/distutils2/wiki/Home is that site. -- ___ Python tracker __

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Updating the cheat sheet would be a great summer of code like project. > We are considering using the cheat sheet as basis for a flyer in the > PSF marketing material project. IMO it's not only about updating. It's about converting it to some proper markup fo

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2011-01-20 Thread Brett Cannon
Brett Cannon added the comment: Filed a bug with LLVM/Clang: http://llvm.org/bugs/show_bug.cgi?id=9014 -- ___ Python tracker ___ ___

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Updating the cheat sheet would be a great summer of code like project. We are considering using the cheat sheet as basis for a flyer in the PSF marketing material project. Please add it back and add a note to it, that it currently is missing a few langua

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, perhaps Marc-André wants to revive it. Otherwise, suggest closing indeed. -- assignee: docs@python -> nosy: +lemburg stage: -> needs patch status: open -> pending ___ Python tracker

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Misc/cheatsheet has been removed in r88127. Should this be closed? -- ___ Python tracker ___

[issue4761] create Python wrappers for openat() and others

2011-01-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10959] mmap crash

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r88131 (3.2), r88132 (3.1) and r88133 (2.7). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10845] test_multiprocessing failure under Windows

2011-01-20 Thread Brett Cannon
Changes by Brett Cannon : -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10959] mmap crash

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch which also caters to the Windows side of things. -- Added file: http://bugs.python.org/file20470/mmap_10959.patch ___ Python tracker _

[issue10959] mmap crash

2011-01-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10963] "subprocess" can raise OSError (EPIPE) when communicating with short-lived processes

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It could be argued that this is incorrect, as it masks under-reads of > stdin by the subprocess. However I believe a sanely-written subprocess > ought to indicate success/failure back with its return code. It seems quite orthogonal. The subprocess could hav

[issue10963] "subprocess" can raise OSError (EPIPE) when communicating with short-lived processes

2011-01-20 Thread Dave Malcolm
New submission from Dave Malcolm : If we start a short-lived process which finishes before we begin communicating with it (e.g. by crashing), we can receive a SIGPIPE due to the receiving process no longer existing. This becomes an EPIPE, which becomes an: OSError: [Errno 32] Broken pipe Ar

[issue10962] gdb support broken

2011-01-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10962] gdb support broken

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Er, for some reason it seems to have just stopped happening. -- resolution: -> works for me status: open -> pending ___ Python tracker ___ ___

[issue10962] gdb support broken

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: And bizarrely, test_gdb runs fine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10962] gdb support broken

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: $ gdb --version GNU gdb (GDB) 7.1-1mdv2010.1 (Mandriva Linux release 2010.1) -- ___ Python tracker ___

[issue10962] gdb support broken

2011-01-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : This happens when I try to debug a Python process (py3k HEAD in pydebug mode): Traceback (most recent call last): File "/home/antoine/py3k/__svn__/python-gdb.py", line 52, in _type_size_t = gdb.lookup_type('size_t') RuntimeError: No type named size_t.

[issue10953] safely eval serialized dict/list data from arbitrary string over web with no side effects

2011-01-20 Thread Skip Montanaro
Skip Montanaro added the comment: If you intend this to be "safe" in the security sense of the word, I suggest you release it in PyPI and post a note on comp.lang.python (a.k.a. python-l...@python.org) asking people to try and break it. -- nosy: +skip.montanaro

[issue10812] Add some posix functions

2011-01-20 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > PyString_AsString() only "works on subclasses" if their internal > representation is the same as type str. So we can't say "subclass of > str" without *also* specifying that the subclass store its contents in > exactly the same way as an object of type str...

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

2011-01-20 Thread Phillip J. Eby
Phillip J. Eby added the comment: PyString_AsString() only "works on subclasses" if their internal representation is the same as type str. So we can't say "subclass of str" without *also* specifying that the subclass store its contents in exactly the same way as an object of type str... whi

[issue10955] Possible regression with stdlib in zipfile

2011-01-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: About the patch: """Break out of this dependency by assuming that the path to the encodings module is ASCII-only.""" The 'path' here is the entry inside the zip file (and does not include the location of the zip file itself), so the comment is right as

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file20467/pydoc_misc_fix.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Ron Adam
Ron Adam added the comment: new patch... Adjusted a comment in the _gettopic method. Everything else the same. -- Added file: http://bugs.python.org/file20468/pydoc_misc_fix.diff ___ Python tracker _

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Ron Adam
New submission from Ron Adam : A collection of small fix's that only effect the new browser mode. * Change title of html pages from "Python ..." to "PyDoc ...". * Fixed unterminated div float for items returned without a header. example: str, None, True, False * Added "topic?key=.

[issue10952] Don't normalize module names to NFKC?

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 20, 2011 at 8:06 AM, STINNER Victor wrote: .. >> There is also issue c) what if the filesystem encoding can only >> represent a compatibility character, say U+00B5, but not its NFKC >> equivalent, U+03BC? > > It is the same problem than not be

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

2011-01-20 Thread Марк Коренберг
New submission from Марк Коренберг : Documentation should say about 'following symlink' in this function. Documentation should advice to use os.lstat() in case when it needed. -- assignee: docs@python components: Documentation messages: 126631 nosy: docs@python, mmarkk priority: normal

[issue10958] stat.S_ISLNK() does not wok!

2011-01-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: os.stat() follows symbolic links. You probably want to use os.lstat() instead: http://docs.python.org/library/os.html#os.lstat -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> closed ___ Py

[issue10959] mmap crash

2011-01-20 Thread Ross Lagerwall
New submission from Ross Lagerwall : The fix for issue10916 commited in r88022 introduces this line: map_size = st.st_size - offset; If offset > st.st_size, map_size is negative. This should cause the mmap system call to return -1 and set errno. However, given a certain size of offset, since

[issue10958] stat.S_ISLNK() does not wok!

2011-01-20 Thread Марк Коренберг
New submission from Марк Коренберг : ipython session: In [48]: qwe=os.stat('/usr/lib/libstdc++.so.6') In [49]: qwe.st_mode Out[49]: 33188 In [50]: stat.S_ISLNK(qwe.st_mode) Out[50]: False In [51]: stat.S_IFLNK & qwe.st_mode Out[51]: 32768 '/usr/lib/libstdc++.so.6' is really symlink !!! python

[issue10955] Possible regression with stdlib in zipfile

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: The regression was introduced in r85690: use the correct encoding to decode the filename from the ZIP file. Attached patch fixes the bootstrap issue. -- keywords: +patch Added file: http://bugs.python.org/file20465/issue10955.patch ___

[issue10957] Python FAQ grammar error

2011-01-20 Thread Jerry Seutter
New submission from Jerry Seutter : Section 4.1 of the Python FAQ (http://www.python.org/dev/faq/) contains a grammar error: The sentence I am referring to says: "If you are developing on OS X for Python 2.x and will not be working with the OS X-specific modules from the standard library, the

[issue10948] Trouble with dir_util created dir cache

2011-01-20 Thread Diego Queiroz
Diego Queiroz added the comment: "I would agree if mkpath were a public function." So It is better to define what a "public function" is. Any function in any module of any project, if it is indented to be used by other modules, it is public by definition. If new people get involved in distuti

[issue10956] file.write and file.read don't handle EINTR

2011-01-20 Thread Mark Florisson
Mark Florisson added the comment: > Ok. This would only be done in buffered mode, though, so your fwrite.py > example would have to be changed slightly (drop the ",0" in fdopen()). Indeed, good catch. So apparently file.write (in buffered mode) is also "incorrect" in Python 3. -- Add

[issue10956] file.write and file.read don't handle EINTR

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > file.write, on EINTR, could decide to continue writing if no Python > signal handler raised an exception. > Analogously, file.read could decide to keep on reading on EINTR if no > Python signal handler raised an exception. Ok. This would only be done in buffe

[issue10956] file.write and file.read don't handle EINTR

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, sorry, had missed the relevant part in your original message. -- ___ Python tracker ___ ___ P

  1   2   >