Senthil Kumaran added the comment:
Looks like we hit with an encoding issue, which is due to way os.fsdecode() and
os.listdir() decode the filenames.
support.TESTFN_UNDECODABLE
b'@test_99678_tmp\xe7w\xf0'
dir_list = os.listdir(self.tempdir)
dir_list
['@test_99678_tmp%E7w%F0.txt', 'test']
Changes by Senthil Kumaran sent...@uthcode.com:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22165
___
___
Matthias Klose added the comment:
this is fixed in the 3.4 branch (post 3.4.1) and on all active branches. you
should be able to use --with-system-libffi in your current environment (maybe
after running: apt-get build-dep python3.4.
--
resolution: - fixed
status: open - closed
Roundup Robot added the comment:
New changeset a894b629bbea by Serhiy Storchaka in branch '3.4':
Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.
http://hg.python.org/cpython/rev/a894b629bbea
New changeset 7cdc941d5180 by Serhiy Storchaka in branch 'default':
Issue #22165:
Serhiy Storchaka added the comment:
Oh, I missed that os.listdir() on Mac returns really strange result. Thank you
Senthil.
Here is a patch which try to workaround this. I'm not sure that it is enough.
May be we should fix os.listdir(). Or conclude that this issue can't be fixed
on Mac OS.
Serhiy Storchaka added the comment:
Fixed in changeset 2e417d9a2b1c. Thank you Arfrever.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22193
___
Ronald Oussoren added the comment:
OSX returns a strange value in os.listdir because the HFS+ filesystem itself
has unicode filenames and transforms byte strings that are assumed to contain
UTF-8 into something the filesystem can handle (and seems to replace bytes that
aren't valid UTF-8 into
New submission from Graham Dumpleton:
In am embedded system, as the 'python' executable is itself not run and the
Python interpreter is initialised in process explicitly using PyInitialize(),
in order to find the location of the Python installation, an elaborate sequence
of checks is run as
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22213
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Well, then the workaround should work.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22165
___
___
Nick Coghlan added the comment:
Yeah, PEP 432 (my proposal to redesign the startup sequence) could just as well
be subtitled getpath.c hurts my brain :P
One tricky part here is going to be figuring out how to test this - perhaps
adding a new test option to _testembed and then running it both
Nick Coghlan added the comment:
Graham pointed out that setting PYTHONHOME ends up triggering the same control
flow through getpath.c as calling Py_SetPythonHome, so this can be tested just
with pyvenv and a suitably configured environment.
It may still be a little tricky though, since we
Roundup Robot added the comment:
New changeset ffa5bfe75c3a by Serhiy Storchaka in branch '2.7':
Issue #22201: Command-line interface of the zipfile module now correctly
http://hg.python.org/cpython/rev/ffa5bfe75c3a
New changeset 7b933005c492 by Serhiy Storchaka in branch '3.4':
Issue #22201:
Serhiy Storchaka added the comment:
Applied first part of the patch. Thank you Ryan. For the rest please open
separate issue.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 0b79c702abda by Serhiy Storchaka in branch '2.7':
Issue #22068: Avoided reference loops with Variables and Fonts in Tkinter.
http://hg.python.org/cpython/rev/0b79c702abda
New changeset 873002eb8087 by Serhiy Storchaka in branch '3.4':
Issue #22068:
Serhiy Storchaka added the comment:
Could anyone please make the review?
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22034
___
Serhiy Storchaka added the comment:
Here is alternative patch. May be it looks more clear for you.
--
stage: needs patch - patch review
Added file: http://bugs.python.org/file36391/_PySys_GetSizeOf_overflow_2.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22068
___
Jon Poler added the comment:
Here's one way to accomplish this. Please see attached
os_exceptions_table_V2.patch.
I wasn't having much luck trying to use ReST, so I took advantage of the fact
that the Doc/conf.py file is executed every time sphinx-build is run. conf.py
imports and calls the
Roundup Robot added the comment:
New changeset b05d4f3ee190 by Serhiy Storchaka in branch '3.4':
Issue #22165: Fixed test_undecodable_filename on Mac OS.
http://hg.python.org/cpython/rev/b05d4f3ee190
New changeset 58e0d2c3ead8 by Serhiy Storchaka in branch 'default':
Issue #22165: Fixed
Martin Matusiak added the comment:
Would it make sense for the logging module to supply something like the
LoggerWriter class you wrote?
With a section in the documentation that says something like have you been
logging using print() this whole time? No problem, just do sys.stdout =
New submission from Serhiy Storchaka:
Currently Tkinter supports two modes:
* When wantobjects=1 (default), all results of Tcl/Tk commands are converted to
appropriate Python objects (int, float, str, bytes, tuple) if it is possible or
to Tcl_Obj for unknown Tcl types.
* When wantobjects=0
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Run Tkinter tests with wantobjects=False
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22214
___
New submission from Serhiy Storchaka:
Currently most functions which accepts string only without embedded NUL
character, raise TypeError. Proposed patch change exception type to more
consistent ValueError. It also unifies error messages.
I have opened a discussion on Python-Dev.
--
Serhiy Storchaka added the comment:
Could you please finish this issue Victor?
--
assignee: - haypo
stage: resolved -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13916
___
Serhiy Storchaka added the comment:
Synchronized with the tip.
--
stage: - patch review
Added file: http://bugs.python.org/file36395/tkinter_trace_variable_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22115
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file36179/tkinter_trace_variable_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22115
___
New submission from Milan Oberkirch:
When using smtplib.SMTP to connect to a SMTP server the instance variables
esmtp_response survives a SMTP.quit() which results in the following error:
import smtplib
smtp = smtplib.SMTP('mail.oberkirch.org', 25)
smtp.starttls()
(220, b'2.0.0 Ready to
New submission from Serhiy Storchaka:
Proposed patch implements __repr__() methods of three zipfile classes: ZipFile,
ZipInfo and ZipExtFile. Example:
import zipfile
zf =
zipfile.ZipFile('/usr/share/doc/texlive-base/support/makeindex/ind-src.zip')
zf
zipfile.ZipFile
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36397/zipfile_reprs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22217
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21549
___
___
Serhiy Storchaka added the comment:
Added a test. Make the members parameter keyword-only.
If there are no objections I'll commit the patch soon.
--
Added file: http://bugs.python.org/file36398/tarfile_list_members_2.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file35307/tarfile_list_members.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21549
___
New submission from STINNER Victor:
The issue #22110 enabled more compiler warnings. Attached patch fixes some of
them in the Modules/ subdirectory.
--
files: fix_more_warnings.patch
keywords: patch
messages: 225453
nosy: haypo
priority: normal
severity: normal
status: open
title: Fix
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +neologix, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22218
___
Roundup Robot added the comment:
New changeset 05e8f92b58ff by Victor Stinner in branch 'default':
Issue #22218: Fix comparison between signed and unsigned integers warnings in
http://hg.python.org/cpython/rev/05e8f92b58ff
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
You are very fast.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22218
___
___
Python-bugs-list mailing
Vinay Sajip added the comment:
Would it make sense for the logging module to supply something like the
LoggerWriter class you wrote?
Perhaps I'm not making myself clear :-( I've posted the LoggerWriter class (not
the initial version, but the later, slightly more functional one) to see if
New submission from Antony Lee:
Compare
$ mkdir foo; zip -q foo{,}; unzip -l foo.zip
Archive: foo.zip
Length DateTimeName
- -- -
0 2014-08-17 10:49 foo/
- ---
0 1 file
and
$
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22212
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
stage: - needs patch
type: - behavior
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22219
New submission from Serhiy Storchaka:
Strange test failure on one of Windows buildbots:
http://buildbot.python.org/all/builders/x86%20Windows%20Server%202003%20%5BSB%5D%203.x/builds/2393/steps/test/logs/stdio
==
ERROR:
Serhiy Storchaka added the comment:
Directory entry should be added not only when directory is empty.
See also issue20912.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22219
___
Roundup Robot added the comment:
New changeset ca5eef14c1ab by Victor Stinner in branch 'default':
Issue #22218: Fix comparison between signed and unsigned integers warnings in
http://hg.python.org/cpython/rev/ca5eef14c1ab
--
___
Python tracker
Roundup Robot added the comment:
New changeset 2f2c1816d0c7 by Victor Stinner in branch 'default':
Issue #22218: Fix comparison between signed and unsigned integers warning in
http://hg.python.org/cpython/rev/2f2c1816d0c7
--
___
Python tracker
Serhiy Storchaka added the comment:
The line is too long. It would be better to extract a filter as regular
function. Otherwise LGTM.
--
nosy: +serhiy.storchaka
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
You are very fast.
Oh sorry. In fact, I didn't expect a review. I just created an issue to put an
issue number in the commit changelog and give a little bit more context to my
changes.
--
___
Python tracker
Changes by Ben Roberts bjr.robe...@gmail.com:
--
nosy: +roippi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
___
___
Python-bugs-list mailing
New submission from Jorgen Schäfer:
The ast module seems to get confused for certain strings which contain coding
declarations.
import ast
s = u'\\\n# -*- coding: utf-8 -*-\n'
print s
\
# -*- coding: utf-8 -*-
ast.literal_eval(s)
Traceback (most recent call last):
File stdin, line 1,
New submission from STINNER Victor:
dtoa.c has an optimized memory allocator for performances: it uses a short pool
of 2304 doubles (18 KB) to avoid calling malloc/free. Comment in dtoa.c:
/* Memory management: memory is allocated from, and returned to, Kmax+1 pools
of memory, where pool k
evilzero added the comment:
Updated documentation following suggestion.
--
keywords: +patch
nosy: +evilzero
Added file: http://bugs.python.org/file36401/myworkdoc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22153
Changes by evilzero losvampi...@yahoo.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22153
___
___
Python-bugs-list
Changes by David Halter davidhalte...@gmail.com:
--
nosy: +davidhalter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1
___
___
Roundup Robot added the comment:
New changeset 1b898b5d5ffe by Victor Stinner in branch 'default':
Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM and
http://hg.python.org/cpython/rev/1b898b5d5ffe
--
nosy: +python-dev
___
STINNER Victor added the comment:
I fixed the issue in Python 3.5, I close the issue.
Even if Python 2.7 and 3.4 are also affected, I prefer to not modify them to
not take the risk of introducing a regression for a corner case.
--
resolution: - fixed
status: open - closed
versions:
Serhiy Storchaka added the comment:
eval() is affected too. 3.x isn't affected.
--
assignee: - serhiy.storchaka
components: +Interpreter Core -Library (Lib)
nosy: +serhiy.storchaka
stage: - needs patch
type: - behavior
___
Python tracker
Serhiy Storchaka added the comment:
This is very dangerous change. Could you please compare results of Python
benchmarks with and without the patch?
--
nosy: +pitrou, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
Is there anything to be done here as Sphinx is a third party tool and the root
cause is already fixed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10583
Serhiy Storchaka added the comment:
Mode 'U' is deprecated now (issue15204).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6759
___
___
Stefan Krah added the comment:
A modified version of telco.py (using floats instead of decimals) runs
about 5-6% slower with the change here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2
___
___
Python-bugs-list
Antoine Pitrou added the comment:
However, from a smoke test, sys.stdout = LoggerWriter() doesn't seem to work
as expected
I wasn't thinking about replacing sys.stdout (which I think is in general a bad
pattern, except for daemonized processes), rather being able to 1) either
replace the
Roundup Robot added the comment:
New changeset 97c70528b604 by Victor Stinner in branch 'default':
Issue #22207: Fix comparison between signed and unsigned integers warning in
http://hg.python.org/cpython/rev/97c70528b604
--
nosy: +python-dev
___
STINNER Victor added the comment:
I commited the first part.
The remaining part is a long patch for unicodeobject.c.
--
Added file: http://bugs.python.org/file36402/unicode.patch
___
Python tracker rep...@bugs.python.org
Vinay Sajip added the comment:
Loggers don't deal with output - handlers do - so I would prefer not to add an
output-related method to a logger: people confuse the two enough as it is. Note
that
stream = LoggerWriter('foo')
gives an equivalent result to
stream =
Terry J. Reedy added the comment:
My impression is that we are trying to move away from using test_main, or is
using support.run_unittest considered a sufficient change from the old explicit
suite method?
Anyway, here is an alternate approach, adding two lines to wrap all test
classes, that
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22181
___
___
Terry J. Reedy added the comment:
trace_add:
list or tuple (of such strings.) Can we say 'sequence' (or even set or
iterable) or is the requirement specifically tuple or list?
Does tk call the traceback function with any args it supplies(other than those
passed in)? (In other words, is the
Terry J. Reedy added the comment:
I think I requested elsewhere that public _tkinter/tkinter names be documented.
What you wrote already seems clear enough.
Default mode is still wantobjects=1, The patch appears to change it to 2 in
tkinter/__init__.py.
/* Create argument list (argv1, ...,
Roundup Robot added the comment:
New changeset fbb51251eb9d by Benjamin Peterson in branch '3.4':
remove 2.2 and 2.6 compat code (closes #22200)
http://hg.python.org/cpython/rev/fbb51251eb9d
New changeset 66c7f30fe8c7 by Benjamin Peterson in branch 'default':
merge 3.4 (closes #22200)
Martin Panter added the comment:
This is more or less a dupe of Issue 6973, which also has a potential patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17131
___
71 matches
Mail list logo