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
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
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
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
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 ]
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
+
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
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
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
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(
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
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
Changes by paul rubin :
--
type: -> feature request
___
Python tracker
<http://bugs.python.org/issue7153>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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
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
Paul Moore added the comment:
I can confirm it fixes the issue, too.
--
___
Python tracker
<http://bugs.python.org/issue7341>
___
___
Python-bugs-list mailin
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
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
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
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
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
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
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
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
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
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
Changes by Paul Moore :
___
Python tracker
<http://bugs.python.org/issue5135>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/
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
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.
Changes by Paul Moore :
--
nosy: +pmoore
___
Python tracker
<http://bugs.python.org/issue2889>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
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
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
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
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
Changes by paul rubin :
--
components: +Library (Lib)
type: -> feature request
versions: +Python 2.5
___
Python tracker
<http://bugs.python.org/iss
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
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
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
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
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
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
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
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
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
Paul Moore added the comment:
Full test suite also looks OK.
--
___
Python tracker
<http://bugs.python.org/issue9144>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
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
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(
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
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 "",
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
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
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
Changes by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<http://bugs.python.org/issue27153>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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
Changes by paul j3 :
--
priority: normal -> high
___
Python tracker
<http://bugs.python.org/issue14156>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
Changes by paul j3 :
--
priority: normal -> high
___
Python tracker
<http://bugs.python.org/issue11874>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
Paul Moore added the comment:
Thanks for letting us know
--
___
Python tracker
<http://bugs.python.org/issue29093>
___
___
Python-bugs-list mailing list
Unsub
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 =
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
Changes by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<http://bugs.python.org/issue14392>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<http://bugs.python.org/issue9182>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<http://bugs.python.org/issue14102>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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
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
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
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
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
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
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
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
Changes by paul j3 :
--
priority: normal -> high
___
Python tracker
<http://bugs.python.org/issue9625>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by paul j3 :
--
priority: normal -> high
___
Python tracker
<http://bugs.python.org/issue9338>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
Changes by paul j3 :
--
priority: normal -> high
___
Python tracker
<http://bugs.python.org/issue14074>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
paul j3 added the comment:
Another issue requesting a 'mutually dependent group'
http://bugs.python.org/issue23298
--
___
Python tracker
<http://bugs.python.o
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
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
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
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
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
2101 - 2200 of 3212 matches
Mail list logo