Eiro Neemous added the comment:
@Christian:
Sorry that I didnt' attached test file= =
It was long ago that I met this problem, so forget some details= =
The right description is cannot do 'from locale import getpreferredencoding'.
please extract the attached zip file and test from locale import
Christian Heimes added the comment:
Your locale directory contains a __init__.py file. The file causes the
directory to become a Python package, that shadows the locale module from
Python's standard library. Please remove the __init__.py file and __pycache__
directory to fix your problem.
Eiro Neemous added the comment:
@Christian:
OK, get it,
thank you for your explanation :-)
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16838
___
Roundup Robot added the comment:
New changeset 956cfe53a99f by Serhiy Storchaka in branch '3.2':
Issue #16541: tk_setPalette() now works with keyword arguments.
http://hg.python.org/cpython/rev/956cfe53a99f
New changeset 1ac028634b60 by Serhiy Storchaka in branch '3.3':
Issue #16541:
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16541
Serhiy Storchaka added the comment:
But then will be problems with filenames containing .
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16829
___
Ramchandra Apte added the comment:
I think if IDLE directly starts lpr directly (subprocess) rather than using a
shell to run it, then this problem won't happen.
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
Giovanni Bajo added the comment:
Il giorno 02/gen/2013, alle ore 00:20, Domen Kožar rep...@bugs.python.org ha
scritto:
Domen Kožar added the comment:
According to talk at 29c3:
http://events.ccc.de/congress/2012/Fahrplan/events/5152.en.html
Quote: We also describe a vulnerability of
Giovanni Bajo added the comment:
Il giorno 02/gen/2013, alle ore 06:52, Christian Heimes
rep...@bugs.python.org ha scritto:
Christian Heimes added the comment:
Thanks for the information! I'm working on a PEP for the issue at hand.
Since you're collecting ideas on this, I would like to
Serhiy Storchaka added the comment:
Patch updated for current tip.
--
Added file: http://bugs.python.org/file28527/glob_recursive_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13968
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13968
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file28213/glob_recursive.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13968
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16761
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16630
___
___
New submission from Masaya Suzuki:
Python 2.7.3 crushes when the following code is run without any library, which
means run python with -S option:
class Test:
pass
unicode(Test())
In the course of the interpreter tries to find the __unicode__ attribute in a
class, it uses a
Brett Cannon added the comment:
Why remove the refleak tests? I'm sure Raymond put those in for a reason as I
know he tries to reuse various objects a lot and this helped make sure he
didn't mess anything up.
I don't think the tests need to be backported.
--
Serhiy Storchaka added the comment:
v8 LGTM (except some trailing whitespaces).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16694
___
___
Changes by Daniel Urban urban.dani...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16839
___
___
Benjamin Peterson added the comment:
2013/1/2 Giovanni Bajo rep...@bugs.python.org:
Giovanni Bajo added the comment:
Il giorno 02/gen/2013, alle ore 06:52, Christian Heimes
rep...@bugs.python.org ha scritto:
Christian Heimes added the comment:
Thanks for the information! I'm working
New submission from Serhiy Storchaka:
A long time Tcl got support first 64-bit integers, and then arbitrary size
integers. Python also supports arbitrary size integers. However Tkinter
supports only C long integers. For example, on 32-bit platform:
import tkinter
t = tkinter.Tk()
New submission from Serhiy Storchaka:
st_dev field of stat() result was set as signed long or long long, but now it
is unsigned long on Windows (see issue11939). The proposed patch uses
appropriate conversion for it.
--
components: Extension Modules, Windows
files:
Benjamin Peterson added the comment:
Thank you for the bug report.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16839
___
Roundup Robot added the comment:
New changeset 0012d4f0ca59 by Benjamin Peterson in branch '2.7':
ensure the attribute name string is initalized before using it (closes #16839)
http://hg.python.org/cpython/rev/0012d4f0ca59
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Meador Inge added the comment:
After applying the fix for issue11824 to tip there ended up being three more
issues:
1. makeconfig.py should have been updated in d777f854a66e when changing
imp to _imp. Without this change a reference to 'PyInit__imp'
was being generated, but that
Brian Curtin added the comment:
Looks good.
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16841
___
___
Barry A. Warsaw added the comment:
On Jan 02, 2013, at 04:06 PM, Meador Inge wrote:
I am a little unsure about (3) since I am not sure why the __file__ attribute
is being removed to begin with. eric.smith?
This is related to PEP 420, which relaxes the requirement that all modules
have a
Roundup Robot added the comment:
New changeset 07d07111cec9 by Serhiy Storchaka in branch 'default':
Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.
http://hg.python.org/cpython/rev/07d07111cec9
--
nosy: +python-dev
___
Eric V. Smith added the comment:
What Barry said. :)
I haven't had time to check yet: but why does site.py need the __file__
attribute? Maybe that's the actual problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16047
Barry A. Warsaw added the comment:
On Jan 02, 2013, at 04:29 PM, Eric V. Smith wrote:
I haven't had time to check yet: but why does site.py need the __file__
attribute? Maybe that's the actual problem.
It uses it to find the license text when you type license() at the interactive
prompt. I
Changes by Matthias Klose d...@debian.org:
--
nosy: +doko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16828
___
___
Python-bugs-list mailing
Brett Cannon added the comment:
I agree that it makes no sense to define __file__ for frozen modules.
Originally they did because that was the only way to tell if a module was a
builtin module or not, but with the imp module's API on top of
sys.builtin_module_names, there is no need to
Matthias Klose added the comment:
looks fine to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16828
___
___
Python-bugs-list mailing list
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16841
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15239
___
___
Alexander Belopolsky added the comment:
Attached patch fixes the issue and passes regression tests, so most likely the
ability to instantiate Number is not an intentional feature.
pass should probably be replaced with a meaningful docstring, but I would
like to hear from others on whether the
Catalin Iacob added the comment:
Yes Serhiy, I was planning to, lack of time followed by (just finished)
vacation lead to a stall. Thanks for following up on this.
I should soon, probably this weekend, have an updated version addressing your
comments.
--
Tom Tromey added the comment:
It does fail without the patch:
test_format
XXX undetected error
test test_format failed -- Traceback (most recent call last):
File /home/tromey/Space/Python/cpython/Lib/test/test_format.py, line 251,
in test_format
def test_exc(formatstr, args, exception,
Zachary Ware added the comment:
Note to self: learn to run patchcheck.py before posting. Whitespace issues
fixed in v9.
--
Added file: http://bugs.python.org/file28532/py_operator.v9.diff
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Why remove the refleak tests?
Because regrtest already provides the feature, so I don't see a reason to
duplicate it here. FWIW the same code is copy/pasted elsewhere too, e.g. in
Lib/test/test_operator.py:438.
--
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16701
___
Roundup Robot added the comment:
New changeset 80cfd4caa726 by Benjamin Peterson in branch '2.7':
call PyErr_Clear() when ignoring error from PyNumber_Int (closes #15516)
http://hg.python.org/cpython/rev/80cfd4caa726
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Benjamin Peterson added the comment:
Thanks for the patch. For future reference, we use spaces instead of tabs.
--
resolution: fixed -
stage: committed/rejected - patch review
status: closed - open
___
Python tracker rep...@bugs.python.org
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15516
___
Brett Cannon added the comment:
Just to have this written down somewhere, site.py already goes through and
changes __file__ to absolute for modules already imported before it is run, so
there is some precedent to not caring about relative file paths.
--
Brett Cannon added the comment:
The patch LGTM
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16748
___
___
Python-bugs-list mailing list
Christian Heimes added the comment:
Giovanni, why do you think that hashing of unicode strings is slower than byte
strings?
First of all ASCII only unicode strings are packed and use just one byte per
char. CPython's FNV implementation processes one element in each cycle, that is
one byte
Giovanni Bajo added the comment:
Il giorno 02/gen/2013, alle ore 19:51, Christian Heimes
rep...@bugs.python.org ha scritto:
Christian Heimes added the comment:
Giovanni, why do you think that hashing of unicode strings is slower than
byte strings?
First of all ASCII only unicode
Serhiy Storchaka added the comment:
If no one objects I will commit this next week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16694
___
___
Roundup Robot added the comment:
New changeset 008bac4e181c by Ezio Melotti in branch '3.3':
#16748: test_heapq now works with unittest test discovery.
http://hg.python.org/cpython/rev/008bac4e181c
New changeset de6bac0a40cc by Ezio Melotti in branch 'default':
#16748: merge with 3.3.
Ezio Melotti added the comment:
Fixed, thanks for the review!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
As I mentioned above, not only test_heapq uses this idiom, but a lot of other
tests. Try to fix hard cases first: test_genericpath and test_functools.
--
status: closed - open
___
Python tracker
Serhiy Storchaka added the comment:
See microbenchmark results in issue16427. Really hashing of ASCII/UCS1 strings
more than 2x slower than bytes hashing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14621
Ezio Melotti added the comment:
Either repeating the default value in the text with the desired form (and leave
it wrong in the signature) or what Georg suggested in msg178519 sound good to
me. I don't think anything more than that is necessary to solve this issue.
--
Ezio Melotti added the comment:
Those section could be moved to an appendix or somewhere near
http://docs.python.org/3/tutorial/interactive.html. Note that this page and
the one about float issues could be appendices too.
--
___
Python tracker
Philip Jenvey added the comment:
Hey Ezio, you forgot to attach the patch
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16835
___
New submission from Serhiy Storchaka:
Just a quote of Georg Brandl's msg178519:
A simple, minimal-invasive solution would be to allow a signature for
documentation purposes as the first line of the docstrings.
pydoc could recognize this (if docstring.startswith(func.__name__ + '(') or
Ezio Melotti added the comment:
That would explain why no one was reviewing it :)
--
keywords: +patch
Added file: http://bugs.python.org/file28533/issue16835.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16835
Roundup Robot added the comment:
New changeset 2afc0997e440 by Ezio Melotti in branch '3.2':
#16747: fix link to file objects in the glossary.
http://hg.python.org/cpython/rev/2afc0997e440
New changeset 6e4fc5e2acf8 by Ezio Melotti in branch '3.3':
#16747: merge with 3.2.
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16747
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16839
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 47df28c52840 by Ezio Melotti in branch 'default':
#13810: fix Sphinx URL.
http://hg.python.org/devguide/rev/47df28c52840
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou:
Just got this:
[255/372/1] test_sched
Warning -- threading._dangling was modified by test_sched
test test_sched failed -- Traceback (most recent call last):
File /home/antoine/cpython/default/Lib/test/test_sched.py, line 83, in
test_cancel_concurrent
Roundup Robot added the comment:
New changeset 002bf9857278 by Antoine Pitrou in branch 'default':
Issue #16833: In http.client.HTTPConnection, do not concatenate the request
headers and body when the payload exceeds 16 KB, since it can consume more
memory for no benefit.
Antoine Pitrou added the comment:
Patch looks good to me, I've committed it. Thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16833
Antoine Pitrou added the comment:
By the way, could you sign a contributor agreement?
http://www.python.org/psf/contrib/
Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16833
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
___
Serhiy Storchaka added the comment:
This is a test only issue.
There are two ways to fix this test. On first simple way we can just increase
the timing and hope for a luck. On second more complicated way we should use
custom deterministic time and sleep functions. Here is a first way patch to
Terry J. Reedy added the comment:
A subclass with a custom representation, as I suggested above, is even simpler
and involves no change to inspect or docstring conventions. I otherwise agree
with closing this.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 06a08144af1b by Nadeem Vawda in branch '2.7':
Issue #16828: Fix error incorrectly raised by bz2.compress('').
http://hg.python.org/cpython/rev/06a08144af1b
New changeset c4a4863b85b2 by Nadeem Vawda in branch '3.2':
Issue #16828: Fix error
Nadeem Vawda added the comment:
Fixed. Thanks for the bug report and the patches!
--
assignee: - nadeem.vawda
keywords: +3.3regression -patch
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
New submission from Alejandro Marco Ramos:
hi, when use the param 'funcName' in the logging module (version 0.4.9.6 for
python 2.6) the module crash. Researching in the code (__init__.py) i see that
the code for get the function name is in method '_log' in the class 'Logger'.
The function
Ezio Melotti added the comment:
Can you provide some code to reproduce the issue and/or the traceback you got?
Note that 2.6 only receives security fixes, so it won't be fixed there -- but
it can be fixed in 2.7/3.2/3.3/3.x if they are affected.
--
nosy: +ezio.melotti
Zachary Ware added the comment:
Here's a patch that should clear up test_genericpath.py (and other path tests).
--
resolution: fixed -
title: Ensure test discovery doesn't break for modules testing C and Python
implementations - Make CPython test package discoverable
Added file:
R. David Murray added the comment:
I wonder if this is related to issue 16778.
--
nosy: +r.david.murray, vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16844
___
Alejandro Marco Ramos added the comment:
is not related to 16778
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16844
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset c256764e2b3f by Victor Stinner in branch '3.2':
Issue #16455: On FreeBSD and Solaris, if the locale is C, the
http://hg.python.org/cpython/rev/c256764e2b3f
New changeset 5bb289e4fb35 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue #16455: On
Leo Arias added the comment:
What if we check if the stream has the writeln method?
--
Added file:
http://bugs.python.org/file28536/fix-16739-texttestresult_writeln-v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16739
STINNER Victor added the comment:
I backported the fix to Python 3.2 and 3.3 because I consider it important
enough.
--
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16455
New submission from Sebastian Berg:
`warnings.simplefilter` does not validate that the category passed in is
actually a class. This means that an invalid category leads to a `TypeError`
whenever a warning would otherwise occur due to `issubclass` check failing.
It is a very small thing, but
Roundup Robot added the comment:
New changeset 41658a4fb3cc by Victor Stinner in branch '3.2':
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
http://hg.python.org/cpython/rev/41658a4fb3cc
New changeset 4d40c1ce8566 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue
Roundup Robot added the comment:
New changeset 41658a4fb3cc by Victor Stinner in branch '3.2':
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
http://hg.python.org/cpython/rev/41658a4fb3cc
New changeset 4d40c1ce8566 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue
Roundup Robot added the comment:
New changeset 41658a4fb3cc by Victor Stinner in branch '3.2':
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
http://hg.python.org/cpython/rev/41658a4fb3cc
New changeset 4d40c1ce8566 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16455
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16414
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16444
___
STINNER Victor added the comment:
I assign the issue to you than. Is it ok?
Sure.
I backported all changesets related to this issue to Python 3.2 and 3.3. So I
can finally close this issue.
--
assignee: haypo -
resolution: - fixed
status: open - closed
STINNER Victor added the comment:
serhiy: I'm not really motivated to finish the work on this issue (especially
... it would probably be good idea to benchmarks non-ASCII strings as well.).
Would you like to work on this?
--
nosy: +serhiy.storchaka
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14094
___
___
Raymond Hettinger added the comment:
Much of that article is taken directly from the official docs and adds very
little in the way of explanation. I think we need our own write-up with better
explanations and examples.
--
nosy: +rhettinger
___
STINNER Victor added the comment:
What is the status of this issue? Is curses still broken on Python 3.4?
--
nosy: +trent
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13552
___
STINNER Victor added the comment:
I don't want to work on signals anymore, and nobody looks to be interested, so
I'm closing this issue.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
The idea was somehow rejected on the python-dev mailing list. I'm not really
motivated to work on this issue since I never see any file starting with a BOM
on Linux, and I'm only working on Linux. So I just close this issue.
If someone is motivated to work on
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9561
___
Meador Inge added the comment:
Thanks for the feedback everyone -- that helped. Here is a new patch
which addresses issue (3) by not requiring os.__file__ to exist.
The patch from issue11824 fixes freeze for 3.2 completely. The patch
from issue11824 plus this patch fixes freeze for 3.3 and
Changes by Meador Inge mead...@gmail.com:
--
assignee: - meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16047
___
___
Python-bugs-list
STINNER Victor added the comment:
fix_2warnings.diff: I don't like statement like (void)err; to kill a compiler
warning. I prefer GCC __attribute__((unused)) using a macro instead. About the
change on unicode_fromascii, the code changed a lot since the patch was
written. The patch is outdated
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10951
___
STINNER Victor added the comment:
A solution does already exist, and I'm not motivated to work on an helper, so
I'm closing this issue.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Meador Inge added the comment:
Serhiy, did you mean to mark this as patch review? I don't see a patch.
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
STINNER Victor added the comment:
@doko: You integrated patches related to cross-compilation. Can this issue be
closed, or does the Buildroot project still contain useful patches?
--
nosy: +doko
___
Python tracker rep...@bugs.python.org
1 - 100 of 153 matches
Mail list logo