New submission from Martin Fischer :
The unittest documentation[1] describes unittest.doModuleCleanups().
That function however doesn't exist since it's only in the unittest.case module
and not re-exported in the unittest module (unlike addModuleCleanup).
So I think either the doc
Change by Martin Fischer :
--
title: unittest.doModuleCleanups() does not exist -> [doc]
unittest.doModuleCleanups() does not exist
___
Python tracker
<https://bugs.python.org/issu
New submission from Martin Fischer :
API members documented in sphinx have an object name, which allow the
documentation to be linked from other projects. Sphinx calculates the
object name by prefixing the current module name to the directive
argument, e.g:
.. module:: foo
.. function
Change by Martin Fischer :
--
keywords: +patch
pull_requests: +29739
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31615
___
Python tracker
<https://bugs.python.org/issu
New submission from Martin Fischer :
As per [1] the py:data directive describes data in a module.
It should not be used for submodules, that's what the module directive is for.
A side-effect that this is causing is that msilib.schema, msilib.sequence
and msilib.text do not show up i
Change by Martin Fischer :
--
keywords: +patch
pull_requests: +29744
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31620
___
Python tracker
<https://bugs.python.org/issu
Martin Fischer added the comment:
([2] was meant to be an online link:
https://docs.python.org/3.9/py-modindex.html#cap-m)
--
___
Python tracker
<https://bugs.python.org/issue46
Martin Fischer added the comment:
Can you attach such a .zip file so that others can reproduce the bug?
--
nosy: +push-f
___
Python tracker
<https://bugs.python.org/issue46
Martin Panter added the comment:
The ctypes overflow is probably the same as described in Issue 28169 and Issue
15119
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue46
New submission from Martin Horcicka:
This patch makes os.environ.clear() to have the same effect as:
for name in os.environ.keys():
del os.environ[name]
I believe that most people expect the effects to be the same anyway.
The practical benefit is a simpler redefinition of the whole
New submission from Martin Horcicka:
Many people expect the match object from the re module to always be
true. They use it this way:
if regexp.match(string): do_something()
Some people do not expect it and use it differently:
if regexp.match(string) is not None: do_something()
Even
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
New submission from Martin Ponweiser :
I hope the title is self-explanatory.
--
assignee: docs@python
components: Documentation
messages: 137178
nosy: docs@python, mponweiser
priority: normal
severity: normal
status: open
title: Documentation Std. Library 15.7.5 "LogRecord ob
Martin Ponweiser added the comment:
You are right, I should have looked closer -- sorry to all involved.
Nevertheless this caused some confusion here. I guess mentioning the
inconsistency in the documentation is out of the question.
On Mon, May 30, 2011 at 10:10 AM, Petri Lehtinen wrote
New submission from Martin Marcher :
Slight typo in the docs.
I don't quite know how to work with mercurial. Hope it'll just work to merge
the bitbucket link.
Typo is here:
http://docs.python.org/py3k/library/asyncore.html#asyncore.dispatcher.handle_accepted
(but also present in
Martin Marcher added the comment:
Fix repo link :(
--
hgrepos: +31
___
Python tracker
<http://bugs.python.org/issue12360>
___
___
Python-bugs-list mailin
Changes by Martin Marcher :
--
keywords: +patch
Added file: http://bugs.python.org/file22405/2d9bc44963f6.diff
___
Python tracker
<http://bugs.python.org/issue12
Changes by Martin Marcher :
--
nosy: +serverhorror
___
Python tracker
<http://bugs.python.org/issue4111>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
New submission from Martin Rinehart :
LinkedIn
I'd like to add you to my professional network on LinkedIn.
- Martin Rinehart
Martin Rinehart
Student at Strayer Online
Greater New York City Area
Confirm that you know Martin Rinehart
https://www.linkedin.com/e/-3qcne3-gejswd
Martin Spacek added the comment:
NumPy is addressing this with a workaround in its ndarray, calling fwrite
multiple times in reasonably sized chunks. See
http://projects.scipy.org/numpy/ticket/1660
--
nosy: +mspacek
type: -> crash
___
Pyt
Martin Spacek added the comment:
It turns out this isn't just a problem with array.array. It's a problem with
Python's file.write() as well. Here's my test code:
# file.write() test:
FOURGBMINUS = 2**32 - 16
s = '0123456789012345' # 16 bytes
longs = ''.
Martin Spacek added the comment:
I suppose someone should confirm this problem on Py > 2.6?
--
components: +Extension Modules, Windows
___
Python tracker
<http://bugs.python.org/iss
Martin Spacek added the comment:
We've got a near duplicate Issue9015. This thread seems more considered though
:) Note that writing more than 2**32-1 bytes at once results in a hung process
with 100% CPU in 64-bit Windows, which has to be killed with Task Manager. So I
think that qual
New submission from Martin Dunschen :
I found a number of 'handle leaks' in the core code to embed python into a
C/C++ application on windows.
To reproduce:
The simplest possible embedded application only calls:
#include
void entry()
{
Py_Initialize();
Py_Finalize();
}
I
Martin Dunschen added the comment:
Here my suggested changes in plain text (I generated these as patches from a
diff to the current code):
thread.c:
353a354,359
> void PyThread_fini()
> {
> // should assert here that nkeys == 0
> PyThread_free_lock(keymutex);
> }
Martin Dunschen added the comment:
I have identified 5 cases where objects of type PyThread_type_lock are
allocated but never freed again:
import.c:
import_lock
pystate.c:
head_mutex
thread.c:
key_mutex
ceval.c:
interpreter_lock
zliblock.c:
zlib_lock
This leads to a
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 Budaj :
The method Sniffer._guess_quote_and_delimiter() in the module csv.py contains a
bug in a regexp which checks for quotes around the last item of the line
(example: a,b,"c,d"\n).
the pattern
'(?P>[^\w\n"\'])(?P ?)(?P["\
Martin Budaj added the comment:
Units test and two patches for 2.7 are included.
p1.patch fixes testEnd case reported yesterday
After running unittest it seems that also other case is broken (testAl -- if
there is just one data item on the line, enclosed in quotes). Patch p2 fixes
it, but
Martin Budaj added the comment:
I'm not sure about what the intended behavior for testAl should be, however I
think that the file should be recognized as having one column of data and no
delimiter (there is a test for this case in csv.py) and not raise an exception.
I attach patc
Martin Budaj added the comment:
> What do you mean by "there is a test for this case in csv.py"?
I meant test in regex on line 217 in python 2.7 and the following code (line
258ff):
# there is *no* delimiter, it's a single column of quoted data
delim = ''
skipi
New submission from Martin Potthast :
The title says it all; try the minimal example.
--
components: Library (Lib)
files: parser-fail.py
messages: 124506
nosy: Martin.Potthast
priority: normal
severity: normal
status: open
title: HTMLParser.unescape() cannot handle HTML entities with
Changes by Martin Potthast :
--
title: HTMLParser.unescape() cannot handle HTML entities with incorrect syntax
(e.g. &#hearts;) -> HTMLParser.unescape() fails on HTML entities with incorrect
syntax (e.g. &#hearts;)
___
Python tra
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
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 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
Martin Manns added the comment:
So could we replace
"If a larger range is needed, an alternate version can be crafted using the
itertools module: islice(count(start, step), (stop-start+step-1)//step)."
by
"If a larger range is needed, an alternate version can be crafted using
New submission from Martin Ducár :
During python regrtest.py i have found that doctest test module does not count
with expected output when using testfile test_doctest.txt. Example output of
the test:
-
File "/us
New submission from Martin Zimmermann :
try this:
x = (05, 06, 07)
y = (08, 09, 019)
you will get SyntaxError: invalid token.
(also in python 2.5.2)
--
components: Interpreter Core
messages: 102706
nosy: posativ
severity: normal
status: open
title: SyntaxError: integer assignment with
101 - 200 of 8009 matches
Mail list logo