[issue12982] Document that importing .pyo files needs python -O

2012-06-14 Thread R. David Murray
R. David Murray added the comment: Because: 1) The __debug__ flag is defined to be process-global. If you test it in one module, your code should be able to assume that it has the same value in all other modules 2) python-dev does not support running .pyo code without -O turned on. In

[issue15065] strftime format string %F %T consistency problem

2012-06-14 Thread R. David Murray
R. David Murray added the comment: The reason the codes are not documented is that they are not supported. Because we delegate to the system strftime, they happen to work. To change that the most sensible thing would be to have our own strftime implementation, which makes this essentially a

[issue15068] fileinput requires two EOF when reading stdin

2012-06-14 Thread R. David Murray
R. David Murray added the comment: Frankly I'm surprised it works at all, since fileinput.input() will by default read from stdin, and stdin is in turn being read by the python prompt. I just checked 2.5 on linux, and the same situation exists there (two ^Ds are required to end the

[issue15068] fileinput requires two EOF when reading stdin

2012-06-14 Thread R. David Murray
R. David Murray added the comment: I don't know how the EOF character works, but I wouldn't be surprised if it had to be on a line by itself to mean EOF. If the double EOF is required when not at the interactive prompt, then there could be a long standing bug in fileinput's lo

[issue15069] Dictionary Creation Fails with integer key

2012-06-14 Thread R. David Murray
R. David Murray added the comment: And yes, a number with leading zeros is an invalid token in Python3, because in Python2 it was an octal number, and now we spell octal as, eg, 0o0001. -- nosy: +r.david.murray ___ Python tracker <h

[issue15068] fileinput requires two EOF when reading stdin

2012-06-14 Thread R. David Murray
R. David Murray added the comment: That makes sense. It is a consequence of (a) buffered input and (b) the fact that EOF on stdin doesn't really close it. (And by interactive here I don't just mean Python's interactive prompt, but also the shell). By default fileinput uses r

[issue15073] commands.getoutput() does not work on windows

2012-06-15 Thread R. David Murray
R. David Murray added the comment: Hmm. Maybe issue 10197 should be reclassified as an enhancement... -- nosy: +r.david.murray resolution: wont fix -> duplicate superseder: -> subprocess.getoutput fails on win32 title: commands.getoutput() is broken -> commands.getoutput()

[issue15068] fileinput requires two EOF when reading stdin

2012-06-15 Thread R. David Murray
R. David Murray added the comment: fileinput should work (for some definition of work) for anything that can be opened by name using the open syscall on unix. That includes many more things than files. Named pipes are a particularly interesting example in this context

[issue15068] fileinput requires two EOF when reading stdin

2012-06-15 Thread R. David Murray
R. David Murray added the comment: So the real question is: does readlines block until the byte count is satisified? It might, but the docs for io.IOBase.readlines leave open the possibility that fewer lines will be read, and do not limit that to the EOF case. It's not clear, howeve

[issue15068] fileinput requires two EOF when reading stdin

2012-06-15 Thread R. David Murray
R. David Murray added the comment: The _pyio.py version of readlines does read until the count is equaled or exceeded. This could, however, be an implementation detail and not part of the spec. -- ___ Python tracker <http://bugs.python.

[issue15079] pickle: Possibly misplaced test

2012-06-15 Thread R. David Murray
R. David Murray added the comment: It would be best to have the pickle tests always run against both the C and python code. We do this for other modules that have C versions of some or all of the Python code. And yes, making the two consistent is also good. Since pickle is generally not

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-15 Thread R. David Murray
R. David Murray added the comment: The news item isn't completely clear. It sounds like the mailbox is now automatically being flushed between pops, but what you really fixed is popping if the *application* does a flush between them,

[issue14992] os.makedirs expect_ok=True test_os failure when directory has S_ISGID bit set

2012-06-16 Thread R. David Murray
R. David Murray added the comment: See also issue 13498. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue14992> ___ ___ Python-bug

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread R. David Murray
R. David Murray added the comment: Note that the implementation of makedirs exist_ok has a significant bug (issue 13498) which renders it mostly useless in practice. Parties interested in this issue might be interested in figuring out how to fix that bug :) -- nosy: +r.david.murray

[issue15085] set.union accepts not set iterables for all but the first argument.

2012-06-16 Thread R. David Murray
R. David Murray added the comment: By calling 'set.union' you are calling the method on the class. When you call a method directly on a class object, you have to explicitly pass in 'self'. Thus the first argument when you call it like that must be a set obje

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-16 Thread R. David Murray
R. David Murray added the comment: "Mailbox no longer throws an error if a flush is done between operations when removing or changing multiple items in mbox, MMDF, or Babyl mailboxes." -- ___ Python tracker <http://bugs.python.o

[issue15095] test_imaplib problem - intermittent skips and LOGINDISABLED not reported

2012-06-17 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker <http://bugs.python.org/issue15095> ___ ___ Python-bugs-list m

[issue15098] "TypeError" can give a misleading message

2012-06-17 Thread R. David Murray
R. David Murray added the comment: This is fixed in Python3: >>> def foo(a, b=None): ... pass ... >>> foo(b=1) Traceback (most recent call last): File "", line 1, in TypeError: foo() missing 1 required positional argument: 'a' -- nosy: +r.da

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2012-06-18 Thread R. David Murray
R. David Murray added the comment: Probably. Unless I'm mistaken, the issue with concurrent rewrite (as opposed to append) exists for single-file-mailboxes in the general case, not just in Python. And as far as I know failure is never noisy, the last writer wins. --

[issue15104] Unclear language in __main__ description

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Hmm. I think that chapter could use a more extensive rewrite with some additional information provided. For example, you actually can have a __main__ module in a package, and anything inside it will execute when the package is run via -m. The "othe

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: It's not clear to me why the behavior differs. Hopefully Eric will explain. For 2.7 we should probably just revert the change to the yield statement to restore the previous behavior, unless format can be fixed. -- nosy: +eric.smith, r.david.m

[issue15110] strange Tracebacks with importlib

2012-06-19 Thread R. David Murray
R. David Murray added the comment: importlib is written in python. So you get a python traceback of its execution stack. Yes it is noisy, but I'm not sure that this should be changed, or we'd lose some of the benefit of having importlib written in python. (It also might

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread R. David Murray
R. David Murray added the comment: To clarify Amaury's example: rdmurray@hey:~/python/p33>./python -c "import distutils.msvc9compiler" Traceback (most recent call last): File "", line 1, in File "", line 1288, in _find_and_load File "&quo

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg163238 ___ Python tracker <http://bugs.python.org/issue15111> ___ ___ Python-bugs-list m

[issue15111] Wrong ImportError message with importlib

2012-06-19 Thread R. David Murray
R. David Murray added the comment: To clarify Amaury's example: rdmurray@hey:~/python/p32>./python -c "from distutils import msvc9compiler" Traceback (most recent call last): File "", line 1, in File "/home/rdmurray/python/p32/Lib/distutils/msvc9compi

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-19 Thread R. David Murray
R. David Murray added the comment: I'm not sure why there isn't a review link for your patch. "which(file..." I don't think file is a good name. 'fn' or 'filename' or 'string' would all be better choices, I think. 'file' imp

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: >>> print('{}'.format(u'\u2107')) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2107' in position 0: ordinal not in

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Or use 'from __future__ import unicode_literals'. -- ___ Python tracker <http://bugs.python.org/issue15109> ___ ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Note that the use of 'format' in the 2.7 patch caused a regression (% causes an implicit promotion to unicode, .format does not). See issue 15109. -- nosy: +r.david.murray ___ Python trac

[issue15109] sqlite3.Connection.iterdump() dies with encoding exception

2012-06-19 Thread R. David Murray
R. David Murray added the comment: Note that this is a regression in 2.7.3 relative to 2.7.2, which is why I'm marking it as high priority. -- nosy: +petri.lehtinen priority: normal -> high stage: -> needs patch ___ Python tra

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

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

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-20 Thread R. David Murray
R. David Murray added the comment: Well, I don't think that imitating the command line needs to extend to supporting doing unusual things to builtins, so unless someone like Terry disagrees I think we should close this as won't fix. -- nosy: +r.david.murray, terry.reedy

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread R. David Murray
R. David Murray added the comment: Your plan sounds fine to me. -- ___ Python tracker <http://bugs.python.org/issue15114> ___ ___ Python-bugs-list mailin

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray added the comment: First of all, I presume you are running this in python2.7, since it doesn't work in python3. In Python3 MIMEText takes a string as input, not a bytes object, unless you pass it a _charset parameter. If you do that, the encoding is done when the obje

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray added the comment: Barry: I think we should documentationally deprecate the encoders module. I can't see any utility in a new program calling those functions explicitly, especially if the program ever wants to port to Python3. Or maybe the Python2 docs would say depre

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-20 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue15113> ___ ___ Python-bugs-list mailing list Unsubscri

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray added the comment: I think so, yes. When we have the mimeregistry equivalent of the headerregistry, the new mime Message classes can have a set_charset with a different implementation. I'll want to talk about the API details on email-sig before I do anything, t

[issue15120] Different behavior of html.parser.HTMLParser

2012-06-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue15120> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15122] Add an option to always rewrite single-file mailboxes in-place.

2012-06-21 Thread R. David Murray
R. David Murray added the comment: It would be nice to do some research on what MUAs that support mbox format do here. (eg: mutt, pine if it still exists, etc). -- ___ Python tracker <http://bugs.python.org/issue15

[issue15122] Add an option to always rewrite single-file mailboxes in-place.

2012-06-21 Thread R. David Murray
R. David Murray added the comment: Any chance you'd be willing to look in the source code and see if they do any locking mailbox doesn't? The evidence you've already gathered is probably enough to justify adding the option, though. -- ___

[issue15125] argparse: positional arguments containing - in name not handled well

2012-06-21 Thread R. David Murray
R. David Murray added the comment: It does. -- keywords: +easy nosy: +bethard, r.david.murray stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.python.org/issu

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread R. David Murray
R. David Murray added the comment: I appreciate the work and thought that went into this, but this is not normally the kind of change that we apply. Any change has a chance of introducing bugs (see, for example, issue 15109, where a seemingly innocuous change from % formatting to .format

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread R. David Murray
R. David Murray added the comment: Also as an FYI, triple double quote marks are our standard for docstrings. I don't believe we normally align assignments, but I don't know if that is specifically called out in PEP8. I haven't looked at the patch in detail, but in scan

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-22 Thread R. David Murray
R. David Murray added the comment: Added some review comments on latest patch. -- ___ Python tracker <http://bugs.python.org/issue444582> ___ ___ Python-bug

[issue15125] argparse: positional arguments containing - in name not handled well

2012-06-22 Thread R. David Murray
R. David Murray added the comment: Nope, it was intentionally unselected. We use versions for the versions in which we will fix the bug, and 2.6 gets only security patches at this point. In any case, argparse isn't part of the stdlib in 2.6. -- versions: -Pytho

[issue1644987] ./configure --prefix=/ breaks, won't build C modules

2012-06-22 Thread R. David Murray
R. David Murray added the comment: I took the five minutes to test this. It does not fail in 2.7. I remember we fixed some other issues with '-prefix=/', so I presume this got fixed at that time as a byproduct. Either that, or it was a Fedora bug of some sort. -- assig

[issue15125] argparse: positional arguments containing - in name not handled well

2012-06-22 Thread R. David Murray
R. David Murray added the comment: Oh, and to make sure your second report doesn't get lost, could you open another issue for the other bug, and give a complete example? -- ___ Python tracker <http://bugs.python.org/is

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-22 Thread R. David Murray
R. David Murray added the comment: I'm fine with this version going in, but I don't understand what you are saying about PATHEXT. You are getting it from the environment, but you say the shell always looks at the extension. So if someone has changed PATHEXT in their environmen

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-22 Thread R. David Murray
R. David Murray added the comment: I think it would be more surprising if by default it did something different than what the 'which' command does. It also seems like the most useful result to return by default. If there's demand for a non-abspath version we could add th

[issue665194] datetime-RFC2822 roundtripping

2012-06-22 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry ___ Python tracker <http://bugs.python.org/issue665194> ___ ___ Python-bugs-list mailing list Unsub

[issue444582] Finding programs in PATH, adding shutil.which

2012-06-22 Thread R. David Murray
R. David Murray added the comment: I'm fine with it changing. Hopefully it won't introduce subtle bugs in anyone's programs :) -- ___ Python tracker <http://bugs.pyth

[issue4473] POP3 missing support for starttls

2012-06-22 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Python-bugs-list m

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread R. David Murray
R. David Murray added the comment: Yeah, Brian had it as 'file' before, and I asked him to change it because it is confusing. 'file' sounds like a Python file object, which this is not. 'filename' would be OK, but 'cmd', as you note, is what it is rea

[issue665194] datetime-RFC2822 roundtripping

2012-06-23 Thread R. David Murray
R. David Murray added the comment: Well, I guess I'd like to keep it since it does satisfy a need in the email package: to manipulate dates in the local timezone when composing messages. It isn't a critical need, though; the critical need is just to be able to have a datetime th

[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread R. David Murray
New submission from R. David Murray : I've been working on this steadily for a while. I think it is now all working correctly. At least, it passes all the same tests that the existing RFC mime header parser passes, plus a bunch of additional ones. There are a couple of commented out

[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread R. David Murray
R. David Murray added the comment: Committed with release manager agreement. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue15016] Add special case for latin messages in email.mime.text

2012-06-24 Thread R. David Murray
R. David Murray added the comment: Well, the original change to using utf-8 by default was considered a bug fix. But I suppose you are right that this goes beyond that into enhancement territory. In which case we could wait for an enhancement to the C API to base it on, for which we'd

[issue15152] test_subprocess fqailures on awfully slow builtbots

2012-06-24 Thread R. David Murray
R. David Murray added the comment: You could make the test a loop, with the timeout increasing each time through the loop, failing only if all tries fail. That way on faster machines the test will pass faster. It'll take even longer on slow machines, but they are slow anyway so that m

[issue15162] help() says "This is the online help utility." even though it isn't

2012-06-24 Thread R. David Murray
R. David Murray added the comment: Oh you youngsters. "Offline" doesn't mean "not on the Internet", it means "not on a computer" :) Yes, "interactive" would be clearer. -- nosy: +r.david.murray __

[issue15165] test_email: failure on Windows 64-bit

2012-06-24 Thread R. David Murray
R. David Murray added the comment: I haven't touched localtime since pycon, so I presume this hasn't been detected before due to our lack of a windows 64bit buildbot. -- components: +email nosy: +barry, belopolsky priority: norm

[issue8355] diff.py to produce unified format by default

2012-06-24 Thread R. David Murray
R. David Murray added the comment: Status quo wins a stalemate (and this isn't even really a stalemate. Languishing is for bugs/enhancements no one has stepped up to implement. This one is rejected. -- status: languishing -> closed __

[issue15175] pydoc -k zip throws segmentation fault

2012-06-24 Thread R. David Murray
R. David Murray added the comment: This works fine for me. It is almost certain to be a case of something on your pythonpath crashing when pydoc imports it while looking for things that match the keyword. There is unfortunately no way to bullet proof pydoc against this. -- nosy

[issue15175] pydoc -k zip throws segmentation fault

2012-06-24 Thread R. David Murray
R. David Murray added the comment: Ned: since it is a core dump, I doubt the patch for ignoring exceptions during import will fix this. Note that 'pyg_register_boxed' is not a string that appears in the python source, so it is pretty certainly a third party extension modu

[issue15178] Doctest should handle situations when test files are not readable

2012-06-25 Thread R. David Murray
R. David Murray added the comment: In general in Python we let exceptions speak for themselves. It would, however, probably be reasonable to add the try/except and error message in _test, which should only be called when the module is run as a script. -- nosy: +r.david.murray

[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue15179> ___ ___ Python-bugs-list mailin

[issue15178] Doctest should handle situations when test files are not readable

2012-06-25 Thread R. David Murray
R. David Murray added the comment: Great, thanks. There's a loop around testfiles. I think it would be nicer to not call sys.exit. You could at the same time fix what appears to be a bug in the loop code. It looks like 1 is currently returned only if the last file fails. Hmm, and

[issue15187] test_shutil does not clean up after itself

2012-06-25 Thread R. David Murray
New submission from R. David Murray : test_shutil leaves several (six) directories in /tmp. This eventually fills /tmp on my buildbots and causes subsequent test runs to fail. -- components: Tests keywords: buildbot messages: 164026 nosy: hynek, r.david.murray priority: normal

[issue15034] Devguide should document best practices for stdlib exceptions

2012-06-26 Thread R. David Murray
R. David Murray added the comment: OK, let's move this, then. I asked the question because I'd like to know what the best practice is for exceptions in the stdlib. This is an area in which we have made quite a bit of progress recently (ie: the work done on exceptions for Python

[issue15178] Doctest should handle situations when test files are not readable

2012-06-26 Thread R. David Murray
R. David Murray added the comment: Ah, right, I misread the code when I looked at it. There is usually a reason why something is done the way it is...though not always. But, running some example command lines, it looks to me like the current behavior is there because without it, you won&#

[issue9559] mailbox.mbox creates new file when adding message to mbox

2012-06-26 Thread R. David Murray
R. David Murray added the comment: Could someone be depending on it? Sure. Is that likely enough to block this as a bug fix? Personally I think not. Appending to the mailbox when adding messages is, I think, the expected behavior, and always rewriting it is the surprising behavior. The

[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread R. David Murray
R. David Murray added the comment: Is this a duplicate of issue 6975, or something different? 2.6 only gets security patches. (We use the version field to show what version we need to apply the fix to.) -- nosy: +r.david.murray versions: +Python 3.3 -Python 2.6

[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread R. David Murray
Changes by R. David Murray : -- superseder: -> symlinks incorrectly resolved on Linux ___ Python tracker <http://bugs.python.org/issue15196> ___ ___ Python-

[issue6975] symlinks incorrectly resolved on Linux

2012-06-26 Thread R. David Murray
Changes by R. David Murray : -- nosy: +hynek, pitrou, r.david.murray versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue6975> ___ ___ Pytho

[issue15199] Default mimetype for javascript should be application/javascript

2012-06-27 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker <http://bugs.python.org/issue15199> ___ ___ Python-bugs-list m

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-06-27 Thread R. David Murray
R. David Murray added the comment: Although I do dislike how long it is, I think I agree with larry on this one that follow_symlinks is the cleanest choice. And we are post feature-freeze, so I think changing it should be done only if there is a strong reason. -- nosy

[issue15204] Deprecate the 'U' open mode

2012-06-27 Thread R. David Murray
R. David Murray added the comment: Unless there are places where it is actually broken, I don't think there is a good reason to have step 3.5, though. Just add the deprecation warning and remove it in 4.0. -- nosy: +r.david.murray ___ P

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-06-27 Thread R. David Murray
R. David Murray added the comment: Thanks for working on this. Could you please post the fix as a patch file? If you don't have mercurial, you can generate the diff on windows using the python diff module (scripts/diff.py -u ). Actually, I'm not sure exactly where diff is in t

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-06-27 Thread R. David Murray
R. David Murray added the comment: Well, I had no involvement in the windows registry reading stuff, and it is relatively new. And, as issue 10551 indicates, a bit controversial. (issue 15199 is a different bug, in python's own internal table). Can you run that diff again and use th

[issue15211] Test

2012-06-27 Thread R. David Murray
Changes by R. David Murray : -- assignee: collinwinter -> resolution: -> invalid stage: -> committed/rejected status: open -> closed type: crash -> ___ Python tracker <http://bugs.pyt

[issue15208] Uparrow doesn't show previously typed variable or character

2012-06-27 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue15208> ___ ___ Pyth

[issue15220] Reduce parsing overhead in email.feedparser.BufferedSubFile

2012-06-28 Thread R. David Murray
New submission from R. David Murray : The idea for the attached patch comes from the QNX development team. In their measurements, replacing the re.split-plus-line-reassembly code in BufferedSubFile with str.splitlines provided a 30% reduction in email parsing time. The code is also a lot

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread R. David Murray
R. David Murray added the comment: This is true for most (all?) CPython classes that are implemented in C. For example io.StringIO instances do not have a __module__ attribute either. -- nosy: +r.david.murray ___ Python tracker <h

[issue15178] Doctest should handle situations when test files are not readable

2012-06-30 Thread R. David Murray
R. David Murray added the comment: The problem with running all the files as things stand is that the errors get lost in the other output. Changing that would definitely be an enhancement. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15232] maildir parsing can split up messages with 'From ' at the start of a line

2012-06-30 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker <http://bugs.python.org/issue15232> ___ ___ Python-bugs-list m

[issue15178] Doctest should handle situations when test files are not readable

2012-07-01 Thread R. David Murray
R. David Murray added the comment: I think that sounds reasonable. The message should say files in all three cases', since the individual test file summary method will be similar but talking about numbers of tests. -- ___ Python tracker

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-08 Thread R. David Murray
R. David Murray added the comment: I thought we had other tests that did this as well (pickle?). If you need reproducibility you check the random seed and reuse it. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue15

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-10 Thread R. David Murray
R. David Murray added the comment: As mentioned, the first step is to create some tests that can validate the current behavior, so that changes don't break things. This is a non-trivial task. I know from experience with a similar refactoring that even seemingly simple changes can

[issue15328] datetime.strptime slow

2012-07-11 Thread R. David Murray
R. David Murray added the comment: Thanks for the report. However, do you have a patch to propose? Otherwise I'm not sure there is a reason to keep this issue open...one can always say various things are slow; that by itself is not a bug. Performance enhancement patches are we

[issue15331] Missing codec aliases for bytes-bytes codecs

2012-07-12 Thread R. David Murray
R. David Murray added the comment: Don't you have to resolve issue 7475 before you can add them, though? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue15342] os.path.join behavior

2012-07-13 Thread R. David Murray
R. David Murray added the comment: Whatever the good or bad points of the API design, it is what it is and has been for a very long time. It is not something that is going to change, because the break in backward compatibility would be too large. What is unclear about the documentation that

[issue15328] datetime.strptime slow

2012-07-13 Thread R. David Murray
R. David Murray added the comment: If someone wants to propose a patch we can reopen the issue. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue15351] Add to unittest.TestCase support for using context managers

2012-07-14 Thread R. David Murray
R. David Murray added the comment: Well, if you want to invoke the context in setup/teardown for some reason (as opposed to in the test methods themselves), you can do this: def setUp(self): self.foo = MyContextManager.__enter__() self.addCleanup(MyContextManager.__exit__

[issue15351] Add to unittest.TestCase support for using context managers

2012-07-14 Thread R. David Murray
R. David Murray added the comment: That should have been self.addCleanup(MyContextManager.__exit__) You could alternatively call __exit__() explicitly in tearDown, of course, but I believe addCleanup is a more reliable cleanup than tearDown

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-14 Thread R. David Murray
R. David Murray added the comment: 2.6 only gets security fixes at this point, which this is not. -- nosy: +r.david.murray resolution: -> out of date stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tr

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-15 Thread R. David Murray
R. David Murray added the comment: I'm sorry, It looks like you said it was working as you expected in 2.7, and you marked it for version 2.6. So what is the bug that you see in 2.7? -- ___ Python tracker <http://bugs.python.org/is

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-15 Thread R. David Murray
R. David Murray added the comment: Ah. I have no idea. I did a search and could not find an issue about it being fixed...that doesn't mean there wasn't one, though. Does the problem occur *only* solaris? Because if it isn't solaris specific it might be this one

[issue4640] optparse doesn’t disallow adding one-dash long options (“-option”)

2012-07-15 Thread R. David Murray
R. David Murray added the comment: Re-reading the issue I think the OP was not trying to define '-debug', but was indeed reporting the behavior when -debug was passed to the parser. I've committed your tests (thanks). So we now have tests for both cases, and this issue c

[issue15372] Python is missing alternative for common quoting character

2012-07-16 Thread R. David Murray
R. David Murray added the comment: I don't understand why you would expect to get a ". The unicode characters aren't "s. As far as I can see (from, for example, http://codepoints.net/U+201C), Python is behaving as expected here. -- nosy: +r.david.murray res

[issue15373] copy.copy() does not properly copy os.environment

2012-07-16 Thread R. David Murray
R. David Murray added the comment: os.environ is not a dictionary, so it isn't all that surprising that a shallow copy doesn't behave like a shallow copy of a dictionary. deepcopy does what you'd expect, as does os.environ.copy(). Perhaps it is worth improving this by ad

[issue15375] Trivial for fix in the subprocess documentation

2012-07-16 Thread R. David Murray
R. David Murray added the comment: Thanks. (This error existed on only in the 2.7 docs.) -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed type: enhancement -> behavior ___ Python tr

<    39   40   41   42   43   44   45   46   47   48   >