Martin Potthast added the comment:
I'd suggest to better verify the input and return such strings unchanged.
--
type: -> behavior
___
Python tracker
<http://bugs.python.org
Martin Potthast added the comment:
Agreed. Here's a patch for HTMLParser. That was easy enough.
With regard to tests, there seems to be already one called
test_malformatted_charref in test_htmlparser.py. However, the test tests the
whole parser and not only HTMLParser.unescape().
A
Martin Potthast added the comment:
Why not simply remove the additional check in line 168 and leave the
responsibility to check the validity of its input to the unescape function (be
it explicitly or, like now, lazily). That way, the code changes are minimal,
the existing test covers the
New submission from Georges Martin :
Both httplib.HTTPMessage and email.message.Message classes[1] implements
methods for RFC822 headers parsing. Unfortunately, they have different
implementations and they do not provide the same level of functionality.
One example that is bugging me is that
Georges Martin added the comment:
Hello, David.
According to issue4773, httplib.HTTPMessage in Python 3.x is using
email.message.Message underneath, so my issue is only with 2.6 (I've not
checked 2.7).
Georges
--
___
Python tracker
Georges Martin added the comment:
No problem. I thought important that the issue and a workaround were
documented somehow... :-)
--
___
Python tracker
<http://bugs.python.org/issue11
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
Alexander Martin added the comment:
The successful script execution was run under Python 2.7.3 (as of today one of
the two as "production version" labeled releases). The initial report's
reference to Python 2.7.2 was made by mistake.
May anyone confirm this error beha
Martin Pool added the comment:
Hi, Martin,
On 20 August 2012 05:25, Martin v. Löwis wrote:
> Martin v. Löwis added the comment:
>
> (As usual), I'm quite skeptical about this "bulk bug report"; it violates the
> "one bug at a time" principle, wher
Martin Panter added the comment:
Another infinite loop that isn't caught in Python 3.2.1: With the symbolic link
link => link/inside
a readlink("link") call will keep looping.
Anyhow, the proposed solution in issue11397_py32_2.patch does not account for
paths with mu
New submission from Martin Panter :
See attached "leaky_generator.py" demo. Python doesn't appear to delete the
exception variable if an exception is thrown back into it (via "throw", "close"
or by deleting it). The result is a reference cycle that needs gar
Martin Pool added the comment:
this fixes the pickle warnings, and cleans up some (I'm pretty sure) dead code
in there. the pickle tests all pass.
--
keywords: +patch
nosy: +poolie
Added file: http://bugs.python.org/file22980/20110822-1150-python-warnings
Martin Pool added the comment:
This fixes every compiler warning so that Python build with -Werror on Ubuntu
Oneiric alpha (gcc 4.6.1-7ubuntu1).
* PyMem_Resize is a macro that mutates its first argument; the return value
shouldn't be used.
* Some variables in sre are (appar
Martin Pool added the comment:
The documentation for this can now point to the faulthandler module (in Python
3).
--
nosy: +poolie
___
Python tracker
<http://bugs.python.org/issue1
Changes by Martin Pool :
--
title: Python hang when catching a segfault -> documentation doesn't say that
you can't handle C segfaults from python
___
Python tracker
<http://bugs.pyth
Martin Pool added the comment:
This patch tries to improve the documentation a bit more to address the issue
that confused tebeka and to advertise faulthandler. Could someone review or
apply it?
--
keywords: +patch
Added file: http://bugs.python.org/file22989/20110822-1525-signal
Martin Pool added the comment:
> Note, 366 above confirms it's never true for an empty string. The
documentation states that \B "is just the opposite of \b" yet
re.match(r'\b', '') returns None and so does \B so \B isn't the opposite
of \b in al
Martin Pool added the comment:
My patch above fixes all the messages so that you get a clean build with the
current makefile.
-Wuninitialized and 'offset outside constant string' would be worth fixing but
I can't reproduce them in Python.
I'm personally not so keen on f
Martin Pool added the comment:
Z is well established as meaning "UTC time"
<http://en.wikipedia.org/wiki/Coordinated_Universal_Time#Time_zones> so
shouldn't be used for "zone not known." rfc 3393 is clear that it's equivalent
to +00:00.
So the questio
New submission from Lang Martin :
on line 765 of client/http.py, the client loops over the read method, sending
it's content to the web server. It appears as though the send method should
return at this point; instead it falls through and attempts to send the data
object through
Martin Pool added the comment:
On 31 August 2011 07:56, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
>> def handler(signal, stackframe):
>> print "OUCH"
>> stdout.flush()
>> _exit(1)
>
> What do you want to do
Martin Dunschen added the comment:
Hello Antoine
Unloading would not be necessary if the DLL is just the python interpreter,
but if you build a DLL with python embedded that does quite a bit more than
some python interpreting (in my case complex C/C++ numerical calculations)
unloading the DLL
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue10278>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Unzner :
Hi all,
while executing the following piece of code:
import tkinter
import tkinter.tix
if __name__=='__main__':
root = tkinter.Tk()
dirlist = tkinter.tix.DirSelectBox(root)
dirlist.pack()
root.mainloop()
the following erro
Martin Unzner added the comment:
Sorry, I just found the programming example in the documentary. Works now.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Martin Häcker :
When calling repr() on a compiled regex pattern like this:
> import re
> repr(re.compile('foo'))
you don't get the pattern of the regex out of the compiled form. Also all my
research has shown no getter to allow this.
I noticed t
New submission from Martin Häcker :
When looking at a regex with dir() you don't get all available attributes -
which is inconvenient as some very important ones (like .pattern) are not
visible.
To demonstrate:
> import re
> re.compile('foo').pattern
'
Martin Häcker added the comment:
Indeed, I'm on version
% python --version
Python 2.7.1
Sorry.
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org
Martin Pool added the comment:
> I'm not sure why having a locale set to C or something invalid should be
> considered a Python bug.
Programs like bzr that hit these problems can tell their users, either in the
docs or an error message, "change your locale to a UTF-8 one&
Martin Pool added the comment:
On 21 December 2011 11:01, STINNER Victor wrote:
>
> Again: please read the discussion (in closed issues) explaing why we removed
> it (and which problems it introduced).
There's a lot of history, so I'm not sure exactly which problems
you
Martin Pool added the comment:
On 21 December 2011 11:26, STINNER Victor wrote:
> I never checked which locale is used by default for programs called by cron.
> So I checked: on Fedora 16, programs start with a very few environment
> variables, and LANG and LC_ALL are not set. Yo
Martin Pool added the comment:
Thanks for the example.
Like you say, realistically, all data exchanged with other programs
and with the system needs to be in the same encoding. (User document
content may be in something else.)
On modern systems, this problem is solved by making the standard
Martin Pool added the comment:
On 21 December 2011 12:16, Antoine Pitrou wrote:
>
> Antoine Pitrou added the comment:
>
> So, you're complaining about something which works, kind of:
>
> $ touch héhé
> $ LANG=C python3 -c "import os; print(os.listdir())"
&g
Martin Pool added the comment:
On 21 December 2011 12:41, Antoine Pitrou wrote:
>
> Antoine Pitrou added the comment:
>
>> The standard encoding is UTF-8.
>
> How so? I don't know of any Linux or Unix spec which says so. If you get
> the Linux heads to standardiz
Martin Pool added the comment:
On 22 December 2011 11:21, STINNER Victor wrote:
> This discussion is becoming very long, I didn't remember the original
> purpose.
The proposal is that in some cases where Python currently assumes
filenames are ascii on Linux, it ought to instead
Martin Pool added the comment:
On 22 December 2011 12:32, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> On 22/12/2011 02:16, Martin Pool wrote:
>> The proposal is that in some cases where Python currently assumes
>> filenames are ascii on Linux, it
Martin Pool added the comment:
On 22 December 2011 13:15, STINNER Victor wrote:
> You cannot pass directly "h\xe9.txt", but if you know the "correct" file
> system encoding, you can encode it explicitly using str.encode("utf-8").
My recollection was
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue12922>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Pool added the comment:
Terry, that's fine. Thanks to everyone who contributed to the discussion.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue4806>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue11944>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
I haven’t tried to understand what the patches do, but Issue 5218 looks like a
very similar problem with a patch including a test case.
--
___
Python tracker
<http://bugs.python.org/issue4
Martin Panter added the comment:
See also Issue 4806
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue5218>
___
___
Python-bugs-list mailin
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue3132>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue2909>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
Also it would be nice to clarify if struct.Struct.format is meant to be a byte
string. Reading the documentation and examples I expected a character string.
It was an issue for me when embedding one structure within another:
HSF_VOL_DESC = Struct("<
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue13238>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue8604>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue7317>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Kugler:
Calling doc.replaceChild(new_child, old_child) with new_child and old_child
being similar nodes in two different documents results in new_child to be
removed from its document instead of old_child being removed from doc.
Example:
new_child
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue2927>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue16549>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Dengler :
--
nosy: +mdengler
___
Python tracker
<http://bugs.python.org/issue15716>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin Dengler :
--
nosy: +mdengler
___
Python tracker
<http://bugs.python.org/issue16499>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Mokrejs added the comment:
For the sake of internet archives, the following could be included in the FAQ
you referred to:
http://www.scipy.org/Cookbook/BuildingArrays
>>> import numpy as np
>>> a=np.array(5*[False],bool)
>>> a
array([False, False, False
Changes by Martin Panter :
--
nosy: +vadmium
___
Python tracker
<http://bugs.python.org/issue16809>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Mokrejs:
Hi,
I don't know if this is related to issue8040 or not. I find the 2.7 string
formatting behavior inconsistent. I found out sometimes I have to divide my
number by 100 so that the percentage values get printed correctly. Somehow,
when a percent
New submission from Martin Mokrejs:
Hi,
I do see relatively often a crash in python. Here is one stacktrace from my
Gentoo Linux running 3.7.4 kernel:
(gdb) where
#0 0x7f624f340f08 in visit_decref () from /usr/lib64/libpython2.7.so.1.0
#1 0x7f624f2a455a in list_traverse () from
Martin Melin added the comment:
Attached is a patch with Viraj's original fix except using a set instead of a
dict as suggested by Björn. This patch also includes a test case and a note in
the docs about this behavior.
Since Cookie has been moved and the code has been cleaned up som
Martin Melin added the comment:
Just adding the 3.2 patch
--
Added file: http://bugs.python.org/file29179/issue1375011-3.2.patch
___
Python tracker
<http://bugs.python.org/issue1375
Martin Melin added the comment:
FYI, this looks like the same issue as #1375011
--
nosy: +mmelin
___
Python tracker
<http://bugs.python.org/issue7504>
___
___
Martin Melin added the comment:
Not sure if there was anything more to it than this, but please find an attempt
to add this attached.
--
keywords: +patch
nosy: +mmelin
Added file: http://bugs.python.org/file29197/issue16709.patch
___
Python tracker
Martin Fiers added the comment:
This also affects our software. I agree with Dan (danmbox): I don't understand;
so many people depend on it and yet an out-of-the-box solution doesn't work.
I don't want to break the distutils package of our users because we use mingw.
Within on
Martin Fiers added the comment:
Dear Eric,
I never said that anyone of these volunteers is
unresponsible/stupid/whatsoever. It was also never my intention to express
myself in this way, so I apologize if you felt harmed in any way. I was just
suprised that this issue exists for so long. And
Joel Martin added the comment:
I can reproduce the problem (or at least get the same symptom) by doing
this (in 2.4.6, 2.5.4 and 2.6.2):
import subprocess, signal
signal.signal(signal.SIGCLD, signal.SIG_IGN)
subprocess.Popen(['echo','foo']).wait()
The echo comman
Changes by Martin Marcher :
--
nosy: +martin.marcher
___
Python tracker
<http://bugs.python.org/issue5672>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Altmayer :
In the following code I use a class for dictionary-keys that has a
__hash__-function but cannot be ordered and try to print that dictionary
with a PrettyPrinter.
import pprint
pp = pprint.PrettyPrinter()
# A class that supports hashing and comparison for
New submission from Ettl Martin :
during a check with the static code analysis tool cppcheck
(http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page)
the tool found a missing ')' in python-svn/Modules/flmodule.c that leads
to a regression.
Please refer the attached
New submission from Martin Manns :
In the Python 2.6.4 documentation "2. Built-in Functions" at
http://docs.python.org/library/functions.html,
the section about the xrange function (paragraph "CPython implementation
detail") contains the following code:
islice(count(start
Martin Manns added the comment:
The new snippet does not work for me:
>>> list(irange(-12, 20, 4))
[-12, -8, -4, 0, 4]
I have attached code that seems to work.
It is more than a snipped though.
--
Added file: http://bugs.python.org/file15922/
Martin Manns added the comment:
The new snippet works better.
>>> list(irange(-12, 20, 4))
[-12, -8, -4, 0, 4, 8, 12, 16]
However, it does not like large or negative slices:
>>> list(irange(-2**65,2**65,2**61))
Traceback (most recent call last):
File "", line
Martin Manns added the comment:
Great solution!
Thank you
--
___
Python tracker
<http://bugs.python.org/issue7721>
___
___
Python-bugs-list mailing list
Unsub
Changes by Martin McNickle <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file10280/add_header_complete.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Martin McNickle <[EMAIL PROTECTED]>:
Removed file: http://bugs.python.org/file10201/add_header_complete.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Martin McNickle <[EMAIL PROTECTED]> added the comment:
The mechanism for throwing an error has been written, however for the
case of a duplicated filename, it appears to have been deliberatly not
been used by the original author.:
def _writecheck(self, zinfo):
""&
Martin McNickle <[EMAIL PROTECTED]> added the comment:
I verified the behaviour but this is a problem with that particular
site, not with urllib/urllib2.
Should be closed.
--
nosy: +BitTorment
__
Tracker <[EMAIL PROTECTED]>
<http://
Martin Wilck <[EMAIL PROTECTED]> added the comment:
I am not in my office. I'll be back on June 30, 2008.
In urgent cases, please contact:
Peter Pols <[EMAIL PROTECTED]> or
Gerhard Wichert <[EMAIL PROTECTED]>
Best regards
Martin Wilck
Added file: http://bugs.pytho
New submission from Martin Mokrejs <[EMAIL PROTECTED]>:
I try to get working pipe emulation using Popen. I try to pass StringIO
object to p1.stdin of the first process and I got the following:
File "/usr/lib/python2.5/subprocess.py", line 587, in __init__
errread,
New submission from Martin Mokrejs <[EMAIL PROTECTED]>:
Although I do appreciate that you try to improve python it is not clear
to me from http://docs.python.org/lib/module-subprocess.html:
1. Why the old functions have been deprecated
2. I can pipe together two processes. But how can
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
Please link to http://www.python.org/dev/peps/pep-0324/ from the docs
webpage at least.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
Georg, but would you please improve the docs explaining what communicate
really does? The syntax is nice but I don't see how can I use poll()
described in the same above to use that. Providing Examples section
would be the best.
New submission from Martin Mokrejs <[EMAIL PROTECTED]>:
Hi,
although the issues libraries to be created with -fpic are known I
still do believe ./config could do something here:
building 'crypt' extension
gcc -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-
New submission from Martin Mokrejs <[EMAIL PROTECTED]>:
Hi,
when building on Solaris 2.6 with gcc I get the following error:
building '_ctypes' extension
gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/.
New submission from Martin Mokrejs <[EMAIL PROTECTED]>:
Some typo in the sources showing up on Solaris 2.6 only?
building 'mmap' extension
gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -I.
-IInc
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
# ar tv /usr/lib/libcrypt.a
rw-rw-r-- 0/1 1296 Jul 16 05:57 1997 crypt.o
rw-rw-r-- 0/1 4996 Jul 16 05:57 1997 cryptio.o
rw-rw-r-- 0/1 1508 Jul 16 05:57 1997 des_encrypt.o
rw-rw-r-- 0/1 5356 Jul 16 05:58 1997 des_crypt.o
# ls -l
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
A Goggle search gives between many others:
http://gcc.gnu.org/ml/gcc/2000-09/msg00054.html
http://www.ravenbrook.com/project/mps/master/design/vmso/
http://developers.sun.com/solaris/articles/read_mmap.html
Added file: http://bugs.pyth
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2004-07/0256.html
http://source.winehq.org/source/libs/wine/mmap.c
I will stop posting URLs. ;-)
___
Python tracker <[EMAIL PROTECTE
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
# ar x /usr/lib/libcrypt.a;nm -g des_crypt.o
U ___errno
033c T _des_crypt
0274 T _des_encrypt
U _des_encrypt1
01b0 T _des_setkey
U _mutex_lock
U _mutex_unlock
U _thr_getsp
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
So adding these two lines helped:
# diff /usr/scratch/Python-2.5.2/Modules/mmapmodule.c.ori
/usr/scratch/Python-2.5.2/Modules/mmapmodule.c
36a37
> #include
38a40
> #include
#
___
Python tra
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
Thanks, but I can only help with testing. :(
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
Could it be the name clashing problem between -lcrypt and -lcrypto?
bash-3.00# ar x /usr/lib/libcrypt.a;nm -g des_crypt.o
U ___errno
033c T _des_crypt
0274 T _des_encrypt
U _des_encrypt1
01b0 T _des_
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
You say "did always work"?
http://mail.python.org/pipermail/python-list/2002-December/177479.html
Maybe the reason why in ruby they forced to -shared flag
because it was possible to link only with the shared library?
I
Martin Mokrejs <[EMAIL PROTECTED]> added the comment:
Confirming the enabling line 216 like below helped. Thanks. Maybe change
"Resolution"?
204 # Socket module helper for SSL support; you must comment out the
other
205 # socket line above, and possibly edit the SSL v
Martin Wilck <[EMAIL PROTECTED]> added the comment:
I am not in my office. I'll be back on August 25, 2008.
In urgent cases, please contact:
Peter Pols <[EMAIL PROTECTED]> or
Gerhard Wichert <[EMAIL PROTECTED]>
Best regards
Martin Wilck
Added file: http://bu
New submission from Martin Meredith <[EMAIL PROTECTED]>:
Recently, a blind user posted on Stack Overflow asking whether there was
something that would allow them to use braces within python.
They have a point, with only tabs being show in the editor, it can be
very confusing for a blin
New submission from Martin Marcher <[EMAIL PROTECTED]>:
http://docs.python.org/reference/simple_stmts.html#future-statements
says this:
"""
The features recognized by Python 2.5 are absolute_import, division,
generators, nested_scopes and with_statement. generators
New submission from Martin Green <[EMAIL PROTECTED]>:
I suspect that the following behavior is incorrect:
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32
>>> -1**2
-1
>>> -2**2
-4
>>> -1**0.5
-1.0
The same happens whe
101 - 200 of 2245 matches
Mail list logo