New submission from M :
When using Python 2.5.4 on Windows (and potentially other versions and
platforms), usage of CTypes like the following cause a memory leak. The memory
leak can be verified with ProcessExplorer, as the memory Python takes up keeps
increasing until eventually Python will
M added the comment:
Correction to the above link: See:
http://stackoverflow.com/questions/7452625/python-ctypes-memory-leak-with-structure
--
___
Python tracker
<http://bugs.python.org/issue12
M added the comment:
If it is a cache, shouldn't it be garbage-collected or limited in size? Why
does it grow without bounds?
--
___
Python tracker
<http://bugs.python.org/is
New submission from m:
The documentation of the "chr(i)" function is not correct, it states that The
valid range for the argument is from 0 through 1,114,111 (0x10 in base 16).
Correction: The valid range for the argument is from 0 through 255 (0xFF in
base 16).
--
assi
New submission from M Z <10mauryc...@gmail.com>:
Reproduction steps:
0. start rpel. command: ``python``
1. enter into '___😀'
2. use arrow keys and backspace to delete an underscore
3. press enter.
4. observe segfault
- insertion of chars before emoji can also cause crash
M Z <10mauryc...@gmail.com> added the comment:
FYI: My platform is arch linux on amd64.
--
___
Python tracker
<https://bugs.python.org/issue46206>
___
___
New submission from Curtis M <3ed7qja...@liamekaens.com>:
Example code to replicate issue on python 3.10.2 is attached.
How to replicate issue:
1. Define a namedtuple where all fields have default values. At least one
field's default value will be an empty list: []
2. Instantiate
New submission from Dan M:
In section 4.6 it says:
Writing the value None is normally suppressed by the interpreter if it
would be the only value written.
When it should say:
Writing the value None is normally displayed by the interpreter if it
would be the only value written.
Or less wordy
Dan M added the comment:
Yes, it is normally suppressed. The problem is the condition when it is
suppressed. The documentation states that it's suppressed when it's the
only value to be written.
It is suppressed when it's *not* the only value to be written.
-or- (removing the
New submission from M. Zilmer :
In 3.2.2 the newline for print() is \n on Windows, and not \r\n as expected.
In 3.1.4 the newline is \r\n.
OS is Win 7, and tried on both 32 and 64 bit.
Small example with output is attached.
--
components: Windows
files: newline.py
messages: 145039
Changes by M. Zilmer :
Added file: http://bugs.python.org/file23331/newline_3.1.txt
___
Python tracker
<http://bugs.python.org/issue13119>
___
___
Python-bugs-list mailin
Changes by M. Zilmer :
Added file: http://bugs.python.org/file23332/newline_3.2.txt
___
Python tracker
<http://bugs.python.org/issue13119>
___
___
Python-bugs-list mailin
M. Zilmer added the comment:
Hi Amaury,
The two text files were obtained through redirection in Windows, so I simply
ran the newline.py file with:
...> C:\Python31\python.exe newline.py > newline_3.1.txt
...> C:\Python32\python.exe newline.py > newline_3.2.txt
Best reg
M. Zilmer added the comment:
Just to make it clear: I have not observed any problems on the Windows terminal
(cmd) with \n newline, but at least Notepad does not break lines correctly if
only \n is used.
--
___
Python tracker
<h
Babak M added the comment:
There's a working implementation of this in PloneMailList.
http://svn.plone.org/svn/collective/mxmImapClient/trunk/imapUTF7.py
--
nosy: +BabakM
___
Python tracker
<http://bugs.python.org/i
New submission from Vladimir M. :
The page at (http://docs.python.org/reference/datamodel.html) says:
"In x * y, if one operator is a sequence that implements sequence repetition".
Obviuosly, it should be changed to:
"In x * y, if one operand is a sequence that implements sequ
Sebastian M added the comment:
One more thing, as I tried to rebuild whole python I've encountered on
following problem:
building '_multiprocessing' extension
gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -DHAVE_SEM_OPEN=1
-DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDW
Changes by Matt M :
--
nosy: +numbernine
___
Python tracker
<http://bugs.python.org/issue8713>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Baiju M :
--
nosy: +baijum
___
Python tracker
<http://bugs.python.org/issue10297>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from M. Z. :
Trying to unpack a ZIP file where some packet files contain danish letters
results in:
zipfile.BadZipFile: File name in directory 'filename_with_æoå.txt'
and header b'filename_with_\x91o\x86.txt' differ.
Using Py 3.2b2 on Win7.
Unpack t
New submission from Scott M :
New to Python; be gentle if I've simply missed something. i'M running on
Windows XP, using a recently downloaded 2.7.1. I'm running by hitting F5 in
IDLE.
The attached .py creates 2 threads, one which updates a Tkinter label 10 times
a second f
Scott M added the comment:
It hasn't failed yet when run "straight".
Here's the issue, though. I'm going to be introducing Python as the scripting
language of choice, to a bunch of people who are less than fluent in
programming. Because debugging is not an obvious
Scott M added the comment:
Moving to 3.x means redoing large swaths of the extension I just wrote. It's
only a couple thousand lines, but it was my first extension and it cost me a
week of my life in Google, and it does a lot with strings.
I haven't pulled down the source code fo
New submission from Scott M :
Running on dual core Windows XP.
The function should draw a parabolicish shape for each click on launch. But if
you click Launch over and over, very fast, you get bizarre crashes instead:
Python.exe has encoutered a problem, yadda. tcl85.dll. It rarely takes
Scott M added the comment:
To make this more interesting, I'm trying to push for adoption of Python at a
scripting tool where I work, and I uncovered this crasher in example code I was
about to hand out, under the heading of "look how easy Python is". For obvious
reasons I
Scott M added the comment:
OK, now all calls to Tkinter are funneled to a single thread, through a queue.
(Technically there are two threads in Tkinter - one is parked in .mainloop(),
the other makes a call to Canvas.create_line and a call to Label.config.)
Different crash, but still a crash
Scott M added the comment:
Alright. More digging turned up the Tkinter "after" function, aka WM_TIMER for
Windowy people like me, and that plus a nonblocking queue get() gets all my
drawing operations back into the mainLoop() thread. Voilà, no more crashes.
Let me suggest tha
New submission from Scott M :
The more I look at GUI support in Python, the more I realize that the lack of
basic thread safety in GUI support is simply a bug. I know Java's Swing has the
same thread limitation, but that doesn't make it right. Xlib is thread safe.
The Windows SDK
Scott M added the comment:
I don't have an opinion on 1252236. I'm not certain it would help.
I have an extension that runs a bunch of (alien) threads into Python code. The
threads deliver information for all sorts of real world events, asynchronously.
Multiple threads are use
Scott M added the comment:
I'll look into making the crash easier to reproduce this coming week.
Is Tkinter's thread safety new? Because after I started getting crashes, I did
my due diligence in Google and found a number of people writing about how it
was necessary to use a
Scott M added the comment:
The new version runs 40 parabolas, then quits. I usually have to run this
version 20 times or so to get the crash, so be patient. In general if it's
going to crash it does so in the first 6 or so parabolas. Caveat: creates up to
40 threads, so a bit of a CP
Scott M added the comment:
If it helps, over the many iterations of this test code, there have been two
kinds of issues:
1. pythonw.exe crashes with the Windows variant of a SEGV. No traceback, just a
crash. These are rare.
2. Evidence of confusion over which string the code should be
New submission from Adrian M <[EMAIL PROTECTED]>:
$ uname -a
SunOS ro1estw 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-880
gcc 2.6.3
When running ./configure I'm getting warnings like:
configure: WARNING: curses.h: present but cannot be compiled
configure: WARNING: curses.h
Adrian M <[EMAIL PROTECTED]> added the comment:
Also, please check: http://bugs.python.org/issue1544306
(exactly the same issue that has just been closed because of the lack of
feedback from the original reporter)
Here is another (old) report referring to the very same issue happen
Leo M <[EMAIL PROTECTED]> added the comment:
Hello. First time here, beginner at Python. I have verified that the
Google tip link in the previous to fix IDLE works for me. Post in question:
**
[Kevin's post of 6.Oct, 02:58]
You can avoid this problem by building Python yourself
Changes by Leo M :
--
nosy: -leoofborg
___
Python tracker
<http://bugs.python.org/issue4017>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from David M. :
Awaiting multiple times on a single task that failed with an exception results
in an unbounded increase in memory usage. Enough repeated "await"s of the task
can result in an OOM.
The same pattern on a task that didn't raise an exception beha
New submission from Marin M :
init of class GzipFile has mtime as an optional argument, but open() function
does not.
When using open(), mtime will always be set to the current time and so far
there was no way of fixing it to a specific timestamp.
In case two people would tar.gz the same
Change by Marin M :
--
keywords: +patch
pull_requests: +30371
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32310
___
Python tracker
<https://bugs.python.org/issu
New submission from Marin M :
BZ2File doesn't have attribute name, unlike GzipFile which has it. Trying to
access that attribute results in error.
PR is ready with code changes and tests which mimics what is already available
for GzipFile (e.g. we do not take name from BytesIO() ob
Change by Marin M :
--
keywords: +patch
pull_requests: +30373
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32311
___
Python tracker
<https://bugs.python.org/issu
New submission from Marin M :
LZMAFile doesn't have attribute name, unlike GzipFile which has it. Trying to
access that attribute results in error.
PR is ready with code changes and tests which mimics what is already available
for GzipFile (e.g. we do not take name from BytesIO() ob
Change by Marin M :
--
keywords: +patch
pull_requests: +30374
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32312
___
Python tracker
<https://bugs.python.org/issu
Raphaël M added the comment:
I stumbled upon this issue while reading Python 3.8 and this made me curious.
I've tried writing some Python code to reproduce this bug, but I'm unable to --
I should be missing something. Is there a simple snippet showing the issue?
Also, the change
New submission from Kevin M :
I've noticed an issue (or user error) in which Python a call that otherwise
usually works in the __del__ step of a class will freeze when the Python
interpreter is exiting.
I've attached sample code that I've ran against Python 3.9.1 on Window
Kevin M added the comment:
eryksun, wow, that's speedy analysis, but there might be more to it. I went
and tested a bunch of test cases. my subrocess code doesn't seem to hang on
Linux where the thread example code does?
Linux - Python 3.6.8 - your threading example DOESN
New submission from T M :
In Python 3.7 and 3.8, importlib.resources.path worked perfectly with a
directory.
For example:
with importlib.resources.path(__package__, "dir") as dir:
os.listdir(dir)
In Python 3.9, this is raised: IsADirectoryError: [Errno 21] Is a directory:
T M added the comment:
importlib_resources 1.1.X also behaves this way:
https://github.com/python/importlib_resources/issues/85
--
___
Python tracker
<https://bugs.python.org/issue44
T M added the comment:
That's fine. I couldn't find anything official on it, but that change is
working for me.
Thank you!
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.py
New submission from Sergey M. :
Due to
```python
try:
self.handle()
finally:
self.finish()
```
construct in `socketserver.BaseRequestHandler.__init__()` method inherited
classes with `overrided __init__()` method may suffer from incomplete
initialization.
For example, in the
Raphaël M added the comment:
Any pointer would also be welcome, and a piece of code showing the bug would
help me a lot. Thank you.
--
___
Python tracker
<https://bugs.python.org/issue35
Raphaël M added the comment:
Thank you very much!
--
___
Python tracker
<https://bugs.python.org/issue35459>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Shanavas M :
Doc says "A special quirk of Python is that -- if no :keyword:`global`
statement is in A special quirk of Python is that -- if no :keyword:`global`
or :keyword:`nonlocal`
effect -- assignments to names always go into the innermost scope."
nonlo
New submission from Shani M :
It showing the wrong string order. 'sss' is to be appear at 3rd place but it
comes at last place. 'qwe' is to appear at last place but it comes at 3rd place.
--
files: Screenshot from 2020-02-10 14-08-52.png
messages: 361675
nosy: Shan
New submission from M T :
I have no use for IPv6 and, when recompiling my OS, disable the feature
completely. Python compiles nicely despite of this, but the IPv6-related tests
fail instead of being skipped:
ERROR: test_create_server_ipv6
New submission from Marcos M :
> To recap, functions have a __get__() method so that they can be converted to
> a method when accessed as attributes. The non-data descriptor transforms an
> obj.f(*args) call into f(obj, *args). Calling cls.f(*args) becomes f(*args).
I THINK it s
Marcos M added the comment:
Let me provide a link to ease finding this piece of documentation
https://docs.python.org/3/howto/descriptor.html#static-methods
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Marek M :
It can be helpful to mention that variables defined in try block are visible in
except/finally block as well. I did not find this info in Python tutorial and
for me (having C++ background) this is quite unexpected feature.
--
assignee: docs@python
New submission from Arkady M :
I am running an HTTP server (socketserver.ThreadingMixIn,
http.server.HTTPServer) in a Docker container (FROM ubuntu:19.10)
Occasionally I get an exception:
Exception happened during processing of request from ('172.17.0.1', 35756)
Traceback (most r
Change by M W :
--
assignee: -> christian.heimes
components: +SSL
nosy: +M W2, christian.heimes
___
Python tracker
<https://bugs.python.org/issue39603>
___
_
Michał M. added the comment:
Of course I've made a mistake:
"list for user provided or list for default"
should be:
"list for user provided or STRING for default"
--
___
Python tracker
<http
New submission from Florian M :
I added one small test in lib/test/test_re.py for complete coverage of
're._compile' method.
--
components: Tests
files: re_coverage.patch
keywords: patch
messages: 154785
nosy: flomm
priority: normal
severity: normal
status: open
title: Tes
Changes by Florian M :
Added file: http://bugs.python.org/file24728/re_coverage.patch
___
Python tracker
<http://bugs.python.org/issue14179>
___
___
Python-bugs-list m
Florian M added the comment:
I wrote some documentation with the information I found on
http://wiki.python.org/moin/PullDom and some custom examples.
--
nosy: +flomm
Added file: http://bugs.python.org/file24750/xml.dom.pulldom.rst
___
Python
New submission from MANI M :
Recently I figured out an issue in python3 re which doesn't escape some special
characters.
Not sure whether this bug has been reported already.
Have attached screenshots for your reference.
Steps to reproduce:
1. wget https://www.python.org/ftp/python/
MANI M added the comment:
Thanks a lot for the info. May I know in what version of python the patches are
applied? Because still 3.7.3 seems to have the issue.
--
___
Python tracker
<https://bugs.python.org/issue37
MANI M added the comment:
I've scripts which insert data into MySQL database. The values may contain
symbols. Hence in order to escape that I use re.escape(). @erik.smith isn't
re.escape() supposed to escape all the symbols. If not why is this introduced
in 3.7 whereas previou
MANI M added the comment:
sorry my bad
query = "insert into table(column) values('{}')".format(escape("Hello'`~world"))
--
___
Python tracker
Change by Mathew M. :
--
pull_requests: +10473
___
Python tracker
<https://bugs.python.org/issue32077>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from m-parry:
The change in issue #29100 - intended AFAICS simply to fix a regression in 3.6
- seems to have made datetime validation via certain code paths stricter than
it was in 2.7 or 3.5. I think it's the case that some routes via the C API now
reject out of range v
m-parry added the comment:
>From my opening comment (with new emphasis):
"I think it's the case that **some routes via the C API** now reject out of
range values that were previously permitted."
The pywin32 repro I gave above eventually calls
PyDateTimeAPI->DateTime_Fro
m-parry added the comment:
That's just a Python C API call. It looks like it eventually resolves to
new_datetime_ex(30828, 9, 13, 3, 48, 5, 48, Py_None,
PyDateTime_DateTimeType).
We also have some internal code that sees a similar problem from calling
PyTime_FromTime(), tha
m-parry added the comment:
pywin32 is not my code. It is a ubiquitous Python library on Windows that
cannot be used under Python 3.6.1.
--
___
Python tracker
<http://bugs.python.org/issue29
New submission from M Hsia :
import sys
print(sys.version)
for i in range(10):
test=i+0.5
print (test,round(test,0))
3.6.3 |Anaconda custom (64-bit)| (default, Nov 8 2017, 15:10:56) [MSC v.1900
64 bit (AMD64)]
0.5 0.0
1.5 2.0
2.5 2.0
3.5 4.0
4.5 4.0
5.5
M Hsia added the comment:
import sys
print(sys.version)
for i in range(10):
test=i+0.5
print (test,round(test,0))
3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
0.5 0.0
1.5 2.0
2.5 2.0
3.5 4.0
4.5 4.0
5.5 6.0
6.5 6.0
7.5 8.0
8.5
Change by Scott M :
--
nosy: +PythonInTheGrass
___
Python tracker
<https://bugs.python.org/issue33257>
___
___
Python-bugs-list mailing list
Unsubscribe:
Scott M added the comment:
7 years and counting...
My need for a fix is long gone, but I'd like to be able to tell the original
group I worked with whether it's now safe to use tkinter from threads. It looks
like my original guesses were validated and a fix has been made, but I c
New submission from joe m :
Importing curses on Windows install calls the following:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\user
name\AppData\Local\Programs\Python\Python36-32\lib\curses\__init__.py", line
13, in
joe m added the comment:
I would much prefer the curses module to be supported in newer versions since
I believe that curses is installed as a built in module (not sure about that).
Anyhow, thank you for your help but I have found a replacement module called
"asciimatics" which
New submission from Mathew M. :
Hey there! I'm fairly new to the development process for Python, so I figured
I'd start off with something tiny and then work on up from there. I'm not sure
if this sort of minor fix warrants an issue being created, but I made this just
to err o
Change by Mathew M. :
--
keywords: +patch
pull_requests: +4331
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32013>
___
___
Python-
New submission from Mathew M. :
Similar to issue 32013, just in a different location.
For reference:
https://github.com/python/cpython/blob/28b624825eb92cb8c96fbf8da267d8d14a61a841/Modules/arraymodule.c#L1932
--
components: Extension Modules
messages: 306183
nosy: Mathew M.
priority
Change by Mathew M. :
--
keywords: +patch
pull_requests: +4339
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32020>
___
___
Python-
New submission from Mathew M. :
This is just something I've noticed when browsing the C API documentation for
Unicode objects.
For example, the documentation entry for PyUnicode_DecodeMBCSStateful lacks the
"Return value: New reference", etc.
--
assignee: docs@py
Change by Mathew M. :
--
keywords: +patch
pull_requests: +4407
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32077>
___
___
Python-
New submission from Johannes M. :
Since about a decade, it's a know problem that NumPy and Pandas initialization
function crashes on reinitialization after a call to Py_Finalize() +
Py_Initialize().
[https://github.com/numpy/numpy/issues/8097]
[https://github.com/numpy/numpy/issues/
New submission from M. Dietrich:
in logging/__init__.py line 328 there is a simple line:
msg = msg % self.args
if that line fails this failure will be logged, not the line itself. i suggest
to change the line to something like:
try: msg = msg % self.args
except TypeError: msg
M. Dietrich added the comment:
yes, seeing the erranous line where the wrong formatstring comes from is nice
but sometimes (for myself: often) i need to know what actually was tried to be
logged. this information is lost in both cases.
this is especially sad if you have long-running processes
M. Dietrich added the comment:
for a logging library the important thing would be to not loose the information
that was meant to log. as i said i do alot of long-running huge-data-processing
scripts in py using the library. if the logging breaks but doesnt log what was
intended to log i judge
M. Dietrich added the comment:
thanks, it will be really helpful for me to have this fixed.
as i consider this a "bug" it would be possible to "fix" this for 2.7 and yes
you are right, i talked about 2.7 as we are still using this version in
production.
--
sta
New submission from Stefan M :
After issue7455 was fixed, a test was created to reflect the fix
(Lib/test/pickletester.py @ AbstractPickleModuleTests.test_bad_input). The test
makes sure that an UnpicklingError is raised whenever pickled data attempts to
pop on an empty stack.
Although tests
M. Volz added the comment:
Thanks David,
I've updated the patch to move the default values question into the programming
FAQ where you recommended it go, and also changed the title of the mutable list
question.
--
Added file: http://bugs.python.org/file34604/sortFAQ_defaultval.
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue2818>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by Jill M :
--
nosy: +Jill.M
___
Python tracker
<http://bugs.python.org/issue18456>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue18624>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue3430>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue7159>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue3849>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue16508>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by M. Volz :
--
nosy: +mvolz
___
Python tracker
<http://bugs.python.org/issue20135>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
1 - 100 of 456 matches
Mail list logo