Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18078
___
___
New submission from Adam Urban:
import xml.etree.ElementTree as ET
tree = ET.parse(myinput.xml)
tree.write(myoutput.xml, encoding=utf-16)
...Output is a garbled mess, often a mix of UTF-8 and UTF-16 bytes... UTF-8
output works fine, but when UTF-16, UTF-16LE, or UTF-16BE are specified the
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com:
--
nosy: +bkabrda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12425
___
___
New submission from Vajrasky Kok:
In two test_copying methods in Lib/test/test_collections.py, variable i is
never used. My guess is the original test writer forgot to utilize the variable
i.
For example, in test_copying method in TestOrderedDict class:
def test_copying(self):
#
Serhiy Storchaka added the comment:
Perhaps it will be even better to extract loop body as a local function and
then call it with different arguments.
def check(dup):
self.assertTrue(dup is not od)
self.assertEqual(dup, od)
...
check(od.copy())
Serhiy Storchaka added the comment:
For 3.3+ it was fixed in issue1767933.
--
nosy: +eli.bendersky, serhiy.storchaka
versions: -3rd party, Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python
3.4, Python 3.5
___
Python tracker
Cherniavsky Beni added the comment:
I was only thinking of 3.4, which will have venv and a pip bootstrapper.
Is changing the doc build / doctest in scope for minor releases of 3.3 (or even
earlier)?
The commands I listed (using setup_distribute.py) also work with 3.3.
(But they're unsecure --
New submission from Armin Rigo:
If you have in x some very large number, like 3**20, then the computation
for 'str(x)' is sub-efficient. Nathan Hurst posted to the pypy-dev mailing
list a pure Python algo that gives the same result in 2/3rd of the time (in
either CPython or PyPy). We
Serhiy Storchaka added the comment:
See also issue3451.
--
nosy: +mark.dickinson, serhiy.storchaka
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18107
___
Vajrasky Kok added the comment:
According to R. David Murray in Python core-mentorship mailing list addressing
me:
It could be that the bug is that the i is not used...it may have been
intended to be used in an extended error message in the asserts, so that
it would be clear which input
Vajrasky Kok added the comment:
Anyway to make it complete, I upload the patch according to Storchaka's advice
too.
May the best patch wins!
--
Added file: http://bugs.python.org/file30434/test_copying_with_def.patch
___
Python tracker
Berker Peksag added the comment:
I can't reproduce it on Windows 7 with Python 3.3.2.
Attaching my test script.
Here's the output:
C:\Python33python.exe -V
Python 3.3.2
C:\Python33python.exe dbmopen.py
dbm.dumb._Database object at 0x027C15B0
bzdew.dat exists? True
bzdew.dir exists? True
Terje Wiesener added the comment:
This bug seems to have resurfaced in newer python versions.
I have tested the file attached in the original report (prof2.py) in python
2.6.6 and 2.7 (x86 versions) under Windows 7, and both give the same output:
c:\tempc:\Python27\python.exe prof2.py
type
Sashko Kopyl added the comment:
Here is the output.
*** Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32
bit (Intel)] on win32. ***
*** Remote Python engine is active ***
*** Remote Interpreter Reinitialized ***
dbm.dumb._Database object at 0x02B95210
yoqaA.dat
New submission from Colin Watson:
Python 3.3 added the dir_fd and follow_symlinks keyword arguments to os.chown;
it also added the shutil.chown function. Unfortunately the latter, while
useful, does not support these new keyword arguments. It would be helpful if
it did.
--
Martin v. Löwis added the comment:
Ok, these patches all look fine. Thanks for your effort.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15239
___
Armin Rigo added the comment:
Thanks, I missed it. Sorry for the noise.
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18107
___
Eric V. Smith added the comment:
See also issue18107, in particular
http://mail.python.org/pipermail/pypy-dev/2013-May/011433.html.
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3451
Zachary Ware added the comment:
I can confirm that the patch doesn't break building on Windows.
Would it make any sense to move Windows-specific sources for things like
kill_python.exe (PCbuild/kill_python.c), make_buildinfo.exe,
make_versioninfo.exe, py.exe (PC/launcher.c) into Programs? Or
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18094
___
___
Python-bugs-list
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +Todd.Rovito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18103
___
___
Python-bugs-list
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +Todd.Rovito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18104
___
___
Python-bugs-list
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18108
___
Éric Araujo added the comment:
LGTM.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18066
___
___
Python-bugs-list mailing
Éric Araujo added the comment:
+1
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18094
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 81c02d2c830d by Serhiy Storchaka in branch '3.3':
Issue #18094: test_uuid no more reports skipped tests as passed.
http://hg.python.org/cpython/rev/81c02d2c830d
New changeset ebd11a19d830 by Serhiy Storchaka in branch 'default':
Issue #18094:
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Thank you for review. Should we regenerate Lib/stringprep.py now?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15239
___
New submission from Dominik Richter:
To reproduce (tested on Arch Linux, python 3.3.2):
sudo hostname hât
python -c import os; os.uname()
produces:
Traceback (most recent call last):
File string, line 1, in module
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
Serhiy Storchaka added the comment:
Since creating refcounts.dat many functions changed their argument's types from
`char*` to `const char*`. Here is a patch which fixes mismatches (perhaps not
all).
refcounts.dat in 3.x contains PyInt_* functions which don't exist in 3.x.
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18048
___
___
Python-bugs-list
Changes by Charles-François Natali cf.nat...@gmail.com:
--
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18109
___
___
STINNER Victor added the comment:
I'm unable to set an non-ASCII hostname on Fedora 18 (Linux kernel 3.9.2):
$ sudo hostname hât
hostname: the specified hostname is invalid
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
See also issue #9377 (similar issue with the socket module).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18109
___
Dmi Baranov added the comment:
I just checked RFC952 [1] and RFC1123 [2], that host name is incorrect.
I think, you need report to Arch Linux bug-tracker.
$ sudo hostname hât
hostname: the specified hostname is invalid
$ uname -a
Linux d9frog9n-desktop 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26
Dmi Baranov added the comment:
/offtop Dumn, sorry for duplication here, Victor. We not having websockets
here, my page not refreshed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18109
Alexander Belopolsky added the comment:
+1
I had tsort in my own utilities library for so long that I thought it was in
stdlib already. I found this issue after unsuccessfully searching
docs.python.org. :-)
I think functools will be a fine place for it. It is somewhat related to total
New submission from Eric Wieser:
This code:
class Sudoku(dict):
COLUMNS = [
{(x, y) for y in xrange(9)} for x in xrange(9)
]
When run on Python 2.7.5, fails with this traceback:
Traceback (most recent call last):
File pyshell#3, line 1, in module
Terry J. Reedy added the comment:
Guido, do you still believe in using 'register' in C code in general or in
particular, for function arguments. Many of the uses in dictobject.c go back to
your rev1256 and rev5396. The one that caught Larry's eye for dict_contains
appears to be from the
Roundup Robot added the comment:
New changeset e873f2e67353 by Brett Cannon in branch 'default':
Issues #18088, 18089: Introduce
http://hg.python.org/cpython/rev/e873f2e67353
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Dominik Richter added the comment:
@dmi.baranov: You're right, according to:
http://tools.ietf.org/html/rfc952
hname ::= name*[.name]
name ::= let[*[let-or-digit-or-hyphen]let-or-digit]
http://tools.ietf.org/html/rfc1178
Don't use non-alphanumeric characters in a name.
If you use posix
Brett Cannon added the comment:
New changeset e873f2e67353 by Brett Cannon in branch 'default':
Issues #18088, 18089: Introduce
http://hg.python.org/cpython/rev/e873f2e67353
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18088
___
STINNER Victor added the comment:
http://tools.ietf.org/html/rfc1178
Don't use non-alphanumeric characters in a name.
This is a recommendation, it does not mean that it is forbidden. But on Fedora,
I'm unable to set a non-ASCII hostname. Arch Linux may be different.
Python should not fail
New submission from Julian Berman:
This has come up a number of times I'm aware, but no one has ever written a
patch for it as far as a quick look uncovered.
So here's one (written by Thomas Wouters but with permission to submit).
Submitting without tests and docs, but those are incoming when
Changes by Julian Berman julian+python@grayvines.com:
--
keywords: +patch
Added file: http://bugs.python.org/file30437/minmaxdefault.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18111
STINNER Victor added the comment:
I tested VirtualAlloc/VirtualFree versus malloc/free on Windows 7 SP1 64-bit.
On my small test, when using VirtualAlloc/VirtualFree, the memory peak is lower
(ex: 58.1 MB vs 59.0), and the memory usage is the same or sometimes lower. The
difference is small,
Changes by Dmi Baranov dmi.bara...@gmail.com:
--
nosy: +dmi.baranov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18110
___
___
Python-bugs-list
Dominik Richter added the comment:
@haypo: You're right, RFC1178 is only a recommendation. RFC952 however is
mandatory, although it doesn't seem to define let-or-digit explicitly (or at
least i wasn't able to find it; thus referencing POSIX).
Regarding Arch Linux's hostname: It is part of the
Changes by Antoine Pitrou pit...@free.fr:
--
components: Interpreter Core
hgrepos: 194
nosy: pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: PEP 442 implementation
type: enhancement
versions: Python 3.4
___
Python
STINNER Victor added the comment:
typedef void *(*PyCCP_Malloc_t)(size_t size, void *arg, const char *file, int
line, const char *msg);
I don't understand the purpose of the filename and line number. Python does not
have such information. Is it just to have the API expected by Unreal
Terry J. Reedy added the comment:
What I want is for the tests to be discovered when they should be and not when
they should not ;-) -- without jumping through too many hoops. I probably once
read 'recursing into subdirectories' but forgot. I like 'h_test...' for 'human
test ...'.
Thinking
R. David Murray added the comment:
Issue 10097 may also have some relevant discussion, even though that issue
originates from Windows.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18109
R. David Murray added the comment:
Issue 7153 and the discussions linked therefrom is presumably relevant here.
Do you have a concrete use case?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18111
New submission from Atsuo Ishimoto:
Objects associated to the panel with panel.set_userptr() are never DECREF()ed.
Attached file is script to reproduce the leak.
Confirmed with Python2.7/3.3.
--
files: userptr-leak.py
messages: 190433
nosy: ishimoto
priority: normal
severity: normal
New submission from Brett Cannon:
_imp.init_frozen is not really necessary; you can implement imports entirely
using the other frozen-related functions. Because of that it's probably better
to simply rewrite PyImport_ImportFrozenModuleObject() to use importlib to make
the code easier to
New submission from Brett Cannon:
BuiltinImporter, FrozenImporter, and ExtensionFileLoader all have their own
custom code to manage clearing sys.modules if something goes wrong. Should see
if any of them would break if they used importlib.util.module_to_load. And if
they would break thanks to
Roundup Robot added the comment:
New changeset 82db02a2e023 by Brett Cannon in branch 'default':
Issue #18065: For frozen packages set __path__ to [].
http://hg.python.org/cpython/rev/82db02a2e023
--
nosy: +python-dev
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18065
___
Brett Cannon added the comment:
Turns out BuiltinImporter doesn't like having a pre-existing module, so a new
keyword argument will be necessary to allow for only the cleanup code to run
and not the construction of a new module.
--
___
Python
Terry J. Reedy added the comment:
While improving the self-test for confixSectionNameDialog.py after fixing the
error that stopped it from running, I discovered an error in the NameOk method:
names were not really stripped before being tested. so duplicate section names
were erroneously
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - improper scope in list comprehension, when used in class
declaration
___
Python tracker rep...@bugs.python.org
62 matches
Mail list logo