New submission from Christian S. Perone :
When you use telnetlib with a "str" parameter as Port Number:
tel = telnetlib.Telnet("10.0.2.9", "8123")
tel.read_until("login: ")
It works fine, except if you set the debuglevel:
tel.set_debuglevel(30)
Then th
Christian S. Perone added the comment:
I don't know, by doing this on __init__ we can break a lot of legacy codes.
--
___
Python tracker
<http://bugs.python.org/is
Christian S. Perone added the comment:
Not from Python itself I think, but external, from users.
--
___
Python tracker
<http://bugs.python.org/issue10
Christian S. Perone added the comment:
Agree.
--
___
Python tracker
<http://bugs.python.org/issue10695>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis S. Otkidach added the comment:
Current behavior is unpythonic: documentation explicitly mentions isinstance as
preferred way to check type (see http://docs.python.org/library/types.html ).
Also 2.7 is the last minor version with str as "main" string type. So I believe
it
Denis S. Otkidach added the comment:
Phillip, your argument about interfacing with code written in C doesn't work
for built-in immutable types like str. Any subclass of str must call
str.__new__ thus keeping proper internal state.
--
___
P
New submission from Silas S. Brown <[EMAIL PROTECTED]>:
Here's the example code:
setting1 = "val1"
setting2 = "val2"
def dummy():
global setting1
def f(x):
d ={"setting1":setting1,"setting2":setting2}
exec(x) in d
return d[
Silas S. Brown <[EMAIL PROTECTED]> added the comment:
Sorry, I accidentally posted the workaround code instead of the bug
example. This is what I should have posted:
setting1 = "val1"
setting2 = "val2"
def dummy():
global setting1
def f(x):
exec(x)
retur
New submission from Denis S. Otkidach :
ElementTree and minidom allow creation of not well-formed XML, that
can't be parsed:
>>> from xml.etree import ElementTree
>>> element = ElementTree.Element('element')
>>> element.text = u'\0'
>
Silas S. Brown added the comment:
I got a very similar error on an Otek Pocket PC running Windows Mobile
2003 SE and the latest version of pythonce from
pythonce.sourceforge.net. The error is:
File
"C:\devl\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\random.py",
line 10
Silas S. Brown added the comment:
After further investigation I'm suspecting that this issue is actually
due to the process running out of RAM.
___
Python tracker
<http://bugs.python.org/issu
Denis S. Otkidach added the comment:
The current solutions doesn't look correct. It swallows cancelling causing task
to hang: https://bugs.python.org/issue42130 .
Proposed test case calls cancel for inner future and set_result for outer task
in the same loop step. The old (prior to
Change by Denis S. Otkidach :
--
pull_requests: +24738
pull_request: https://github.com/python/cpython/pull/26097
___
Python tracker
<https://bugs.python.org/issue37
Change by Denis S. Otkidach :
--
keywords: +patch
pull_requests: +24737
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26097
___
Python tracker
<https://bugs.python.org/issu
Denis S. Otkidach added the comment:
The original problem can be fixed by wrapping await into try-except block:
```
async def create_connection(ssl_obj):
loop = asyncio.get_event_loop()
connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1', 5000,
s
Denis S. Otkidach added the comment:
Re: msg393586
> See my comment in the PR for a suggestion about an alternative structure for
> wait_for, which may avoid this gap and hence prevent the leak (but I have not
> tested it!)
Unfortunately this didn't close the gap, so the leak
Denis S. Otkidach added the comment:
It's fixed in 3.8 final, but the problem persists in 3.7.5
--
versions: -Python 3.8
___
Python tracker
<https://bugs.python.org/is
New submission from Ananthakrishnan A S :
add a function called 'median' that we can use like:
list=[1,2,3,4,5,6,7,8,9] # declaring list
median(list) #returns 5
--
components: Library (Lib)
messages: 360873
nosy: Ananthakrishnan A S
priority: normal
severity: nor
New submission from Ananthakrishnan A S :
can we add an lcm and gcd function that can work as:
lcm(4,6) # returns 12
gcd(4,6) # returns 2
--
components: Library (Lib)
messages: 360875
nosy: Ananthakrishnan A S
priority: normal
severity: normal
status: open
title: can we add a lcm and
Ananthakrishnan A S added the comment:
I created this issue as i came across the following question:
There are n students in class A,and m students in class B.each class divides
into teams for a competition.What is the biggest possible team size that can be
divided,such that each team has
Ananthakrishnan A S added the comment:
Should i proceed with adding a pull request for adding a 'lcm' function in
python's math module.
--
___
Python tracker
<https://bugs.pyt
Ananthakrishnan A S added the comment:
some problems that needs lcm function:
1:find the least number which when divided by 'a','b','c','d' leaves remainder
'e' in each case.
2:person A exercises every 'n' days and person B every
Ananthakrishnan A S added the comment:
I agree with Vedran Čačić.As the modules are not made for one person but it is
for the ease of coding.There are so many functions which i don't use but used
by other people.We are using functions to make coding easy and if lcm function
is added
Ananthakrishnan A S added the comment:
Yes,I want to put together a PR.
--
___
Python tracker
<https://bugs.python.org/issue39479>
___
___
Python-bugs-list m
Henry S. Thompson added the comment:
[One year and 2 days later... :-[
Is this fixed in 3.9? If not, the Versions list above should be updated.
The failure of lower() to preserve 'alpha-ness' is a serious bug, it causes
significant failures in e.g. Turkish NLP, and it'
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue42140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis S. Otkidach added the comment:
The current error message is way too cryptic anyway. And restricting it to the
set type only, as in docs, will certainly break a lot of code (passing a list
is quite common).
--
___
Python tracker
<ht
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue42130>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Denis S. Otkidach :
Minimal example to reproduce:
-->8--
>>> with open('f_bug.py', 'w') as fp:
... fp.write('f"{a b}"')
...
8
>>> import f_bug
Traceback (most recent call last):
File "", line
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue34364>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Benjamin S Wolf :
Positional-only arguments come before position-or-keyword arguments.
def f(pos1, pos2, /, pos_or_kwd, *, kwd1, kwd2):
However, the posonlyargs are defined to come after args in the AST:
arguments = (arg* args, arg* posonlyargs, arg? vararg, arg
Richard S. Gordon added the comment:
FYI: Here is an update to my subsequent bug report to the Cygwin project team.
You might find my answers to their questions useful in the future.
> Begin forwarded message:
>
> From: "Richard S. Gordon" mailto:rigo...@comcast.net>&
Changes by Govind S Menokee :
--
components: Library (Lib)
nosy: govindsmenokee
priority: normal
severity: normal
status: open
title: posixpath.normpath truncating forward slashes from URL
type: behavior
versions: Python 2.7
___
Python tracker
<h
New submission from Govind S Menokee:
Handle unwanted truncation of forward slash in case of URL input for normpath
function.
For Example - path = 'https://google.com'
The current output of normpath function would be - 'https:/google.com'
After changes the output would be -
Changes by Govind S Menokee :
--
pull_requests: +3024
___
Python tracker
<http://bugs.python.org/issue31104>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Satrajit S Ghosh :
I'm not sure if this is intended behavior or an error. I'm creating dataclasses
dynamically and trying to pickle those classes or objects containing instances
of those classes. This was resulting in an error, so I trimmed it down to thi
Satrajit S Ghosh added the comment:
thank you + serhiy.storchaka
while that works in an interactive namespace, it fails in the following
setting, which is closer to my dynamic use case.
```
class A:
def __init__(self, fields=None):
self.B = dc.make_dataclass('B',
Satrajit S Ghosh added the comment:
Thank you.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35510>
___
__
Henry S. Thompson added the comment:
This issue is also implicated in a failure of isalpha and friends.
Easy way to see this is to compare
>>> isalpha('İ')
True
>>> isalpha('İ'.lower())
False
This results from the use of a combining character to encode lo
New submission from Richard S. Gordon:
Generated colors appear to be corrupted by overloading text attribute with
specified foreground and background colors.
This can be demonstrated by running test_tsWxColorPalette.py in Python 3x
(developer-sandbox) found in
https://github.com/rigordo959
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 11:16 AM, STINNER Victor wrote:
>
>
> STINNER Victor added the comment:
>
>> Generated colors appear to be corrupted by overloading text attribute with
>> specified foreground and background colors.
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 11:59 AM, Richard S. Gordon wrote:
>
>
>> On Jun 9, 2017, at 11:16 AM, STINNER Victor wrote:
>>
>>
>> STINNER Victor added the comment:
>>
>>> Generated colors appear to
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 12:32 PM, STINNER Victor <mailto:rep...@bugs.python.org>> wrote:
>
>
> STINNER Victor added the comment:
>
> What is your operating system? How did you install ncurses? What is your
> ncurses version?
&
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 4:41 PM, STINNER Victor wrote:
>
>
> STINNER Victor added the comment:
>
> Cygwin is not currently supported by CPython, so I suggest to close this
> issue. I mean: please report the issue t
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 4:59 PM, Richard S. Gordon wrote:
>
>
> Richard S. Gordon added the comment:
>
>> On Jun 9, 2017, at 4:41 PM, STINNER Victor wrote:
>>
>>
>> STINNER Victor added the comment:
>>
>&g
Richard S. Gordon added the comment:
> On Jun 10, 2017, at 4:28 AM, Richard S. Gordon wrote:
>
>
>> On Jun 9, 2017, at 4:59 PM, Richard S. Gordon > <mailto:rep...@bugs.python.org>> wrote:
>>
>>
>> Richard S. Gordon added the comment:
>&
Richard S. Gordon added the comment:
Clarification:
The suggested fix to the Python 3.6.1 curses stdlib should only be applied to
those 64-bit platform version used with 64-bit ncurses 6.0.
It should NOT apply to the Python 3.6.1 curses stdlib applied to those 32-bit
platforms used with 32-bit
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 5:41 PM, Terry J. Reedy wrote:
>
>
> Terry J. Reedy added the comment:
>
> Richard, when replying by email, please strip quoted text except for an
> occasional line or two. (See example of limited in-context quo
Richard S. Gordon added the comment:
> On Jun 9, 2017, at 4:57 PM, Masayuki Yamamoto wrote:
>
>
> Masayuki Yamamoto added the comment:
>
> @rigordo Are you using mintty? If I remember rightly, mintty hasn't been set
> 256 colors after installation (at least in
New submission from Denis S. Otkidach :
Test script:
-->8--
import asyncio
@asyncio.coroutine
def test():
with (yield from asyncio.Lock()):
pass
asyncio.run(test())
-->8--
Correct behavior without flag (warning is reported and points to correct line
of code):
---
$
New submission from S. J. Cunningham :
I can't Install the latest python-3.7.3-macosx10.6.pkg on my 10.6.8 system.
Error message says failure to verify. I posted on the forms as suggested
(https://python-forum.io/Thread-Cannot-Install-python-3-7-3-macosx10-6-pkg) but
have receiv
S. J. Cunningham added the comment:
Apple's decision to support or not support their products is driven by Apple's
business considerations and is not binding on anyone else. Many people
continue to use earlier versions because of dependence on applications which do
not ru
New submission from Benjamin S Wolf :
(Python 3.2.3)
1. After discarding the module run_path used to run the code in, all references
to variables from local scopes (even if they are references to global
variables) are bound to None, preventing any code in functions from running
properly
New submission from Konstantin S. Solnushkin:
Somewhere between Python 3.3 and 3.4, a bug was introduced that forbids the
"http.server" module, working in CGI server mode, to run scripts residing in
subdirectories.
This will break existing software that relies on this featur
New submission from Richard s. Gordon:
Curses bug report for Python 2.7 and Python 3.2
My Python code outputs text properly with xterm and xterm-16color. It does not
work properly with xterm-88color and xterm-256color (after defining RGB color
pallet) when run on Python-2.7 and Python-3.2 on
Konstantin S. Solnushkin added the comment:
Hi, I am curious about the fate of this issue -- whether it will be recognised
as a bug (possibly a regression bug). Remember, it worked in Python 3.3 but
stopped working in 3.4.
--
___
Python tracker
Changes by Erik S. LaBianca :
--
nosy: +easel
___
Python tracker
<http://bugs.python.org/issue6802>
___
___
Python-bugs-list mailing list
Unsubscribe:
Rajesh S R added the comment:
Am quite new here; just searching hard to contribute, would like to
patch this, if I can go ahead.
Don't we need to patch the original imaplib code also?
just remove the line:
self.literal = MapCRLF.sub(CRLF, message)
and have:
self.literal = message
Or
Denis S. Otkidach added the comment:
Here is a regexp I use to clean up text (note, that I don't touch
"compatibility characters" that are also not recommended in XML; some
other developers remove them too):
# http://www.w3.org/TR/REC-xml/#NT-Char
# Char ::= #x9 | #xA | #xD
Denis S. Otkidach added the comment:
Yes, it's a problem in Python library. I believe the patch proposed by
Oleg in the issue821862 is the best solution to it.
--
___
Python tracker
<http://bugs.python.org/issu
Denis S. Otkidach added the comment:
Every blog engine I've even seen so far pass through comments from
untrusted users to RSS/Atom feeds without proper validation causing
broken XML in feeds. Sure, this is a bug in web applications, but DOM
manipulation packages should prevent from cre
Changes by Richard s. Gordon :
--
nosy: eclectic9509
priority: normal
severity: normal
status: open
title: Python 3.6.0b4 Reports ncurses present in Cygwin but fails to build for
cygwin
___
Python tracker
<http://bugs.python.org/issue28
Changes by Richard S. Gordon :
--
components: Build
nosy: rigordo
priority: normal
severity: normal
status: open
title: Python 3.6.0b4 Reports ncurses present in Cygwin but fails to build for
Cygwin
versions: Python 3.6
___
Python tracker
<h
New submission from Jason S Friedman:
Page is http://docs.python.org/3/library/tempfile.html#module-tempfile.
The code in question currently reads:
>>> f = NamedTemporaryFile(delete=False)
>>> f
', mode 'w+b' at 0x384698>
>>> f.name
'/var/fold
New submission from S. Andrew Sheppard:
I came across unexpected behavior working with unpacking keyword arguments in
Python 3. It appears to be related to the automatic normalization of unicode
characters to NFKC (PEP 3131), which converts e.g. MICRO SIGN to GREEK SMALL
LETTER MU. This
S. Andrew Sheppard added the comment:
Here's a simple namedtuple example for good measure.
from collections import namedtuple
Test = namedtuple("Test", [chr(181)])
>>> Test(**{chr(956): "test1"})
Test(µ='test1')
>>> Test(**{chr(181)
S. Andrew Sheppard added the comment:
Fair enough. For future reference by anyone coming across this issue, here's a
simplified version of the workaround I used:
from unicodedata import normalize
def normalize_keys(data):
return {
normalize('NFKC', key): value
New submission from Kyle S (MrStonedOne):
Title says all.
It refuses to install from that point on, complaining that a reboot is needed.
--
components: Installation, Windows
messages: 256829
nosy: Kyle S (MrStonedOne), paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
Changes by Kyle S (MrStonedOne) :
--
title: canceling a repair install breaks the ability to uninstall repair or
re-install -> canceling a repair install breaks the ability to uninstall,
repair, or re-install
___
Python tracker
&l
Changes by Anthony S Valencia :
--
nosy: +antvalencia
___
Python tracker
<http://bugs.python.org/issue25931>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mauro S. M. Rodrigues added the comment:
Hi Anthony,
Thanks for asking, yeah I'm interested in push a new version. I'll do it later
today and I'll post a link to the pr here.
--
___
Python tracker
<https://bugs.pyt
Mauro S. M. Rodrigues added the comment:
So per Serhiy comment can I assume the patch is not necessary? If so I believe
the issue should be closed as well.
--
___
Python tracker
<https://bugs.python.org/issue25
New submission from Danilo J. S. Bellini:
The pprint pretty printer in Python 3 sorts sets/frozensets only if their
length don't fit in one single line/row for the given width, else it was just
leaving repr(my_set_instance) alone, like:
>>> import string, pprint
>>
Danilo J. S. Bellini added the comment:
Wouldn't a fix for all standard collections be a fix for Python 3.5+, therefore
another issue? http://bugs.python.org/issue23870
This issue is about sets/frozensets Python 3.2+, and I'm pretty sure it's
backwards compatible, as I don
Changes by Mauro S. M. Rodrigues :
Added file: http://bugs.python.org/file39718/issue23883_fileinput.patch
___
Python tracker
<http://bugs.python.org/issue23883>
___
___
Changes by Mauro S. M. Rodrigues :
Removed file: http://bugs.python.org/file39140/issue23883_fileinput.patch
___
Python tracker
<http://bugs.python.org/issue23
Mauro S. M. Rodrigues added the comment:
Hi everybody!
This is my second patch on the community, although the first one is not merged,
so any feedback is appreciated.
I've added tests to cover this new situation and docs to let people know about
the possibility of keeping their temp
Mauro S. M. Rodrigues added the comment:
Hi Barry, I was testing this and it seems to work, am I doing something wrong
in order to reproduce it? I've used the same parameters from the unit tests
Python 3.5.0+ (3.5:1e99ba6b7c98, Oct 8 2015, 17:12:06)
[GCC 4.8.4] on linux
Type
Mauro S. M. Rodrigues added the comment:
Yes, I'm, I have a commitment now but I'll submit a new version later today
--
___
Python tracker
<http://bugs.python.o
Mauro S. M. Rodrigues added the comment:
New version.
--
Added file: http://bugs.python.org/file41052/issue23883_fileinput.v2.patch
___
Python tracker
<http://bugs.python.org/issue23
Eric S. R-e-mond added the comment:
Hi guys.
--
assignee: -> esr
nosy: +esr
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1165>
__
___
Python-bu
Changes by Eric S. R-e-mond:
--
severity: minor -> critical
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1165>
__
___
Python-bugs-li
Changes by Eric S. R-e-mond:
--
keywords: +r-eyyy-mond
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1165>
__
___
Python-bugs-list mailing list
Changes by Eric S. R-e-mond:
--
versions: +3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1,
Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Changes by Eric S. R-e-mond:
--
type: behavior -> compile error
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1165>
__
___
Python-bugs-li
Changes by Eric S. R-e-mond:
--
dependencies: +--install-base not honored on win32
type: compile error -> behavior
versions: -3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1,
Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python
Changes by Eric S. R-e-mond:
--
dependencies: + Elemental Security contribution - pgen2 package
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
New submission from Eric S. R-e-mond:
I tried this code, and it blew up in my face.
>>> foo = malloc(4096)
NameError: name 'malloc' is not defined
Why?
--
components: Library (Lib)
keywords: r-eyyy-mond
messages: 55929
nosy: esr
priority: high
severity: normal
Pablo S Blum de Aguiar added the comment:
This is just to note that I'm investigating this as part of the CPython sprint
in EuroPython.
--
nosy: +scorphus
___
Python tracker
<https://bugs.python.org/is
Pablo S Blum de Aguiar added the comment:
This is just to note that I'm investigating this issue as part of the CPython
sprint in EuroPython.
--
nosy: +scorphus
___
Python tracker
<https://bugs.python.org/is
201 - 290 of 290 matches
Mail list logo