ZhengYu, Xu added the comment:
But with different classed will be right
```
class C:
def __rrshift__(self, v):
return 1
class D:
def __rrshift__(self, v):
return 2
C() >> D() # 2
```
--
___
Python tracker
New submission from ZhengYu, Xu :
```
class C:
def __rrshift__(self, v):
return 1
C() >> C() # raise TypeError: unsupported operand types(s) for >>: 'C' and 'C'
```
------
messages: 414578
nosy: zen-xu
priority: normal
severity: normal
sta
Xinhang Xu added the comment:
I post a comment to the PR showing its performance improvement. I paste it
below. I think the result not bad.
-
I use timeit to measure time costs and any other operators or calls are
excluded. For each testcase, the former is dcd2796 and the
New submission from Xinhang Xu :
See its PR.
-
Inspired by [bpo-44946](https://bugs.python.org/issue44946), I found there were
no special shortcuts for shifting operation applied to "medium value" long
object. So I modified CPython's VM to accelerate my python proj
Change by Xinhang Xu :
--
nosy: +xuxinhang
nosy_count: 3.0 -> 4.0
pull_requests: +28270
pull_request: https://github.com/python/cpython/pull/30044
___
Python tracker
<https://bugs.python.org/issu
New submission from Xinhang Xu :
Hello.
I'm working on a compute-bound project recently, so I tested several Python
versions on my PC (Windows 10 64-bit), about Python's performance on operating
Int object. All Python binaries are official distributions.
Testcase #1 (simple xor o
Raymond Xu added the comment:
I am seeing this bug with 3.9.7
--
nosy: +greenfish6
___
Python tracker
<https://bugs.python.org/issue35540>
___
___
Python-bug
Gen Xu added the comment:
Looks like it is caused by the httplib not limiting total header size after
receiving 100. Added a counter for that to be same size as _MAXLINE=65536.
--
versions: -Python 3.7
___
Python tracker
<https://bugs.python.
Gen Xu added the comment:
Added a possible PR. Review will be appreicated.
--
___
Python tracker
<https://bugs.python.org/issue44022>
___
___
Python-bugs-list m
Change by Gen Xu :
--
keywords: +patch
nosy: +gen-xu
nosy_count: 1.0 -> 2.0
pull_requests: +24585
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25916
___
Python tracker
<https://bugs.python.org/i
Cake Xu added the comment:
Thank Eryk for answering my question.
So I get it now. I use this in Linux.
If my understanding is right, the open() will invoke
locale.getpreferredencoding() by setting the do_setlocale=False -- i.e.
locale.getpreferredencoding(False) -- to avoid invoking
Change by Cake Xu :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue43140>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Cake Xu :
In the document about build-in function open()
https://docs.python.org/3/library/functions.html#open, it says that
"encoding is the name of the encoding used to decode or encode the file. This
should only be used in text mode. The default encoding is pla
Michael XU added the comment:
Thank you so much Walter. I think that might be it - it fixed this particular
instance, and it makes sense given what you have said. I'll proceed to close
this up but will follow up if I encounter this issue when the data has changed.
Thanks
New submission from Michael XU :
More details available here:
https://stackoverflow.com/questions/65676934/python-xml-parsers-expat-results-differ-based-on-buffer-text-true-or-false-and
Raw data to replicate the issue is available upon request.
--
components: XML
messages: 385086
nosy
Hong Xu added the comment:
Should we update the document at least? The document doesn't mention
NotADirectoryError or its super classes at all.
--
___
Python tracker
<https://bugs.python.org/is
Change by Hong Xu :
--
title: Inconsistent exceptions thrown by mkdir on different OSes ->
Inconsistent exceptions thrown by pathlib.Path.mkdir on different OSes
___
Python tracker
<https://bugs.python.org/issu
Change by Hong Xu :
--
title: Inconsistent exception thrown by mkdir on different OSes -> Inconsistent
exceptions thrown by mkdir on different OSes
___
Python tracker
<https://bugs.python.org/issu
New submission from Hong Xu :
Consider the following code:
-
import pathlib
def main():
pathlib.Path('tmp').touch()
pathlib.Path('tmp/tmp_sub').mkdir(parents=True)
main()
Run the code above in an empty dire
Xu added the comment:
Thanks Stinner.
Do you have some clues about this issue ?
In my case, our test system use Popen to start a few infrastructure processes
for tests going. After tests done we will kill all processes and start again
for new round.
Most of time it works fine. However we
New submission from Xu :
I have a piece code hangs on os.read(errpipe_read, 5)
So I compared the python3.6 with python2.7 on _execute_child, I saw:
for python2.7 we create the errpipe_read/write with pipe_cloexec()
1213 # For transferring possible exec failure from child to
Change by Hong Xu :
--
pull_requests: +14719
pull_request: https://github.com/python/cpython/pull/14950
___
Python tracker
<https://bugs.python.org/issue24
New submission from James Xu :
While working on our project, we have noticed that for
`subprocess.Popen(command, ...)`, when `command` is a string that contains
escaped double quote, for example, `command = '"path to executable" --flag
arg'`, this works fine. However, whe
famu xu added the comment:
import smtplib
from email.message import EmailMessage
from email.utils import formataddr
server = smtplib.SMTP('smtp.xxx.com',port=25)
server.login('y...@xxx.com', 'password')
msg = EmailMessage()
#if address username include Chinese or
famu xu added the comment:
python 3.7 same
--
___
Python tracker
<https://bugs.python.org/issue37572>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from famu xu :
file: email\_header_value_parser.py
line : encoded_part = part.fold(policy=policy)[:-1] # strip nl
modify to: encoded_part = part.fold(policy=policy)[:-2] # strip nl
because the nl is "\r\n"
--
components: email
messages: 347740
nosy: barr
Hong Xu added the comment:
Thanks for your answer, but I believe this is a real document bug. OSError does
have its signature documented, but the majority of other exception classes do
not do so, neither does BaseException explains a default behavior clearly (see
my quote above).
As an
New submission from Hong Xu :
The "Builtin Exceptions" page does not document the constructors of the listed
exception classes. All it says is
> The tuple of arguments given to the exception constructor. Some built-in
> exceptions (like OSError) expect a certain number
New submission from Weize Xu :
I try to implement a "producer consumer" like design with mulitiprocessing
module in my project, but I found that mulitiprocessing.Queue 's behavior is
not as my expected. It seems Queue.get method return the end flag at the end of
my queue too ea
Benda Xu added the comment:
Thanks Victor. Python-3.5 has received your patches in time and 3.5.4 builds
well with glibc-2.25 and https://wiki.gentoo.org/wiki/Project:Prefix
2.
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c8e2396d9cf4fe13057741f5bd1b9989eeeb746
Changes by Benda Xu :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue31255>
___
Benda Xu added the comment:
> Does it only affect Python 3.4 and 3.5? Both versions are in security
> fix-only mode and no longer receive other fixes.
Sorry I haven't noticed that there are two new releases this month Python 3.4.7
and 3.5.4. The test build results are:
3.4.7 fail
Benda Xu added the comment:
This is a continuation of http://bugs.python.org/issue29157#msg288291.
--
nosy: +Vladimír Čunát, christian.heimes
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue31
Changes by Benda Xu :
--
versions: -Python 3.5, Python 3.6, Python 3.7
___
Python tracker
<http://bugs.python.org/issue31255>
___
___
Python-bugs-list mailin
Changes by Benda Xu :
--
components: +Build
___
Python tracker
<http://bugs.python.org/issue31255>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Benda Xu :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue31255>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by H Xu :
--
nosy: +xuhdev
___
Python tracker
<http://bugs.python.org/issue18050>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
H Xu added the comment:
I think this has been fixed. Where did you see the incorrect link?
--
___
Python tracker
<http://bugs.python.org/issue14489>
___
___
Pytho
New submission from H Xu :
The `repr()` built-in function link in this page [
http://docs.python.org/library/functions.html ] should link to the built-in
version of `repr()`.
It should link to: http://docs.python.org/library/functions.html#repr
However, it links to here: http
H Xu added the comment:
The result of 'make install SHELL="bash -x"' seems nothing different with the
"make install". Could there be any other way to debug?
--
___
Python tracker
<
New submission from H Xu :
Build python 2.6.6 and python 2.7.1 on a NetBSD-5.1-sparc machine.
1. Run './configure';
2. Run 'make';
3. Run 'make install'.
There will be a problem after run 'make install'.
The last few lines of error messages are like
41 matches
Mail list logo