[issue12006] strptime should implement %V or %u directive from libc

2011-05-24 Thread R. David Murray
R. David Murray added the comment: Thanks for wanting to work on this. It is a little hard to parse from the OP's initial post, but he is asking that %V and %u be supported by datetime.strptime, which they currently are not. strptime is the generalized constructor for turning a string

[issue11272] input() has trailing carriage return on windows

2011-05-25 Thread R. David Murray
R. David Murray added the comment: You are using the only version that has the bug (3.2.0, also called 3.2). The fixed version will be released shortly (3.2.1). -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread R. David Murray
R. David Murray added the comment: And it goes on to say: "[...] but a syslog application MAY modify these characters upon reception. For example, it might change them into an escape sequence (e.g., value 0 may be changed to "\0")" Flume should not break if it recei

[issue12006] strptime should implement %V or %u directive from libc

2011-05-25 Thread R. David Murray
R. David Murray added the comment: I'm not familiar with this module, so at the moment I just gave the patch a quick scan. The approach looks OK to me. Hopefully Alexander can review it. In the meantime I think you should go ahead and work on tests and doc. It is easier to do a det

[issue12006] strptime should implement %V or %u directive from libc

2011-05-25 Thread R. David Murray
R. David Murray added the comment: It looks like strftime already support %V and %u (presumably if and only if the platform strftime does). -- ___ Python tracker <http://bugs.python.org/issue12

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread R. David Murray
R. David Murray added the comment: Since this is a new feature it can only go into 3.3. Documentation is in the Doc subdirectory of a checkout, and is in the form of *.rst files. Modify the appropriate .rst file, and the doc update will be included in the patch you generate. If you wish to

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread R. David Murray
R. David Murray added the comment: I would remove the docstring from the new test class...if more tests of message content are added that docstring won't be accurate. It really isn't needed. (Also, shouldn't the test method be named test_missingarguments?) I would also lik

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread R. David Murray
R. David Murray added the comment: What is not-a-charset? I apparently misunderstood what normalize_encodings does. It isn't doing a lookup in the codecs registry and returning the canonical name for the codec. Does that mean we actually have to fetch the codec in order to ge

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread R. David Murray
R. David Murray added the comment: Well, my thought was to avoid having multiple charset alias lists in the stdlib, and reusing the one in codecs, which is larger than the one in email, seemed to make sense. This came up because a bug was reported where email (silently) failed to encode a

[issue12189] Python 2.6.6 fails to compile a source whereas pycompile 1.0 and Python 2.7 succeed

2011-05-26 Thread R. David Murray
R. David Murray added the comment: There are a number of issues with compile that have been fixed. See #4628 and #1479099 for example. Since you say it works with 2.7, and Python3 compile handles \r\n, and 2.6 is in security fix only mode, I'm closing this as out of date. If you

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread R. David Murray
R. David Murray added the comment: I agree that since we get very few requests to add aliases our current tables are probably what we want. So adding the MIME_preferred_name mapping *somewhere* is indeed what I would like to see happen. It doesn't matter to me whether it is in the c

[issue12042] What's New multiprocessing example error

2011-05-26 Thread R. David Murray
R. David Murray added the comment: Sometimes only one patch is needed, if it applies cleanly to both python2 and python3. If it doesn't, then two patches are useful, one for python2.7 and one for python3.2. (The last version of 3.1 is about to be released, so I don't think it l

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-27 Thread R. David Murray
R. David Murray added the comment: Your new file isn't in the patch. I'm imagining it is a table and a couple methods, so I think perhaps putting it either in charset or in utils would be better than creating a new file. As for testing it, what I'd love to see is a test tha

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-27 Thread R. David Murray
R. David Murray added the comment: Prompted on IRC, I see I missed the file because it was so short. This still isn't what I'm looking for. We are assuming that email is going to use the codec eventually so that it is not a bad thing to have charset pre-populate the codec cache

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-27 Thread R. David Murray
R. David Murray added the comment: The second line in that try: block should have been: mime_name = ALIASES.get(python_name, python_name) -- ___ Python tracker <http://bugs.python.org/issue8

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread R. David Murray
R. David Murray added the comment: REPL is the Python interactive prompt in this case (REPL is Read Eval Print Loop). So Jesse is saying that using multiprocessing from the REPL (at least on Windows) isn't supported. This is because on Windows multiprocessing needs to re-import the

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-27 Thread R. David Murray
R. David Murray added the comment: Not in email5. The RFC says that if the charset parameter isn't known you just pass it through. In email6 we will be making a more careful distinction between errors that should be passed silently per the RFC, and ones that should be noisy because th

[issue10424] better error message from argparse when positionals missing

2011-05-27 Thread R. David Murray
R. David Murray added the comment: What I had in mind for the second test was something that did this (which I think is legal from reading the docs): parser.add_argument('foo') parser.add_argument('bar', nargs='?', default='eggs') with ass

[issue12196] add pipe2() to the os module

2011-05-28 Thread R. David Murray
R. David Murray added the comment: For the record (for people reading this ticket later), the removal of the python version of the unix subprocess code was discussed on IRC, and it was clarified there that the reason for removing it is not that it duplicates the C code. We like having

[issue12162] Documentation about re \number

2011-05-28 Thread R. David Murray
R. David Murray added the comment: Why it works is due to a quirk in the handling of python strings: if an apparent escape sequence doesn't "mean anything", it is retained verbatim, including the '\' character. This is documented in http://docs.python.org/refere

[issue12162] Documentation about re \number

2011-05-29 Thread R. David Murray
R. David Murray added the comment: The fact that you have carefully think about which are escapes and which aren't tells you that you should not be depending on the non-escapes not being escapes. What if we added one? The doc says preserving the \s is a debugging aid, and that is a

[issue12206] Documentation Std. Library 15.7.5 "LogRecord objects": Parameters: level(currently wrong) -> levelno (correct)

2011-05-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker <http://bugs.python.org/issue12206> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12148] Clarify "or-ing together" doctest option flags

2011-05-29 Thread R. David Murray
R. David Murray added the comment: I like bitwise-or better than bitwise OR because 'bitwise-or' is a distinct operation from 'or', and making it hyphenated emphasizes that. -- ___ Python tracker <http://bug

[issue12211] math.copysign must keep object type.

2011-05-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue12211> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12211] math.copysign must keep object type.

2011-05-29 Thread R. David Murray
R. David Murray added the comment: "Except when explicitly noted otherwise, all return values are floats." On the other hand, copysign says "return x with the sign of y", which certainly sounds like it is preserving x, not creating a new float. So at the least there is

[issue12203] isinstance not functioning as documented

2011-05-29 Thread R. David Murray
R. David Murray added the comment: Everything in python is an instance of something. Objects all the way down... >>> isinstance(object, object) True So, there is no function you are overlooking because there is nothing that is not an instance. -- nosy: +r.dav

[issue12203] isinstance not functioning as documented

2011-05-29 Thread R. David Murray
R. David Murray added the comment: You are correct, B is not an instance of A. But both B and A are instances of 'type': >>> class A: ... pass ... >>> class B(A): ...pass ... >>> isinstance(A, type) True >>> isinstance(B, type) True >&

[issue12196] add pipe2() to the os module

2011-05-29 Thread R. David Murray
R. David Murray added the comment: FYI that buildbot is likely to get a kernel upgrade in the not too distant future. -- ___ Python tracker <http://bugs.python.org/issue12

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-29 Thread R. David Murray
R. David Murray added the comment: You are confusing directives and roles. As was already pointed out, there is currently no target for list.append to point to. That's what needs to be added. -- nosy: +r.david.murray ___ Python tracker

[issue11946] 2.7.1 'test_commands' build test fails

2011-05-30 Thread R. David Murray
R. David Murray added the comment: The test_commands fix will be in 2.7.2. 2.7.1 was released well before the fix was made. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-30 Thread R. David Murray
R. David Murray added the comment: It should certainly be reported to the sphinx tracker where the right people to make the decision for sphinx itself will see it. Then if the decision is that type matters, python can decide how we want to handle that fact. Since the core of sphinx does

[issue6490] os.popen documentation in 2.6 is probably wrong

2011-05-30 Thread R. David Murray
R. David Murray added the comment: > The deprecations for os.popenN() are still fine, since those > APIs are not used all that much, and I'm sure that no one can > really remember what all the different versions do anyway :-) That's good, because those functions are alre

[issue6490] os.popen documentation in 2.6 is probably wrong

2011-05-30 Thread R. David Murray
R. David Murray added the comment: There were an awfully large number of pages of code for a thin wrapper. Granted, half of that was probably os/2 support... -- ___ Python tracker <http://bugs.python.org/issue6

[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread R. David Murray
R. David Murray added the comment: I'm closing this as invalid/duplicate, but I'm sure this isn't the last time we'll get this report. It would be nice if we could think of a way to improve the situation. -- nosy: +benjamin.peterson, r.david.murray resolution:

[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread R. David Murray
R. David Murray added the comment: I should have mentioned the bug number in the body, thanks for adding that. FYI, the bug number also appears in the 'superseder' field, and (more interesting to you in this context) if you just say, for example, issue 12152 or #12152 ro

[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-06-01 Thread R. David Murray
R. David Murray added the comment: +1 to what Ezio said, though I'd rather have this than not have the functionality at all :) -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue12235] subprocess loses stderr information when _execute_child fails

2011-06-01 Thread R. David Murray
R. David Murray added the comment: Subprocess is throwing the correct exception, what it isn't doing is preserving stderr. The stderr output in question is not coming from the *subprocess* (the process hasn't been created yet). It would be nice if that stderr output could be ad

[issue12235] subprocess throws wrong exception if script can't be executed

2011-06-01 Thread R. David Murray
R. David Murray added the comment: Ah, I see. Agreed with the closing, then. Cal: one way to debug this kind of thing is to try the same command with shell=True. Then the shell will generate its special error message. Changing the title back to something that might be recognizable to

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-01 Thread R. David Murray
R. David Murray added the comment: Well, IIUC the Setup lines indicate where to find the system version of the libraries (otherwise the included zlib is used). So I'm not at all sure that there is a bug here. If you change Setup, you need to change it correctly for your int

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread R. David Murray
R. David Murray added the comment: This is a general principle of how Python runs in interactive mode and is not confined to loading readline. The same would be true for any module loaded during startup, and there are quite a few that are so loaded. Since loading modules from the current

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread R. David Murray
R. David Murray added the comment: I can't reproduce this. What exact version of Python are you using? -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker <http://bugs.python.org

[issue12243] getpass.getuser works on OSX

2011-06-02 Thread R. David Murray
R. David Murray added the comment: I think you are correct that the Availability can be removed, since the actual limits of the support are exactly as complicated as the code that supports them, and should give *some* result on most (all?) platforms. However, OS/X is certainly covered by

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread R. David Murray
R. David Murray added the comment: No problem. It's too bad that regression slipped in to 3.2.0. I probably fixed it by accident, since I rewrote a bunch of that code in 3.2.1 while fixing a different bug. -- resolution: -> out of date stage: -> committed/rejected s

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread R. David Murray
R. David Murray added the comment: As I recall the issue that triggered the change was reported by Michael Foord, so I'm adding him as nosy too. -- nosy: +michael.foord, r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread R. David Murray
R. David Murray added the comment: Because 2.6 is in security-fix-only mode. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray added the comment: The documentation is, in principle, wrong. The actual authority for the "correct" implementation is PEP3101, which says the following: The str.format() function will have a minimalist parser which only attempts to figure out when it is

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray added the comment: Note that the PEP also explicitly addresses your concern about getattr, as well (validation of the name is delegated to the object's __getattr__). -- ___ Python tracker <http://bugs.python.org/is

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread R. David Murray
R. David Murray added the comment: Only because we had Macintosh in there. We don't mention OS/X explicitly anywhere else in the docs that I could find (except one prose mention in the logging docs). -- ___ Python tracker <http://bugs.py

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread R. David Murray
R. David Murray added the comment: Georg: our post seem to have crossed despite Roundup's attempts at locking. +1 to your idea about the directive. -- ___ Python tracker <http://bugs.python.org/is

[issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

2011-06-03 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11941> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread R. David Murray
R. David Murray added the comment: The mailbox module would benefit from having this precision available. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray added the comment: I agree that the current situation is a bit murky and ought to be clarified, but I'm going to leave it to Eric to point they way forward, as he is far more knowledgeable about this area than I. -- ___ P

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread R. David Murray
R. David Murray added the comment: I would guess that if you instead skipped __dir__ completely for old style classes it would expose a different bug in this or some other package. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12263] punycode codec ignores the error handler argument

2011-06-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12263> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12266] str.capitalize contradicts

2011-06-05 Thread R. David Murray
R. David Murray added the comment: This looks like a duplicate of #12204. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> str.upper converts to title ___ Python tr

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread R. David Murray
R. David Murray added the comment: We don't currently support any flavor of VS2010. Since 2.7 is in bug fix mode only, it is not clear that we will add such support. But since it is a long term maintenance release the rules may be different. -- nosy: +brian.curtin, l

[issue12246] create installation path if it's non-existent

2011-06-05 Thread R. David Murray
R. David Murray added the comment: I'm not sure I understand your confusion, but perhaps what you are missing is that we don't support installing 3rd party packages inside a source tree, only into an installed Python, and installing Python creates the site-packages directory

[issue12246] create installation path if it's non-existent

2011-06-05 Thread R. David Murray
R. David Murray added the comment: Yes. If the directory gets created without Python being installed, then you don't have a working python installation. Assuming we are talking about site-packages. I have no idea what purelib is or anything about the packaging inte

[issue12265] revamp argument errors

2011-06-05 Thread R. David Murray
R. David Murray added the comment: Your parenthetical reads sensibly to me, I can't think of a clearer alternative. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue12265] revamp argument errors

2011-06-05 Thread R. David Murray
R. David Murray added the comment: -1 on adding the prototype (especially since I think it isn't always possible to do so). In many cases it would make the message overlong, and the user can look up the prototype by looking at their source code or using pydoc or their IDE. The

[issue12265] revamp argument errors

2011-06-05 Thread R. David Murray
R. David Murray added the comment: That's why I said "their own source or pydoc...". The language of the error message is trying to describe the error as the interpreter knows about it at the time the error is generated. That has a strong relationship to the prototype, but

[issue12234] unittest2 could enable regex debugging for more information

2011-06-05 Thread R. David Murray
R. David Murray added the comment: I'm closing this as invalid. If someone wants to work on this feature, they'll first have to add debugging to re -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status

[issue12238] Readline module loading in interactive mode

2011-06-06 Thread R. David Murray
R. David Murray added the comment: I've done a little poking around, and it looks like you are correct and I'm wrong. It appears that readline.so is or should be a special case. I've added some people to nosy to see what they think. Specifically, it appears that if I put a f

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-06 Thread R. David Murray
R. David Murray added the comment: Why was this issue set to pending? No motivating comment was added. -- nosy: +r.david.murray status: pending -> open ___ Python tracker <http://bugs.python.org/iss

[issue12274] "Print window" menu on IDLE aborts whole application

2011-06-07 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue12274> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12238] Readline module loading in interactive mode

2011-06-07 Thread R. David Murray
R. David Murray added the comment: Python 3.3a0 (default:7323a865457a+, Jun 5 2011, 19:22:38) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.modules['log

[issue12238] Readline module loading in interactive mode

2011-06-07 Thread R. David Murray
R. David Murray added the comment: Yeah, that would be my guess. And readline.so is imported in main at a point where it has decided we are going into interactive mode, which is presumably after all other initialization has taken place, including the path munging. Thus my suggestion that

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-07 Thread R. David Murray
R. David Murray added the comment: Um, no. 'pending' is 'pending close', specifically meaning, 'this issue is going to be closed (with a rejected status of some sort) unless someone objects or provides more information.' Someday, pending issues will be a

[issue12273] Change ast.__version__ calculation to provide consistent ordering

2011-06-07 Thread R. David Murray
R. David Murray added the comment: I think you should just kill ast.__version__ in that case. There was a discussion on python-dev and packaging about __version__ and PEP 396 was the result. If you want the VCS info put it somewhere else (like __vcs_version__?). -- nosy

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2011-06-07 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker <http://bugs.python.org/issue7511> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12282] ABCMeta import error during build

2011-06-07 Thread R. David Murray
New submission from R. David Murray : After a make distclean I'm seeing the following output during a build of default. It is possible my 2.7 install is borked, but I don't understand why python is apparently being called during a gcc step. The build seems to succeed. gcc -pthr

[issue12284] argparse.ArgumentParser: usage example option

2011-06-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue12284> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12282] ABCMeta import error during build

2011-06-08 Thread R. David Murray
R. David Murray added the comment: As far as I can tell my python2.7 installation is fine and bug free. hg is working fine when called from the command line. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12282] build process adds CWD (null entry) to PYTHONPATH if PYTHONPATH is set in the build environment

2011-06-08 Thread R. David Murray
R. David Murray added the comment: It turns out that I had a stray abc.py file in my current working directory as the result of some previous tests of module-load-order rules. That by itself wouldn't have triggered the problem, but in addition, I have PYTHONPATH set in my enviro

[issue12290] __setstate__ is called for false values

2011-06-08 Thread R. David Murray
R. David Murray added the comment: See also #6827, just for some background on the current docs. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12

[issue12243] getpass.getuser works on OSX

2011-06-08 Thread R. David Murray
R. David Murray added the comment: It requires adding code to support a new Sphinx directive. I'm not sure if it should be a generic Sphinx directive (in which case we should open an issue on the Sphinx bug tracker) or Python specific. If the latter, I can't at the moment tell

[issue12293] wrong arguments passed to SMTP.sendmail in example

2011-06-09 Thread R. David Murray
R. David Murray added the comment: "The required arguments are an RFC 822 from-address string, a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address)..." -- resolution: -> invalid stage: -> committed/rejected status

[issue10424] better error message from argparse when positionals missing

2011-06-09 Thread R. David Murray
R. David Murray added the comment: With input from Michele on IRC I updated the tests to be more generic (not depend on the order of the reported argument names) and moved the test I talked about in my last message into a third unit test. -- resolution: -> accepted stage: ne

[issue12283] python3.2 smtplib _quote_periods

2011-06-09 Thread R. David Murray
R. David Murray added the comment: Thanks for the report. I broke that when I refactored the code, and unfortunately there was no existing test that tested dot quoting. There is now. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -&g

[issue10694] zipfile.py end of central directory detection not robust

2011-06-09 Thread R. David Murray
R. David Murray added the comment: While I don't understand the zip file structure enough to do a definitive review of the patch, I'm willing to take processing 50K zip files successfully as a definitive test :) -- resolution: -> fixed stage: patch review -> co

[issue1757072] Zipfile robustness

2011-06-09 Thread R. David Murray
R. David Murray added the comment: Note that based on the fact that most zipfile tools handle garbage after the indicated end of the comment by ignoring it, #10694 fixed zipfile to also ignore such trailing data. It sounds like there may be more out-of-spec errors that could be ignored

[issue12009] netrc module crashes if netrc file has comment lines

2011-06-09 Thread R. David Murray
R. David Murray added the comment: Here is an updated patch with the tests refactored even further. The patch seems correct to me, and almost all the comment tests fail before the patch and pass after. Benjamin, this patch fixes a regression relative to 2.7.1 and 3.1.3, so I'm setti

[issue12009] netrc module crashes if netrc file has comment lines

2011-06-10 Thread R. David Murray
R. David Murray added the comment: lexer.instream.readline(): no, we can't just call that without the seek, because reading the token that started with # may have caused the line to be consumed already. I've expanded the comment to explain this. cygwin: I'd add a comment if I

[issue11416] netrc module does not handle multiple entries for a single host

2011-06-10 Thread R. David Murray
R. David Murray added the comment: This should not be applied until after the patch for #12009 is applied, at which point the test will need to be adjusted. #12009 completely refactors the netrc test suite. I wonder if the 'hosts' attribute should be deprecated, but let&#x

[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

2011-06-10 Thread R. David Murray
R. David Murray added the comment: Improvements are welcome, the whole thing was a QnD hack that has been evolving over time...maybe there's some way to reuse unittest's assertEqual machinery? I also wonder if the whole environment-changed thing should be moved into unittest so it

[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

2011-06-10 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch type: -> feature request ___ Python tracker <http://bugs.python.org/issue12314> ___ ___ Python-bugs-

[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

2011-06-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2011-06-13 Thread R. David Murray
R. David Murray added the comment: I agree with Petri, so I'm setting this to a doc issue. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, r.david.murray stage: -> needs patch type: -> behavior ___ Python

[issue12174] Multiprocessing logging levels unclear

2011-06-13 Thread R. David Murray
R. David Murray added the comment: I think it would be good to mention the numeric levels in the text as well (in parenthesis, perhaps), unless the rest of the logging docs no longer refer to the numeric levels. -- nosy: +r.david.murray ___ Python

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-06-13 Thread R. David Murray
R. David Murray added the comment: Sometimes we use the patch keyword for doc issues where someone has suggested a specific new wording but not generated an actual patch. That seems to be the case here. -- nosy: +r.david.murray ___ Python tracker

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-06-13 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue11669> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-13 Thread R. David Murray
R. David Murray added the comment: fileno and stat won't work on a StringIO object. So StringIO would need to be special cased to call getvalue. -- nosy: +orsenthil, r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2011-06-13 Thread R. David Murray
R. David Murray added the comment: According to this ticket it hasn't been applied anywhere yet (a message will be posted here when it is). -- nosy: +r.david.murray versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.py

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-13 Thread R. David Murray
R. David Murray added the comment: But if the len information is available, why not return it? -- ___ Python tracker <http://bugs.python.org/issue12327> ___ ___

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue12327> ___ ___ Python-bugs-list mailin

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-13 Thread R. David Murray
R. David Murray added the comment: Is it really necessary to copy this file? I haven't looked at the tests, but I'm wondering if they are using xxmodule.c only because it already existed. Could the test instead use a much simpler .c file that it creates on the fly? -

[issue12330] Named set methods on collections.Set and dict view objects

2011-06-13 Thread R. David Murray
R. David Murray added the comment: IIUC, collections.Set is, by definition, the full 'set' API. The fact that the set builtin implements some additional methods is a convenience. -- nosy: +r.david.murray, rhettinger ___ Python trac

[issue12330] Named set methods on collections.Set and dict view objects

2011-06-13 Thread R. David Murray
R. David Murray added the comment: collections.Set (in python 3.3, collections.abc.Set) is the *definition* of the minimal API. To construct a class that conforms to the minimal definition is certainly easier than constructing one that supports all of the methods that the set builtin does

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-15 Thread R. David Murray
R. David Murray added the comment: The code you are suggesting patching is trying its best to return a length. If that code needs to be fixed to not throw an error when confronted with a StringIO, then it should do its best to return a length. Your original message on the ticket did not

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-15 Thread R. David Murray
R. David Murray added the comment: I normally build using --prefix, often with --prefix=/dev/null, and I can't recall any version not building zlib. Of course, I don't uncomment the zlib entry in Modules/Setup. As far as I can see the zlib entry is unique in Setup in using pre

<    1   2   3   4   5   6   7   8   9   10   >