Oliver Martin added the comment:
I got bitten by this too. In addition to not decoding encoded words without
whitespace after them, it throws an exception if there is a valid encoded word
later in the string and the first encoded word is followed by something that
isn't a hex n
Changes by Martin Ducár :
--
versions: +Python 2.5
___
Python tracker
<http://bugs.python.org/issue2554>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Martin Rinehart:
The tokenizer accepts '0x' as an integer zero. The documentation says:
hexinteger ::= 0x|Xhexdigit+
Stumbled on this testing a tokenizer I wrote in Python for another
language. Expected an Error on "int( '0x',
New submission from Martin Marcher:
In this site: http://www.python.org/doc/current/inst/about.html under
"Comments and Questions" the link to the python bugtracker is still
pointing to the sourceforge bugtracker.
--
components: Documentation
messages: 59502
nosy: mart
Martin Rinehart added the comment:
re 0x == 0
Thanks!
Added file: http://bugs.python.org/file9268/unnamed
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1679>
__re 0
Martin Wilck added the comment:
I think this is a major issue because urllib2 is widely used, and any
application using it is useless behind a HTTPS proxy. A Prominent
example in the Linux world is yum, the Fedora Linux package management
tool. HTTPS proxies are a extermely common in the
Martin Wilck added the comment:
The recipe in its current form doesn't work with urllib2 in python 2.5
The reason it fails is that the HTTPConnection.request() method isn't
passed the request itself (with the proxy host and port info). No easy
solution to be seen.
--
nos
New submission from Martin Geisler <[EMAIL PROTECTED]>:
The traceback message given when trying to hash unhashable objects has
changed from Python 2.5 to 2.6:
Python 2.5.2a0 (r251:54863, Feb 10 2008, 01:31:28)
>>> hash([])
Traceback (most recent call last):
File "&quo
Martin McNickle <[EMAIL PROTECTED]> added the comment:
RFC2617 says that the authentication scheme should be case insensitive.
Included is a patch which changes the string to uppercase before
comparison.
--
keywords: +patch
nosy: +BitTorment
Added file: http://bugs.python.org/fil
Martin McNickle <[EMAIL PROTECTED]> added the comment:
I can see that there will be a problem in this case.
However, it may be that the authors found it more intuitive to always
set the Content-Type to application/x-www-form-urlencoded when data is set.
Their implementation is incons
Martin McNickle <[EMAIL PROTECTED]> added the comment:
Sorry, the first example should read:
#---
request = urllib2.Request('http://www.whompbox.com/headertest.php')
request.add_data(data)
f = urllib2.urlopen(request)
re
Martin McNickle <[EMAIL PROTECTED]> added the comment:
I decided that the user should have full control over the headers sent.
Any call to add_header() or add_redirected_header() will now check if a
header with that same name has been set in the Request before (in both
the header a
Changes by Martin McNickle <[EMAIL PROTECTED]>:
Removed file: http://bugs.python.org/file10200/add_header_complete.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Martin McNickle <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file10201/add_header_complete.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Martin McNickle <[EMAIL PROTECTED]> added the comment:
This looks good. I would suggest that the unredirected_hdrs would use
the CaseInsensitiveDict too.
There is still the problem (from the test documentation) that accessing
.headers directly will only show a subset of headers i.e. it
Martin McNickle <[EMAIL PROTECTED]> added the comment:
The problem lines are in AbstractHTTPHandler.do_request():
scheme, sel = splittype(request.get_selector())
sel_host, sel_path = splithost(sel)
if not request.has_header('Host'):
request.add_unredirec
Changes by Martin McNickle <[EMAIL PROTECTED]>:
--
components: +Library (Lib) -Extension Modules
versions: +Python 2.6, Python 3.0
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
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
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
Nick Martin <[EMAIL PROTECTED]> added the comment:
This is exactly the same problem I was having with bdist_msi.
--
nosy: +nick.martin
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
New submission from Martin Meredith <[EMAIL PROTECTED]>:
I'm a new python user (developing in python) and I recently had a
discussion with someone that my main issue with python is finding where
the functions are that I need to use.
An example (probably not the best) - I need
Martin Meredith <[EMAIL PROTECTED]> added the comment:
Well, I can't offer a patch (as I said - I'm a python n00b) - but I can
offer suggestions.
1) show the functions as where they are - for example - splitext would
be shown as os.path.splitext(arguments)
2) header titles f
New submission from Martin Diers <[EMAIL PROTECTED]>:
Test was run with sudo. All other tests passed.
Here is the verbose output of test_httpservers:
Re-running test 'test_httpservers' in verbose mode
test_command (test.test_httpservers.BaseHTTPServerTestCase) ...
Martin Diers <[EMAIL PROTECTED]> added the comment:
A couple more notes:
I am building using a fink installation: --prefix=/sw, in order to gain
readline support. The only modules that are not installed are
ossaudiodev and spwd.
Next, I just did a build from a checkout of the r30 tag
Martin Diers <[EMAIL PROTECTED]> added the comment:
A couple more notes:
I am building using a fink installation: --prefix=/sw, in order to gain
readline support. The only modules that are not installed are
ossaudiodev and spwd.
Next, I just did a build from a checkout of the r30 tag
Changes by Martin Diers <[EMAIL PROTECTED]>:
--
title: test_httpservers consistently fails on OS X -> test_httpservers
consistently fails on OS X using tarball, but not svn tag r30
___
Python tracker <[EMAIL PROTECTED]>
<http
New submission from Martin Mokrejs :
I think the following error output unsatisfactory as it does not give me
any hint what file was not found:
$ fetch_quals.py blah.txt
Traceback (most recent call last):
File "/home/mmokrejs/bin/fetch_quals.py", line 15, in
_p1 = subpro
New submission from Martin Saturka :
Directory selection from Tkinter part of Python 3.0, i.e. "askdirectory"
function from tkinter.filedialog does not work. It works for 2.x Python,
other Tkinter functions (askopenfilename, asksaveasfilename) work well
at both 2.x and 3.
Martin Saturka added the comment:
When I do in Python 2.x (e.g. 2.6) next:
import Tkinter as T
import tkFileDialog as F
t = T.Tk()
dn = F.askdirectory()
It pop-ups the dialog, it is OK. Analogical case for Python 3.0 does not
work, at
New submission from Martin Blais :
Here is a useful trick to restore the normal call syntax for delayed
evaluation for assertRaises():
from contextlib import contextmanager
@contextmanager
def raised(exctype):
try:
yield
raise AssertionError
Changes by Martin Blais :
--
components: +Library (Lib)
type: -> feature request
___
Python tracker
<http://bugs.python.org/issue5206>
___
___
Python-bugs-lis
Change by Martin Dengler :
--
nosy: +mdengler
___
Python tracker
<https://bugs.python.org/issue43323>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Martin Dengler :
--
nosy: +mdengler
___
Python tracker
<https://bugs.python.org/issue43818>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Dengler added the comment:
Possible related to https://github.com/python/cpython/pull/32137 and
https://bugs.python.org/issue43323
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Martin Liška :
Note -D_FORTIFY_SOURCE=3 will come newly with GCC12. So I noticed the following
error:
demo.py:
```python
import curses
curses.initscr()
curses.unget_wch('a')
```
Error message:
*** buffer overflow detected ***: terminated
Bac
Martin Liška added the comment:
So the issue is ncurses, closing here.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Paul Martin added the comment:
run_in_executor doesn't necessarily create a new thread each time so
create_thread would be misleading. run_in_thread might be better.
--
nosy: +primal
___
Python tracker
<https://bugs.python.org/is
Martin Panter added the comment:
Looks like the change causing this is revision cc3fa20. I would remove the
reference to pdict['CONTENT-LENGTH'].
--
keywords: +3.7regression
nosy: +martin.panter
___
Python tracker
<https://bu
Paul Martin added the comment:
Should singledispatchmethod and cached_property be added?
--
nosy: +primal
___
Python tracker
<https://bugs.python.org/issue37
New submission from Paul Martin :
Expected behaviour for DatagramTransport (from_SelectorDatagramTransport):
transport.close() called.
If there is data in the write buffer, don't call connection_lost.
When all data is written and the buffer is empty, check if connection has been
lost a
Change by Paul Martin :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue38471>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Paul Martin :
--
keywords: +patch
pull_requests: +16341
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16779
___
Python tracker
<https://bugs.python.org/issu
Change by Paul Martin :
--
pull_requests: +16408
pull_request: https://github.com/python/cpython/pull/16863
___
Python tracker
<https://bugs.python.org/issue38
Paul Martin added the comment:
I don't think changing the default executor is a good approach. What happens,
if two or more thread pools are running at the same time? In that case they
will use the same default executor anyway, so creating a new executor each time
seems like a
Paul Martin added the comment:
Run method should be:
async def run(self, func, *args, **kwargs):
call = functools.partial(func, *args, **kwargs)
return await self._loop.run_in_executor(None, call)
--
___
Python tracker
<ht
Paul Martin added the comment:
Good points. I made a mistake in run
Should be:
async def run(self, func, *args, **kwargs):
call = functools.partial(func, *args, **kwargs)
return await self._loop.run_in_executor(self._executor, call)
Also in this case run awaits and
Martin Cooper added the comment:
I think you are confusing the perspective of the implementor with that of the
typical developer _using_ the toolkit without reading through its source code.
In my tkinter applications, I pretty much always use ttk widgets where they are
available. This is
Martin Panter added the comment:
I don't have a strong opinion, but it does seem a sensible change that matches
the high-level nature of the "cookiejar" module, with low risk of users relying
on the current file permissions. On the other hand, the "curl" command
Martin Panter added the comment:
Anselm's pull request PR 15175 looked hopeful to me. I've been using those
changes in our builds at work for a while.
--
___
Python tracker
<https://bugs.python.o
Martin Panter added the comment:
I suspect this comes from Issue 27657. Consider how similar URLs like tel:123
or javascript:123 should be parsed.
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue44
Martin Teichmann added the comment:
This is a years old issue, unfortunately it never got neither merged nor
rejected. I just rebased it and hope somebody could finish the review.
--
versions: +Python 3.11 -Python 3.8
___
Python tracker
<ht
New submission from Martin Teichmann :
Currently, fraction.Fractions can be generated from floats via their
as_integer_ratio method. This had been extended to also work with the Decimals
class. It would be more generic - and IMHO more Pythonic - to just allow any
data type, as long as it has
Change by Martin Teichmann :
--
keywords: +patch
pull_requests: +24705
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26064
___
Python tracker
<https://bugs.python.org/issu
Martin Panter added the comment:
I presume this is because you are running a Unix shell, and it's nothing to do
with Python. Look up how quoting and variable substitution with dollar signs $
works.
$ set -o nounset
$ python3 -c "import urllib.parse; print
(urllib.parse.quote(
Martin Panter added the comment:
Another workaround:
>>> '{:{brace}>10d}'.format(5, brace='{')
'{5'
--
nosy: +martin.panter
___
Python tr
Martin Ortner added the comment:
> This bug report starts with "a malicious user with direct access to
> `smtplib.SMTP(..., local_hostname, ..)", which is a senseless supposition.
> Anyone with "access to" the SMTP object could just as well be talking
> di
Paul Martin added the comment:
The difference between the two is the difference between your local time and
utc.
datetime.now(timezone.utc)
This returns the current time in utc and is timezone aware. So the timestamp
can figure out the seconds since epoch taking into account the timezone
Ross Martin added the comment:
I would like to fix this, if it hasnt been assigned already.
--
nosy: +MrRBM97
___
Python tracker
<https://bugs.python.org/issue45
Martin Panter added the comment:
Issue 21109 has been open for a while and is the same as this, if I am not
mistaken.
--
nosy: +martin.panter
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> tarfile: Traversal attack v
Martin Panter added the comment:
Looks like the same as Issue 32917. I presume there are two newlines at the end
of the file because there are two newlines following every config section.
IMO this is a minor cosmetic annoyance, just like writing a key with an empty
value gets you a trailing
Change by Marcel Martin :
--
nosy: +marcelm
___
Python tracker
<https://bugs.python.org/issue45387>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
Looks like you forgot to encode the length of ten in hexadecimal.
I don't think the HTTP server module has any special handling for chunked
responses, so this up to the user and isn't a bug in Python.
--
nosy: +martin.panter
resolution: -&
Change by Martin DeMello :
--
nosy: +martindemello
nosy_count: 4.0 -> 5.0
pull_requests: +27384
pull_request: https://github.com/python/cpython/pull/10618
___
Python tracker
<https://bugs.python.org/issu
Martin Panter added the comment:
The subprocess module only uses the file object to get a file handle by calling
the "fileno" method. See Issue 19992 about documenting this. For Python to
compress the output of the child process, you would need a pipe.
Gzip file objects provide t
Martin Rueckl added the comment:
Can confirm for 3.9.7 as well.
--
nosy: +martinitus
___
Python tracker
<https://bugs.python.org/issue45438>
___
___
Python-bug
Change by Martin Rueckl :
--
keywords: +patch
pull_requests: +27476
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29212
___
Python tracker
<https://bugs.python.org/issu
Martin Rueckl added the comment:
I just created a PR and signed the contributor agreement. Waiting for it to
update :-) Comments welcome!
--
___
Python tracker
<https://bugs.python.org/issue45
Martin Rueckl added the comment:
Just my two cents as a new contributor but long time user:
- isinstance(list[int], type) returning False seems incredibly un-intuitive to
me. I always see generics (e.g. list without type parameter) as higher kinded
types, where passing a type argument via
Martin Rueckl added the comment:
One thing that probably should be considered in this context:
isinstance(arg, type) == issubclass(type(arg), type)
Holds True for arg in (Optional[X], Union[X, Y]). Both sides evaluate to False.
(v3.10.0)
While I still think both sides evaluating to True
Martin Rueckl added the comment:
Sorry for the noise:
- Literal['a', 'b'],
- TypeVar('T')
Behave like Optional/Union
--
___
Python tracker
<h
Change by Martin Panter :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue29979>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
I suggest to keep the discussion with Issue 12455
--
nosy: +martin.panter
superseder: -> urllib2 forces title() on header names, breaking some requests
___
Python tracker
<https://bugs.python.org/issu
Martin Panter added the comment:
Previously Issue 12215 and a couple of other duplicates were opened about this.
Writing after reading with TextIOWrapper doesn't work as people expect. The
report was closed apparently because Victor thought there wasn't enough
interest in it.
FWI
Martin Teichmann added the comment:
Hi Andrew,
I still don't get your point. First, this is an extension to the asyncio
library, so concurrency is not an issue. And sure, if you call random methods
of an object without any reason the outcome won't be anything useful, why, in
yo
Martin Teichmann added the comment:
Yes, in the one-producer-many-consumers situation on can indeed to the trick
with the None. But this is just a clumsy hack, cancelling the tasks is IMHO
more in line with asyncio.
In the many-producers-one-consumer scenario this does not work. The one
Martin Teichmann added the comment:
I do not think that exposing the lists of futures does any good. I cannot come
up with a semantics that could be implemented with that other than the one
proposed.
Also I think that close() or cancel() is something a reader intuitively
understands, while
New submission from Martin Liška :
The test-case is stuck after update to GCC 10.
I've got a patch for that.
--
messages: 357778
nosy: Martin Liška
priority: normal
severity: normal
status: open
title: test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck
with
Change by Martin Liška :
--
keywords: +patch
pull_requests: +16942
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17462
___
Python tracker
<https://bugs.python.org/issu
Martin Panter added the comment:
Another workaround might be to set the new "block_on_close" flag (Issue 33540)
to False on the server subclass or instance.
Victor: Replying to <https://bugs.python.org/issue37193#msg345817> "What do I
think of also using a weakref
New submission from Martin Meo :
"""
Unexpected behavior report
Dictionary get(key, default-expression) not short circuit behavior
MacOS 10.14.6
sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
BACKGROUND
A python dictionary is a data st
Change by Martin Panter :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue37788>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
FTR I have been trialling a patched Python 3.7 based on Maru's changes
(revision 6ac217c) + review suggestions, and it has reduced the size of the
leak (hit 1 GB over a couple days, vs only 60 MB increase over three days). The
remaining leak cou
New submission from Jonathan Martin :
I'm trying to use SSL to validate clients connecting a an asyncio socket server
by specifying CERT_REQUIRED and giving a `cafile` containing the client
certificate to allow. client and server code attached.
Certificates are generated with:
openss
Martin Panter added the comment:
Is there a recommended replacement for calculating CRC-CCITT? Do it yourself in
Python code, or use a particular external module?
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue39
Martin Panter added the comment:
Building and verifying the checksum in "RTA protocol" that uses this:
<https://rms.nsw.gov.au/business-industry/partners-suppliers/documents/specifications/tsi-sp-003.pdf>.
But I understand CRC-CCITT is one of the two popular 16-bit CRC polyn
Martin Panter added the comment:
Of course I would prefer “crc_hqx” to stay, because we use it at work. But I
understand if you think it is not popular enough to justify maintaining it.
But I was more asking if the deprecation notice should point the way forward.
This function is no longer
Martin Panter added the comment:
Thanks Victor
--
___
Python tracker
<https://bugs.python.org/issue39353>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Panter added the comment:
Closing in favour of Issue 39574 where a new wording is proposed
--
nosy: +martin.panter
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> str.__doc__ is misleading
__
Martin Panter added the comment:
Please don’t use “from None” in library code. It hides exceptions raised by the
calling application that would help debugging. E.g.
<https://bugs.python.org/issue30097#msg293185>
--
nosy: +martin.panter
___
Martin Panter added the comment:
See also Issue 39509, proposing to add 103 and "425 Too Early"
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.o
Martin Ni added the comment:
Hello sir! I got exactly same issue when compile some ipk in Openwrt. Would
tell how to add "-lz" to python-config? I am not so familiar with Python
coding. Thanks!
--
nosy: +Martin Ni
___
Python track
Martin Panter added the comment:
I’m not an expert on the topic, but it sounds like this might be a duplicate of
Issue 23434, which has more discussion.
--
nosy: +martin.panter
resolution: -> duplicate
status: open -> pending
superseder: -> support encoded filename i
Martin Panter added the comment:
The file descriptor created by "os.dup" is not inherited by child processes by
default since Python 3.4.
https://docs.python.org/3/library/os.html#os.dup
Does it work if you use "os.set_inheritable" or "os.dup2" (which appa
Change by Martin Laus :
--
nosy: +Martin Laus
___
Python tracker
<https://bugs.python.org/issue38884>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Paul Martin :
According to the docs:
"
There are several ways to enable asyncio debug mode.
Setting the PYTHONASYNCIODEBUG environment variable to 1.
Using the -X dev Python command line option.
Passing debug=True to asyncio.run().
Calling loop.set_debug().
Martin Natano added the comment:
I just verified that this is not an issue in python 3.8.6 and python 3.9.0. In
those versions a normal stacktrace is generated, as expected.
--
nosy: +natano
___
Python tracker
<https://bugs.python.org/issue42
New submission from Martin Natano :
A task created with asyncio.shield() never retrieves the task exception, which
results in a log message being generated. See the attached script for a minimal
example. Output looks something like this:
Task exception was never retrieved
future: exception
Martin Natano added the comment:
I'm not sure how to fix this, but here is a regression test for the issue.
(failing on the current master branch)
--
keywords: +patch
Added file: https://bugs.python.org/file49680/regression-test.patch
___
P
Martin Natano added the comment:
How would calling `outer.exception()` suppress the message? This happens when
the outer task is cancelled while the inner task is still running. In that case
the exception is never set on outer.
--
___
Python
201 - 300 of 8009 matches
Mail list logo