[issue6517] configparser: add possibility to escape formatstrings

2010-07-24 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: The documentation should promote RawConfigParser, and note SafeConfigParser and ConfigParser as remaining for backward compatibility for existing software. That is another way to go around this. Anyway, ConfigParser is the least predictable

[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-24 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Unless there is a reason I have missed, I would iterate through the smaller set, which might even be empty or nearly so, rather than either in particular. You're right, here is a new patch. Pseudocode: def isdisjoint(self, other):

[issue8775] Use locale encoding to encode command line arguments (subprocess, os.exec*(), etc.)

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This issue only seems to be relevant for OSX, and then only for OSX releases before 10.5, because in that release Apple made sure that the LANG variable and simular LC_* ones specify a UTF-8 encoding and we're back at the common case

[issue9366] Reference leak for local new style class

2010-07-24 Thread Kay Hayen
New submission from Kay Hayen kayha...@gmx.de: Hello, I have created tests that check the reference counting and found that the following simple function leaks references in CPython: def simpleFunction39(): class Parent( object ): pass I have attached a test that needs to be run

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Darren Worrall
New submission from Darren Worrall d...@darrenworrall.co.uk: In my checkout of py3k (r83123), test_getgroups in test_posix fails - the right elements are returned but the ordering is different: $ ./python -m test.regrtest test_posix test_posix test test_posix failed -- Traceback (most recent

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Armin Ronacher
New submission from Armin Ronacher armin.ronac...@active-4.com: The following patch changes some parts of the public C API for const correctness which would help C++ programmers. The original patch was provided by neXyon on irc.freenode.net. It does not produce any compiler warnings on GCC

[issue4184] Remove use of private attributes in smtpd

2010-07-24 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Committed in revision 83125. -- assignee: - richard resolution: - fixed stage: - committed/rejected status: open - closed type: - feature request ___ Python tracker

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
New submission from Jörg Müller nex...@gmail.com: Patch attached -- components: Interpreter Core files: patch.diff keywords: patch messages: 111437 nosy: neXyon priority: normal severity: normal status: open title: const char* for PyObject_CallMethod and PyObject_CallFunction type:

[issue9336] string.letters should display locale based equivalent of a-Z

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Actually, in Python 2.x, string.letters *does* contain the letters based on the locale. Just make sure to call locale.setlocale. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
Jörg Müller nex...@gmail.com added the comment: I've merged the patch with the changes from Armin in issue9368. -- type: feature request - behavior Added file: http://bugs.python.org/file18176/patch.diff ___ Python tracker rep...@bugs.python.org

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
Changes by Jörg Müller nex...@gmail.com: Removed file: http://bugs.python.org/file18175/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9369 ___

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Jörg Müller
Jörg Müller nex...@gmail.com added the comment: Uhm, while I reported this Armin was faster than me :) However, I've merged our patches in issue9369. -- nosy: +neXyon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9368

[issue7900] posix.getgroups() failure on Mac OS X

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: 2.7: r83124 2.6: r83126 The fix is now in all active branches, and I therefore close the issue. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue8792] xmlrpclib compatibility issues with Apache XML-RPC library

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can somebody please point to a current version of the Apache documentation? The link in msg106322 does not work anymore. I'm tempted to close this as invalid: Apache is clearly violating the XML-RPC specification, so the bug is theirs. As

[issue7041] test_macostools fails on os x 10.6

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: - ronaldoussoren components: +Macintosh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7041 ___

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I just noticed that I only need to strip the comma from the URL. So I now see it's not an Apache bug, but explicitly marked as an extension. So I'm reclassifying this as a feature request. As a new feature, it can only go into 3.2.

[issue8798] tkinter build variants on OSX

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: We talked about this at the language summit at EuroPython 2010. We'll resolve the installer issue by moving the 64-bit capable installer to Tk 8.5 (with a minimal OSX version of 10.6). The 32-bit installer will still use Tk 8.4

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Darren Worrall
Darren Worrall d...@darrenworrall.co.uk added the comment: After a quick chat with Ronald at the EP sprint he says the ordering didnt matter, so here's a quick patch to check only for deltas. -- keywords: +patch Added file: http://bugs.python.org/file18177/py3k-issue9367.diff

[issue4813] On OS-X the directories searched by setup.py for Tk are in the wrong order.

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This issue is no longer valid, the current search order from setup.py: def detect_tkinter_darwin(self, inc_dirs, lib_dirs): # The _tkinter module, using frameworks. Since frameworks are quite # different the UNIX

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If an application uses .isalpha for a security-relevant check, this is a security issue in the application, not in Python. -- ___ Python tracker rep...@bugs.python.org

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Anthony Long
Anthony Long antl...@gmail.com added the comment: I disagree. It's expected that the function will return valid data. This doesn't return valid data so isalpha() is compromised. -- ___ Python tracker rep...@bugs.python.org

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Martin that the security problem would be in the application, not python itself. Testing with isalpha is generally not the right thing to do anyway, it is much better to restrict input to a know-good set of data, such as

[issue9370] Add reader redirect from test package docs to unittest module

2010-07-24 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Brett updated the docs for the test package to (correctly) point out that it is our internal testing package and isn't subject to the same stringent backwards compatibility rules as the rest of the standard library. A see also link pointing

[issue1560032] confusing error msg from random.randint

2010-07-24 Thread Petras Zdanavičius
Petras Zdanavičius petra...@gmail.com added the comment: I have written a patch thats makes these strange error messages go away. What actually I have done was something like this: randint = _inst.randint Was replaced with: def randint(a, b): return _inst.randint(a, b) But I do not

[issue9197] Crash when importer an extension after Py_Initialize, Py_Finalize and Py_Initialize

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: (changing subject to better tell what this issue is about) -- title: subprocess module causing crash - Crash when importer an extension after Py_Initialize, Py_Finalize and Py_Initialize ___

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-24 Thread Ralph Corderoy
Ralph Corderoy ralph-pythonb...@inputplus.co.uk added the comment: fileLineIter() is not a solution that allows this bug to be closed, no. readline() needs modifying and if that means python-dev discussion then that's what it needs. Things to consider include changing the record separator as

[issue7041] test_macostools fails on os x 10.6

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This issue was fixed in the repository a while back by disabling these tests on 64-bit systems. As Ned notes the code uses APIs that aren't available for 64-bit processes. -- status: open - closed

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - const char* for PyObject_CallMethod and PyObject_CallFunction ___ Python tracker

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +aronacher stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9369 ___ ___

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I assume that this is on *nix boxes, on Windows it's:- quit Use quit() or Ctrl-Z plus Return to exit exit Use exit() or Ctrl-Z plus Return to exit -- nosy: +BreamoreBoy ___ Python tracker

[issue8775] Use locale encoding to encode command line arguments (subprocess, os.exec*(), etc.)

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It seems that everybody now agrees to close this issue as won't fix. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8775

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I disagree. It's expected that the function will return valid data. This doesn't return valid data so isalpha() is compromised. What is valid data? The function (isalpha) should return a boolean, and it does. So the result is certainly

[issue2454] sha and md5 fixer

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be committed please. In msg110796 I over-emphasised the technical aspects, the patch is actually against 2to3. -- ___ Python tracker rep...@bugs.python.org

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2010-07-24 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: I have a patch that provides full documentation for pulldom, and adds sensible docstrings to the pulldom module. I have unfortunately created the patch on the py3k branch -- please let me know what I should do regarding porting

[issue2454] sha and md5 fixer

2010-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Minor nit: I suggest naming the fixer fix_hashlib, since the name fix_hash could easily be understood as something fixing __hash__ (even if such a fix is impossible for a machine to do). This fix could also go into fix_imports, but it’s useful

[issue2927] expose html.parser.unescape

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: msg110657 recommends close - wontfix. Does anybody want this kept open or can it be closed? -- status: open - pending ___ Python tracker rep...@bugs.python.org

[issue2927] expose html.parser.unescape

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +ezio.melotti, haypo status: pending - open versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2927 ___

[issue7473] Compile error when building a 3-way universal framework when a 2-way universal framework is present

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch makes sure that os.path.join(sys.prefix, 'lib') isn't added to the link path when using a framework build. This fixes the issue at hand in that I can then build a 3-way build of 2.7 when the default 32-bit is already

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can we have the patch committed to 2.7 and 3.1 please. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3704 ___

[issue4485] fast swap of default Windows python versions

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Hum, I think I spoke too soon. @Brian: @Tim: what do you think about this? -- nosy: +brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4485

[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The root cause of having the flags twice is that the Makefile explicitly sets LDFLAGS in the environment before when running setup.py, and that distutils appens the value of $(LDFLAGS) to $(LDSHARED) when LDFLAGS is set in the

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: In 2.7 and py3k test_subprocess has a class BaseTestCase which has a assertStderrEqual method. These don't exist in 3.1. I believe that the py3k code will need to be backported to 3.1. Can this be done on this issue, or do we need a

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Anthony Long
Anthony Long antl...@gmail.com added the comment: The locale is set incorrectly though - so it is not valid data. Valid data is a-Z. nothing more nothing less, and the locale and the alphabet should not be changed. -- ___ Python tracker

[issue8938] Mac OS dialogs(Save As..., Load) translation

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I don't think the Tk framework that is used by Tkinter is actually localized, but I don't know enough of Tcl/Tk to know for sure. EasyDialogs isn't explicitly localized either, and I guess the system doesn't do automatic localization

[issue9315] The trace module lacks unit tests

2010-07-24 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I'm attaching a file with some unit tests for Lib/trace.py module in Python 2.7. Currently the unit tests check the API only, for line counting, func call counting and function caller relationships, because these can be tested through the API,

[issue9167] argv double encoding on OSX

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Using the CF API to fetch the system encoding won't work: Using PyObjC: CFStringConvertEncodingToIANACharSetName(CFStringGetSystemEncoding()) u'macintosh' There doesn't seem to be another way to extract the prefered encoding from the

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Ned: could you please check if the issue is present in Python 2.7? I don't have access to machines that are capable of running OSX 10.3. -- ___ Python tracker rep...@bugs.python.org

[issue6517] configparser: add possibility to escape formatstrings

2010-07-24 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: We're in agreement; I was specifically adding weight to *not* selecting the second optoin Łukasz Langa presented: 2. We deprecate ConfigParser in the code and in the documentation. -- ___ Python

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2010-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Working off py3k is the thing to do. If the patch is trivial to apply to the other branches, the committer will probably use svnmerge to do it, else it may be useful to adapt your patch to 2.7. I’d recommend waiting for feedback before doing

[issue9371] pulldom doesn't provide END_DOCUMENT or COMMENT nodes.

2010-07-24 Thread Mark Smith
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk: I've been developing unit tests to increase the code coverage for pulldom, and have discovered that comments and end_document do not appear to result in events being obtained from the DOMEventStream. I've attached a failing

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2010-07-24 Thread Mark Smith
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk: DOMEventStream implements __getitem__, but ignores the index/key that is passed in and simply returns the next item from the stream. This is seriously unexpected behaviour. I don't believe this functionality can be sensibly

[issue9373] pulldom has low code coverage

2010-07-24 Thread Mark Smith
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk: pulldom has poor code coverage, so I am currently implementing thorough unit tests for it. -- components: XML messages: 111476 nosy: mark.smith priority: normal severity: normal status: open title: pulldom has low code

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2010-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You may want to keep existing functionality, this time in the proper method (__iter__). -- nosy: +merwok stage: - unit test needed type: - behavior ___ Python tracker rep...@bugs.python.org

[issue4199] add shorthand global and nonlocal statements

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4199 ___ ___

[issue4485] fast swap of default Windows python versions

2010-07-24 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: msg77014 could bring startup time down significantly so I'm -1 on that. Overall I've never found difficulty in running scripts with the right version so I don't have a strong enough opinion on any of it. I think it's probably something which

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2010-07-24 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: I should have mentioned: __iter__ is already implemented, and works as expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9372

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: - ronaldoussoren nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9367 ___

[issue9365] Installing a distro without sqlite3 will require a reinstall of python to function if installed at a later date

2010-07-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is not a bug in Python. Your link implies you are building things from scratch, so it is your responsibility to resolve the dependencies. sqlite3 support is implemented via an extension module (compiled C code). That extension

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Committed a fix in: 3.2: r83133 3.1: r83134 2.7: r83135 2.6: r83136 I ended up committing a slightly different patch than attached here, the test now calls sorted to sort both lists before comparing, which IMO makes it slightly

[issue9277] test_struct failure on ARM

2010-07-24 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Except for the 2.6 backport, you could also have used assertItemsEqual, which is a smart wrapper around the idiom you implemented. -- nosy: +r.david.murray status: pending - open ___ Python

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9367 ___

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I assume that this is on *nix boxes It's a bit of a stretch to call OSX unix, but yes: Laptop = a MacBook Air If you have not seen one of these, the control key is marked control on its keyboard. --

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Now, as I look at it, the windows message is probably even worse. What is plus? Is Ctrl-Z control *minus* z? For a novice, you really have to say: press Ctrl and Z keys together and then press Return or Enter key. Of

[issue9336] string.letters should display locale based equivalent of a-Z

2010-07-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, right. I was misled by examples from another ticket and did not verify. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9336

[issue9371] pulldom doesn't provide END_DOCUMENT or COMMENT nodes.

2010-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I tried looking at the doc to see if this was by design, and well, pulldom docs :) So I looked at the code, same thing, and finally read the commit history. It appears that pulldom is supposed to be DOM-compliant, so go ahead in adding unit

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Hm. This seems an old bug, probably introduced when closures where first introduced (2.1 ISTR, by Jeremy Hylton). Class scopes *do* behave differently from function scopes; outside a nested function, this should work: x = 1 class

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I meant, of course, assert C.x == 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9226 ___

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-07-24 Thread Bhargav
Bhargav bhar...@bluejeansnet.com added the comment: What I do is not a possible solution, because some other machine might add e:nil, what we need is XML namespace parsing. Also I can't really use my solution, as it makes my client non-portable, I cant move it from my dev machine to

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Art: @David: A lot of changes have been made to test_zipfile since the last patch was produced. I'm unsure as to whether the patch could be applied to 2.7 as is, or it would be simpler to rework the patch for 2.7 and the py3k

[issue7825] test_threadsignals leaks references

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The patch is small and easily applied, but no point me trying it as I've only a Windows box. Also note that my earlier comment was incorrect as I misread the original post. -- ___ Python

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: minidom.patch had the new file listed before the old, so I've uploaded minidom.diff. The patch is tiny and looks clean. Tests have been repeated on Windows against 2.7 and are fine, so I believe this can be committed. -- Added

[issue1672568] silent error in email.message.Message.get_payload

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I've double checked this and still all tests pass before patching message.py. Could somebody else please pick this one up, thanks. -- ___ Python tracker rep...@bugs.python.org

[issue7113] ConfigParser load speedup

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Łukasz: I patched the unit test file only and ran it and all tests passed, I assume that this behaviour is incorrect. -- nosy: +BreamoreBoy stage: - patch review ___ Python tracker

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Tests failed after patching test file, all passed after patching the code on Windows against 3.2. The patch looks simple and clean so I don't see why it can't be committed. As this is a behaviour issue the code should also be

[issue7113] ConfigParser load speedup

2010-07-24 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Thanks, Mark. The tests should pass for both the old version and the patched one. The change in the code involves performance, not functionality. I didn't want to set assertions that are time based so naturally the new test also runs on the

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-24 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Thanks, Mark. Should I do the backporting or do you have some technology/process for this? I can do the backport as well if it doesn't require SVN commit access. I would need some help because it would be my first backport :) --

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Łukasz, no problem. It would be my first backport too! :) I think that it's best left to the committers as they've well used to doing things like this. -- ___ Python tracker

[issue7113] ConfigParser load speedup

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Łukasz in that case I think we should get this committed as the patch is small and looks clean. I assume that this will be backported as 2.7 and 3.1 are likely to be around for some years yet. --

[issue1682942] ConfigParser support for alt delimiters

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Łukasz please attach your patch and I'll run with it, while you're at it could you also provide a unit test patch for #5412, thanks. -- ___ Python tracker rep...@bugs.python.org

[issue1706039] Added clearerr() to clear EOF state

2010-07-24 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could somebody with an OS X system please try out the py3k patch, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1706039

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-24 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: Unit tests were in the patch! However, none of the patches applied any more, so I've updated them and also improved the tests a bit. Again, I haven't tried them on Windows. Unsetting a nonexistent variable isn't supposed to be an

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-24 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18186/putenv-empty-2.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-24 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18187/putenv-equals-3.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-24 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18188/putenv-empty-3.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-24 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18189/visibility-2.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-24 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18190/visibility-3.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2010-07-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, you could try applying the patch and see if it applies cleanly and passes the tests. But it would be helpful to have it reworked for py3k, since we now commit first to py3k and then backport to 2.7. I have not reviewed the

[issue2001] Pydoc interactive browsing enhancement

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Hmm. Still no luck $ ./python.exe -m pydoc -g Server ready at: http://localhost:7464/ Segmentation fault The Segmentation fault happens after I enter pydoc in the search window and press the Search! button. BTW,

[issue2001] Pydoc interactive browsing enhancement

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: OK, the crash is due to issue9319, but as far as I understand, the faulty code is in the error handling branch, so there must be a bug in your code as well. -- ___ Python

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2010-07-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thank you for the patch. I can now imagine using the module. Comments: + :synopsis: Iterative XML parsing with DOM nodes. seem a bit too terse and confusing. Would + :synopsis: Iterative parsing of XML to event, DOM node pairs, with option

[issue7830] Flatten nested functools.partial

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: FWIW, I agree with Antoine. You cannot know in advance whether a partial-subclass has semantics that need to be preserved when flattening. Raymond, I have actually conceded this point to Antoine. See msg108980 above.

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Guido clarified: Class scopes *do* behave differently from function scopes; outside a nested function, this should work: x = 1 class C(object): x = x assert C.x == 1 And I think it should work that way inside a function too. I take

[issue2001] Pydoc interactive browsing enhancement

2010-07-24 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: Ok, on the ! marks. The Segmentation fault exits python and isn't catchable as far as I know. It's happens in the compiled tokenize.c file. The python side error detection doesn't get a chance to catch it. The problem is present

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2010-07-24 Thread Nick Welch
New submission from Nick Welch mackst...@gmail.com: While the netloc/path parts of URLs are scheme-specific, and urlparse can be forgiven for refusing to parse them for unknown schemes, the query and fragment parts are standardized, and should be parsed for unrecognized schemes. According to

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Sat, Jul 24, 2010 at 3:21 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy tjre...@udel.edu added the comment: Guido clarified: Class scopes *do* behave differently from function scopes; outside a nested function, this

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Adding it to 2.7 is really out of the question. Assuming somebody would implement (which might not happen in the next three years or so), it can only go into 3.x, so you'ld have to port your code to 3.x to use it. --

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I suggest to raise exception when target regular file exists: try: mkdir(name, mode) except OSError as e: if not (exist_ok and e.errno == errno.EEXIST and path.isdir(name)): raise --

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-07-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception. - os.makedirs(): Add a keyword argument to suppress File exists exception ___

[issue8340] bytearray undocumented on trunk

2010-07-24 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: Yeah, I'll say. I prefer bytearray to back-and-forth mapping with chr and ord. I use it particularly as a mid-step in working with binary representations of strings. Please backport these docs with changes reflecting 2.x's paradigms. --

  1   2   >