[issue11588] Add "necessarily inclusive" groups to argparse

2014-02-25 Thread paul j3
paul j3 added the comment: The addition of a simple decorator to the 'ArgumentParser' class, would simplify registering the tests: def crosstest(self, func): # decorator to facilitate adding these functions name = func.__name__ self.register('cro

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Paul Tunison
Paul Tunison added the comment: I can confirm that this is still an issue with python 2.7.5. My method of resolving this locally is similar to xhantu's. I created a sub-class of BaseProxy, overriding the __reduce__ method and injecting the authkey into the appropriate spot in the

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Paul Tunison
Paul Tunison added the comment: I can confirm that this is still an issue with python 2.7.5. My method of resolving this locally is similar to xhantu's. I created a sub-class of BaseProxy, overriding the __reduce__ method and injecting the authkey into the appropriate spot in the

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Paul Tunison
Paul Tunison added the comment: I can confirm that this is still an issue with python 2.7.5. My method of resolving this locally is similar to xhantu's. I created a sub-class of BaseProxy, overriding the __reduce__ method and injecting the authkey into the appropriate spot in the

[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts

2014-02-28 Thread paul j3
paul j3 added the comment: In http://bugs.python.org/issue11588 (Add "necessarily inclusive" groups to argparse) I propose a generalization to these testing groups that would solve your 'conflicter' case as follows: usage = 'prog [ --conflicter | [ --opt1 ]

[issue18943] argparse: default args in mutually exclusive groups

2014-03-03 Thread paul j3
paul j3 added the comment: I need to tweak the last patch so 'using_default' is also set when an "nargs='*'" positional is set to the '[]' default. if action.default is not None: value = action.default +

[issue11588] Add "necessarily inclusive" groups to argparse

2014-03-04 Thread paul j3
paul j3 added the comment: A couple more thoughts on an expanded argument testing mechanism: - do we need both 'seen_actions' and 'seen_non_default_actions'? 'seen_actions' is used only to test whether all required actions have been seen. These 2 sets

[issue20883] Windows 'for current user' installation - 32/64-bit registrations overwrite each other

2014-03-10 Thread Paul Moore
Paul Moore added the comment: OK, fair enough (I agree that the Windows behaviour here is the root cause of the problem). However, it *would* have been possible for the registry keys to be HKEY_LOCAL_MACHINE\Software\Python\PythonCore\3.4-32 and HKEY_LOCAL_MACHINE\Software\Python\PythonCore

[issue20883] Windows 'for current user' installation - 32/64-bit registrations overwrite each other

2014-03-10 Thread Paul Moore
Paul Moore added the comment: Agreed, that is not necessary. Nor was Martin suggesting it as far as I can tell, he was simply saying that it would be less disruptive in the broader scheme of things than messing with the Python registry scheme to work around the limitation that 32 and 64 bit

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2009-08-28 Thread Paul Tarjan
New submission from Paul Tarjan : >>> import mimetypes >>> mimetypes.guess_extension("text/plain") '.ksh' most others are correct, it is just this one is quite wrong. I would recommend changing it to .txt . >>> mimetypes.guess_all_extensions(

[issue1462525] URI parsing library

2009-10-03 Thread Paul Jimenez
Paul Jimenez added the comment: Senthil wrote: > > Senthil added the comment: > > > > Hello Paul, > > Have you beeing keeping track of urlparse changes in Python2.6? No - do you have pointers to the particular changes you're referring to? I've done a bit

[issue7153] add "start" arg to max and min functions

2009-10-16 Thread paul rubin
New submission from paul rubin : Lots of times I want to find the largest element of a list or sequence, defaulting to 0 if the list or sequence is empty. max(seq) throws an exception if seq is empty, so I end up using reduce(max, seq, 0). That is a standard functional programming idiom but

[issue7153] add "start" arg to max and min functions

2009-10-16 Thread paul rubin
Changes by paul rubin : -- type: -> feature request ___ Python tracker <http://bugs.python.org/issue7153> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7153] add "start" arg to max and min functions

2009-10-16 Thread paul rubin
paul rubin added the comment: David, I'm not on that mailing list so hadn't seen the earlier discussion. I sympathasize with Raymond's YAGNI argument because I'm comfortable with reduce(max,seq,0); but then I remember there was once a movement to remove the "reduc

[issue7153] add "start" arg to max and min functions

2009-10-17 Thread paul rubin
paul rubin added the comment: 1. Yes, the idea is to figure out the best solution and go with it (or decide to do nothing). That many possibilities exist just points to the need for experience and wisdom in identifying the best choice ("one and preferably only one"). One of the

[issue7339] bsddb crashes when transaction limit occurs

2009-11-17 Thread Paul Colomiets
New submission from Paul Colomiets : When maximum transaction number exceeded and DBEnv->txn_begin returns with error ENOMEM, error with following traceback occur: #0 0x000803d4fa48 in DBTxn_dealloc (self=0x846480648) at _bsddb.c:1235 #1 0x000803d506dc in newDBTxnObject (my

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-17 Thread Paul Moore
New submission from Paul Moore : Windows 3.x buildbots are failing in test_tarfile. The problem, as best I can diagnose it, appears to be a failure somewhere in the tarfile module to close files on exceptions. The error is "WindowsError: [Error 32] The process cannot access the file becau

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Paul Moore
Paul Moore added the comment: I can run a test on my buildbot - but I may not have a chance until tomorrow. I'll do that and report back unless someone else reports that they have managed to run a test before me. -- ___ Python tracker

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Paul Moore
Paul Moore added the comment: I can confirm it fixes the issue, too. -- ___ Python tracker <http://bugs.python.org/issue7341> ___ ___ Python-bugs-list mailin

[issue7354] distutils.tests.test_msvc9compiler - dragfullwindows can have value 2

2009-11-18 Thread Paul Moore
New submission from Paul Moore : It looks like the "Control Panel\Desktop\dragfullwindows" registry entry can have value 2 (it does on my buildbot!) The distutils test "test_msvc9compiler" assumes that only values 0 and 1 are valid. The following patch (against trunk) fixes

[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Paul H
New submission from Paul H : Hello all, First post here so go easy on me please! And please bear in mind I am not a C programmer, just a unix admin trying to build python as an option for other programmers to use. I am trying to build Python 3.1.1 on HP-UX itanium. OS and compiler details are

[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Paul H
Paul H added the comment: Hi all, Many thanks for the tips, and for the super-quick responses also! Yes indeed, what is happening here is that PY_VERSION_HEX is not being evaluated correctly. In fact what appears to be happening is that Include/patchlevel.h is not being considered in the

[issue7473] x84_64 arch Missing from 2.6.4 Mac universal binaries - Cripples building embedded 64-bit

2009-12-10 Thread Paul Nelson
New submission from Paul Nelson : By excluding the x86_64 architecture from the supplied MacOS install, you are crippling the ability to build an 64-bit application that embeds python. The Apple supplied universal binary includes all 3 architectures ppc, i386, and x86_64. If you are going

[issue7473] x84_64 arch Missing from 2.6.4 Mac universal binaries - Cripples building embedded 64-bit

2009-12-11 Thread Paul Nelson
Paul Nelson added the comment: Once the binary (ppc, i386) binary is installed it becomes impossible to rebuild python from source as 3-way binary on the system, without first removing the 2.6.4 dual architecture /Library/Frameworks/Python.framework. It causes compile failures in _curses

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

2009-12-11 Thread Paul Nelson
Paul Nelson added the comment: I would humbly suggest that it be 3-way, until it is 10.6 (Snow Leopard) and above. In our case as long as we support Leopard, we will be supporting all 3 architectures for our software. It would be appreciated if the web page indicated that the .dmg is

[issue7653] Fix description of the way the PythonPath Windows registry key works

2010-01-07 Thread Paul Keating
New submission from Paul Keating : The 2.6.4 docs (at http://docs.python.org/using/windows.html) do not give enough detail for an ordinary user to work out how the registry key HKLM\SOFTWARE\Python\PythonCore\version\PythonPath actually works. It says: Modifying the module search path can

[issue5340] Change in cgi behavior breaks existing software

2009-02-21 Thread Paul Boddie
Paul Boddie added the comment: The issue of distinguishing between query-originating parameters and form-originating parameters has been around for a very long time, and in my own work, especially where the cgi module has been used, I've been careful to distinguish between the two types a

[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Paul Moore
New submission from Paul Moore : There is no way to determine the list of classes for which issubclass(C, x) is true. The MRO of the class is fine for normal inheritance, but for ABCs it is possible to register classes which don't inherit from the ABC, so that you have a situation

[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Paul Moore
Paul Moore added the comment: I raised issue 5405. Armin Roachner commented over there that it's not even possible in principle to enumerate the ABCs a class implements because ABCs can do semantic checks (e.g., checking for the existence of a special method). So documenting the limitati

[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Paul Moore
Changes by Paul Moore : ___ Python tracker <http://bugs.python.org/issue5135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/

[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Paul Moore
Paul Moore added the comment: I raised issue 5405. Armin Ronacher commented over there that it's not even possible in principle to enumerate the ABCs a class implements because ABCs can do semantic checks (e.g., checking for the existence of a special method). So documenting the limitati

[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Paul Moore
Paul Moore added the comment: Good point! So a documentation patch, to the effect that there is no way of determining which ABCs a given class is an instance of, would be an appropriate resolution, I guess. ___ Python tracker <http://bugs.python.

[issue2889] curses for windows (alternative patch)

2009-03-23 Thread Paul Moore
Changes by Paul Moore : -- nosy: +pmoore ___ Python tracker <http://bugs.python.org/issue2889> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1560032] confusing error msg from random.randint

2009-03-29 Thread paul rubin
paul rubin added the comment: ajaksu2, I don't understand why you want to close this bug if it isn't fixed. I can accept that it's not the highest priority issue in the world, but it's something that trips up users from time to time, and it ix obviously fixable. Closi

[issue1560032] confusing error msg from random.randint

2009-03-30 Thread paul rubin
paul rubin added the comment: Daniel, thanks--I didn't mean to jump on you, so I'm sorry if it came across that way. Maybe I'm a little oversensitized to this issue due to some unrelated incidents with other programs. I'll try to write a more detailed reply and maybe incl

[issue3440] Starting any program as a subprocess fails when subprocess.Popen has env argument

2009-04-09 Thread Paul Morelle
Paul Morelle added the comment: Hello, I can reproduce the bug on a Windows XP Professional, SP 3, with three versions of Python: Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32

[issue3440] Starting any program as a subprocess fails when subprocess.Popen has env argument

2009-04-09 Thread Paul Morelle
Paul Morelle added the comment: I have just figured out that if you initialize env with os.environ.copy() and then add/modify its components, then the bug disappears: env = os.environ.copy() env['FOO'] = 'BAR' […] But I have no idea (for the moment) of which variable

[issue5731] bdist_wininst no longer works on non-Windows platforms

2009-04-09 Thread Paul Moore
New submission from Paul Moore : In revision 62197, Mon Apr 7 01:53:39 2008 UTC, Mark Hammond added code to Lib/distutils/command/bdist_wininst.py which was intended to select an architecture-specific installer executable. In doing so, the code appears to have broken the ability to build

[issue5784] raw deflate format and zlib module

2009-04-17 Thread paul rubin
New submission from paul rubin : The zlib module doesn't support raw deflate format, so it doesn't completely interoperate with php's "gzdeflate" function and fails to decompress some strings that web browsers can decompress. A workaround is to use a special zlib featu

[issue5784] raw deflate format and zlib module

2009-04-17 Thread paul rubin
Changes by paul rubin : -- components: +Library (Lib) type: -> feature request versions: +Python 2.5 ___ Python tracker <http://bugs.python.org/iss

[issue5784] raw deflate format and zlib module

2009-04-17 Thread paul rubin
paul rubin added the comment: I should have mentioned, the docs do say "When wbits is negative, the standard gzip header is suppressed; this is an undocumented feature of the zlib library, used for compatibility with unzip‘s compression file format" but this wasn't enough at the

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-04-22 Thread Paul Moore
Paul Moore added the comment: This sounds reasonable to me. I would like to see this patch applied. Note - someone involved with the cygwin port should confirm that the patch does indeed no longer cause issues for cygwin. -- nosy: +pmoore

[issue1054967] bdist_deb - Debian packager

2009-05-02 Thread Paul Hummer
Paul Hummer added the comment: I've been doing a review of this patch for the last few hours. There are a few issues that need to be taken care of in order for it to move forward, and I'm currently working on them, in this order: 1. Update the patch to the most recent svn. The mo

[issue8722] Documentation for __getattr__

2010-05-14 Thread Paul Davis
New submission from Paul Davis : The docs for __getattr__ in the object model section could be more specific on the behavior when a @property raises an AttributeError and there is a custom __getattr__ defined. Specifically, it wasn't exactly clear that __getattr__ would be invoked af

[issue8722] Documentation for __getattr__

2010-05-14 Thread Paul Davis
Paul Davis added the comment: I should mention, in example.py, it wasn't immediately clear that "print f.bing" would actually print instead of raising the AttributeError. As in, I had a property raising an unexpected error that happend to be an AttributeError. If its not an

[issue1667546] Time zone-capable variant of time.localtime

2010-06-05 Thread Paul Boddie
Paul Boddie added the comment: Speaking for myself, I'm not sure whether I'm really the person to push this further, at least, although others may see it as a worthy sprinting topic. In principle, adding the extra fields is the right thing to do, merely because it exposes things fr

[issue9055] test_issue_8959_b fails when run from a service

2010-06-21 Thread Paul Moore
New submission from Paul Moore : test_issue_8959_b fails when run from a service (in this case, from a buildslave running as a service). It appears to count the number of open windows, expecting a non-zero value. But when run as a service, it looks like the return count is (correctly) zero

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Paul Moore
Paul Moore added the comment: Martin's analysis (and the description of the commit he refers to) indicates that the correct fix is Cuiseppe's suggestion to change the relative imports to absolute: from _multiprocessing import ... as the previous code was only working because, as a

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Paul Moore
Paul Moore added the comment: Here's a patch implementing the suggested change. test_multiprocessing passes. I am just running the full test suite now. -- keywords: +patch Added file: http://bugs.python.org/file17849/mp.diff ___ Python tr

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Paul Moore
Paul Moore added the comment: Full test suite also looks OK. -- ___ Python tracker <http://bugs.python.org/issue9144> ___ ___ Python-bugs-list mailing list Unsub

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-05 Thread Paul Smith
New submission from Paul Smith : A called to logger.info() in shutil._make_tarball is not guarded against the logger being None, and therefore raises an AttributeError if that is the case. -- components: Library (Lib) files: shutil_logger_py27.patch keywords: patch messages: 109364

[issue5135] Expose simplegeneric function in functools module

2010-07-22 Thread Paul Moore
Paul Moore added the comment: I don't propose to raise a PEP myself. The issue with ABCs seems to me to be a fundamental design issue, and I think it's better to leave raising any PEP, and managing the subsequent discussion, to someone with a deeper understanding of, and interest i

[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Paul Moore
Paul Moore added the comment: I don't think that they do, any more than for any .py script. (I assume you're talking about in the .py script). Generated scripts on Unix can be whatever the code wants, and on Windows I thought the idea of generated scripts had bee

[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Paul Moore
Paul Moore added the comment: Thanks for clarifying. No, I don't agree. Barring fancy "if os.platform" games in setup.py, scripts will be platform-independent Python code. From "Distributing Python Modules" section 2.5, "Scripts are files containing Python sou

[issue9507] namedtuple should not hardcode the class name in __repr__

2010-08-04 Thread Paul Giannaros
New submission from Paul Giannaros : collections.namedtuple hardcodes the class name which is reported in the new type's __repr__. This is irritating when subclassing a namedtuple: A = collections.namedtuple('A', '') class B(A): pass print B() # shows 'A(

[issue9055] test_issue_8959_b fails when run from a service

2010-08-04 Thread Paul Moore
Paul Moore added the comment: I'm not sure what needs to be done to move this forward, but as it's a problem with the test rather than with any actual code, could something be done to avoid masking real issues? I agree with Thomas that in the absence of any other solution, the a

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2010-08-08 Thread Paul Arnold
New submission from Paul Arnold : In Python 3.1, xdrlib.Packer().pack_fstring() throws a TypeError if called with a str() (an encoded string bytes() works just fine). >>> xdrlib.Packer().pack_fstring(6, "foobar") Traceback (most recent call last): File "",

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2010-08-08 Thread Paul Arnold
Paul Arnold added the comment: It will apply to 3.2 also, checking in SVN there have been no changes to xdrlib.py for a couple of years. The documentation makes no mention of the need to encode strings. -- ___ Python tracker <h

[issue28783] Embedded/nuget packages incorrectly reference bdist_wininst

2016-11-23 Thread Paul Moore
Paul Moore added the comment: I've had a look. I agree in principle with the change, and the code looks OK on inspection, although I can't really test it. As it's only a change to one of the scripts in tools/msi, this seems like a low-risk change to me, so

[issue28742] argparse.ArgumentDefaultsHelpFormatter sometimes provides inaccurate documentation of defaults, so they should be overrideable

2016-11-23 Thread paul j3
paul j3 added the comment: I might accept a patch that tweaks the ArgumentDefaultsHelpFormatter class, but adding a parameter that must propagate through all the Action classes in just plain wrong. Users are confused by the many Action parameters as it is. And based on StackOverFlow

[issue27153] Default value shown by argparse.ArgumentDefaultsHelpFormatter is backwards for action='store_false'

2016-11-23 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker <http://bugs.python.org/issue27153> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22107] tempfile module misinterprets access denied error on Windows

2016-12-05 Thread Paul Doom
Paul Doom added the comment: Can the _mkstemp_inner portion of Billy McCulloch's patch be applied? Due to a large default os.TMP_MAX value (2147483647 - seems to be the current value on Win 7/8.1/10 I have access to), the following will push the CPU to 100% for a very long time whe

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Paul Moore
Paul Moore added the comment: I thought that most of the users of this functionality had stopped doing so (the only one I recall for certain was pywin32, and last time this came up, I think someone said they had stopped). If the functionality isn't used in any of the well-known modules

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-10 Thread paul j3
Changes by paul j3 : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue14156> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25035] Getter/setter for argparse keys

2016-12-10 Thread paul j3
paul j3 added the comment: Yes, the information that `add_argument` returns a Action object is missing from the documentation. It might be useful addition. The documentation has many faults. It isn't basic enough to be a tutorial, but many first time users use it as such, and get con

[issue28783] Embedded/nuget packages incorrectly reference bdist_wininst

2016-12-11 Thread Paul Moore
Paul Moore added the comment: I'm OK for this to go in. -- ___ Python tracker <http://bugs.python.org/issue28783> ___ ___ Python-bugs-list mailing list

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-11 Thread paul j3
paul j3 added the comment: The problem with the argparse backlog is that the original author of the module is too busy with other things. And no one has stepped into his shoes. There are people with experience in apply patches, and people who know the argparse code well, but few, if any

[issue11874] argparse assertion failure with brackets in metavars

2016-12-12 Thread paul j3
Changes by paul j3 : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue11874> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-14 Thread paul j3
paul j3 added the comment: The problem with Python2.7 is that 'open' does not take 'closefd', or any of the other parameters that were added for Python3. open(name[, mode[, buffering]]) 'rb' may make a difference on Py2 on Windows, but I haven't done any

[issue14364] Argparse incorrectly handles '--' as argument to option

2016-12-17 Thread paul j3
paul j3 added the comment: I've copied 'dbldash.patch' over from http://bugs.python.org/issue13922. I mistakenly added it to a closed issue. The patch is old, and should be revised. It is also missing tests for this '--opt=--' case, even though it solves it. I

[issue29093] Windows launcher breaks history in Git Bash

2016-12-28 Thread Paul Moore
Paul Moore added the comment: Does the git bash shell leave a readline DLL on the user's PATH? If so, Python's readline support will kick in, and as a result Python will behave differently. -- ___ Python tracker <http://bugs.python.o

[issue29093] Windows launcher breaks history in Git Bash

2016-12-31 Thread Paul Moore
Paul Moore added the comment: Thanks for letting us know -- ___ Python tracker <http://bugs.python.org/issue29093> ___ ___ Python-bugs-list mailing list Unsub

[issue29030] argparse: choices override metavar

2017-01-06 Thread paul j3
paul j3 added the comment: Here's the method in HelpFormatter that creates the metavar: def _metavar_formatter(self, action, default_metavar): if action.metavar is not None: result = action.metavar elif action.choices is not None: choice_strs =

[issue29030] argparse: choices override metavar

2017-01-06 Thread paul j3
paul j3 added the comment: subparsers is an example of choices displaying as the metavar. From the documentation example: usage: PROG [-h] [--foo] {a,b} ... positional arguments: {a,b} sub-command help - To the main parser, the 'subparser' is a positional argu

[issue14392] type=bool doesn't raise error in argparse.Action

2017-01-09 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker <http://bugs.python.org/issue14392> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue9182] document “--” as a way to distinguish option w/ narg='+' from positional argument in argparse

2017-01-09 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker <http://bugs.python.org/issue9182> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue14102] argparse: add ability to create a man page

2017-01-09 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker <http://bugs.python.org/issue14102> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29231] Broken MSIs in Python 3.5+

2017-01-11 Thread Paul Moore
Paul Moore added the comment: > Fully usable, portable *and unsupported* - you apparently ignored that point from Steve's comment > and working Python interpreter That's (essentially) pure luck. I don't think I've ever seen any suggestion that the /a flag for *any

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-01-18 Thread Paul Moore
Paul Moore added the comment: I'm not sure I see why you'd want to run lib2to3 with the embedded distribution anyway. Surely you'd do any 2to3 conversion in a normal development installation, and then simply bundle the resulting converted scripts with your application a

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
New submission from Paul Moore: Trying to run a pyz file using the embedded distribution for 3.6.0, I get an error "Could not import runpy module". To reproduce, see below: >type .\__main__.py print('Hello, world') >zip test.pyz __main__.py adding: __main__.py (172

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: I just checked, and 3.6.0b1 (the only prerelease version I had available) has the same problem. 3.5.2 works fine. I thought I'd had similar code working during the beta cycle, but I can't demonstrate that any more, so maybe my recollectio

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: Confirmed that it works with alpha 2, 3 and 4. But fails with beta 1 and the release version. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: Sorry I should have thought of trying -v. The output (included below) doesn't seem to offer many hints, though. runpy.pyc is in python36.zip, I checked that. I'll see if I can find a machine without Python installed to test that case. >.\python.exe

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: Nice! Thanks for finding this. I don't suppose there's any chance this would qualify as a bugfix for 3.6.1? I've been holding off on working on https://github.com/pfmoore/pylaunch until 3.6 because 3.5 doesn't handle being in a subdirectory

[issue29330] __slots__ needs documentation

2017-01-19 Thread saumitra paul
New submission from saumitra paul: As you said..assiging it to you :) -- messages: 285850 nosy: rhettinger, saumitra1978 priority: normal severity: normal status: open title: __slots__ needs documentation versions: Python 2.7 ___ Python tracker

[issue29330] __slots__ needs documentation

2017-01-19 Thread saumitra paul
saumitra paul added the comment: Python 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> help(__slots__) Tr

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2017-01-19 Thread paul j3
Changes by paul j3 : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue9625> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2017-01-19 Thread paul j3
Changes by paul j3 : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue9338> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2017-01-19 Thread paul j3
paul j3 added the comment: Recent StackOverFlow question related to this issue http://stackoverflow.com/questions/41750896/python-argparse-type-inconsistencies-when-combining-choices-nargs-and-def/41751730#41751730 -- ___ Python tracker <h

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2017-01-19 Thread paul j3
paul j3 added the comment: Recent StackOverFlow question related to this issue - where the following positional is a subparsers. http://stackoverflow.com/questions/41742205/how-to-argparse-with-nargs-and-subcommands -- ___ Python tracker <h

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2017-01-19 Thread paul j3
paul j3 added the comment: http://bugs.python.org/issue9253 argparse: optional subparsers Initially this bug/issue was a request to allow subparsers to be optional. But with the change in how required actions are handled, subparsers are now optional by default. As you learned from the SO

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2017-01-24 Thread paul j3
Changes by paul j3 : -- priority: normal -> high ___ Python tracker <http://bugs.python.org/issue14074> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2017-01-24 Thread paul j3
paul j3 added the comment: An alternative fix is to disallow tuple metavars for positionals. A tuple metavar may look nice in the usage. But a well selected dest seems better in the help line, and error messages. Using dest in all 3 roles, as we do now, is the simplest compromise

[issue23298] Add ArgumentParser.add_mutually_dependence_group

2017-01-31 Thread paul j3
paul j3 added the comment: I propose closing this with reference to http://bugs.python.org/issue11588 -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue11588] Add "necessarily inclusive" groups to argparse

2017-01-31 Thread paul j3
paul j3 added the comment: Another issue requesting a 'mutually dependent group' http://bugs.python.org/issue23298 -- ___ Python tracker <http://bugs.python.o

[issue24736] argparse add_mutually_exclusive_group do not print help

2017-01-31 Thread paul j3
paul j3 added the comment: I'm proposing closing this with reference to http://bugs.python.org/issue22047 That focuses on the issue of adding mutually exclusive group to another exclusive group, but adding Argument Group has the same problems. Solutions, short of the big

[issue22047] argparse improperly prints mutually exclusive options when they are in a group

2017-01-31 Thread paul j3
paul j3 added the comment: A similar issue about nesting an Argument Group inside a Mutually Exclusive Group. http://bugs.python.org/issue24736 -- ___ Python tracker <http://bugs.python.org/issue22

[issue28686] py.exe ignored PATH when using python3 shebang

2017-02-06 Thread Paul Moore
Paul Moore added the comment: > 2) you really want to have meaningful shebangs (ie, version-specific) in your > scripts because, well, 2017 and the world is still split between py2 and py3, This is the one I think is overspecifying. I don't see a really *good* reason for not just

[issue28686] py.exe ignored PATH when using python3 shebang

2017-02-06 Thread Paul Moore
Paul Moore added the comment: I agree, I don't particularly want versioned executables. I'm not sure I see much point to even having versioned launchers - "py -2" and "py -3" seem fine to me if needed. The only use cases I can see are: 1. Use the Python execut

[issue28686] py.exe ignored PATH when using python3 shebang

2017-02-07 Thread Paul Moore
Paul Moore added the comment: > - when inside a venv (almost always) go 'python' the old way, because 'py' is > unreliable here, *unless* you manually check the shebang of your scripts > before you execute them. No. When inside a venv: - If you want to use the

<    17   18   19   20   21   22   23   24   25   26   >