karl added the comment:
Just to note that there is a maintained list of officially accepted schemes at
IANA.
https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
In addition there is a list of unofficial schemes on wikipedia
https://en.wikipedia.org/wiki/List_of_URI_schemes
karl added the comment:
could not reproduce the error
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from karl :
by copy a large file e.g.
-rwxrwxr-x 1 1002 1001 5359338160 Feb 9 2019 xxx_file_xxx.mdx
copy2 / sendfile / fastcopy fails with:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (
New submission from Karl Y. Pradene :
In robotparser.py
On line 222
path = urllib.parse.urlunparse(urllib.parse.urlparse(path))
tranform the entry Disallow: /?
in the google.com/robots.txt
in : Disallow: /
making every can_fetch request return False
--
components: Library (Lib
karl added the comment:
Status: The PR should be ready and completed
https://github.com/python/cpython/pull/24072
and eventually be merged at a point.
Thanks to ezio.melotti for the wonderful guidance.
--
___
Python tracker
<ht
Change by karl :
--
pull_requests: +22980
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/24152
___
Python tracker
<https://bugs.python.org/issu
karl added the comment:
Ah no. They ARE used
through defproperty and minicompat.py
get = getattr(klass, ("_get_" + name))
--
___
Python tracker
<https://bugs.python.o
karl added the comment:
These methods are not used anywhere in the code.
https://github.com/python/cpython/blob/5c30145afb6053998e3518befff638d207047f00/Lib/xml/dom/minidom.py#L71-L80
What was the purpose when they were created… hmm maybe blame would give clue.
Ah they were added a long
karl added the comment:
@zach.ware
@r.david.murray
I'm going through the source currently.
I see that the test file is using:
class MinidomTest(unittest.TestCase):
def confirm(self, test, testname = "Test"):
self.assertTrue(test, testname)
Is there a specifi
karl added the comment:
I wonder if the confusion comes from the name. The HTMLParser is kind of a
tokenizer more than a full HTML parser, but that's probably a detail. It
doesn't create a DOM Tree which you can access, but could help you to build a
DOM Tree (!= DOM Document obje
karl added the comment:
The parsing rules for tokenization of html are at
https://html.spec.whatwg.org/multipage/parsing.html#tokenization
In the stack of open elements, there are specific rules for certain elements.
https://html.spec.whatwg.org/multipage/parsing.html#special
from a DOM
New submission from karl :
This comes up while working on issue 41748
browser input
data:text/html,text
browser output
text
Actual HTMLParser output
see https://github.com/python/cpython/pull/24072#discussion_r551158342
('starttag', 'div', [('class', 'b
Change by karl :
--
nosy: +karlcow
___
Python tracker
<https://bugs.python.org/issue28937>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Change by karl :
--
keywords: +patch
pull_requests: +22904
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/24072
___
Python tracker
<https://bugs.python.org/issu
karl added the comment:
Ah!
This is fixing it
diff --git a/Lib/html/parser.py b/Lib/html/parser.py
index 6083077981..790666 100644
--- a/Lib/html/parser.py
+++ b/Lib/html/parser.py
@@ -44,7 +44,7 @@
(?:\s*=+\s*# value indicator
Change by karl :
--
title: HTMLParser: parsing error -> HTMLParser: comma in attribute values
with/without space
___
Python tracker
<https://bugs.python.org/issu
karl added the comment:
Ezio,
TL,DR: Testing in browsers and adding two tests for this issue.
Should I create a PR just for the tests?
https://github.com/python/cpython/blame/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Lib/test/test_htmlparser.py#L479-L485
A: comma without spaces
karl added the comment:
> The getattr call here has a default value, so it should not raise
> AttributeError. It should also not raise any other exception because a valid
> implementation of __getattr__ should raise only AttributeError:
but probably the intent of the patch h
karl added the comment:
Converted into GitHub PR https://github.com/python/cpython/pull/24038
--
___
Python tracker
<https://bugs.python.org/issue4643>
___
___
Change by karl :
--
nosy: +karlcow
nosy_count: 4.0 -> 5.0
pull_requests: +22878
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/24038
___
Python tracker
<https://bugs.python.org/
karl added the comment:
@iritkatriel Github PR done.
https://github.com/python/cpython/pull/24034
--
___
Python tracker
<https://bugs.python.org/issue25
Change by karl :
--
keywords: +patch
nosy: +karlcow
nosy_count: 2.0 -> 3.0
pull_requests: +22875
pull_request: https://github.com/python/cpython/pull/24034
___
Python tracker
<https://bugs.python.org/issu
New submission from Karl Nelson :
When developing with JPype, the largest hole currently is that Java returns a
string type which cannot be represented as a str. Java strings are string like
and immutable and can be pulled to Python when needed, but it is best if they
remain in Java until
Karl Fogel added the comment:
I can also confirm this bug, with Python 3.9.1 on Debian GNU/Linux ('testing'
distro up-to-date as of 2020-12-21).
1) Create a parser `p` with `p =
email.parser.HeaderParser(policy=email.policy.default)`.
2) Parse a single problematic (as descr
Karl Nelson added the comment:
Okay, well at least now googling Python + "A dynamic link library (DLL)
initialization routine failed." give something which could point a user may be
able to identify the issue. It wasn't obvious to me that imports did not hold
the GIL, but
Karl Nelson added the comment:
I found it. The change that hit JPype is https://bugs.python.org/issue33895
Thanks, Eryk Sun for figuring this out. I would never have gotten myself.
--
___
Python tracker
<https://bugs.python.org/issue42
Karl Nelson added the comment:
Drat I missed that one when I was scanning for statics because I was focusing
C++ resource rather than looking for Python resources. I also wouldn't have
expected this to happen on only one platform, but that was my bad.
Is it possible to improve the
Karl Nelson added the comment:
Gave another series of shots at the problem. So the reason that attaching the
debugger fixes the issue is that it calls LoadLibraryExW for a bunch libraries
when it attaches.
I was also able to unconditionally trigger the bug even when loading without
the
Karl Nelson added the comment:
I will look through the list of samples in Detours to see if there is something
that can give us better stacktrace information. If we really need a stack
trace I can make Detours bust by creating an intentional segfault and see if we
can attach the debugger
Karl Nelson added the comment:
I looked more at the logs to see if I can find out what to instrument next.
The log files unfortunately don't diff well because every line contains a
timestamp so I can't a proper alignment as well as all the real addresses. So
I wrote a short
Karl Nelson added the comment:
Eryk,
Unfortunately, this particular bug is resistant to attaching the debugger.
Whenever the debugger is attached the bug disappears. Fortunately the
suggestion to use Detours by WildCard65 appears to offer a way to diagnose the
issue
Karl Nelson added the comment:
The last libraries loaded prior to the failure were...
```
20201218192451066 20440 50.60: trclnk64:
api-ms-win-eventing-provider-l1-1-0.dll [7ffc4c974108 7ffc4c8b7808]
20201218192451066 20440 50.60: trclnk64: EventUnregister0 7ffc4eab37a0
Karl Nelson added the comment:
I used Detours with trclnk64 to get the following log:
```
20201218193836960 4332 50.60: trclnk64: 001 GetProcAddress(,) -> 7ffc4ccebef0
20201218193836960 4332 50.60: trclnk64: 001
GetProcAddress(7ffc4ccd,LCMapStringEx)
20201218193836960 4332 50
Karl Nelson added the comment:
Can you be so kind as pointing me to a LoadLibraryExW detour example for
Python? I have shimmed a DLL before to capture transaction logs in the past,
but not with a Python or a system library.
--
___
Python
Karl Nelson added the comment:
Just for reference here are all the dependencies that _jpype has
```
MSVCP140.dll
python39.dll
Karl Nelson added the comment:
I attempted another deep dive on this one.
1) Removed manual library add
platform_specific['libraries'] = ['Advapi32']
No change.
2) Compared symbol wise imports
Two imports changed
PyIndex_Check
PyObject_CheckBuffer
plus one additional
Karl Nelson added the comment:
Well that gives me a place to search from. Unfortunately statics are not
likely the source of the issue. I scrubbed all C++ structures from the
project into a big structure which has only a single global pointer which I
initialize in the init method. It
Karl Nelson added the comment:
Without the pyc everything goes fine...
```
...
_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at
0x0222E9FD5A30>
import 'site' # <_frozen_importlib_external.SourceFileLoader object at
0x0222E9F88F40>
Karl Nelson added the comment:
Thanks, I will see if I can get additional diagnostics today. Otherwise I will
have to start recompiling Python with diagnostic hooks. I have never had to
rebuild python on windows so it may take a while to figure out how to make
progress.
The monkey patch
Karl Nelson added the comment:
I am fairly sure this is a Python "bug" in the sense that there was some change
in undocumented change in requirements and the distutils pattern for building a
module no longer reflects that requirement. That said very likely JPype is
the only mo
Karl Nelson added the comment:
Any progress on this item? I am seeing additional reports of this error in the
conda stream tracker and elsewhere. As it only occurs when the debugger is not
hooked up I don't have much traction to make progress m
Karl Nelson added the comment:
Perhaps just having PyType_InitHeapFromSpec which have just heap type linkage
and slot copy section would help with the issue. The major problem I have is
maintaining the slot code which may change at some point in the future. There
would still be some
Karl Nelson added the comment:
Oddly that was the only exception that I got. When I hit continue it proceeded
without issue and the dll was loaded correctly. However, when I try without
the debugger attached the error reappears. So this is one of those
Schrodinger errors. I know the
New submission from Karl Nelson :
In JPype, I am transfer stack information from Java into Python for diagnostics
and display purposed. Unfortunately, as the exception system is directly
accessing traceback structure elements this cannot be replicated without
creating traceback structures
New submission from Karl Nelson :
PyType_FromSpecWithBases is missing an argument for taking a meta class. As a
result it is necessary to replicate a large portion of Python code when I need
to create a new heap type with a specified meta class. This is a maintenance
issue as replicating
Karl Nelson added the comment:
I managed to get the debugger attached (unfortunately I am not a windows
programmer so I don't use these tools).
It appears when loading from a pyc, it is attempting to open the directory as a
Zip file which is throwing an exception resulting in a failu
New submission from Karl Nelson :
While trying to use JPype on Windows Python 3.9.0, we are running into an
bizarre issue with loading the internal module which is written in C. When
running a python script the first time the internal module loads correctly.
However, the second time that
Change by Karl O. Pinc :
--
pull_requests: +21809
pull_request: https://github.com/python/cpython/pull/22867
___
Python tracker
<https://bugs.python.org/issue39
New submission from karl :
In XPath 1.0
The function contains() is available
> Function: boolean contains(string, string)
> The contains function returns true if the first argument string contains the
> second argument string, and otherwise returns false.
In https://www.w3.org/TR
karl added the comment:
Also this.
>>> import datetime
>>> d0 = datetime.datetime.strptime("2024-0-3 00:00:00", "%Y-%W-%w %H:%M:%S")
>>> d0.strftime("%Y-%W-%w %H:%M:%S")
'2024-01-3 00:00:00'
>>> d1 = datetime.dateti
karl added the comment:
Same on macOS 10.15.6 (19G73)
Python 3.8.3 (v3.8.3:6f8c8320e9, May 13 2020, 16:29:34)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
karl added the comment:
This should be closed. The PR has been merged and the doc is now up to date.
--
nosy: +karlcow
___
Python tracker
<https://bugs.python.org/issue36
Karl Ding added the comment:
Related: I've started a thread on Discourse [0] looking into why the tests
don't seem to be run on the Buildbot cluster (and what it would take to enable
them). Hopefully it gains some traction.
[0]
https://discuss.python.org/t/what-would-it-t
Karl Ding added the comment:
Should this be added to the What's New for 3.9? I see a smaller change that
exposes the CAN_RAW_JOIN_FILTERS constant mentioned.
I've created https://github.com/python/cpython/pull/20248 if this
Change by Karl Ding :
--
pull_requests: +19536
pull_request: https://github.com/python/cpython/pull/20248
___
Python tracker
<https://bugs.python.org/issue40
Change by Karl Ding :
--
keywords: +patch
pull_requests: +18894
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19548
___
Python tracker
<https://bugs.python.org/issu
New submission from Karl Ding :
While working on https://bugs.python.org/issue40291, I was trying to run the
SocketCAN tests to ensure that my changes weren't causing any regressions.
However, I was seeing test failures at HEAD.
I'm running the tests like so:
# Kernel versio
Change by Karl Ding :
--
keywords: +patch
pull_requests: +18886
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19538
___
Python tracker
<https://bugs.python.org/issu
New submission from Karl Ding :
It would be nice to have support J1939 sockets.
Support for J1939 landed as part of the SAE J1939 SocketCAN patches, which are
available after the Linux 5.4rc1 kernel. This is another protocol family for
SocketCAN, much like the existing support for ISOTP and
Karl O. Pinc added the comment:
On Wed, 22 Jan 2020 06:09:41 +
"Eric V. Smith" wrote:
> Eric V. Smith added the comment:
>
> Is the lack of this documentation causing some confusion somewhere?
> This isn't rhetorical, I'm genuinely curious what proble
Change by Karl O. Pinc :
--
keywords: +patch
pull_requests: +17498
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18111
___
Python tracker
<https://bugs.python.org/issu
New submission from Karl O. Pinc :
Seems sane to put _some_ restrictions on the string representations of the
Numeric classes. This would be a change to the Python language
specification.
Suggestions made in a pull request.
See the email thread:
Subject: Documenting Python's float.__
karl added the comment:
Relevant spec
https://tools.ietf.org/html/rfc6265
--
nosy: +karlcow
___
Python tracker
<https://bugs.python.org/issue1375011>
___
___
karl added the comment:
@gaurav The pull request
https://github.com/python/cpython/pull/10870
has been closed in favor of
https://github.com/python/cpython/pull/15773
which has already been merged.
So we can probably close here.
--
message_count: 7.0 -> 8.0
nosy: +karl
karl added the comment:
err… Errata on my previous comment.
"""
Simple implementation of the Level 1 DOM.
Namespaces and other minor Level 2 features are also supported.
"""
https://github.com/python/cpython/blob/c65119d5bfded03f80a9805889391b66fa7bf551/Lib/xm
karl added the comment:
@zach.ware
@r.david.murray
So I was looking at that issue. There is a lot of work.
I had a couple of questions, because there are different categories
# Empty tests for existing functions.
This seems to be straightforward as they would complete the module
New submission from Karl Kornel :
Hello!
In https://github.com/python/cpython/blob/master/Lib/typing.py#L115-L117, there
is a note about the io and re classes not being included in typing.__all__. I
am a relatively new user of typing, and I did `from typing import *` in my
code. I ran the
karl added the comment:
I created a PR following the recommendations of p-ganssle
https://github.com/python/cpython/pull/16507
--
nosy: +karlcow
___
Python tracker
<https://bugs.python.org/issue22
karl added the comment:
The current specification as of today documents
https://dom.spec.whatwg.org/#dom-document-createelementns
If you run this in the browser console,
var nsdoc = 'http://foo.bar/zoo';
var xmldoc = document.implementation.createDocument(nsdoc, 'Zoo
Change by Karl Ove Hufthammer :
--
nosy: +huftis
___
Python tracker
<https://bugs.python.org/issue35638>
___
___
Python-bugs-list mailing list
Unsubscribe:
karl added the comment:
I created https://github.com/python/python-docs-theme/issues/30
--
___
Python tracker
<https://bugs.python.org/issue23312>
___
___
Pytho
karl added the comment:
This issue should probably be addressed now on
https://github.com/python/python-docs-theme
--
nosy: +karlcow
___
Python tracker
<https://bugs.python.org/issue23
karl added the comment:
So I had time to look at it today.
And it would probably be better to solve
https://bugs.python.org/issue23312
which would make this one here useless and would actually provide a solution
for many people.
--
___
Python
karl added the comment:
I'm at Mozilla All Hands this week.
I'll check if my solution still makes sense next week and will make a pull
request and/or propose another solution.
Thanks for the reminder. adding to my calendar.
--
___
Pyth
Karl Ding added the comment:
I believe the example can be simplified to the following:
class MyStructure(ctypes.Structure):
_pack_ = 1
_fields_ = [('A', ctypes.c_uint32, 8)]
assert ctypes.sizeof(MyStructure) == 1
Here, ctypes.sizeof retur
Change by Karl Ding :
--
keywords: +patch
pull_requests: +13541
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13646
___
Python tracker
<https://bugs.python.org/issu
New submission from Karl Ding :
When reading through the values exposed via the socket library, I noticed that
currently, only the SocketCAN BCM opcode enums are exposed via the socket
constants. These correspond to the following from the Linux headers:
enum
karl added the comment:
#8143 was fixed.
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import urlli
karl added the comment:
@ezio.melotti
What is the next step for getting the patch accepted.
--
nosy: +karlcow
___
Python tracker
<http://bugs.python.org/issue24
Changes by Karl Stahl :
--
nosy: +Karl Stahl
___
Python tracker
<http://bugs.python.org/issue2943>
___
___
Python-bugs-list mailing list
Unsubscribe:
karl added the comment:
Where should I propose a patch to help resolve this issue?
A pointer to the code in the repo and I will do it.
--
___
Python tracker
<http://bugs.python.org/issue24
karl added the comment:
About
> Actually, I realized that the best implementation of parsing rfc 3339
> is in django dateparse utils. To me it's the finest, the most
> elegant, and no other one can claim to be more robust since it's
> probably the #1 iso parsing fu
karl added the comment:
>From https://www.djangoproject.com/foundation/cla/faq/
> Am I giving away the copyright to my contributions?
>
> No. This is a pure license agreement, not a copyright assignment. You
> still maintain the full copyright for your contributions. You are
&
New submission from Karl Richter:
The docstring of `sorted` doesn't explain what can be passed to the `cmp` and
`key` argument of `sorted`.
--
assignee: docs@python
components: Documentation
messages: 257505
nosy: docs@python, krichter
priority: normal
severity: normal
status:
New submission from Karl Richter:
`./configure` both prints `checking for g++... no` and
WARNING:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
if `/usr/bin/g++` is p
Karl Richter added the comment:
Please also explain how to deal with process replacement in child processes
(assuming that
http://stackoverflow.com/questions/34059576/how-to-register-a-signal-handler-for-a-subprocess/34065587#34065587
is correct
New submission from Karl Richter:
The [documentation of
subprocess](https://docs.python.org/3.6/library/subprocess.html) doesn't
contain a substantial statement how signals are handled which are send to the
python interpreter. After reading the referenced docs it should be clear
* wh
New submission from Karl Richter:
`help(os.chmod)` doesn't explain that it expects an octal number for its `mode`
argument. This is very confusing for beginners and people who are not involved
with filesystems and permissions every day. It doesn't need to be explained,
just mentio
New submission from karl:
Adding the following to basic.css:
```css
dl {
margin-bottom: 15px;
word-wrap: break-word;
}
```
will solve the issue.
See https://github.com/webcompat/web-bugs/issues/1479
--
assignee: docs@python
components: Documentation
messages: 247803
nosy
Karl Richter added the comment:
It's a fatal warning of `gcc 4.9.2`, not an error (my bad) for `int i;` in
`Parser/pgen.c` line 227. It might be ignored as well, but I think my approach
is more elegant and deals with issues sooner than
New submission from Karl Richter:
`gcc` 4.9 is more restictive and recognizes that the empty definition of the
`REQN` macro doesn't use some variables. It's more suitable to wrap the usage
of the macro in the same preprocessor conditionals like the macro definition.
experi
New submission from Karl Richter:
I experience the error in the title exclusive when invoking `hg clone` (e.g.
`hg clone https://bitbucket.org/Coin3D/coin` or `hg clone
http://hg.netbeans.org/main-golden/ netbeans-main-golden`) when the target
directory is on a cifs mount.
`gdb` backtrace
Changes by Karl Richter :
--
components: Build
nosy: krichter
priority: normal
severity: normal
status: open
title: Makefile in tarball don't provide make uninstall target
versions: Python 2.7
___
Python tracker
<http://bugs.python.org/is
New submission from Karl Richter:
The `Formatter` section of the `logging` module at
https://docs.python.org/2/library/logging.html#formatter-objects reads like
it's sufficient to create an instance of `Formatter` with default arguments
(and set it as formatter of the `Handler` of a `L
Karl Richter added the comment:
> I suspect the complaint might be about the lack of doc string
Exactly. It'd be helpful to figure out the return value and the means of the
function arguments in a more compact form than the referenced website docs and
to have it available in the int
Changes by Karl Richter :
--
assignee: docs@python
components: Documentation
nosy: docs@python, krichter
priority: normal
severity: normal
status: open
title: document urllib.urlretrieve
versions: Python 2.7
___
Python tracker
<h
New submission from Karl O. Pinc:
In the argparse library parser library, contrary to the documentation,
parser-level defaults do not always override argument-level defaults.
https://docs.python.org/3.5/library/argparse.html#argparse.ArgumentParser.set_defaults
says "Note that parser-
Karl Richter added the comment:
After checking the code, I think that it'd make more sense to document
`whichdb.py`. It needs to be enhanced with references to criteria for the
determination of the database type. Currently there're only function comments
and the fact that some var
Karl Richter added the comment:
For example, it should be clear why `shelve.open(tempfile.mkstemp()[1])` fails
with the mentioned exception and `shelve.open("/tmp/bla")` fails. I still
haven't figured out the constraints to create a working `shelve.Shelve` at all.
It shou
Karl Richter added the comment:
Sorry, I mean
#!/usr/bin/python
import threading
def debugging():
def __a_thread__():
print("2")
a_thread = threading.Thread(target=__a_thread__)
a_thread.start()
a_thread.join()
1 - 100 of 233 matches
Mail list logo