[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-18 Thread Mike Lundy
New submission from Mike Lundy: The changed merged from http://bugs.python.org/issue16168 causes a regression in SysLogHandler behavior. The socktype of /dev/log is dependent on syslog configuration, and the fallback behavior (trying SOCK_DGRAM and then SOCK_STREAM if the former failed) was ve

[issue14364] Argparse incorrectly handles '--'

2013-04-18 Thread Michele Orrù
Michele Orrù added the comment: wow, I was just writing the unittests, thanks paul. Shall I continue? I don't see any test case on tip. -- ___ Python tracker ___ ___

[issue17760] No i18n of IDLE's interface in french

2013-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The target is different though (especially the target of Firefox). > Kate might be used mainly by developers, but it's also used by > non-developers and it's probably translated also because all the KDE > programs are. Mercurial would be a better example again

[issue14364] Argparse incorrectly handles '--'

2013-04-18 Thread paul j3
paul j3 added the comment: The patch that I recently submitted for http://bugs.python.org/issue13922 appears to solve this issue. It only removes the '--' that marked the end of options. With: parser = argparse.ArgumentParser() parser.add_argument('-f','--foo') print(parser.parse_args(['-f

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2013-04-18 Thread paul j3
paul j3 added the comment: I submitted a patch to http://bugs.python.org/issue9253 The reason why subparser became optional in the latest release is that a old test for missing positionals was phased out, and new one added. Subparsers have always had a default 'required=False', but the old te

[issue14364] Argparse incorrectly handles '--'

2013-04-18 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a sketchy proof of concept. It only checks for locals, but it should probably check for globals too. Does the approach make sense? -- keywords: +patch nosy: +benjamin.peterson type: -> enhancement Added file: http://bugs.python.org/file29936/i

[issue14191] argparse doesn't allow optionals within positionals

2013-04-18 Thread Glenn Linderman
Glenn Linderman added the comment: Docs look good as mentioned there, for the current behavior, although it would be good to improve the behavior. Note that I have supplied a wrapper (t18a.py) (if it hasn't bit-rotted for 3.4, I'm still using 3.3) that provides the needed functionality. The

[issue16355] inspect.getcomments() does not work in the interactive shell

2013-04-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mai

[issue17760] No i18n of IDLE's interface in french

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: > I strongly disagree with Ezio's argumentation here. If Kate and Firefox > are internationalized, IDLE can very well be internationalized too. The target is different though (especially the target of Firefox). Kate might be used mainly by developers, but it's a

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Nick Coghlan
Nick Coghlan added the comment: I don't think we want to mess with the control flow, as that would be even weirder and may interact strangely with else and finally clauses. A SyntaxWarning would be unconditional (so it doesn't matter whether or not the exception is triggered at run time), happ

[issue17790] Fix test discovery for test_set.py

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue17790] Fix test discovery for test_set.py

2013-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef100be2e8ba by Ezio Melotti in branch '3.3': #17790: test_set now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/ef100be2e8ba New changeset 8a0b3ece5c28 by Ezio Melotti in branch 'default': #17790: merg

[issue17779] Fix test discovery for test_osx_env.py

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue17789] Fix test discovery for test_random.py

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue17789] Fix test discovery for test_random.py

2013-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 678564fc0962 by Ezio Melotti in branch '3.3': #17789: test_random now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/678564fc0962 New changeset ac352d7d8058 by Ezio Melotti in branch 'default': #17789:

[issue17777] Unrecognized string literal escape sequences give SyntaxErrors

2013-04-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch type: behavior -> enhancement versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___

[issue17779] Fix test discovery for test_osx_env.py

2013-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5d31084fbbd by Ezio Melotti in branch '3.3': #17779: test_osx_env now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/f5d31084fbbd New changeset 4ea9a8e5ec21 by Ezio Melotti in branch 'default': #17779:

[issue17778] Fix test discovery for test_multiprocessing.py

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: The patch doesn't seem to apply cleanly on 3.3 (and on default too). -- stage: -> patch review ___ Python tracker ___ ___

[issue11078] Have test___all__ check for duplicates

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Attached an updated patch that also uses subtests to keep running all tests even in case of failure. The patch also intentionally breaks a few __all__ to show how it works -- these changes should clearly be removed once the patch gets committed. -- nosy:

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2013-04-18 Thread Glenn Linderman
Glenn Linderman added the comment: These docs changes seem reasonable, from a side-by-side view (I didn't attempt to look at the formatted results of applying the patch), to better document the current behavior. -- nosy: +v+python ___ Python tracker

[issue14191] argparse doesn't allow optionals within positionals

2013-04-18 Thread paul j3
paul j3 added the comment: Glenn Take a look at http://bugs.python.org/issue15427 I took a stab at changing the documentation, including recommending parse_known_args when porting optparse uses. -- ___ Python tracker

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread R. David Murray
R. David Murray added the comment: It occurs to me that one of the problems here is that the UnboundLocalError only occurs when the except clause is executed. Do you think it would be helpful and acceptable (in 3.4, as it is a behavior change) to have the 'as' variable *always* deleted at the

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Nick Coghlan
Nick Coghlan added the comment: It seems to me that this kind of dubious-but-legal code is what http://docs.python.org/3/library/exceptions.html#SyntaxWarning is designed to handle. Something like "SyntaxWarning: implicitly deleted exception variable referenced after end of except clause". -

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 19, 2013, at 12:37 AM, R. David Murray wrote: >And what if it weren't a print statement? An error is better than a >"randomly" changed value, I think. I'm really not sure there is anything we >can do here, beyond Ezio's warning suggestion. Right. The

[issue17646] traceback.py has a lot of code duplication

2013-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: patching file Lib/traceback.py patch: malformed patch at line 94: @@ -50,25 +90,7 @@ -- ___ Python tracker ___ _

[issue17794] Priority Queue

2013-04-18 Thread R. David Murray
R. David Murray added the comment: It is a bug of some sort. A doc bug if nothing else. This is probably due to the fact that everything was sortable in python2, and the doc and/or code hasn't been updated to account for the fact that many things aren't in Python3. -- nosy: +r.david.

[issue4617] SyntaxError when free variable name is also an exception target

2013-04-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.4 fresh build, Win 7: ^z now disabled, as apparently intended. Without the patch ^d or window close button [x] quits Idle cleanly. >>> import idlelib.idle # ^D or [X] in Idle >>> With the patch, Idle disappears but console displays error messages. This is an

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread R. David Murray
R. David Murray added the comment: This used to raise a SyntaxError. See issue 4617. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue17794] Priority Queue

2013-04-18 Thread Carlos Ferreira
New submission from Carlos Ferreira: I'm using Priority Queues and followed the Python documentation for a simple example. >From Queue documentation in Python 3.3 http://docs.python.org/3.3/library/queue.html " The lowest valued entries are retrieved first (the lowest valued entry is the one r

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread R. David Murray
R. David Murray added the comment: And what if it weren't a print statement? An error is better than a "randomly" changed value, I think. I'm really not sure there is anything we can do here, beyond Ezio's warning suggestion. -- nosy: +r.david.murray

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 19, 2013, at 12:01 AM, Ezio Melotti wrote: > >Maybe we could raise a warning when the deleted name already exists in the >local namespace? Ideally, I think a SyntaxError if you could detect a previously bound name in the namespace being used as an excep

[issue1647489] zero-length match confuses re.finditer()

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: This is still an issue today: >>> import re >>> [m.groups() for m in re.finditer(r'(^z*)|(\w+)', 'abc')] [('', None), (None, 'bc')] -- nosy: +isoschiz ___ Python tracker __

[issue3693] Obscure array.array error message

2013-04-18 Thread Martin Morrison
Changes by Martin Morrison : -- nosy: +isoschiz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread R. David Murray
R. David Murray added the comment: Why? What is the use case that it serves better? I'm not saying there isn't one, but one isn't occurring to me. -- ___ Python tracker ___ __

[issue17793] spam

2013-04-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid status: open -> closed title: Invitation to connect on LinkedIn -> spam ___ Python tracker ___ __

[issue17793] Invitation to connect on LinkedIn

2013-04-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg187316 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17793] Invitation to connect on LinkedIn

2013-04-18 Thread Hank Christian
New submission from Hank Christian: LinkedIn Python, I'd like to add you to my professional network on LinkedIn. - Henry Henry Christian ADJUNCT PROFESSOR at Central Texas College Greater Los Angeles Area Confirm that you know Henry Christian: https://www.linkedin.com/e/-3qcne3-

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Maybe we could raise a warning when the deleted name already exists in the local namespace? (FWIW I knew about the fact that the name gets deleted, and still managed to get bitten by it a couple of times.) -- nosy: +ezio.melotti ___

[issue11182] remove unused undocumented pydoc.Scanner class

2013-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-04-18 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: As described here: http://www.wefearchange.org/2013/04/python-3-language-gotcha-and-short.html the following code will produce an UnboundLocalError when the exception is triggered: def bad(): e = None try: do_something() except KeyError

[issue11182] remove unused undocumented pydoc.Scanner class

2013-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 465cb5ce5a7e by Ezio Melotti in branch 'default': #11182: remove the unused and undocumented pydoc.Scanner class. Patch by Martin Morrison. http://hg.python.org/cpython/rev/465cb5ce5a7e -- nosy: +python-dev ___

[issue17062] An os.walk inspired replacement for pkgutil.walk_packages

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: I threw together a function that implements this. The only variation from the proposed signature was adding the onerror argument supported by the other similar functions in the module. -- keywords: +patch nosy: +isoschiz Added file: http://bugs.python

[issue11182] remove unused undocumented pydoc.Scanner class

2013-04-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17646] traceback.py has a lot of code duplication

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: Sorry, that is an unrelated change I was experimenting with, which I accidentally forgot to take out. Please see the new uploaded diff. -- Added file: http://bugs.python.org/file29933/issue17646-2.diff ___ Python t

[issue17646] traceback.py has a lot of code duplication

2013-04-18 Thread Martin Morrison
Changes by Martin Morrison : Removed file: http://bugs.python.org/file29929/issue17646-2.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue17646] traceback.py has a lot of code duplication

2013-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: What's this "f_invisible" thing? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11182] remove unused undocumented pydoc.Scanner class

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: Attached patch does exactly as described. Seems to be unused, and still passes all pydoc tests. -- keywords: +patch nosy: +isoschiz Added file: http://bugs.python.org/file29932/issue11182.diff ___ Python tracker

[issue3778] python uninstaller leave registry entries

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: I don't think this is worth the bother. I've checked my registry and the only entry under HKLM\SOFTWARE\Python is PythonCore, under this are the following. 2.6 Help Pythonwin Reference C:\Python26\Lib\site-packages\PyWin32.chm Modules 2.7

[issue17177] Document/deprecate imp

2013-04-18 Thread STINNER Victor
STINNER Victor added the comment: > I don't know how to change my code to use imp.load_source(). Woops, I mean "to use importlib". -- ___ Python tracker ___

[issue17177] Document/deprecate imp

2013-04-18 Thread STINNER Victor
STINNER Victor added the comment: If the imp module is marked as deprecated, it would help to explain how to port code from imp to importlib. As it was done for os.spawn(), platform.popen(), etc. I'm using imp.load_source() in my setup.py to load a version.py file which only contains constant

[issue17742] Add _PyBytesWriter API

2013-04-18 Thread STINNER Victor
STINNER Victor added the comment: New version of the patch: - address most (all?) Serhiy's remarks - _PyBytesWriter_PrepareInternal() always use min_size, not only when overallocate is 1 - add more comments Performances are almost the same than without the patch. It looks like they are a li

[issue17468] Generator memory leak

2013-04-18 Thread Martin Morrison
Changes by Martin Morrison : -- nosy: +isoschiz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17732] distutils.cfg Can Break venv

2013-04-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch, I left comments on rietveld. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue17618] base85 encoding

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: Attached a minor tweak over the last diff - I'd forgotten to fix the Struct handling inside the Mercurial implementation as well. All other comments still apply to this diff. -- Added file: http://bugs.python.org/file29930/issue17618-5.diff _

[issue17618] base85 encoding

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: Raised http://bz.selenic.com/show_bug.cgi?id=3894 against Mercurial for them to workaround issue14596. -- ___ Python tracker ___ _

[issue17646] traceback.py has a lot of code duplication

2013-04-18 Thread Martin Morrison
Martin Morrison added the comment: Latest upload has all of the agreed markups from the review. -- Added file: http://bugs.python.org/file29929/issue17646-2.diff ___ Python tracker _

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: Tests rerun on Windows and were fine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14398] bz2.BZ2DEcompressor.decompress fail on large files

2013-04-18 Thread Nadeem Vawda
Nadeem Vawda added the comment: An oversight on my part, I think. I'll add tests for 3.x this weekend. -- status: closed -> open ___ Python tracker ___ __

[issue17742] Add _PyBytesWriter API

2013-04-18 Thread STINNER Victor
STINNER Victor added the comment: Benchmark script, should be used with: https://bitbucket.org/haypo/misc/src/tip/python/benchmark.py -- Added file: http://bugs.python.org/file29928/bench_encoders.py ___ Python tracker

[issue17732] distutils.cfg Can Break venv

2013-04-18 Thread Nick Sloan
Nick Sloan added the comment: Any feedback on this latest patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-18 Thread Phil Connell
Phil Connell added the comment: Updated patch with markups suggested by Serhiy. -- Added file: http://bugs.python.org/file29927/issue17633-2.diff ___ Python tracker ___ _

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Zack Weinberg added the comment: OK, I get that, but what I'm saying is I think input= is still desirable even if stdin= becomes more powerful. -- ___ Python tracker ___ ___

[issue16355] inspect.getcomments() does not work in the interactive shell

2013-04-18 Thread Phil Connell
Phil Connell added the comment: Here's a patch that updates getcomments to match the behaviour of getsource, raising OSError if the source file can't be found and TypeError when passed a built-in. Since this is a backwards-incompatible change, presumably it can only be applied to 3.4. This i

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread R. David Murray
R. David Murray added the comment: Yes. IIUC are talking about possibly replacing it with a more powerful feature. We wouldn't actually remove it, but we would recommend using the new feature instead, thus making the fact that check_output doesn't have it irrelevant. -- ___

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Zack Weinberg added the comment: ??? communicate() has always had input= AFAIK. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread R. David Murray
R. David Murray added the comment: Since it is a new feature either way, we can add stdin support and deprecate the input= argument of communicate. But we can also go with the input= for check_output now, and see if anyone steps up to do the bigger patch before 3.4 hits beta. Which is what I

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Zack Weinberg added the comment: My position is: * input= should be supported in check_output(), for consistency with communicate(). * I like the idea of making stdin= support file-like objects which don't have a fileno, in both communicate() and everything that calls it, but that does not b

[issue12762] EnvironmentError_str contributes to unportable code

2013-04-18 Thread R. David Murray
R. David Murray added the comment: The enum module that is likely to land in 3.4 will allow us to fix this. We can discuss whether we want to just display the name, or both the name and the value. Omitting it would indeed be bad, IMO. -- nosy: +r.david.murray stage: -> needs patch t

[issue16000] test_curses should use unittest

2013-04-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +zach.ware versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15852] typos in curses argument error messages

2013-04-18 Thread Phil Connell
Phil Connell added the comment: The patch looks correct and complete, and still patches and passes the tests. So, as far as I can see, this can be committed. -- nosy: +pconnell ___ Python tracker _

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-18 Thread Phil Connell
Phil Connell added the comment: The attached patch is ready for review. -- Added file: http://bugs.python.org/file29925/issue17633.diff ___ Python tracker ___ ___

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-18 Thread Phil Connell
Changes by Phil Connell : Removed file: http://bugs.python.org/file29696/test.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue17633] zipimport's handling of namespace packages is incorrect

2013-04-18 Thread Phil Connell
Changes by Phil Connell : Removed file: http://bugs.python.org/file29679/zipimport_ns.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I partially agree with you. We must copy blocks in communicate(). Your patch is great, but I doubt that there is a best feature. If we teach communicate() to work with file-like objects, this feature will exceed your suggestion and 'input' parameter of check

[issue17791] PC/pyconfig.h defines PREFIX macro

2013-04-18 Thread Christian Heimes
New submission from Christian Heimes: The pyconfig.h file of the Windows build environment defines at least two macros without a Py/PY prefix: PC/pyconfig.h:#define PREFIX "" PC/pyconfig.h:#define EXEC_PREFIX "" This has caused multiple issues in the past. For example libexpat uses PREFIX, to

[issue14364] Argparse incorrectly handles '--'

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: @Michele could you provide a patch for this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-

[issue12762] EnvironmentError_str contributes to unportable code

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: It doesn't bother me that Python programmers can write unportable code, what with consenting adults and all that. Further the implementation of PEP 3151 in 3.3 allows specific exceptions to be caught, e.g. FileNotFoundError. I can't see anybody allowing the ex

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-04-18 Thread Brett Cannon
Brett Cannon added the comment: In case someone wants to reproduce: mkdir pkg echo "import tester" > pkg/symlinked.py ln -s pkg/symlinked.py linked.py echo "print('HIT')" > tester.py That fails because Python assumes you are in the pkg directory, not the directory you started execution

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: It will be difficult to take this forward owing to the problem description in msg89914 being limited to "importing from normal files in the same directory does not work". Plus any problems back then may well have been fixed due to the reworking of the import m

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Zack Weinberg added the comment: Note also that allowing `stdin=` in a clean fashion would require rather more surgery than you suggest, because a filelike can produce an infinite stream of data, and people would expect that to work when the subprocess only reads a finite prefix; making it *ac

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Zack Weinberg added the comment: > I think that it will be better not introduce a new argument, but reuse stdin. > Just allow io.BytesIO (or perhaps even any file object) be specified as stdin. If we were designing from scratch I might agree, but we aren't. Principle of least astonishment say

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that it will be better not introduce a new argument, but reuse stdin. Just allow io.BytesIO (or perhaps even any file object) be specified as stdin. The change will be straightforward: if isinstance(stdin, io.BytesIO): inputdata = stdin.read()

[issue16037] httplib: header parsing is not delimited

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: Patches LGTM but I suggest TooManyHeaders instead of TooMuchHeaders. I've tried the 3.2 patch against the latest default repo on Windows Vista and it applies cleanly. All tests passed so looks as if this could be committed. -- nosy: +BreamoreBoy

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2013-04-18 Thread Philip Jenvey
Philip Jenvey added the comment: PyPy's fixed this here: https://bitbucket.org/pypy/pypy/commits/1341a432e134 The tests just need to be adapted to the stdlib test suite -- ___ Python tracker _

[issue17742] Add _PyBytesWriter API

2013-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have added some comments on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17741] event-driven XML parser

2013-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, Eli. Now committed :) -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Changes by Zack Weinberg : Removed file: http://bugs.python.org/file28247/issue16624-v34.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-18 Thread Zack Weinberg
Zack Weinberg added the comment: Here is a new patch vs latest trunk. -- Added file: http://bugs.python.org/file29924/issue16624-v34a.diff ___ Python tracker ___

[issue17741] event-driven XML parser

2013-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f903cf864191 by Antoine Pitrou in branch 'default': Issue #17741: Add ElementTree.IncrementalParser, an event-driven parser for non-blocking applications. http://hg.python.org/cpython/rev/f903cf864191 -- nosy: +python-dev _

[issue14191] argparse doesn't allow optionals within positionals

2013-04-18 Thread Glenn Linderman
Glenn Linderman added the comment: I should clarify, before someone jumps in: some particular applications do implement restrictions on order of optional and positional arguments; I'm aware of that. getopt easily supported application defined order restrictions, because it processed arguments

[issue14191] argparse doesn't allow optionals within positionals

2013-04-18 Thread Glenn Linderman
Glenn Linderman added the comment: Paul, your comments are interesting, but your proposed patch doesn't actually solve the problem. So here I am typing away at my command prompt, and I type in a couple optional parameters I know I'll need and start on the sequence of positional ones, and half

[issue17776] IDLE Internationalization

2013-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for internationalizing IDLE. Any decent GUI app is internationalized these days, even developer tools. Re: gettext, its semantics and API are a bit of a PITA, but it's basically the standard for internationalization of FLOSS projects. There are all kind of

[issue1626300] 'Installing Python Modules' does not work for Windows

2013-04-18 Thread Éric Araujo
Éric Araujo added the comment: I consider documentation for the py launched a distinct issue. The original complaint here was fixed, the part about packaging does not apply anymore, so I will close this. If one of the changed instructions still does not work (e.g. “setup.py build” does not w

[issue17776] IDLE Internationalization

2013-04-18 Thread Ned Deily
Ned Deily added the comment: Also, IDLE makes use of features provided by Tk and those vary by platform. In some cases, IDLE uses some Tk-supplied default menus and menu items. So internationalization of IDLE would need to investigate and make use of Tk i18n features on all supported platfor

[issue1626300] 'Installing Python Modules' does not work for Windows

2013-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I consider it Éric's decision. 3.3 on Windows comes with the new py launcher. That might be incorporated into the docs if it has not. That might also be a separate issue. -- ___ Python tracker

[issue17760] No i18n of IDLE's interface in french

2013-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I responded very cautiously to #17776 in part (but not only) because I had the impression that Ezio's view was the general consensus of other developers. Antoine, since that is wrong or at least not complete right, could you record at least your +1 there? My

[issue17742] Add _PyBytesWriter API

2013-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I run my own benchmarks and don't see any regression besides a random noise. Actually I see even speed up for some cases: ./python -m timeit -s "a = '\x80'*1" "a.encode()" Before patch: 29.8 usec per loop, after patch: 21.5 usec per loop. This is just a

[issue16445] SEGFAULT when deleting Exception.message

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: It looks as if this issue can be closed as a fix has been committed. However a new issue will be needed if the advice offered in msg181839 is followed. -- nosy: +BreamoreBoy ___ Python tracker

  1   2   >