Martin Panter added the comment:
In Issue 34276 I suggested a fix to “urlunsplit”. In this case it would send
“Location: www.python.org/%2f../", with an extra pair of slashes denoting
an empty host name. This should stop a browser from seeing “www.python.org” as
a host
Martin Panter added the comment:
I think your URLs are valid by RFC 3986. "When authority is not present" refers
to URLs without the double-slash prefix, like the
"urn:example:animal:ferret:nose". The RFC treats empty authority and no
authority as different cases. If
Martin Panter added the comment:
Yes urllib doesn’t distinguish a missing authority/netloc from an empty string.
The same for the ?query and #fragment parts. There is Issue 22852 open about
that.
--
___
Python tracker
<https://bugs.python.
Martin Panter added the comment:
I reproduced the problem on a Windows computer, and now understand why my
"Content-Length: 0" suggestion isn't good enough on its own. It does solve the
initial deadlock, but there is a further deadlock. The main thread is waiting
for the serv
Martin Panter added the comment:
What documentation were you looking at? I remember adding 0x1E and others to
the list in Issue 12855. See
<https://docs.python.org/3.5/library/stdtypes.html#str.splitlines>:
‘‘‘
str.splitlines([keepends])
. . .
This method splits on the followin
Change by Martin Altmayer :
--
nosy: +MartinAltmayer
___
Python tracker
<https://bugs.python.org/issue33649>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
I like this option. I suppose choosing which option to take is a compromise
between compatiblity and simplicity. In the short term, the “allows_none”
option requires user code to be updated. In the long term it may break
compatibility. But the “has_netloc
Change by Martin Panter :
--
resolution: -> duplicate
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue33300>
___
___
Python-bugs-
Martin Panter added the comment:
I think this was an attempt to specify a positional-only parameter (by using
square brackets), and include a default value in the signature. The usual
approach in this situation is to use square brackets, but only mention the
default value in the text
Martin Panter added the comment:
Even in 3.8, the main documentation is not fixed:
https://docs.python.org/dev/library/select.html#kqueue-objects
--
___
Python tracker
<https://bugs.python.org/issue34
Martin Panter added the comment:
I can’t get it to hang. Does your computer or Internet provider have a proxy or
firewall that may be interfering?
Perhaps it is worth comparing the HTTP header fields being sent and received.
You can enable debug messages to see the request sent, and print
Change by Martin Panter :
--
superseder: -> Cannot override 'connection: close' in urllib2 headers
___
Python tracker
<https://bugs.pytho
Martin Panter added the comment:
It looks like you are describing the result of Issue 7994. Documentation:
https://docs.python.org/release/3.5.3/reference/datamodel.html#object.__format__
https://docs.python.org/release/3.5.3/whatsnew/3.4.html#api-and-feature-removals
--
nosy
Martin Panter added the comment:
This sounds like a duplicate of Issue 28539. My understanding of that report is
that Urllib3 half parses the URL by splitting out the port number, but returns
a hostname with square brackets intact. Requests then passes the hostname
(string with brackets) and
Martin Panter added the comment:
Here is a demonstration script in case it helps. I haven’t tested it with
versions before Python 2.6.
Older versions send “Content-Length: 11”, but leave the server hanging trying
to read the data. Newer versions (I presume since Issue 12319, 3.6+) send a
Martin Panter added the comment:
The "grep" process may be closing its end of the pipe before it exits. Or if
Grep leaves the pipe open when it exits, the OS may close the pipe before it
makes the child exit status available. Either way, I suspect "p.stdout.read()"
ret
Martin Panter added the comment:
You probably only need to call "wait" once. That blocks the thread until it
gets a result, so it is more CPU-efficient than calling "poll" in a busy loop.
Since you open a separate pipe for "stderr" in script.py, but don't d
New submission from Martin Hosken :
This is a regression from python2 by being forced to use cElementTree.
I have code that uses iterparse to process an XML file, but I also want to
process comments and so I have a comment handling function called by the parser
during iterparse. Under
Martin Hosken added the comment:
Sorry. This test is rather long because it is 3 tests:
from __future__ import print_function
import sys
import xml.etree.ElementTree as et
import xml.etree.cElementTree as cet
from io import StringIO
teststr = u"""
Hello World
Martin Hosken added the comment:
Blast. Bugs. Sorry. Missing superclass init call in CommentingTb. I enclose the
whole thing again to save editing. Also fixes comment output to give text.
from __future__ import print_function
import sys
import xml.etree.ElementTree as et
import
Martin Panter added the comment:
I think "ctime" and "asctime" are supposed to wrap or imitate the standard C
functions: <https://port70.net/~nsz/c/c11/n1570.html#7.27.3.2>, so I think this
is intended behaviour. But see Issue 13927 about improving the documentatio
Martin Panter added the comment:
I think removing all mention of “None” is a step too far. The “devpoll”,
“epoll”, and “poll” documentation all say that “None” is acceptable for the
timeout. Only the “select” function doesn’t say this.
What about adding to the text:
* “timeout” in seconds
Martin Panter added the comment:
Hi William, when I mentioned “Content-Length”, I meant adding it to the
response from the server. See the second version of “do_GET” in my earlier
comment <https://bugs.python.org/issue25095#msg309522>. But that is no good
without also addi
Martin Panter added the comment:
In these situations, I use quotes or brackets to mention a symbol without using
it as punctuation. Using words might also help. What about:
Ellipsis
The same as the ellipsis literal “...”. Special value used [etc]
--
nosy: +martin.panter
Martin Panter added the comment:
Seems to be a common theme on various 64-bit ABIs. There is already a fix for
Python’s Windows copy of the FFI library (Issue 29565), and a “hack” for Arm
and x86 Windows (again!): Issue 30353.
--
nosy: +martin.panter
Martin Panter added the comment:
Is this to get “spawn” working on a non-Linux platform like a recent Free BSD,
OS X, or Solaris? If so, see Issue 26228.
If not, you might have to explain your use case better. Polling for the child
exiting is going to race with handling the child’s output
Martin Panter added the comment:
Hi Michael, I agree with Victor that the best place to fix the problem is in
the HTTP server module. In other words, the “medium fix” you mentioned in your
original post.
Your recent proposal to just skip the test means that AIX will continue to
suffer from
Martin Panter added the comment:
FYI Senthil made an earlier suggestion for wording at
<https://bugs.python.org/issue26005#msg257517>
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/i
Martin Panter added the comment:
Issue 34576 was recently opened about adding a security warning.
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> [EASY doc] http.server, SimpleHTTPServer: warn users
Martin Panter added the comment:
If a change is made, it would be nice to bring the “gzip”, “bzip” and LZMA
modules closer together. The current “bzip” and LZMA modules rely on the
underlying “seekable” method without a fallback implementation, but also have a
check for read mode.
I think
Martin Panter added the comment:
Déjà vu. Maybe duplicate of Issue 34624?
--
nosy: +martin.panter
superseder: -> -W option does not accept module regexes
___
Python tracker
<https://bugs.python.org/issu
Martin Panter added the comment:
Have you seen
<https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate>?
It already links to the tutorial.
--
nosy: +martin.panter
___
Python tracker
<https://bugs.p
Martin Panter added the comment:
RFC 6265 says that only the first three letters of the month are significant,
and the rest of the token should be ignored. See
<https://tools.ietf.org/html/rfc6265#section-5.1.1>:
month = ( "jan" / "feb" / "mar" / &quo
Change by Martin Panter :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34920>
___
___
Change by Martin Panter :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
title: StreamIO truncate behavior of current position -> StringIO module
truncate behavior of current position
___
Python tracker
Change by Martin Panter :
--
Removed message: https://bugs.python.org/msg328245
___
Python tracker
<https://bugs.python.org/issue28960>
___
___
Python-bugs-list m
Martin Panter added the comment:
There seem to be at least two different issues raised here (and in Issue 34547):
1. Double exceptions due to “self.environ” and “self.status” being None when
the error handler is called. This problem was specifically raised in Issue
29183.
2. What to do
Martin Panter added the comment:
Looks like the error handling is broken by Issue 16220, which calls the
“BaseHandler.close” method before the exception is caught for the error
handler. Perhaps it is better to just close the iterator without messing with
the other attributes in the exception
Martin Panter added the comment:
Looks like this is about about making “RawIOBase.read” delegate to “readinto”
with a “bytes” object. If so, there’s more discussion in Issue 15903.
--
nosy: +martin.panter
___
Python tracker
<ht
Martin Panter added the comment:
There are actually two “close” methods in the WSGI package: ServerHandler’s
implementation extends the BaseHandler implementation. Making the “close”
methods do nothing if called a second time would avoid the error about
“self.status” being None, but won’t
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue8402>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue15955>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue16043>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue17005>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue16901>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue9740>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue6181>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Kysel :
--
nosy: +mkysel
___
Python tracker
<http://bugs.python.org/issue16272>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Kysel :
--
nosy: +mkysel
___
Python tracker
<http://bugs.python.org/issue16665>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Gergov added the comment:
--- a/Modules/socketmodule.cTue Jul 02 09:07:53 2013 -0400
+++ b/Modules/socketmodule.cSat Jul 06 21:08:40 2013 +0300
@@ -3673,6 +3673,15 @@
{
int how;
int res;
+struct sockaddr_in sin;
+if (s->sock_type == SOCK_DGRAM){
+mem
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue15125>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue17974>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
I was surprised to discover that “option straddling” doesn’t work this way with
nargs="*". It seems to work fine with most other kinds of positional arguments
I have tried, and I imagine that this was by design rather than accident. Many
Gnu CLI pro
Martin Panter added the comment:
It sounds like this bug might cover Issue 15112, which is only concerned with
options between different positional parameters.
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue14
Martin Mokrejs added the comment:
Hi Ramchandra and Christian,
I am using numpy, matplotlib, expat/cElementTree, doing a lot of os.Popen
calls. But I think the problem is taht I have huge lists and when I do not need
them I do del(_mylist) in the code ASAP. That probably causes a lot of
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue1944>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Mokrejs:
Hi,
it happened to me that using faulthandler and python compiled with
--with-pydebug and C*FLAGS=-ggdb I got this stacktrace (will attach longer
version as a file):
(gdb) where
#0 0x7f0e3af8aacb in raise () from /lib64/libpthread.so.0
#1
Martin Mokrejs added the comment:
Should have included from the head of gdb output:
Program terminated with signal 6, Aborted.
--
___
Python tracker
<http://bugs.python.org/issue18
Martin Mokrejs added the comment:
Would you please guide me what gdb commands I should issue for you? Thank you.
BTW, I ran memtest86+ few days ago, although this is non-ECC memory I think HW
is fine.
--
___
Python tracker
<http://bugs.python.
Martin Mokrejs added the comment:
Grr, forgot to look into a file where I recorded STDERR.
Debug memory block at address p=0x449e6900: API 'o'
80 bytes originally requested
The 7 pad bytes at p-7 are not all FORBIDDENBYTE (0xfb):
at p-7: 0xfb
at p-6: 0xfb
Martin Mokrejs added the comment:
Thank you for explanation what is going on. I called matplotlibs drawing
function to include 49308 dots and corresponding legend items with their
colors. That's all I can say. I am not a native English speaker so I don't know
what 'rogue ex
New submission from Martin Mokrejs:
While running my app testsuite I have another one which crashed.
Fatal Python error: Segmentation fault
Current thread 0x7fe8d3527700:
File "/usr/lib64/python2.7/site-packages/matplotlib/transforms.py", line 2370
in get_matrix
File &
Martin Mokrejs added the comment:
Yes, I have rebuilt all python modules but even gdb exited on startup due to
python ABI change. I am using Gentoo Linux
(https://bugs.gentoo.org/show_bug.cgi?id=482348) and unless python-updater
forgot to include some package in the listing of those needed to
Martin Mokrejs added the comment:
I took a crack from another angle. I converted my application using cython and
then used gcc. Finally, ran valgrind over the binary. It is not finished yet
but already spotted plenty of hints.
--
Added file:
http://bugs.python.org/file31490
Martin Mokrejs added the comment:
Incidentally I read today
http://blastedbio.blogspot.co.uk/2012/05/blast-tabular-missing-descriptions.html
mentioning ^A being used. Maybe that would stop working?
--
nosy: +mmokrejs
___
Python tracker
<h
Martin Mokrejs added the comment:
No, I did not know that. Thanks, I did now.
* Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c,
then rebuild Python
* Uncomment the lines in Misc/valgrind-python.supp that
suppress the warnings for PyObject_Free and PyObject_Realloc
Why
Martin Mokrejs added the comment:
I was just checking whether configure picked up my --with-pymalloc and
incidentally saw:
--with-valgrind Enable Valgrind support
maybe Misc/README.valgrind needs revision and should explain what that does as
well? ;-)
It should also explain what
Martin Mokrejs added the comment:
I wanted to move away from the --with-pydebug to a normal python and I failed
with:
# emerge dev-lang/python:2.7
* IMPORTANT: 11 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... d
Martin Mokrejs added the comment:
One more note. At that time I had running my application which at that time was
parsing an XML file using xml.parsers.expat! That is being run in my pipeline
before I render figures (the initially reported crash case). So,
matplotlib/numpy is ruled out
Martin Mokrejs added the comment:
Sorry, I should explain a bit more. Gentoo Linux uses a tool named emerge to
handle packages. It is written in python. So, by that command I initiated
re-compilation of python itself but it crashed quickly. At that moment emerge
called the python available on
Martin Mokrejs added the comment:
Thanks, will recompile without pymalloc.
I don't understand why always is only 1 bit different. Could that be
overwritten by another use process or do you believe it must be the python or
some of the modules imported into it on ru
Martin Mokrejs added the comment:
That is why I asked if other process can interfere. So, they are isolated on
Linux, good. ;-) The crash in #msg196481 is just the emerge written in python,
at the start it is resolving some graph of package dependencies ... once it
resolves order of packages
Martin Mokrejs added the comment:
http://www.gentoo.org/proj/en/portage/index.xml
http://dev.gentoo.org/~zmedico/portage/archives
--
___
Python tracker
<http://bugs.python.org/issue18
Martin Panter added the comment:
Similarly, I expected this to return "rtmp://host/app?auth=token":
urljoin("rtmp://host/app", "?auth=token")
I'm not sure adding everybody's custom scheme to a hard-coded whitelist is the
best way to do solve this.
Be
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue1500504>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Mokrejs added the comment:
Hi Stephen,
I discussed the USE=debug here
(https://bugs.gentoo.org/show_bug.cgi?id=482348) and it is denied by portage
maintainers because it is not only a debug addition but a whole API change. We
have to live with:
mkdir -p /etc/portage/env
echo
New submission from Martin Mokrejs:
Looks I cannot compile when python-3.3 was configured with --with-pydebug. I
use Gentoo Linux, the -r2 shows they added some patches but should not matter I
think.
building 'xxlimited' extension
x86_64-pc-linux-gnu-gcc -pthread -fPIC -Wno-unu
New submission from Martin Mokrejs:
It is not important why I had in this moment matplotlib not in sync with python
itself whcih was configure using --with-pydebug ... but here I just want to
show that maybe you do not test for memleaks using valgrind on import errors
(maybe include such
Martin Mokrejs added the comment:
See for what I did to Gentoo: http://bugs.python.org/issue18843#msg196520
--
___
Python tracker
<http://bugs.python.org/issue18
Martin Mokrejs added the comment:
Uh. I don't understand. So did you want to say I should not run configure
--with-pydebug in python 3.3 or what? I am fine if you fix the Makefile not to
exit on this particular file. I am missing some
Martin Mokrejs added the comment:
Moreover, it should explain what that really does. One could think of several
answers or even their combinations what this configure flag will really do:
a) python will run itself under valgrind, don't bother ever doing it yourself
b) you don't have
Martin Mokrejs added the comment:
Hmm, but I did not add -DPy_LIMITED_API=1. Python 2.7.5 can be compiled using
same configuration. Going back to the build.log file I see:
configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr
Martin Mokrejs added the comment:
So I conclude that you want to say that some of the configure flags is wrong?
Which? I can surely report that at Gentoo. I still think Makefile should be
changed so that it make does not even try to compile xxlimited.c if
-DPy_LIMITED_API=1 is in CFLAGS
Martin Mokrejs added the comment:
Why do you think so? My point is that this happens when import fails. But
python is at fault and should handle import errors.
--
___
Python tracker
<http://bugs.python.org/issue18
Martin Mokrejs added the comment:
Of course I did recompile matplotlib to use the recompiled python with debug
ABI. I just don't understand why if something is not leaded why a memleak has
to happen.
Anyway, now my application using the recompiled matplotlib baffled this through
valgri
Changes by Martin Mokrejs :
Added file:
http://bugs.python.org/file31523/valgrind_python275_without-pymalloc.txt
___
Python tracker
<http://bugs.python.org/issue18
Martin Mokrejs added the comment:
I think it would be of tremendous help if python reported the physical memory
address though do not know how much work is that for you. I already said that,
I wonder why memtest86+ could not find an error, I even tried other tools for
that. Could --with
Martin Mokrejs added the comment:
So with your test program I did not yet hit the error. It used in the end 1.3GB
of RAM, maybe in the good region. while this was python-2.7.5 configures as
--without-pymalloc maybe the output from valgrind becomes more useful.
--
Added file: http
New submission from Martin Mokrejs:
I was trying to use DUMA to find errors in python runtime and it indeed killed
python-based utility called emerge. Let's see what you say now:
# export LD_PRELOAD=/usr/lib64/libduma.so.0.0.0
# sysctl -w vm.max_map_count=100
# emerge dev-lang/pytho
Martin Mokrejs added the comment:
To a naive user two places with numbers are in the stacktrace:
size = -1282872823
and
instr_ub = -1
instr_lb = 0
instr_prev = -1
--
___
Python tracker
<http://bugs.python.org/issue18
Martin Mokrejs added the comment:
I was actually printing every 10 seconds how much memory it was using, the last
before got killed was:
PIDVSZ RSS TIME ELAPSED %CPU %MEM COMMAND
4097 4938188 2445712 00:22:4425:04 90.7 15.0 /usr/bin/python2.7
/usr/bin/emerge dev-lang
Martin Mokrejs added the comment:
Regarding benchmarking and code performance inspection, maybe you want to try
on your linux box:
perf top
perf stat /usr/bin/python mytest.py
http://perf.wiki.kernel.org/
--
nosy: +mmokrejs
___
Python tracker
Martin Panter added the comment:
If this goes ahead, would a bytes.dedent() method be also considered? I
recently discovered that textwrap.dedent() does not work on bytes() in Python
3. I would have used it for the contents of an input file in a test case.
For the record there’s an older
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue14653>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Morrison added the comment:
This solution has some very undesirable properties - namely that Mar 1st is now
less than Feb 29th!
It seems like the correct follow up fix would be to adjust the date of the
returned struct_time back to 1900. The struct_time object doesn't hav
Changes by Martin Dengler :
--
nosy: +mdengler
___
Python tracker
<http://bugs.python.org/issue8098>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Mokrejs :
Hi,
I thought that I can easily create a list of, say 3, nested lists:
$ python
Python 2.7.3 (default, May 17 2012, 21:10:41)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more inform
Changes by Martin Mokrejs :
--
title: 3 * [] gives a list of 3 cross-referenced lists, a[1]='blash -> 3 * []
gives a list of 3 cross-referenced lists, a[1]='blah' writes in to ALL three!
___
Python tracker
<http://bugs.
Changes by Martin Burger :
--
nosy: +mburger
___
Python tracker
<http://bugs.python.org/issue9694>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alexander Martin:
POST data is truncated randomly when sent to a python script running on a
simple python CGI server on Windows 7 with Python 3.2.3.
The same server and script files run successfully on MAC OSX 10.8 with Python
3.2.3. A similar server (adapted for lower
801 - 900 of 8784 matches
Mail list logo