Hans Peter added the comment:
How to fix that? See above post.
--
___
Python tracker
<https://bugs.python.org/issue37720>
___
___
Python-bugs-list mailin
Peter Edwards added the comment:
This is likely a duplicate of issue 21131
--
nosy: +peadar
___
Python tracker
<https://bugs.python.org/issue35484>
___
___
Pytho
New submission from Peter Thomassen:
The truth value of sets is not properly documented, in particular regarding
whether an empty set is considered false or not.
Ignoring primitive (such as numerals) as well as user-defined types,
https://docs.python.org/3/library/stdtypes.html#truth says
Peter Thomassen added the comment:
I submitted a PR on github, and signed the CLA before doing so. (I
double-checked my bpo username in the CLA, and my github username in the bpo
profile.) Still, the bot says I need to sign the CLA. I'm not sure what
Peter Parente added the comment:
Glad to hear it. Cheers, Victor!
--
___
Python tracker
<http://bugs.python.org/issue30473>
___
___
Python-bugs-list mailin
Peter Thomassen added the comment:
I like your most recent suggestion, and updated the PR after fixing a typo
('Fractions') and making it more complete (complex numbers).
Let me know if anything else is needed.
(A mapping is not a specialized set, at least as far as typing is
Peter Otten added the comment:
Read the documentation of os.walk() again. It already walks the complete
directory tree starting with src.
When you invoke it again by calling your copy_dir() method recursively you will
of course see once more the files and directories in the respective
Peter Otten added the comment:
You have probably written your own re.py file which shadows the one in the
standard library. Once you remove or rename your re.py the error should go away.
--
nosy: +peter.otten
___
Python tracker
<h
New submission from Peter Cooney:
Well I'm reading Al Sweigarts Automate the boring stuff, downloaded the exe for
Python 3.6, and got the right 32-bit one, then nothing happens when I run it.
It just does nothing. I do have it set up perfectly well on another computer,
but it won'
New submission from Quentin Peter:
I want to output floats in ENG format. Working with distance in micrometers, it
is a bit annoying to see:
2.5e-5
.0003
instead of
25e-6
300e-6
The solution I found was to redefine `iterencode` but that doesn't feel right.
I would like to see some
Changes by Quentin Peter :
--
keywords: +patch
pull_requests: +3561
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31466>
___
___
Py
Peter Petrik added the comment:
This issue blocks QGIS distribution on MacOS for 10.11 and 10.12 releases,
https://github.com/lutraconsulting/qgis-mac-packager/issues/22
I would like to know how much work is involved to fix the issue, possible
whether there is a plan to fix it. Also we
New submission from Peter Vex :
When you want to simply place a widget on a window and you also want to store
the reference for that widget in a variable you can't do that in one line,
which is really unpleasant, because when you create a new widget these things
are usually the first
Peter Vex added the comment:
I can somewhat agreed with your point, even if it's not too realistic, but
reasonable enough.
Also, I'd only use method chaining, because that'd be the only option. I can't
pass an argument to tk.Label at creation like 'manager="gri
Peter Vex added the comment:
Thank you Zachary, very interesting examples, to say the least!
--
type: enhancement -> behavior
versions: +Python 3.7 -Python 3.8
___
Python tracker
<https://bugs.python.org/issu
Peter Otten <__pete...@web.de> added the comment:
To me the current shlex behaviour makes sense, and the shell (tested with bash)
behaves the same way:
$ python3 -c 'import sys; print(sys.argv)' a b
['-c', 'a', 'b']
$ python3 -c 'impo
Peter Otten added the comment:
While I don't think that the csv module should second-guess broken input you
might consider "fixing" your data on the fly:
def close_quote(line):
if line.count('"') % 2:
line = line.rstrip("\n") + '&qu
New submission from Peter Parente:
Working on this PR (https://github.com/maxpoint/spylon/pull/49), I encountered
an unexpected SystemError in Python 3.6 on my Mac and on Travis Linux.
Exception in thread Thread-4:
Traceback (most recent call last):
File "/Users/parente/miniconda3
Peter Parente added the comment:
Much simpler example:
https://gist.github.com/parente/a4772297459f05e43e12a5820051431b
Wrapping the datetime.datetime.now in a lambda avoids the issue.
--
___
Python tracker
<http://bugs.python.org/issue30
Change by Peter L :
--
nosy: +Peter L3
___
Python tracker
<https://bugs.python.org/issue33944>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter L added the comment:
+1 for python -v listing .pth files found and loaded.
For debugging, I just add a:
import sys; print('Loading mypth.pth')
to the start of the pth file.
A plain print doesn't work(?).
breakpoint() doesn't work(?).
It would be nice to be able
Peter Otten <__pete...@web.de> added the comment:
I see various options to address this.
(1) Change basicConfig() to use __stderr__ instead of stderr to avoid
redirections from within the script.
(2) Change your script to call basicConfig() explicitly, before the temporary
redirection
Change by Peter Otten <__pete...@web.de>:
--
nosy: +peter.otten
___
Python tracker
<https://bugs.python.org/issue36191>
___
___
Python-bugs-list
Peter Otten <__pete...@web.de> added the comment:
[Andrius]
> So it is not possible to consistently manage stderr when it involves >
> logging library without explicitly "manage" it?
That's what I think, at least from within a script. To me redirect_xxx() alway
Peter Otten <__pete...@web.de> added the comment:
That's a bug in your code. You create another ArgumentParser in the toplevel
code of preprocess.py. When this module is imported directly or indirectly your
script will us this parser to parse the command line first. Minimal exam
New submission from Peter McEldowney :
I noticed that I have to add a lot more code to handle contexts in subparsers
that I was expecting would be necessary. This is something I feel should be
handled by the argparse library. What are your thoughts on this?
If you run the sample code with
New submission from Peter Bauer :
In the fourth paragraph, the sentence
"Thus, global variables cannot be directly assigned a value within a function
(unless named in a global statement)"
should somehow be extended to mention the nonlocal-statements:
Thus, global variables or va
Peter Bauer added the comment:
ok, will try to create a pull-request for that, although i'm not a natural
englishman...
--
___
Python tracker
<https://bugs.python.org/is
Change by Peter Bauer :
--
keywords: +patch
pull_requests: +12908
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Peter Tönz added the comment:
I use python 3.8.0a3 to make our testframework ready for the future.
Is it volitional that the Expression "if int in IntEnum:" raise also a
TypeError?
--
nosy: +Peter Tönz
___
Python tracker
<https://bu
New submission from Peter Suter :
For example Anaconda Python is registered under
HKEY_LOCAL_MACHINE\Software\Python\ContinuumAnalytics\Anaconda36-64\ as
described in PEP 514 "Python registration in the Windows registry" .
The py launcher from PEP 397 however ignores that and only
New submission from Peter Bengtsson :
The ZipFile class as a extractall method [0] that allows you to leave the
'members' empty. If empty, the 'members' becomes a list of all the *names* of
files in the zip. Then it iterates over the names as sends each to
`self._extra
Peter Bengtsson added the comment:
(PS. I'm new to filing Python bugs and submitting patches. I *think* this is
the right version. I've only been looking at 'master'.)
--
versions: +Python 3.8
___
Python tracker
<https://bug
Change by Peter Bengtsson :
--
keywords: +patch
pull_requests: +5298
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32742>
___
___
Py
New submission from Peter Rounce :
In my view there is a fault in python3 pdb in that if you use pdb.set_trace()
after using os.chdir() to change the cwd to a directory that does not contain
the source code being executed, then there is no instruction output on next or
step. This is shown in
New submission from Peter Boström :
OS: Windows 10, version 1607 (OS Build 14393.2189)
Python --version: Python 2.7.3
Removing logfiles files just after Popen().wait() outside an open() block is
racy on Windows. This seems to require multiple parallel workers to pull off,
not sure where the
Peter Boström added the comment:
Wow that's old, yeah that's fair (I wouldn't expect this to be backported to
any old releases).
Our current "workaround" is to try os.remove, sleep, repeat X times. This seems
still racy and not something we'd like to have in our
New submission from Peter J :
the root.geometry() top-level window method returns strings like
"212x128+-9+-8" when the window is located in the top left corner. The
documentation only describes geometry strings containing + or - location
coordinates. If this is correct beha
New submission from Peter Lovett :
Documentation of StreamReaderWriter at
https://docs.python.org/3/library/codecs.html#codecs.StreamReaderWriter
section 7.2.1.4.3 is missing the default value on the errors argument.
Should change from:
class codecs.StreamReaderWriter(stream, Reader, Writer
New submission from Peter Wullinger :
The documentation for email.generator.{Bytes,}Generator do not mention that
Generator._handle_multipart_signed() exists and disables header folding for
subparts of multipart/signed.
This may cause some frustration, since, as implemented, rendering a
Peter Otten <__pete...@web.de> added the comment:
A possible workaround is to use create_function():
>>> import sqlite3, math
>>> db = sqlite3.connect(":memory:")
>>> db.execute("select sin(?);", (math.pi,)).fetchone()
Traceback (m
Peter Bašista added the comment:
> Can this crash be reproduced without uvloop?
I am not aware of a way to reproduce this without uvloop.
> What is the backtrace of the assertion failure?
Without uvloop, the following exception is raised:
Exception ignored in: >
Traceback (most re
Peter McCormick added the comment:
I would like to propose the following patch[0] which generalizes the
`PyDTrace_*` definitions to a more generic `PyProbe` structure, in anticipation
of including LTTng support side-by-side with the existing DTrace support.
A couple of argument types in
New submission from Peter Ebden :
We've found that the following code produces non-deterministic bytecode,
even post PEP-552:
def test(x):
if x in {'ONE', 'TWO', 'THREE'}:
pass
It's not too hard to test it:
$ python3.7 -m compileall --
Peter Ebden added the comment:
Thanks for the pointer, I'll have a bit more of a dig into it (although Serhiy
makes a good point too...).
--
___
Python tracker
<https://bugs.python.org/is
Change by Peter Ebden :
--
keywords: +patch
pull_requests: +8885
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34722>
___
___
Py
Change by Peter Petrik :
--
components: +Cross-Build -Build, macOS
nosy: +Alex.Willmer, Peter Petrik
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue31
Peter Otten <__pete...@web.de> added the comment:
You probably saw this is in Python 2.7 where it is the expected behaviour.
All versions of Python 3 should produce the NameError.
--
nosy: +peter.otten
versions: +Python 3.6 -Python 2.7
___
New submission from Peter Santoro:
I've recently hit an issue with pyvenv in Python 3.3.2 that is causing
AttributeErrors in other packages on Windows (see
https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4).
Here's what I believe is going on:
On Wi
Peter Santoro added the comment:
As requested, I've attached a small test script called shadow.py. Steps to
reproduce:
1) pyvenv.py bugtest
2) copy the attached shadow.py script to bugtest and bugtest\scripts
3) cd bugtest
4) run shadow.py (first entry in sys.path is refers to bu
New submission from Peter Santoro:
The attached proposed lru_timestamp function provides developers with more
control over how often lru_cache entries are refreshed. Doc string follows:
def lru_timestamp(refresh_interval=60):
""" Return a timestamp string for @lru_cache deco
Peter Santoro added the comment:
I updated my proposed lru_timestamp function with the following changes:
1) restricted refresh_interval to int type
2) updated doc string
Updated doc string follows:
def lru_timestamp(refresh_interval=60):
""" Return a timestamp string
Peter Santoro added the comment:
I updated my proposed lru_timestamp function with the following change:
1) raise TypeError instead of ValueError
--
Added file: http://bugs.python.org/file31079/lru.py
___
Python tracker
<http://bugs.python.
Peter Otten added the comment:
Note that set operations on dict views work with lists, too. So the only change
necessary is to replace
wrong_fields = [k for k in rowdict if k not in self.fieldnames]
with
wrong_fields = rowdict.keys() - self.filenames
(A backport to 2.7 would need to replace
Peter Otten added the comment:
> a bare expression is not call
Wouldn't that silently swallow a lot of bare
print
statements?
--
nosy: +peter.otten
___
Python tracker
<http://bugs.python.org
Peter Otten added the comment:
David means you should replace the line
conn.commit
in your script which does not invoke the method with
conn.commit()
Side note: as long as you are a newbie it is a good idea to ask on the python
mailing list first before adding a report to the bug tracker
Peter Otten <__pete...@web.de> added the comment:
frame_setlineno() doesn't keep track of with blocks. Here's a patch.
--
keywords: +patch
nosy: +potten
Added file: http://bugs.python.org/file25258/frame_setlineno.patch
___
Pytho
Peter Otten <__pete...@web.de> added the comment:
Patch upload, second attempt.
--
keywords: +patch
nosy: +peter.otten
Added file: http://bugs.python.org/file25298/render_doc.patch
___
Python tracker
<http://bugs.python.org/i
New submission from Peter Eisentraut :
DeprecationWarning was disabled by default in Python 2.7, but the documentation
section "Default Warning Filters" does not list it as ignored. In the 3.x
branches, this was already fixed. Trivial patch attached.
--
assignee: d
New submission from Peter Eisentraut :
The environment variable PYTHONWARNINGS only works with the python interpreter
binary, but not with programs embedding libpython. This could be changed by
moving the code from Modules/main.c to Python/pythonrun.c. See attached patch
(compiles cleanly
Changes by Peter Kleiweg :
--
nosy: -pebbe
___
Python tracker
<http://bugs.python.org/issue11352>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Peter Marheine :
Cross-compiling the interpreter for a system without a definition for ssize_t
fails in PyType_FromSpec (Object/typeobject.c:2380 in the 3.2.3 release, line
2409 in hg 6b8f34a1cb22).
It appears the type of len should be corrected to size_t to match the
New submission from Peter Norvig :
PEP 289 says "the semantic definition of a list comprehension in Python 3.0
will be equivalent to list(). Here is a counterexample
where they differ (tested in 3.2):
def five(x):
"Generator yields the object x five times."
f
Peter Norvig added the comment:
I agree with R. David Murray -- if "correct" means following the PEP 289
semantics, then
list(next(F) for _ in range(10))
should be the same as
def __gen(exp):
for _ in exp:
yield next(F)
list(__gen(iter(range(10
and indeed that i
New submission from Peter VG :
Since strings cannot reliably be converted to floats and back, plistlib should
provide an option to treat the real datatype as strings/data or to use the
Decimal library class. Currently, reading and then writing a real value can
change its representation in the
Peter Otten <__pete...@web.de> added the comment:
Not a python bug. You are ommitting an important detail of the stackoverflow
example in your code:
# we want to treat '/' as part of a word, so override the delimiters
readline.set_completer_delims(' \t\n;')
Please
Peter Donis added the comment:
I recently noticed that there has been a minor code change in the
_load_testfile function in doctest, so I generated a new patch against the
latest pull from Mercurial (cpython). No actual changes to the issue fix, but
this patch should apply cleanly against a
Peter Donis added the comment:
Updated patch to ensure that tests pass when the -v flag is set running the
test suite. This is done by having the helper script, doctest_testfile.py, call
doctest.testfile with verbose=False to ensure there is no output if the test
passes (which is what the
Peter Otten added the comment:
Here's a minimal fix that modifies the sql in sqlite3.dump._iterdump() to sort
the tables by name. It is then no longer necessary to sort the resultset in
Python for the unit tests to pass.
--
keywords: +patch
nosy: +peter.otten
Added file:
New submission from Peter Eisentraut:
The documentation for the csv.DictReader constructor is
.. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None,
dialect='excel', *args, **kwds)
but the implementation is
def __init__(self, f, fieldnames=None, restkey=Non
Peter Inglesby added the comment:
This behaviour is correct. Years divisible by 4 are leap years, except years
divisible by 100, except years divisible 400.
Source http://en.wikipedia.org/wiki/Leap_year.
--
nosy: +inglesp
___
Python tracker
<h
Changes by Peter Inglesby :
--
nosy: +larry
___
Python tracker
<http://bugs.python.org/issue16078>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Inglesby added the comment:
The attached patch updates the error message to:
>>> int(base=100, x='123')
Traceback (most recent call last):
File "", line 1, in
ValueError: int() base must be >= 2 and <= 36, or 0
--
keywords: +pa
Peter Inglesby added the comment:
Ah, sorry about that. Are you happy for me to write the test?
Poking around the C API docs suggests that I should call PyErr_Fetch() to get
the value of the a raised exception, but I can't see any precedent for this in
existing test code. Can you poi
Peter Inglesby added the comment:
Have attached a patch with suggested update.
Have also grepped for similar issues elsewhere in documentation, and haven't
found anything, but may have missed something.
--
keywords: +patch
nosy: +inglesp
Added file: http://bugs.python.org/file
Peter Russell added the comment:
Attached is a patch which adds a reference to the doseq parameter to urlencode
to the documentation for parse_qs
--
keywords: +patch
nosy: +qwertyface
Added file: http://bugs.python.org/file27331/Issue-15593.patch
Peter Russell added the comment:
I can confirm that the current equivalent to Mark's original test case works as
expected on default.
I recommend closing this issue.
--
nosy: +qwertyface
___
Python tracker
<http://bugs.python.org/is
Peter Inglesby added the comment:
Ok, I've now attached a patch with tests.
--
Added file: http://bugs.python.org/file27353/issue16055-fix-with-tests.patch
___
Python tracker
<http://bugs.python.org/is
New submission from Peter Würtz:
I think the PEP8 examples for arithmetic expressions are a bit misleading.
(http://www.python.org/dev/peps/pep-0008/#id20)
The text clearly says that it should add spaces around operators of low(est)
priority, which means that I'm encouraged to visually
Peter Würtz added the comment:
>> x * 2 - 1 is less clear than x*2 - 1
> I don't feel this. Anyone else feel this?
I strongly feel so. And if you don't take my word for it, just open any math
book or look at any formula and recognize that it is the general consensus that
Peter Santoro added the comment:
I've attached a zip file which contains a test script and test zip files for
the previously submitted Python 3.3.5 patch. See the included README.txt for
more information. To view the contents of the included bad.zip file, use the
following command:
&g
Peter Eisentraut added the comment:
No, the second use should not be converted.
--
___
Python tracker
<http://bugs.python.org/issue11122>
___
___
Python-bug
Peter Kruse added the comment:
Hello,
it seems that the solution to this issue causes the failure to
compile the pyexpat extension in my case. If I do not include
pyexpatns.h in expat_external.h then the compile succeeeds.
I will attach the output for both cases. There was no problem
with
Changes by Peter Kruse :
Added file: http://bugs.python.org/file34510/without-pyexpatns.txt
___
Python tracker
<http://bugs.python.org/issue19186>
___
___
Python-bug
Peter Santoro added the comment:
It seems clear to me that the logic in shutil._unpack_zipfile that silently
skips paths that start with '/' (indicates absolute path) or that contain
references to the parent directory ('..') was added to prevent malicious zip
files f
Peter Otten added the comment:
As every beginner will learn about (and probably overuse) range() pretty soon I
think it's OK to use that form.
The math-inspired notation [0, 255] may be misinterpreted as a list. You also
lose the consistency of preferring half-open intervals everywhere.
New submission from Peter Inglesby:
The following code causes a segfault when run under Python3.4+ on OSX10.9.
# segfaulter.py
import asyncio
class A:
pass
class B:
def __init__(self, future):
self.future = future
def __del__(self):
self.a = None
Peter Inglesby added the comment:
It was actually through playing with aiohttp that I first hit this issue. I
think I originally hit the problem with something like:
import asyncio
import aiohttp
@asyncio.coroutine
def do_work(future):
response = yield from aiohttp.request('get
Peter Kruse added the comment:
Fascinating, you are right, very good, thanks for your time and looking into
this.
Peter
--
___
Python tracker
<http://bugs.python.org/issue19
Peter Otten added the comment:
Here's a simpler demo for what I believe you are experiencing:
$ mkdir package
$ cd package/
$ touch __ini__.py module.py
$ export PYTHONPATH=..
$ python3
Python 3.3.2+ (default, Feb 28 2014, 00:52:16)
[GCC 4.8.1] on linux
Type "help", "copy
Changes by Peter Otten <__pete...@web.de>:
--
nosy: +peter.otten
___
Python tracker
<http://bugs.python.org/issue5950>
___
___
Python-bugs-list mailing list
Changes by Peter Eisentraut :
--
nosy: +petere
___
Python tracker
<http://bugs.python.org/issue444582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Eisentraut added the comment:
I ran into a similar instance of this problem today and would like to add my
support for just getting rid of the "rpm" calls and just call "rpmbuild" in all
cases. The last release where "rpm" was used for buildi
New submission from Peter Stahl:
Yesterday, I opened a question on Stackoverflow that explains my problem in
detail. Please read this page first:
http://stackoverflow.com/questions/14287051/german-number-separators-using-format-language-on-osx
A short summary: I'm on OSX 10.8.2. I want
Peter Stahl added the comment:
Using the locale 'de_DE', the output is:
{'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 0,
'frac_digits': 2, 'thousands_sep': '', 'n_sign_posn':
Peter Otten added the comment:
This could be a duplicate of issue14591.
--
nosy: +peter.otten
___
Python tracker
<http://bugs.python.org/issue17020>
___
___
Pytho
Peter Otten added the comment:
Be aware that for a 1-tuple the trailing comma is mandatory:
>>> print (u"äöü") # this is a string despite the suggestive parens
äöü
>>> print (u"äöü",) # this is a tuple
(u'\xe
New submission from Peter Graham:
On Windows, subprocess.Popen requires the executable name and working directory
to be ascii. This is because it calls CreateProcess instead of CreateProcessW.
--
components: Library (Lib), Unicode, Windows
messages: 199976
nosy: ezio.melotti, peter0
New submission from Peter Harris:
Documentation on python website says:
xml.etree.ElementTree.iterparse(source, events=None, parser=None)
Parses an XML section into an element tree incrementally, and reports what’s
going on to the user. source is a filename or file object containing XML
Peter Harris added the comment:
Yeah it would make sense to accept any iterable, but I'm only proposing a
documentation fix not a feature enhancement.
--
___
Python tracker
<http://bugs.python.org/is
301 - 400 of 672 matches
Mail list logo