Davin Potts added the comment:
The points made by Travis are clear and solid.
Closing as this functionality is already handled well and no exceptional
situations are being argued for that would require a special case.
--
nosy: +davin
resolution: - rejected
stage: - resolved
status:
New submission from Myroslav Opyr:
cgi.FieldStorage has problems parsing the multipart/form-data request with file
fields with non-latin filenames. It drops the filename parameter formatted
according to RFC6266 [1] (most modern browsers do). There is already python
implementation for that RFC
Changes by Davin Potts pyt...@discontinuity.net:
--
resolution: - out of date
stage: - resolved
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9122
___
Justin added the comment:
I think there is a misunderstanding of precedence here. If we had an operation
were -1 * 5**4, I could fully understand the statement of precedence. However,
in the absence of the -1 *, the -5 becomes a single atom.
For example:
myVal = -5
myVal**4
625
# not -625
Changes by Davin Potts pyt...@discontinuity.net:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12738
___
___
Changes by Davin Potts pyt...@discontinuity.net:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23072
___
___
Changes by Mihail Krivushin krivushi...@gmail.com:
--
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23427
___
Changes by Davin Potts pyt...@discontinuity.net:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21429
___
___
Demian Brecht added the comment:
My apologies for the delay, but I've now reviewed the proposed patch. With a
fresh outlook after taking a bit of time off, I'm not sure anymore that this is
the best way of going about solving this problem. The main reason being that we
now have two errors
Demian Brecht added the comment:
I’ve reverted the patch to use the old format. The main reason being that plain
ints can still be used in most cases as values for code, in which case logging
will be inconsistent with cases using the enum.
--
Added file:
Davin Potts added the comment:
In some (but not necessarily all) circumstances, the multiprocessing module is
now (in 2.7 and 3.x) able to detect the infinite spawning behavior described
due to unsafe importing of the main module on Windows. The resulting error
message looks like this:
STINNER Victor added the comment:
faulthandler._stack_overflow() is written to crash. The comparison on stack
pointers is just here to avoid an unlimited loop. A stack of 100 MB is
something really large. I never seen an OS where faulthandler._stack_overflow()
doesn't crash yet.
Here is a
Changes by Davin Potts pyt...@discontinuity.net:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8094
___
___
Davin Potts added the comment:
Closing per the feedback of the OP and secondary contributor to the issue.
Kudos to the reporters for such nice follow-up.
--
nosy: +davin
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python
Ned Deily added the comment:
Try launching IDLE from a Terminal window command line shell with:
/usr/local/bin/python3.4 -m idlelib
and see if any error messages are reported. Also please report what is printed
when this is run in a command shell:
/usr/local/bin/python3.4 -c 'import
Thomas Kluyver added the comment:
Jeff: This makes it somewhat easier to handle input and output as strings
instead of streams. Most of the functionality was already there, but this makes
it more broadly useful. It doesn't especially address your other points, but
I'm not aiming to completely
Martin Panter added the comment:
See Issue 8583 for a proposal that would apparently allow all namespaces to be
ignored
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18304
___
Martin Panter added the comment:
Also Issue 18304 for more discussion on simplifying namespaces
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8583
___
Justin added the comment:
Thank you for the link.
I can understand the language definition and I can accept it at face value. The
confusion I have is that it does not appear to be consistent. My example of
-5**4 vs 4**-2 would both have literals with a unary sign. One works as
expected,
Demian Brecht added the comment:
@Mark: Sure, but not super high priority. Thanks for pointing it out.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2211
___
Serhiy Storchaka added the comment:
No, -5 is not an atom. See The Python Language Reference [1]:
Note that numeric literals do not include a sign; a phrase like -1 is
actually an expression composed of the unary operator ‘-‘ and the literal 1.
[1]
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22701
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - not a bug
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22819
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22899
___
___
Changes by SilentGhost ghost@gmail.com:
--
components: +Macintosh
nosy: +hynek, ned.deily, ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23431
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21231
___
Serhiy Storchaka added the comment:
The tarfile module documentation needs a note similar to issue1625 which would
warn about the lack of supporting some files and suggest a workaround.
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python, nadeem.vawda,
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: pending - closed
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20394
Михаил Кривушин added the comment:
Hello, I have find some workaround to get actual argv, but it broken:
python -c 'import ctypes; argv = ctypes.POINTER(ctypes.c_char_p)(); argc =
ctypes.c_int(); ctypes.pythonapi.Py_GetArgcArgv(ctypes.byref(argc),
ctypes.byref(argv)); print([argv[i] for i in
Serhiy Storchaka added the comment:
Updated patch addresses Ezio's comments.
--
Added file: http://bugs.python.org/file38080/re_errors_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22364
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: languishing - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17234
___
___
Jan-Philip Gehrcke added the comment:
Victor,
I support the idea of sys.command. However, it would be unpopulated most of the
time (e.g. set to None by default). Now, is that something we should push
forward or not? I would work on a patch, but we should have an agreement first,
I guess.
Serhiy Storchaka added the comment:
And the name attribute of FileIO object is writable. So you can change it after
calling fdopen.
import os
f = os.fdopen(2, w)
f
_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'
f.buffer.raw.name = 'useful name'
f
_io.TextIOWrapper name='useful name'
Berker Peksag added the comment:
Updated patch. Thanks again, Serhiy.
--
Added file: http://bugs.python.org/file38081/issue21717_tarfile_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21717
Mihail Krivushin added the comment:
Jan-Philip, yes, I see that Main.c needs modification, but we can fix orig_argv
with not just assignment but with full copy. So then we can get unmodified argv.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
This is a duplicate of issue8311. Was fixed in 3.4. In 2.7 you should first
convert your data to str, bytearray, array('B') or buffer.
--
nosy: +serhiy.storchaka
resolution: - duplicate
status: languishing - closed
superseder: - wave module sets
New submission from Ivailo Monev:
Installing Python with prefix that equals / seems to not install the dymic
libraries like _collections. The steps I performed to install it:
./configure --prefix=/ \
--with-threads \
--enable-shared \
--enable-ipv6 \
Changes by Demian Brecht demianbre...@gmail.com:
--
nosy: +demian.brecht
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23434
___
___
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: -eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21793
___
___
Python-bugs-list
New submission from Kevin Rocard:
Extracted from xml.dom.minidom:
~~~
Node(...):
...
ownerDocument = None
...
Element(Node):
__slots__=('ownerDocument', ...)
...
~~~
As Element declares an ownerDocument attribute in __slots__, Node's
ownerDocument attribute is hidden:
~~~
Mark Lawrence added the comment:
@Demian is this of any interest to you?
--
nosy: +BreamoreBoy, demian.brecht
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2211
___
Zachary Ware added the comment:
Rather than add a variable to sys that will be empty 99% of the time, I think
I'd rather stick a '__command__' constant in the __main__ module namespace when
running with '-c' (think of '__file__'). You could then get at it elsewhere
with 'from __main__ import
Serhiy Storchaka added the comment:
Updated patch addresses Victor's comments.
--
Added file: http://bugs.python.org/file38086/bytes_format_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23383
Ethan Furman added the comment:
As long as it works I have no objections. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23383
___
___
Daniel Lenski added the comment:
Here's the class I have been using for reading namedtuples from CSV files:
from collections import namedtuple
from itertools import imap
import csv
class CsvNamedTupleReader(object):
__slots__ = ('_r', 'row', 'fieldnames')
def
Martin Panter added the comment:
The new text changes “the associated value” to “the value passed to [the]
:func:`sys.exit` call”. There seems to be a trend in removing documentation of
exception constructor arguments; is this intentional?
In my code I tend to raise SystemExit() directly
Martin Panter added the comment:
New logfix patch looks good. I would have written format(self) or format(self,
'd') instead of '{:d}'.format(self), but that’s no big deal.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Eliminated tabs.
--
Added file: http://bugs.python.org/file38087/bytes_format_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23383
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file38086/bytes_format_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23383
___
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
title: RFC6266 support - RFC6266 support (Content-Disposition for HTTP)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23434
Serhiy Storchaka added the comment:
Thank you for your reviews and suggestions Martin and Victor. If Ethan has no
objections I'll commit the patch soon.
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 4883f9046b10 by Serhiy Storchaka in branch 'default':
Issue #23383: Cleaned up bytes formatting.
https://hg.python.org/cpython/rev/4883f9046b10
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23383
___
___
Python-bugs-list mailing list
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - docs@python
components: +Documentation -Extension Modules, Interpreter Core
nosy: +docs@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22883
New submission from Paul Moore:
Patch to make the user scripts directory on Windows
%APPDATA%\Python\PythonXY\Scripts rather than %APPDATA%\Python\Scripts.
See the thread PEP 370 - per-user scripts directory on Windows (Feb 10 2015)
on python-dev for discussion, but essentially this is to
Steve Dower added the comment:
You should be able to apply the patch to 3.5.0a1 and test it that way easily
enough. Other than the doc changes, it's just .py files. (Building 3.5 with
earlier VS versions is also okay right now.)
--
___
Python
Changes by Ned Deily n...@acm.org:
--
Removed message: http://bugs.python.org/msg235727
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23435
___
Ned Deily added the comment:
Without more information it is hard to provide a meaningful response. You
don't say which version of Python nor which platform you are trying to install
on. Be aware that the default for --prefix is '/usr/local'. On most POSIX
platforms, you should not be
Martin Panter added the comment:
Thanks for helping with this Demian. The idea of raising the same exception in
all cases is new to me. Initially I was opposed, but it is starting to make
sense. Let me consider it some more. Here are some cases that could trigger
this exception:
1. EOF
Martin Panter added the comment:
Opened Issue 23440 for my test changes
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23255
___
___
New submission from Martin Panter:
These are some additions to the “http.server” module tests. It is an updated
version of index-test.2.patch that I posted at Issue 23255.
* Tests that index.html is served, rather than an automatic directory listing
* Tests that there is no extra data sent
Ned Deily added the comment:
Without more information it is hard to provide a meaningful response. You
don't say which version of Python nor which platform you are trying to install
on. Be aware that the default for --prefix is '/usr/local'. On most POSIX
platforms, you should not be
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23437
___
___
Changes by pyed iabdule...@gmail.com:
--
title: HTMLParser don't know how to deal with 'ampersand' - HTMLParser doesn't
know how to deal with 'ampersand'
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23438
Steve Dower added the comment:
How do pip co. handle the change? I assume they just look in sysconfig and
don't think too much about the path...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23437
Changes by Martin Panter vadmium...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file38090/http.client-all.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23439
___
New submission from Martin Panter:
This patch was split off my patch for Issue 3566, since it should be less
controversial. It adds the HTTPMessage class and the parse_headers() function
to __all__.
I’m not too sure on the status of the parse_headers() function. It is not
mentioned in the
Mahmoud Hashemi added the comment:
Hey all, great to see this being worked on so diligently for so long. Having
worked in this area for a while (at home and at PayPal), we've got a few
learnings to share:
1) linecache is textbook not-threadsafe. For example,
New submission from pyed:
the attached file use example from :
https://docs.python.org/3/library/html.parser.html
and it will show different cases where HTMLParser fail to parse '' and 'amp;'
--
components: Library (Lib)
files: htmlparser_bugs.py
messages: 235714
nosy: pyed
priority:
Serhiy Storchaka added the comment:
Update patch addresses Victor's comments.
--
Added file: http://bugs.python.org/file38088/marshal_hashtable_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20416
Amaury Forgeot d'Arc added the comment:
amp; is an entity reference.
Either pass convert_charrefs=True to the constructor, or implement a method
def handle_entityref(self, data) to receive them as events.
https://docs.python.org/3.4/library/html.parser.html
--
nosy:
Paul Moore added the comment:
Cool, I've just run the tests by manually patching a 3.5a0 install. No extra
failures, so things look fine. (Interestingly, before patching, test_site
altered the execution environment but afterwards it didn't - it just
succeeded. I don't know if that means
Paul Moore added the comment:
Sorry, yes pip just installs into %APPDATA%\Python\Python35\Scripts with no
issues.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23437
___
Davin Potts added the comment:
Closing on the basis that:
1. Richard provided a proposed workaround but did not receive a response from
the OP in 1.5 years.
2. Issues encountered by the OP may have been addressed in part by changes in
the way import works in the past 4.5 years.
3. This issue
New submission from Berker Peksag:
From https://docs.python.org/3/library/exceptions.html#SystemExit
Also, this exception derives directly from BaseException and not Exception,
since it is not technically an error.
and
The exception inherits from BaseException instead of Exception so
STINNER Victor added the comment:
Except of the minor suggestion that I added on the review, the patch looks good
the me. It's quite simple and makes dumps() 34% faster (for protocol 4).
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
(I didn't reproduce the benchmark, I just used Serhy numbers. I guess that
using memcpy() doesn't make the code slower.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20416
New submission from Matthias Klose:
jakub richi:
https://github.com/nemomobile-packages/python3/blob/master/Modules/faulthandler.c#L903
polacek richi:
LD_LIBRARY_PATH=/builddir/build/BUILD/Python-3.4.2/build/debug/
/builddir/build/BUILD/Python-3.4.2/build/debug/python -E -c 'import
78 matches
Mail list logo