Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11380
___
___
Python-bugs-list
New submission from Aivar Annamaa:
Following program gives correct result in Python versions older than 3.4, but
incorrect result in 3.4:
--
import ast
tree = ast.parse(sin(0.5))
first_stmt = tree.body[0]
call = first_stmt.value
print(col_offset of call expression:,
Aivar Annamaa added the comment:
... also, lineno is wrong for both Call and call's func, when func and
arguments are on different lines:
import ast
tree = ast.parse((sin\n(0.5)))
first_stmt = tree.body[0]
call = first_stmt.value
print(col_offset of call expression:, call.col_offset)
Changes by Aivar Annamaa aivar.anna...@gmail.com:
--
nosy: +Aivar.Annamaa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16806
___
___
New submission from Luiji Maryo:
It has occurred to me while testing an SMTP server with smtplib that it sends
commands in lower-case. This is problematic because, although most SMTP servers
seem to be case-insensitive, RFC 5321 (SMTP) doesn't seem to explicitly require
this and there may be
New submission from Daniel Andersson:
Regarding the `skipinitialspace` parameter to the different CSV reader dialects
in the `csv` module, the official documentation asserts:
When True, whitespace immediately following the delimiter is ignored.
and the `help(csv)` style module
New submission from Thomas Levine:
This command used to work just fine for me. ::
python setup.py register
Now it doesn't. For example, ::
$ python3 setup.py register
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution
option: 'install_requires'
New submission from Bernie Keimel:
LinkedIn
Ich möchte Sie zu meinem beruflichen Netzwerk auf LinkedIn hinzufügen.
- Bernard Keimel
Bernard Keimel
Business bei privat
Berlin und Umgebung, Deutschland
Bestätigen, dass Sie Bernard Keimel kennen:
Changes by Berker Peksag berker.pek...@gmail.com:
--
Removed message: http://bugs.python.org/msg216782
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21299
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -Bernie.Keimel
resolution: - not a bug
stage: - committed/rejected
status: open - closed
title: Einladung in mein Netzwerk bei LinkedIn - Spam
___
Python tracker rep...@bugs.python.org
New submission from Merlijn van Deen:
Which would make sense, but email.policy.Compat32 is *actually* the default
policy. This patch adapts the documentation to reflect this.
--
assignee: docs@python
components: Documentation
files: defaultpolicy.diff
keywords: patch
messages: 216783
Aaron Briel added the comment:
I had a rouge compiled python file named email.pyc. My apologies.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21290
___
Steve added the comment:
It is under windows
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21292
___
___
Python-bugs-list mailing list
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21292
___
___
Python-bugs-list mailing
Steve added the comment:
A bit more info:
- When building in debug you need the Pythonxx_d.lib.
- This lib does not come with the normal install (or any other install). That
part is fine and normal (you don't include debug libs with install).
- To get that lib you have to build Python in debug
Thomas Wouters added the comment:
I don't understand the story with ffi_convenience here. Perhaps someone else on
python-dev remembers what it was for and whether we need it for any platforms,
still?
--
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
Your more recent patch looks like it's missing the changes to Doc/make.bat,
which I assume was unintentional :). Also, thinking about it again, it would
be good to use a %SPHINXBUILD% variable rather than hard-coding sphinx-build
into the script, the same way
Matthew Woodcraft added the comment:
For the record: the '-I' option (#16499) in Python 3.4 disables sys.path[0]
initialisation (among other things).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13475
Roundup Robot added the comment:
New changeset f776771ab0ee by Antoine Pitrou in branch 'default':
Issue #21068: The ssl.PROTOCOL* constants are now enum members.
http://hg.python.org/cpython/rev/f776771ab0ee
--
nosy: +python-dev
___
Python tracker
Antoine Pitrou added the comment:
Ok, since this is a low-risk change I've made it anyway.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Ok, it came to me that converting to one of the PROTOCOL* constants can fail in
the following case: Python is linked with an OpenSSL that supports a more
recent protocol version than the ssl module is aware of. SSL_get_version() can
then return a protocol
Giampaolo Rodola' added the comment:
Debatable. Maybe I'm +0.1 for returning the plain string. IMO when it comes to
stdlib modules, enums are only really useful for converting integer constants.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Here is a proposed patch (with tests).
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file34965/urandom_fd_reopen.patch
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Hmm, the patch doesn't release the GIL around the fstat() calls, I wonder if
that's necessary.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21207
___
New submission from Alain Mellan:
A lot of times paths are manipulated with environment variables that may even
be expanded multiple times in a loop. For example, I have a path defined as
$RUNDIR/logfile.txt and expanding the path for a bunch of different RUNDIRs
in a loop.
By default, it
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +pitrou
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21301
___
___
Terry J. Reedy added the comment:
When quoting from the docs, it is helpful to give a link.
https://docs.python.org/2/library/multiprocessing.html#examples
That also identifies the version.
I verified that the example fails on my 2.7.6 Windows 7 with
PicklingError: Can't pickle type
Fletcher Tomalty added the comment:
+1
It's very annoying to have to import expand user from os.path, when pathlib
should be a full replacement for that module. Thanks to those working on this!
--
nosy: +fletom
___
Python tracker
New submission from Shankar Unni:
I know that an earlier request to use nanosleep() has been rejected as
wontfix, but I'm filing this one for a different reason.
Today, timemodule.c:floatsleep() calls select() on platforms that support it.
On Linux, select() with a timeout has an unfortunate
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
keywords: +3.4regression
nosy: +flox
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21295
___
New submission from Michael Boldischar:
Here is my code:
self._image_set_number = Spinbox(self._ramp_group, from_=0, to=999,
command=self.reset_rep, format=%03.0f)
self._repetition_change = Spinbox(self._ramp_group, from_=00, to=99,
format=%02.0f)
On Linux, the spinners behave as
Changes by Michael Boldischar bold0...@umn.edu:
--
components: +Tkinter
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21303
___
Changes by Michael Boldischar bold0...@umn.edu:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21303
___
___
Python-bugs-list
Zachary Ware added the comment:
Can you tell us some version numbers, please? Specifically, which micro
version of Python 2.7 (e.g. 2.7.6) on both platforms, and what version of Tcl
on Linux? Tcl on Windows should be version 8.5.2; if it's different, please
tell us that too. Here's the
Roundup Robot added the comment:
New changeset 02fec733f760 by Zachary Ware in branch '3.4':
Issue #21289: Fix documentation building on Windows using Doc/make.bat.
http://hg.python.org/cpython/rev/02fec733f760
--
nosy: +python-dev
___
Python tracker
Zachary Ware added the comment:
Fixed, thanks for the patch! I went ahead and implemented my comments and
committed it.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
In 2.x, 1 is guaranteed to be true, in that sense that
if 1: print 'true'
is guaranteed to print 'true', while True is not necessarily true.
True = 0
if True: print 'yes'
So 2.x docs should not be changed.
--
nosy: +terry.reedy
versions: -Python
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: docs@python - terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21232
___
___
Roundup Robot added the comment:
New changeset 604b74f9a07d by Terry Jan Reedy in branch '3.4':
Issue #21232: Replace .splitlines arg '1' with 'keepends=True'.
http://hg.python.org/cpython/rev/604b74f9a07d
New changeset c82dcad83438 by Terry Jan Reedy in branch 'default':
Merge with 3.4. Closes
Terry J. Reedy added the comment:
Third party compiled C crashers are nasty. Two suggestions:
1. Reduce the failing example to the minimum needed to fail. If you bypass all
the python code in maps.py and device.py and just 'import dmraid', do you still
get a crash at that point.
2. What
Dave Sawyer added the comment:
Thanks Zach, I'm used to Git and this was my first foray with Hg and trying
to rebase (I knew I shoulda branched before starting on another patch). BTW,
the devs at PyCon Montreal said Zach's a good guy. One of maybe 4 Windows
devs.
-Dave
--
Ned Batchelder added the comment:
Although the OP was incorrect about 1 being guaranteed to be True, it is still
better documentation to use True rather than 1 for a boolean argument.
--
nosy: +nedbat
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
An obvious fix for the recursion limit error is to convert the .compare
recursion to iteration with a stack (which I could try to do), but I don't know
if the deep recursion is expected in this case, or is a bug. Tim?
--
nosy: +terry.reedy, tim.peters
Terry J. Reedy added the comment:
See more discussion on duplicate #21259.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16261
___
___
Terry J. Reedy added the comment:
This is definitely a duplicate of #16261 and should be closed at such.
On that issue, in msg202448, I explained that #15313 is about except: in
idlelib and idlelib must be patched separately for the reason Raymond repeated
(point 2). The other reason (point
paul j3 added the comment:
Another example of code hitting this AssertionError. Here the problem was a
space in the option argument, '--out '.
http://stackoverflow.com/questions/23159845/python-argparse-assertionerror
'parser.add_argument('-o', '--out ', help='b', required = True)'
That
Terry J. Reedy added the comment:
Looks sensible.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21261
___
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +haypo, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21302
___
___
Kinga Farkas added the comment:
I have created a patch based on Martin Panter's suggestions. Please let me
know if it is off or there should be additional changes included.
--
keywords: +patch
nosy: +lilbludot
Added file: http://bugs.python.org/file34966/issue21279.patch
Shankar Unni added the comment:
I'm working on a patch, but I noticed a similar issue in Condition.wait(),
which also keeps re-evaluating the remaining sleep time based on the current
kernel clock, with similar effects.
I'll try to address both issues, or we could open a separate bug for the
Gregory P. Smith added the comment:
It appears to devolve into linear recursion in this case, one per each item in
one of the sequences being searched for a match, so even using a stack seems
wrong as it'd still be linear (though it would prevent the recursion depth
problem).
The mutual
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19771
___
___
Python-bugs-list
Terry J. Reedy added the comment:
The docstring is more accurate.
str.translate.__doc__
'S.translate(table) - str\n\nReturn a copy of the string S, where all
characters have been mapped\nthrough the given translation table, which must be
a mapping of\nUnicode ordinals to Unicode ordinals,
Terry J. Reedy added the comment:
I see that we mostly added the same info.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21279
___
___
Terry J. Reedy added the comment:
I noticed the same while working on #21139 and posted there a patch,
21139-34-fpe.diff, that adds a limit parameter to .format_paragraph_event. Test
could then specify a width for each test without touching the user
configuration. Different tests could use
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21295
___
Terry J. Reedy added the comment:
Do I understand correctly that only one space is ignored?
--
nosy: +terry.reedy
stage: - needs patch
title: skipinitialspace in the csv module only skips spaces, not whitespace
in general - csv.skipinitialspace only skips spaces, not whitespace in
Benjamin Peterson added the comment:
I suspect this was an intentional result of #16795.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21295
___
Alok Singhal added the comment:
Here's a proposed patch. I need more tests for large values, but all the tests
I could think of take a long time to get to a long value. I added some tests
that don't take much time but work correctly for long values. If anyone has
any ideas for some other
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19829
___
___
Python-bugs-list
New submission from Alex Gaynor:
Pursuant to PEP466, this is a backport of Python 3.4's hashlib.pbkdf2_hmac.
Of note in this patch:
* None of the utilities for testing both a python and a C implementation
simultaneously were present, so this only tests whichever implementation is
available.
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +christian.heimes, dstufft, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21304
___
New submission from Nick Coghlan:
Tracker issue for the os.urandom persistent file descriptor backport to 2.7
described in PEP 466.
--
messages: 216824
nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola,
janssen, ncoghlan, pitrou
priority: normal
severity:
Terry J. Reedy added the comment:
I believe that there have been discussions on this point and my memory is to
leave 1 alone in 2.x docs. I could be mistaken though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21232
New submission from Nick Coghlan:
Tracker issue for the hmac.compare_digest backport to 2.7 described in PEP 466.
--
messages: 216826
nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola,
janssen, ncoghlan, pitrou
priority: normal
severity: normal
stage: needs
New submission from Nick Coghlan:
Tracker issue for the hashlib PBKDF2 and algorithm availability details
backport to 2.7 described in PEP 466.
--
messages: 216827
nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola,
janssen, ncoghlan, pitrou
priority: normal
Alex Gaynor added the comment:
issue21304 has the implementation of the PBKDF2 work.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21307
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola,
janssen, ncoghlan, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: PEP 466: backport ssl changes
type: enhancement
versions: Python
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +benjamin.peterson, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21304
___
___
Benjamin Peterson added the comment:
Let's dup this then.
--
resolution: - duplicate
status: open - closed
superseder: - Backport hashlib.pbkdf2_hmac to Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21307
Tim Peters added the comment:
Comparison can certainly trigger a recursion error if the sequences contain no
(or few) matching non-junk elements, but contain many almost matching
elements. If the sequences have lengths M and N, recursion can go as deep as
2*min(M, N) then.
Now in the test
Benjamin Peterson added the comment:
Rather #21304 should be a dep...
--
dependencies: +Backport hashlib.pbkdf2_hmac to Python 2.7
resolution: duplicate -
status: closed - open
superseder: Backport hashlib.pbkdf2_hmac to Python 2.7 -
___
Python
Charles-Axel Dein added the comment:
New version of the patch.
--
Added file: http://bugs.python.org/file34969/add_csvdict_examples.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20351
Gregory P. Smith added the comment:
that seems reasonable. unittest's assertSequenceEqual is using this to attempt
to display a useful error message as to what the delta was; it should try
harder to avoid difflib corner cases.
At the very least, unittest should recover from a difflib failure
New submission from R. David Murray:
help(ImportError.__init__)
Help on wrapper_descriptor:
__init__(self, /, *args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
The above also appears (without the wrapper_descriptor bit) in the help output
for
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
___
___
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21305
___
___
R. David Murray added the comment:
Well, it's 'expected' behavior in the sense that we don't know about 'adobe'
format. Is there some better way to detect jpeg format than to look for
particular format identifiers in a specific byte position?
--
type: enhancement - behavior
versions:
Changes by R. David Murray rdmur...@bitdance.com:
--
title: Backport hashlib.pbkdf2_hmac to Python 2.7 - PEP 446: Backport
hashlib.pbkdf2_hmac to Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21304
Changes by Nick Coghlan ncogh...@gmail.com:
--
title: PEP 446: Backport hashlib.pbkdf2_hmac to Python 2.7 - PEP 466: Backport
hashlib.pbkdf2_hmac to Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21304
New submission from Martin Panter:
f = open(/dev/stdout, w+b) # Or any non-seekable file, pipe, etc
__main__:1: ResourceWarning: unclosed file _io.FileIO name='/dev/stdout'
mode='rb+'
Traceback (most recent call last):
File stdin, line 1, in module
io.UnsupportedOperation: File or stream is
Martin Panter added the comment:
I opened Issue 21310 about a ResourceWarning from open() which I suspect is the
same as what was originally described here.
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
Eric Snow added the comment:
On second thought, all modules (except __main__) must have both __spec__ and
__loader__ set to their correct respective objects. So the current behavior is
correct in that it exposes poorly formed modules.
--
resolution: - not a bug
stage: test needed -
Gregory P. Smith added the comment:
See also http://bugs.python.org/issue21288 to consider one
fix/oversite/addition to the existing API as part of this process. (discuss
that there)
by default: use the exact same API as 3.4 if it is suitable for PEP 466 and
2.7.7's needs. the above issue is
Changes by Gregory P. Smith g...@krypto.org:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21307
___
___
Changes by Gregory P. Smith g...@krypto.org:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
___
___
Alex Gaynor added the comment:
Yup, I've got my eyes on it, if anything lands there I'll include it in this in
the 2.7 code, whether it's before or after this patch lands :-)
--
___
Python tracker rep...@bugs.python.org
Maciej Szulik added the comment:
Sreepriya, are you still working on this issue? If no I'll be happy to take it
over, is yes start with fixing following things:
- start with test - this is the most important to have each feautre tested
- decode_data, as David mentioned, needs to have default
Jessica McKellar added the comment:
Antoine, thanks for the patch, and Giampaolo, thanks for the ping.
I confirmed that http://hg.python.org/cpython/rev/8a2d848244a2 does address the
issue:
Before the patch, if another process bound to the port selected for the test
before the test ran, the
Igor Pashev added the comment:
Related to http://bugs.python.org/issue8852
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21287
___
___
Changes by Igor Pashev pashev.i...@gmail.com:
Removed file: http://bugs.python.org/file34952/dyson-socketmodule-ifindex.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21287
___
91 matches
Mail list logo