Ned Deily added the comment:
If you do not want the `\n` to be interpreted as a linefeed, you need to use a
raw string literal, like:
a = r'''
... 'my_key' : r'my value which contains \n character'
... '''
print(dedent(a))
'my_key' : r'my value which contains \n character'
--
New submission from Myles Dear:
The textwrap.dedent function does not work when the string to dedent itself
contains embedded strings that contain newline characters.
https://docs.python.org/3.4/library/textwrap.html?highlight=dedent#textwrap.dedent
states that this function can be used to
New submission from Martin Panter:
I propose to document the split_header_words() so that it can be used to parse
various kinds of HTTP-based header fields. Perhaps it should live in a more
general module like “http”, or “email.policy.HTTP” (hinted in Issue 3609).
Perhaps there is also room
Martin Panter added the comment:
I opened Issue 23498 about exposing split_header_words() or similar. So this
issue can focus on moving parse_header() to an email.policy.HTTP method or
whatever.
RTSP 1.0 and its Transport header is defined in RFC 2326:
Changes by Russell Keith-Magee freakboy3...@gmail.com:
--
nosy: +freakboy3742
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
STINNER Victor added the comment:
You didn't reply to my question on getfilesize().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23152
___
___
Daniel Franke added the comment:
I've downloaded and installed python-2.7.9.amd.msi and spent some hours trying
to understand the myriad of i386/x86-64 related linker errors I get when
attempting to build an extension module. Now that I found this report I can at
least stop doubting my
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list
Paul Moore added the comment:
As an alternative, virtualenv could be changed to create a pyvenv.cfg file
with the interpreter version like pyvenv does. Seems pretty simple and
unproblematic to me and it might actually be useful to know the interpreter
version without running it in other
R. David Murray added the comment:
Ah, yes, I see. Sorry for the confusion, I misread that part of the discussion
and did not look at that part of the docs.
(I find that note confusing...it seems to imply that a2b only accepts ascii.
But that's a different issue and I don't feel strongly
Wolfgang Maier added the comment:
So, with the current patch users could still not use the py launcher from a
virtual environment with scripts that are supposed to work under UNIX :(
Correct. That's not the problem this PEP is intended to solve.
Granted :)
Another PEP could be written
Changes by Steve Dower steve.do...@microsoft.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23152
___
Steve Dower added the comment:
I posted these commands above (modulo version number). If you have MinGW and
binutils then it should Just Work, but I'm not very experienced with the range
of installations you could have, so you may need to track down the gendef and
dlltool tools:
gendef -
Roundup Robot added the comment:
New changeset a824c40e8fc0 by Steve Dower in branch 'default':
Issue #23152: Renames time_t_to_FILE_TIME to _Py_time_t_to_FILE_TIME, removes
unused struct win32_stat and return value
https://hg.python.org/cpython/rev/a824c40e8fc0
--
Martin Panter added the comment:
The new bzip parameter still needs documenting in the library reference.
However I reviewed the doc string, C code, and tests, and I can’t find
anything wrong.
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
It looks like the __slots__ declaration on Node was missed when the other slots
changes were made (by MvL in 3931f043b79a). Note that the Node base class
(xml.dom.Node) has a __slots__ declaration, but it was added after MvL's patch
(by Florent in
R. David Murray added the comment:
Same comment as the fold bug...I need to find time to work out a test case (or
for someone else to do so).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23148
Demian Brecht added the comment:
Well, I’m not entirely sure how I came to the conclusion that errors were a
problem (other than not spending enough time walking through it) and of course
you’re right about the coercion handling it just fine. I’ve removed the
explicit conversion in the code
Benjamin Peterson added the comment:
I suppose this is okay.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22113
___
___
Python-bugs-list
Sahil Chelaramani added the comment:
A patch for this bug. Please let me know if I have to change something. First
patch, please be kind :)
--
keywords: +patch
nosy: +SahilC
Added file: http://bugs.python.org/file38196/mywork.patch
___
Python
Stefan Behnel added the comment:
Serhiy, I suggest you look at the code that Cython generates for its functions.
It has been extensively profiled and optimised (years ago), so generating the
same code for the argument clinic should yield the same performance.
And while I don't have exact
Larry Hastings added the comment:
Stefan: Serhiy's patch only affects functions taking a single positional-only
parameter.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23492
___
Martin Panter added the comment:
Similar situation in the bzip module:
BZ2Decompressor.__new__(BZ2Decompressor).decompress(bytes())
Segmentation fault (core dumped)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23224
Changes by SilentGhost ghost@gmail.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23495
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset b78195af96f5 by Serhiy Storchaka in branch 'default':
Issues #814253, #9179: Group references and conditional group references now
https://hg.python.org/cpython/rev/b78195af96f5
New changeset 5387095b8675 by Serhiy Storchaka in branch '2.7':
Issues
Roundup Robot added the comment:
New changeset b78195af96f5 by Serhiy Storchaka in branch 'default':
Issues #814253, #9179: Group references and conditional group references now
https://hg.python.org/cpython/rev/b78195af96f5
New changeset 5387095b8675 by Serhiy Storchaka in branch '2.7':
Issues
Serhiy Storchaka added the comment:
Only warnings are raised in 2.7 and 3.4, so it will not break third party code
that works by accident. In 3.5 only references to groups defined outside of
lookbehind assertion work, so the behavior is compatible with regex.
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9179
___
Martin Panter added the comment:
The relevant code is in the _get_module_details() function at Lib/runpy.py:101.
There are a few of things going on:
1. The code is calling importlib.util.find_spec(package.__main__), and
handles various kinds of exceptions by wrapping them in an ImportError,
Serhiy Storchaka added the comment:
Could you please make a review of the documentation part of the patch David?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23252
R. David Murray added the comment:
I think this doc change was incorrect. The current document is supposed to
provide the correct historical information. So changed in 3.3: accept ASCII
input (and just ignore the fact that 3.1 also accepted ascii, since we pretty
much prefer to ignore the
Roundup Robot added the comment:
New changeset 4f6f4aa0d80f by Steve Dower in branch 'default':
Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on
Windows.
https://hg.python.org/cpython/rev/4f6f4aa0d80f
--
nosy: +python-dev
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file28551/tkinter_bignum.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16840
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file31420/tkinter_bignum_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16840
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file35280/tkinter_bignum_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16840
___
Serhiy Storchaka added the comment:
Updated patch now supports wideInt if PY_LONG_LONG is not defined or is not
equal to Tcl_WideInt. getint() also now supports big integers (currently it
returns ambiguous result for values outside the range of C signed int).
As far as this issue causes
Steve Dower added the comment:
Attached a patch to 3.5 that resolves this, and I'll backport to 3.4. I haven't
got access to Windows 7 or 8 right now to test it, but it's fine on Vista
without the patch and 8.1 with the patch.
It'd be great if people could help check exactly which version of
Changes by Brett Cannon br...@python.org:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22834
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 307713759a62 by Steve Dower in branch 'default':
Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat
https://hg.python.org/cpython/rev/307713759a62
--
___
Python tracker
Serhiy Storchaka added the comment:
Serhiy, I suggest you look at the code that Cython generates for its
functions. It has been extensively profiled and optimised (years ago), so
generating the same code for the argument clinic should yield the same
performance.
Thanks, I'll look on it.
Roundup Robot added the comment:
New changeset 4d8e37e54a7d by Serhiy Storchaka in branch '2.7':
Issue #22113: struct.pack_into() now supports new buffer protocol (in
https://hg.python.org/cpython/rev/4d8e37e54a7d
--
nosy: +python-dev
___
Python
Steve Dower added the comment:
Having run some more tests, it may be that the only regular problem is in the
test for inherited file descriptors.
I've attached a patch for tf_inherit_check.py that will prevent assert dialogs.
It's not pretty, but it avoids touching the interpreter internals.
Taylor Marks added the comment:
Python is supposed to be cross platform. This has been a major incompatibility
issue between Windows and *nix and you think this patch, which has been ready
for nearly 7 years now, should simply get discarded because the fix is
available from pip?
I think
STINNER Victor added the comment:
The name of attribute_data_to_stat() and other shared functions must be
prefixed by _Py.
+/* Return size of file in bytes; 0 if unknown or INT_MAX if too big */
static off_t getfilesize(FILE *fp)
Hum since we have a type able yo store the file size and the
Steve Dower added the comment:
The caller to getfilesize is only using it to check whether it's small enough
to load the file into memory all at once, so too big is an okay response
(that function is in marshal.c and not used anywhere else).
The error label just returns back to the
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22113
___
Larry Hastings added the comment:
lgtm
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23492
___
___
Python-bugs-list mailing list
Unsubscribe:
Benjamin Peterson added the comment:
I'm all for fixing random test failures.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16840
___
___
R. David Murray added the comment:
Seems reasonable to me. Do you want to prepare patches? The doc patch should
be separate, since it applies to all active versions, but the code change to
dictwriter would go only into 3.5.
--
stage: - needs patch
versions: -Python 3.2, Python
Serhiy Storchaka added the comment:
If I had a test case, I would write the patch. But I'm not experienced in the
email package.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23147
___
R. David Murray added the comment:
Yes, I assumed that you didn't have a test case. I was explaining why I hadn't
done anything with this issue :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23147
R. David Murray added the comment:
Probably. What I need is a test case that triggers it. (FYI, I know there are
other bugs in that algorithm...what I really need to do is completely rewrite
it to be simpler and more understandable, but there are so many edge cases that
I haven't found the
R. David Murray added the comment:
I know it is called the 'email' package, but the intent is to support http
header parsing as well (cf email.policy.HTTP).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23434
New submission from Cyd Haselton:
This is a (hopefully) complete list of patches and modifications required to
natively build Python 3.4.2 on an Android device where
patches == listed issues in this bug tracker
modifications (mods) == unsubmitted patches and/or edits made to source
CAVEATS
Martin Panter added the comment:
If I understand what you are saying, you don’t mind not mentioning 3.1
behaviour, but want to mention 3.2 behaviour. Perhaps the existing “Note” box
at the top of the page is good enough for you, as pointed out in
http://bugs.python.org/issue13637#msg235931.
Benjamin Peterson added the comment:
It's up to you. Since 2.7 is so long lived, we've had to gradually alter
supported library versions (e.g. for bsddb).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16840
Serhiy Storchaka added the comment:
But there is a risk to break Python builds with old Tcl/Tk. We dropped support
of Tcl/Tk older than 8.4 in 3.5, but theoretically 2.7 should work with older
versions. It was not tested for years, we have no build bots with 8.3, and I
manually test Python
Serhiy Storchaka added the comment:
After expanding PyArg_Parse for i and D codes above tests give following
results:
$ ./python -m timeit chr(0x20ac)
100 loops, best of 3: 0.558 usec per loop
$ ./python -m timeit -s from cmath import isnan; x = 1j -- isnan(x)
100 loops, best of 3:
58 matches
Mail list logo