Thomas Guettler added the comment:
The docs should be where new users look.
I don't speak about several hundret words
Where do you think new users look for documentation if they want a method which
does find a module?
--
___
Python tr
Thomas Kluyver added the comment:
Thanks, that was an oversight. Patch 5 adds CompletedProcess to __all__.
--
Added file: http://bugs.python.org/file38574/subprocess_run5.patch
___
Python tracker
<http://bugs.python.org/issue23
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue23735>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
I am still keen for this to move forwards. I am at PyCon if anyone wants to
discuss it in person.
--
___
Python tracker
<http://bugs.python.org/issue23
Thomas Kluyver added the comment:
Great! I'm free after my IPython tutorial this afternoon, all of tomorrow, and
I'm around for the sprints.
--
___
Python tracker
<http://bugs.python.o
Thomas Wouters added the comment:
I left some style comments in the rietveld review. However, a bigger questions
is whether we should change list at all. I think we should; the change is
fairly straightforward, there is some value in it and it's a good idea to keep
bytearray and other mu
Thomas Ballinger added the comment:
v4 of patch, with tests updated for changed lines in inspect fodder file
--
Added file: http://bugs.python.org/file38959/issue21217-v4.patch
___
Python tracker
<http://bugs.python.org/issue21
Thomas Ballinger added the comment:
Patch reformatted to be non-git style, NEWS item removed
--
Added file: http://bugs.python.org/file38965/issue21217-v5.patch
___
Python tracker
<http://bugs.python.org/issue21
Thomas Ballinger added the comment:
Use dis.findlinestarts() to find lines of function instead of grubbing with
co_lnotab manually, making dis module dependency non-optional.
--
Added file: http://bugs.python.org/file38970/issue21217-v6.patch
Thomas Kluyver added the comment:
6a following in-person review with Gregory:
- Reapplied to the updated codebase.
- Docs: mention the older functions near the top, because they'll still be
important for some time.
- Docs: Be explicit that combined stdout/stderr goes in stdout attr
Thomas Wouters added the comment:
Yes. The test doesn't run with more than the requested "units", but if you
run it without -M it does run with a very small number, in order to make
sure the tests don't bitrot.
The mechanism could do with an overhaul though; I wrote it in 2
Thomas Ballinger added the comment:
Thanks Antoine! Could you add Allison Kaptur to NEWS and ACKS? This was an
update to her original patch, and we paired on the whole thing.
--
___
Python tracker
<http://bugs.python.org/issue21
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue23955>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
Relative paths would be nice for Pynsist - I would prefer to create the config
file at build time and then install it along with the other files. If it needed
absolute paths, then the installer would have to write the config file after
the user selects the
Thomas Wouters added the comment:
Rewriting the tests shouldn't block this specific issue, no. Also, don't use
multiprocessing for it. I would just use subprocess to start a separate process
(which might after all be OOM-killed,) check the exitcode, and record its
stderr in case
Thomas Kluyver added the comment:
I expect this can be closed now, unless there's some post-commit review
somewhere that needs addressing?
--
___
Python tracker
<http://bugs.python.org/is
Thomas Kluyver added the comment:
Would that option be the only thing that needs to be set to make Python
app-local? I'm not familiar with what lives in pyvenv.cfg.
--
___
Python tracker
<http://bugs.python.org/is
Thomas Wouters added the comment:
The latest patch looks good to me. No need to do the additional AST refactoring
if it's going to make PEP 492's implementor's life harder (but I do read
Guido's comment as a reason to check this in sooner rather than later :>) So,
unl
New submission from Thomas Güttler:
I am missing a policy how sys.path should be altered.
We run a custom sub class of list in sys.path. We set it in sitecustomize.py
This instance get replace by a common list in lines like this:
sys.path = glob.glob(os.path.join(WHEEL_DIR, "
Thomas Wouters added the comment:
FYI, I meant last Monday, but I forgot it was May 4th (Dutch Memorial day) and
May 5th (Dutch Liberation day), so that got in the way :P
Should we keep this bug open for docs changes, or is there a separate issue for
that
New submission from Thomas Caswell:
On the current tip (changeset: 96023:4b5461dcd190) the following results in a
syntax error
def test(a='a', b='b'):
print(a, b)
opta = dict()
optb = dict(a=1, b=2)
test(**(opta or {})) # <- works on all python
test(**optb or {})
Thomas Kluyver added the comment:
Here's a simple patch that links to Green Tree Snakes from the ast module docs,
using the 'sidebar' directive (that's what the logging module uses to link to
tutorials, which seemed analogous).
I'm still happy to contribute these
New submission from Thomas Güttler:
The Python tarfile library does not detect a broken tar.
user@host$ wc -c good.tar
143360 good.tar
user@host$ head -c 13 good.tar > cut.tar
user@host$ tar -tf cut.tar
...
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
V
Thomas Grainger added the comment:
But distutils is a core Python module...
On 9 Sep 2016 00:43, "Christian Heimes" wrote:
>
> Christian Heimes added the comment:
>
> Please take this idea to https://www.pypa.io/
>
> --
> nosy: +christian.heimes
> re
New submission from Thomas Wouters:
The attached patch adds a --testonly mode to the 'perf.py' benchmark runner,
which runs the selected benchmarks in the fastest possible way with just one
interpreter (without filtering out slow benchmarks, or benchmarks that can't
run in
Thomas Levine added the comment:
I just upgraded from 3.5.1 to 3.5.2 and found that I couldn't authenticate to
PyPI anymore. And then I remembered that this had been fixed, so removed the
extra percent sign, and my uploads worked. T
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue28384>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Guettler added the comment:
@Mariatta thank you very much. This update makes the docs easy to read and
understand. Thank you :-)
--
___
Python tracker
<http://bugs.python.org/issue26
New submission from Thomas Becker:
I am using Python 2.7.10 on Windows 8. While writing some code in NodeJS I
noticed the following behaviour: `python --version` prints its output to stderr
instead of stdout.
In most cases this won't make any difference because both streams print t
New submission from Thomas Waldmann:
zipfile.is_zipfile has false positives way too easily.
I just have seen it in practive when a MoinMoin wiki site with a lot of pdf
attachments crashed with 500. This was caused by a valid PDF that just happened
to contain PK\005\006 somewhere in the middle
Thomas Waldmann added the comment:
patch for py2.7
The EOCD structure is at EOF.
It either does not contain a comment (this is what the existing code checks
first) or it contains a comment of the length that is specified in the
structure.
The patch checks consistency specified length vs
Thomas Waldmann added the comment:
Note: checking the first bytes of the file (PK..) might be another option.
But this has the "problem" that a self-extracting zip starts with an executable
that has different first bytes.
So whether this is an option or not depends on whether
New submission from Thomas Kluyver:
Pdb.checkline() does a hasattr() check to protect against self.curframe not
existing. self.curframe can also be None (if self.forget() or self.reset() was
called), but checkline() does not handle this.
The attached patch treats self.curframe == None as
New submission from Reuben Thomas:
In Python 3.5.2, with a positional argument with nargs='*', running the program
with no arguments gives an error like this:
usage: caffeinate [-h] [-V] COMMAND [ARGUMENT [ARGUMENT ...]]
caffeinate: error: the following arguments are require
Reuben Thomas added the comment:
Thanks very much for this. It would be great if the redundancy I referred to in
the usage message could also be removed, so that instead of "[ARGUMENT
[ARGUMENT ...]]" it just said "[ARGUMENT ...]".
(Similarly, for a '+' argumen
Reuben Thomas added the comment:
> Try `nargs='?'` or try providing a `default` along with the '*'.
Why would I do that? I want 0 or more arguments, and there's no default value.
> Including your ARGUMENT action in the error message is intentional.
It will like
Reuben Thomas added the comment:
Thanks, that's a simple, robust workaround.
I'll duck out now and leave the Python experts to sort out the underlying
problem, if they can; I think it's still well worth sorting out, though
documenting the problem and workaround would be m
Thomas Kluyver added the comment:
I still feel that having one function with various options is easier to explain
than three separate functions with awkward names and limited use cases (e.g. no
capturing output without checking the exit code). The tweeter you replied to
said he didn't
Thomas Arendsen Hein added the comment:
Default python3 on Debian buster:
$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import email.mim
New submission from Thomas Barnet-Lamb :
It appears that StreamReader's readlines method behaves in a strange manner if
the StreamReader has, in a previous read operation, decoded more characters
than the user asked for; this happens when both the chars and size parameters
are used, but
Changes by Thomas Barnet-Lamb :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue12446>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Thomas Barnet-Lamb :
--
title: StreamReader Readlines -> StreamReader Readlines behavior odd
___
Python tracker
<http://bugs.python.org/issu
Thomas Vander Stichele added the comment:
It's too bad this is closed out of date because
a) the macro is still there being distributed
b) it simply hangs!
c) there's no easy way to figure out that you should be using something else
instead.
I spent a few hours of my life figuri
Thomas Vander Stichele added the comment:
Maybe I am missing something, but why was it ok for this patch to move
EXTENDED_ARGS from 143 to 145 ? I thought the numbers for opcodes were part of
the ABI ?
--
nosy: +thomasvs
___
Python tracker
<h
Thomas Vander Stichele added the comment:
Really ? Is this documented somewhere ? Do you know of any other case where a
number for an existing opcode was changed ? I can't find any so far.
--
___
Python tracker
<http://bugs.python.org/i
Thomas Vander Stichele added the comment:
Well, I just checked, and from 2.3 to 2.6 opcodes were only added, existing
ones were never renumbered.
2.7 however reshuffled a bunch of them, for no apparent reason at all:
$ diff -au opcodes-2.6 opcodes-2.7
--- opcodes-2.6 2010-12-04 20:47
Thomas W. Barr added the comment:
It's just a test. Finishing the patch completely slipped my mind. I'll work on
it later tonight.
--
___
Python tracker
<http://bugs.python.
Thomas W. Barr added the comment:
I'm still reasonably new to the codebase, but I'm certainly going to try to fix
the issue.
--
___
Python tracker
<http://bugs.python.
Thomas Arendsen Hein added the comment:
Roger Demetrescu, I filed the issue with "Python 2.4", because the behavior
changed somewhere between 2.4.2 and 2.4.3
The updated link to the MoinMoin bug entry is:
http://moinmo.in/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded
The workar
Thomas Dybdahl Ahle added the comment:
Why not just add support to the set container?
As far as I know, it is a binary search tree, so supporting random picking in
O(logn) should be easy.
--
nosy: +Thomas.Dybdahl.Ahle
___
Python tracker
<h
Thomas Dybdahl Ahle added the comment:
I'm sorry. I see the problem then.
Do you know, if there are any plans of adding a fast balanced binary search
tree to pythons stdlib?
--
___
Python tracker
<http://bugs.python.org/i
New submission from Thomas Dybdahl Ahle:
I have a pygtk program, that uses a fairly lot of threads in a pool. All
of these threads are setDaemon to ensure the application shuts down when
I call gtk.main_quit()
About every second time I close the app, I get one or more errors from
places in the
Thomas Dybdahl Ahle added the comment:
The fix looks nice.
I'll just implement it locally in my app for python < 2.4.
Thanks
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pyt
Thomas Dybdahl Ahle added the comment:
I run this now in the beginning of my code. As far as I can see it works
fine.
if not hasattr(Thread, "_Thread__bootstrap_inner"):
class SafeThread (Thread):
def encaps(self):
try:
self._Thread__boots
Thomas Dybdahl Ahle added the comment:
> which means no global namespace access
Does that mean that you cannot use len and range in a Thread?
--
nosy: +lobais
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Thomas J. Gallen added the comment:
Yes, a package. There isn't actually that much in the txz. Most of the files
are ostensibly empty.
As an example, let's say we have the following files:
test.py
test_module/__init__.py
test_module/test_submodule.py
test.py contains:
```pyt
Thomas J. Gallen added the comment:
parent module* rather. Just saw that typo.
--
___
Python tracker
<https://bugs.python.org/issue43477>
___
___
Python-bug
Thomas J. Gallen added the comment:
Given the previous example, in test.py, replace:
```
print(test_module.test_submodule)
```
...with:
```
assert(not hasattr(test_module, "test_submodule"))
```
...because the issue is only the bottom half of `_find_and_load_unlocked`.
Specifi
New submission from Thomas M. Alldread :
Several attempts to install numpy/scipy packages failed. Pip reported pages of
error information. Reverting back to version 3.8.5 resolved the issue using the
exact same procedure.
--
components: Extension Modules, Installation, Windows
Thomas Dybdahl Ahle added the comment:
For anyone who finds this through google,
if you are finding the inverse mod a prime, you can use fermats little theorem:
pow(a, -1, mod) = pow(a, a-2, mod).
(You also need that mod doesn't divide a).
--
nosy: +Thomas.Dybdahl
Thomas W. Barr added the comment:
I'll update my patch to work on the current 3.x head later tonight.
--
___
Python tracker
<http://bugs.python.org/i
New submission from Thomas Dybdahl Ahle :
Given a generator `f()` we can use `random.sample(list(f()), 10)` to get a
uniform sample of the values generated.
This is fine, and fast, as long as `list(f())` easily fits in memory.
However, if it doesn't, one has to implement the reservoir sam
Thomas Dybdahl Ahle added the comment:
Installing libffi-dev worked for me.
--
nosy: +thomasahle
___
Python tracker
<https://bugs.python.org/issue31652>
___
___
Thomas Arendsen Hein added the comment:
I just stumbled across this problem when starting "idle3" in a directory
containing a copy of textwrap.py which was not compatible with python3.
In issue13506 idle3 was changed to behave like the regular python shell, i.e.
as described he
New submission from Thomas Eldon Allred :
asyncio.BaseEventLoop.connect_accepted_socket was added in v3.5.3 Please add a
note to the documentation.
--
assignee: docs@python
components: Documentation
messages: 306650
nosy: Thomas Eldon Allred, docs@python
priority: normal
severity
Thomas Dybdahl Ahle added the comment:
Just wanted to add another use-case. In a project I'm working on, we are
building a lot of graphs using code like this:
```
nodes = [
Node('node-name1',
children=[...],
classifier=has_foo),
Node('node-name2
New submission from Anoop Thomas Mathew:
Comment in the test_number.py in ctypes test hold a typo bug. Instead of
superseeded, it should be superseded. Patch attached.
--
assignee: docs@python
components: Documentation, Tests
files: ctypes_test_typo.patch
keywords: patch
messages
Anoop Thomas Mathew added the comment:
Made it explicit that close() will close only the mmap, and file will not be
closed. Patch attached.
--
keywords: +patch
nosy: +Anoop.Thomas.Mathew
Added file: http://bugs.python.org/file31689/mmap_close_documentation.patch
Changes by Anoop Thomas Mathew :
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
___
Python tracker
<http://bugs.python.org/issue18981>
___
___
Python-bug
New submission from Thomas Dybdahl Ahle:
The statistics module currently contains the following comment:
"FIXME: investigate ways to calculate medians without sorting? Quickselect?"
This is important, because users expect standard library functions to use state
of the art implementa
Thomas Dybdahl Ahle added the comment:
I have written some proof of concept code here [1], I would appreciate you
commenting on it, before I turn it into a patch, as I haven't contributed code
to Python before.
I have tried to write it as efficiently as possible, but it is of course
pos
Thomas Dybdahl Ahle added the comment:
If you have a good, realistic test set, we can try testing quick-select vs
sorting. If it's still not good, I can also reimplement it in C.
--
___
Python tracker
<http://bugs.python.org/is
Thomas Dybdahl Ahle added the comment:
I think "minimize expected-case time" is a good goal. If we wanted "minimize
worst-case time" we would have to use k-means rather than quickselect.
My trials on random data, where sort arguably has a disadvantage, suggests
sorting is
Thomas Dybdahl Ahle added the comment:
I don't know if it's worth the overhead to implement a multiselect, given we
only expose a median function.
I've rewritten select2 to be intro, just falling back on sorting. This doesn't
appear to degrade the performance.
I also ad
Anoop Thomas Mathew added the comment:
Patch for BOM signature documentation in json.loads
--
keywords: +patch
nosy: +Anoop.Thomas.Mathew
Added file:
http://bugs.python.org/file31764/json_BOM_signature_documentation.patch
___
Python tracker
<h
Anoop Thomas Mathew added the comment:
40% faster collections.Counter() . Removed C accelerator. Patch attached.
Passes all tests. Results comparison follows.
--
keywords: +patch
nosy: +Anoop.Thomas.Mathew
Added file:
http://bugs.python.org/file31774
Anoop Thomas Mathew added the comment:
Performance comparison with and without patch applied.
--
Added file: http://bugs.python.org/file31775/performance_comparision.csv
___
Python tracker
<http://bugs.python.org/issue18
Thomas W. Barr added the comment:
The Sniffer.sniff routine doesn't set the doublequote property at all
right now. I'm working on a patch to see if I can add this functionality.
--
nosy: +twb
type: behavior -> feature request
___
P
Thomas W. Barr added the comment:
Test for this issue.
--
keywords: +patch
Added file: http://bugs.python.org/file14610/test_csv.py.diff
___
Python tracker
<http://bugs.python.org/issue6
Thomas W. Barr added the comment:
Patch for the issue. Looks for extraneous quote inside the quotes by the
delimiters.
--
Added file: http://bugs.python.org/file14611/csv.py.diff
___
Python tracker
<http://bugs.python.org/issue6
Thomas W. Barr added the comment:
The documentation doesn't actually say what parameters are sniffed, so
technically, that doesn't need to be changed. Should this be added?
--
___
Python tracker
<http://bugs.python.
Changes by Thomas W. Barr :
Removed file: http://bugs.python.org/file14611/csv.py.diff
___
Python tracker
<http://bugs.python.org/issue6606>
___
___
Python-bugs-list m
Thomas W. Barr added the comment:
Reformatted line in patch.
--
Added file: http://bugs.python.org/file14612/csv.py.diff
___
Python tracker
<http://bugs.python.org/issue6
Thomas W. Barr added the comment:
Patch uploaded to rietveld: http://codereview.appspot.com/96202/show
--
___
Python tracker
<http://bugs.python.org/issue6
Thomas W. Barr added the comment:
I'm not actually sure where we go from here. This is my first attempted
patch to this project, and I was hoping that someone else would be more
knowledgeable about the process;-)
--
___
Python tracker
Thomas W. Barr added the comment:
Got it. Yes, they're the same patch.
--
___
Python tracker
<http://bugs.python.org/issue6606>
___
___
Python-bugs-list m
Thomas W. Barr added the comment:
The string module, however, fails to properly capitalize anything in quotes:
>>> string.capwords("i pity the 'foo'.")
"I Pity The 'foo'."
The string module could be easily made to work like the object. The
Thomas W. Barr added the comment:
If "correct handling of apostrophe's and quotation marks, keeping the
string length unchanged, and only changing desired letters from lower to
uppercase with no other side-effects" is the criterion we want, then
what I suggested (toupper() the
Changes by Thomas W. Barr :
--
nosy: +twb
___
Python tracker
<http://bugs.python.org/issue6972>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas W. Barr added the comment:
Do people have an opinion as to whether this should be fixed with a
docfix, fixed as default (with option to allow path traversal) or fixed as
a non-default option? The same issue exists in ZipFile.extract, but in
that case you're presumably passing a
Thomas W. Barr added the comment:
My working solution is to iterate through members, and ensuring that
os.path.abspath(os.path.join(path, member)) always .startswith(path).
This seems like a better solution than trying to trap on a pattern in
the string. Presumably the same fix can be made to
Thomas W. Barr added the comment:
Uploading test.
--
keywords: +patch
Added file: http://bugs.python.org/file15002/zipfile-6972-test.diff
___
Python tracker
<http://bugs.python.org/issue6
Thomas W. Barr added the comment:
Uploading patch. This actually should fix my theoretical symlink bug
since realpath() properly follows symlinks. The only thing that I
haven't been able to test is the behavior of realpath() on
case-insensitive operating systems. This should do the right
Thomas W. Barr added the comment:
As for the documentation, it might be a wise idea to up date the current
documentation to mention this issue, until the next release. I'm not
really sure what the process is for doing that, though...
--
___
P
Thomas W. Barr added the comment:
zf.extract() is unsafe for the same reason. My patch fixes this issue,
but we should mention the possible bug in the documentation there as
well. They do this for the similar bug in tarfile.
I've copy/pasted the mention in tarfile.extract() to zipfile.ex
Changes by Thomas W. Barr :
Removed file: http://bugs.python.org/file15002/zipfile-6972-test.diff
___
Python tracker
<http://bugs.python.org/issue6972>
___
___
Python-bug
Thomas W. Barr added the comment:
My apologies, I clicked the wrong button and deleted my test. There is no
change in the newly uploaded one.
--
Added file: http://bugs.python.org/file15005/zipfile-6972-test.diff
___
Python tracker
<h
Thomas W. Barr added the comment:
os.path.realpath() doesn't normalize case, so this could have issues on
Windows. The new patch should not.
The Mac version of os.path.normpath doesn't change the path, as per the
posix version, which isn't correct on HFS+, which is not case se
Changes by Thomas W. Barr :
Removed file: http://bugs.python.org/file15003/zipfile-6972-patch.diff
___
Python tracker
<http://bugs.python.org/issue6972>
___
___
Python-bug
Thomas W. Barr added the comment:
Good point, I'd forgotten that case-sensitive file systems are an
option. I do know that it's not the default, though, and that as shipped
from Apple, at least the consumer machines are case-insensitive. Things
may be different in server-land.
For
1701 - 1800 of 1806 matches
Mail list logo