[issue7303] pkgutil lacks documentation for useful functions

2010-07-24 Thread Grant Limberg
Grant Limberg added the comment: I've taken the liberty of creating a patch for this issue. I've taken the docstrings fromt he pkgutil module and conveted them to reST. Please let me know if there are any changes necessary. -- keywords: +patch nosy: +Grant.Limberg Added file: http://

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-24 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20100725.zip is a new version of the regex module. More tweaks for speed. re regex bm_regex_compile.py 87.05secs 278.00secs bm_regex_effbot.py 14.00secs6.58secs bm_regex_v8.py 16.11secs

[issue9319] segfault when searching modules with help()

2010-07-24 Thread Ron Adam
Ron Adam added the comment: Trying to look at this a bit further... The PyErr_Format function then calls PyUnicode_FromFormatV in Objects/unicodeobject.c to do the actual formating. It looks like there have been a number of issues of this type. Search the tracker for unicodeobject.c and PyUn

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

2010-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ray, what does mkdir -p do if the last target name exists but is a regular file rather than a directory? A slightly separate question is 'What do we want mkdirs to do (in this case)?' -- stage: patch review -> commit review __

[issue1706039] Added clearerr() to clear EOF state

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch passes tests on OSX, but the old code passes the new tests as well, so I am not sure what this patch fixes anymore. Looking back through the messages I see that I had trouble reproducing the problem, then I succeeded, but I don't remember the

[issue8340] bytearray undocumented on trunk

2010-07-24 Thread ipatrol
ipatrol 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. -- nosy: +ipatrol type:

[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 : -- 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 ___ Python tracker

[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 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 -- ___

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

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis 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. --

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: On Sat, Jul 24, 2010 at 3:21 PM, Terry J. Reedy wrote: > > Terry J. Reedy 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): >>  

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

2010-07-24 Thread Nick Welch
New submission from Nick Welch : 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 Wikipedia: -

[issue2001] Pydoc interactive browsing enhancement

2010-07-24 Thread Ron Adam
Ron Adam 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 without the patch applied and whe

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Terry J. Reedy
Terry J. Reedy 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 that to mean

[issue7830] Flatten nested functools.partial

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky 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. Not only the latest patch p

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

2010-07-24 Thread Terry J. Reedy
Terry J. Reedy 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 subtree crea

[issue2001] Pydoc interactive browsing enhancement

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky 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 tracker

[issue2001] Pydoc interactive browsing enhancement

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky 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, please remove !'s from the labels.

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

2010-07-24 Thread R. David Murray
R. David Murray 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 updated patch. --

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

2010-07-24 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18190/visibility-3.x.diff ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-07-24 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18189/visibility-2.x.diff ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-07-24 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18188/putenv-empty-3.x.diff ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-07-24 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18187/putenv-equals-3.x.diff ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-07-24 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18186/putenv-empty-2.x.diff ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-07-24 Thread David Watson
David Watson 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 error (see POSIX), but I did fi

[issue1706039] Added clearerr() to clear EOF state

2010-07-24 Thread Mark Lawrence
Mark Lawrence added the comment: Could somebody with an OS X system please try out the py3k patch, thanks. -- ___ Python tracker ___ __

[issue1682942] ConfigParser support for alt delimiters

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 __

[issue7113] ConfigParser load speedup

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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. -- ___ Python tracker

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 _

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

2010-07-24 Thread Łukasz Langa
Łukasz Langa 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 :) -- __

[issue7113] ConfigParser load speedup

2010-07-24 Thread Łukasz Langa
Łukasz Langa 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 old implementation

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 backported. -- nosy: +B

[issue7113] ConfigParser load speedup

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 ___

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 file: http://bugs.pytho

[issue7825] test_threadsignals leaks references

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 tracker

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 branches. Could one of you take

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

2010-07-24 Thread Bhargav
Bhargav 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 production at all. This is just a

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: I meant, of course, assert C.x == 1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-24 Thread Guido van Rossum
Guido van Rossum 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 C(object): x = x assert

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > On another note: I've sometimes wanted quit() to exit from a running > script to the python console so I can do a little value checking. This is what -i command line switch or PYTHONINSPECT environment variable is for. See python -h output. -

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

2010-07-24 Thread Éric Araujo
Éric Araujo 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 tests for that and fi

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

2010-07-24 Thread R. David Murray
R. David Murray added the comment: Ah, right. I was misled by examples from another ticket and did not verify. -- ___ Python tracker ___

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky 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 course this longer phrase is

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Alexander Belopolsky
Alexander Belopolsky 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. --

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread R. David Murray
Changes by R. David Murray : -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread R. David Murray
R. David Murray 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 tracker

[issue9277] test_struct failure on ARM

2010-07-24 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 clearer. -- resoluti

[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 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 module must be built aga

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: -> ronaldoussoren nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2010-07-24 Thread Mark Smith
Mark Smith added the comment: I should have mentioned: __iter__ is already implemented, and works as expected. -- ___ Python tracker ___ _

[issue4485] fast swap of "default" Windows python versions

2010-07-24 Thread Brian Curtin
Brian Curtin 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 should be baked in

[issue4199] add shorthand global and nonlocal statements

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2010-07-24 Thread Éric Araujo
Éric Araujo 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 ___

[issue9373] pulldom has low code coverage

2010-07-24 Thread Mark Smith
New submission from Mark Smith : 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 coverage versions: Python 3.2

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2010-07-24 Thread Mark Smith
New submission from Mark Smith : 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 implemented in this class, and plan

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

2010-07-24 Thread Mark Smith
New submission from Mark Smith : 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 TestCase to demonstrate this. --

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

2010-07-24 Thread Éric Araujo
Éric Araujo 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 this. -- as

[issue6517] configparser: add possibility to escape formatstrings

2010-07-24 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. 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 tracker

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

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 ___

[issue9167] argv double encoding on OSX

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 system. I see two p

[issue9315] The trace module lacks unit tests

2010-07-24 Thread Eli Bendersky
Eli Bendersky 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, without capturin

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

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 either because neither t

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

2010-07-24 Thread Anthony Long
Anthony Long 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

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 new one to keep things c

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

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 environment. Line from the mak

[issue4485] fast swap of "default" Windows python versions

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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 ___ ___

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

2010-07-24 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have the patch committed to 2.7 and 3.1 please. -- ___ Python tracker ___ ___ Python-bugs-list

[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 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 installed. Without the

[issue2927] expose html.parser.unescape

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +ezio.melotti, haypo status: pending -> open versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ ___

[issue2927] expose html.parser.unescape

2010-07-24 Thread Mark Lawrence
Mark Lawrence added the comment: msg110657 recommends close -> wontfix. Does anybody want this kept open or can it be closed? -- status: open -> pending ___ Python tracker ___

[issue2454] sha and md5 fixer

2010-07-24 Thread Éric Araujo
Éric Araujo 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 as a standalone fi

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

2010-07-24 Thread Mark Smith
Mark Smith 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 these changes to Python 2.7. -

[issue2454] sha and md5 fixer

2010-07-24 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be committed please. In msg110796 I over-emphasised the technical aspects, the patch is actually against 2to3. -- ___ Python tracker _

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

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis 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 "valid". The do

[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 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 __

[issue9362] Make exit/quit hint more novice friendly

2010-07-24 Thread Mark Lawrence
Mark Lawrence 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

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +aronacher stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9368] Const-Correctness for Method Calls

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

[issue7041] test_macostools fails on os x 10.6

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 ___ Python trac

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

2010-07-24 Thread Ralph Corderoy
Ralph Corderoy 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 the file is read. $ printf 'a

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

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 ___ Python tracker

[issue1560032] confusing error msg from random.randint

2010-07-24 Thread Petras Zdanavičius
Petras Zdanavičius 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 think it is

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

2010-07-24 Thread Nick Coghlan
New submission from Nick Coghlan : 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 readers that hav

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

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 by using regular expres

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

2010-07-24 Thread Anthony Long
Anthony Long 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 ___

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

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis 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 _

[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 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 search logic is not sharab

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Darren Worrall
Darren Worrall 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 _

[issue8798] tkinter build variants on OSX

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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 because it needs to run on OS

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

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis 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. Attila, Bhargav: is eithe

[issue7041] test_macostools fails on os x 10.6

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: -> ronaldoussoren components: +Macintosh ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis 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 a work-around, add

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

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren 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

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Jörg Müller
Jörg Müller 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 ___

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
Changes by Jörg Müller : Removed file: http://bugs.python.org/file18175/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
Jörg Müller 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 ___

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

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis 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 _

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
New submission from Jörg Müller : 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: feature request versi

[issue4184] Remove use of private attributes in smtpd

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

  1   2   >