New submission from Ramchandra Apte:
To reproduce, type b. and then press TAB.
The encode method is listed, that means that IDLE is listing the methods of
(it should list the methods of b).
--
components: IDLE
messages: 178558
nosy: ramchandra.apte
priority: normal
severity: normal
Ramchandra Apte added the comment:
Bump.
@neologix
I have a 64-bit laptop with 2 GB memory so I don't think I can do so. (though
one could use swap)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13555
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14597
___
Ramchandra Apte added the comment:
Bump.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13951
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ramchandra Apte maniandra...@gmail.com:
--
title: Seg Fault in .so called by ctypes causes the interpreter to Seg Fault -
Document that Seg Fault in .so called by ctypes causes the interpreter to Seg
Fault
___
Python tracker
Georg Brandl added the comment:
The reference to faulthandler is a good addition. The other added sentence
reads repetitive and can be left out. Proposal:
There are, however, enough ways to crash Python with :mod:`ctypes`, so you
should be careful anyway. The :mod:`faulthandler` module can
Georg Brandl added the comment:
I think you will, Matthew being MRAB on the mailing lists :)
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16688
___
Changes by Georg Brandl ge...@python.org:
--
nosy: +lregebro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16818
___
___
Python-bugs-list mailing
Tshepang Lekhonkhobe added the comment:
This is not a `make' tutorial...
I find the latest patch to be a great compromise though. Many people
would be grateful to learn about the -C option. I am one of them.
--
___
Python tracker
Antoine Pitrou added the comment:
I may tackle this but rare 2.7-only bugs are pretty low on my priorities list.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13555
___
Georg Brandl added the comment:
Well, I'm not -1 about the patch. But there is something to be said for
conciseness, and sprinkling the docs with endless alternate routes will not
make it easier to read quickly and get the information you need.
--
Charles-François Natali added the comment:
I have a 64-bit laptop with 2 GB memory so I don't think I can do so. (though
one could use swap)
AFAICT, a binary string a little longer than 1GB should be enough to
reproduce the bug.
Just make sure Python isn't built with '-fwrapv'.
--
Domen Kožar added the comment:
I believe this is not the case, I have updated example to use ordereddict, same
effect:
https://gist.github.com/4409304
--
resolution: invalid -
status: closed - open
___
Python tracker rep...@bugs.python.org
Charles-François Natali added the comment:
What exactly are you trying to demonstrate?
As explained by Benjamin, the output can differ from one invokation to another
because the iteration order depends on the hash value (position in the
buckets). Running your script on Python 2.7 or curent
Domen Kožar added the comment:
That would mean there is a bug in OrderedDict, since iterator of item in
OrderedDict should keep the order?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16816
Charles-François Natali added the comment:
No, there's a bug in your code:
nest_variables(collections.OrderedDict({'foo.bar': '1', 'foo': '2'}))
You pass the OrderedDict *and already constructed dict*, so entries are
inserted in a random order.
Just use this and it'll work properly:
Charles-François Natali added the comment:
There's actually a parenthesis missing:
nest_variables(collections.OrderedDict((('foo.bar', '1'), ('foo', '2'
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python
Domen Kožar added the comment:
Ah, works much better if you pass tuple to ordereddict. Seems like a bug in my
program indeed (I was using ordereddict, but not correctly).
Sorry for the noise!
--
___
Python tracker rep...@bugs.python.org
Alexey Kachayev added the comment:
Thread-safe implementation for cache cleanup.
--
Added file: http://bugs.python.org/file28490/14373.v7.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
R. David Murray added the comment:
Hmm. What if we made import_fresh_module a context manager, so that the
restore of the original module in sys.modules only happened at the end of the
context?
--
___
Python tracker rep...@bugs.python.org
Eli Bendersky added the comment:
David, how would this help pickle not find _elementtree though? It's already in
sys.modules *before* fresh_import is used, because test___all__ put it there.
I'm experimenting with just deleting _elementtree from sys.modules before
running the tests, so far
Changes by Eli Bendersky eli...@gmail.com:
--
Removed message: http://bugs.python.org/msg178576
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16817
___
Eli Bendersky added the comment:
David, how would this help pickle not find _elementtree though? It's already in
sys.modules *before* fresh_import is used, because test___all__ put it there.
I'm experimenting with just deleting _elementtree from sys.modules before
running the tests, so far
Marek Šuppa added the comment:
Any update on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15948
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 71508fc738bb by Eli Bendersky in branch '3.3':
For Issue #16076: make sure that pickling of Element objects is tested, and do
http://hg.python.org/cpython/rev/71508fc738bb
New changeset 5a38f4d7833c by Eli Bendersky in branch 'default':
For issue
Eli Bendersky added the comment:
I've added some (currently pyET specific) pickling tests. Daniel, could you
re-generate the patch? Note that for the C version of pickling you can now
enable the pickle test. Point to consider - can elements pickled in C be
unpickled in Python and vice versa?
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16672
___
___
Python-bugs-list mailing list
R. David Murray added the comment:
It would help because import_fresh_module would have updated sys.modules to be
the module under test, and would not restore the previously existing entry in
sys.modules until after your test had completed.
--
___
Serhiy Storchaka added the comment:
Same for u'' on 2.7. Completion list doesn't contain isdecimal and
isnumeric.
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
___
Python tracker
Ezio Melotti added the comment:
FWIW even if I heard about the one-liner a few times already I can't really
seem to remember it, and prefer to do cd Doc anyway. Using cd Doc also
makes all the subsequent commands shorter (e.g. opening files, running other
make targets).
The patch proposed by
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15948
___
___
Serhiy Storchaka added the comment:
Here is a patch which fixes this issue. It is applicable for all version,
except uU can be removed from string of string prefix characters in 3.2.
--
nosy: +kbk
stage: - patch review
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28491/idle_bytes_completion.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16819
Ezio Melotti added the comment:
While trying to reproduce the issue I noticed this while inserting values:
import sqlite3
db = sqlite3.connect(':memory:')
cur = db.cursor()
cur.execute(create table foo (x))
# this works fine
cur.execute(uinsert into foo values ('café').encode('latin1'))
# this
Meador Inge added the comment:
Yeah, it is a result of the fix for issue11591 (changeset a364719e400a).
Incidentally, the decision was made to forgo writing a testcase in favor of
proof by inspection :-)
There are also other consequences of that change:
./python.exe -S
Python 3.4.0a0
Ezio Melotti added the comment:
Treating invalid data as sometimes valid and sometime as invalid is a
problem.
What is valid is defined by your application. AFAIU sqlite3 defaults to utf-8,
but it's able to work with latin1 data as well. The fact that you are mixing
utf-8 and latin1 is
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15083
___
___
Matthew Barnett added the comment:
I've attached a small additional patch for truncating the UTF-8.
I don't know whether it's strictly necessary, but I don't know that it's
unnecessary either! (Better safe than sorry.)
--
Added file: http://bugs.python.org/file28492/issue16741#2.patch
New submission from Wolfgang Scherer:
configparser.ConfigParser.clean() always fails:
cfg = configparser.ConfigParser()
if not hasattr(configparser.ConfigParser, 'clear'):
... configparser.ConfigParser.clear = configparser_clear_compat
cfg.clear() #doctest: +ELLIPSIS
Serhiy Storchaka added the comment:
Alexey, as I see, you have missed some Antoine's comments (and my comments
about whitespaces). Please, be more careful.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16741
___
Berker Peksag added the comment:
I've converted Benjamin's patch to extended diff format, fixed some
PEP 8 violations and typos, removed the {get, set}_prefix usage, added
more tests and updated the documentation.
--
nosy: +berker.peksag
Added file:
Benjamin Peterson added the comment:
This is something people can easily convert in there 2.x code, so I don't think
the need for it is great.
--
assignee: collinwinter -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2350
Ezio Melotti added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16645
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Serhiy Storchaka storch...@gmail.com:
--
Removed message: http://bugs.python.org/msg178416
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16645
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16820
___
___
Ezio Melotti added the comment:
Not sure this is worth fixing, unless the fix is trivial.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16773
___
Meador Inge added the comment:
Whoops, the 'quit' case is actually intended and is documented
(http://docs.python.org/3.4/library/site.html):
or additions to the builtins. To explicitly trigger the usual site-specific
additions, call the site.main() function.
I think the right way to fix
Roundup Robot added the comment:
New changeset 503b889668fc by Serhiy Storchaka in branch '2.7':
Issue #16645: Fix hardlink extracting test for tarfile.
http://hg.python.org/cpython/rev/503b889668fc
New changeset d42bf4faf3d1 by Serhiy Storchaka in branch '3.2':
Issue #16645: Fix hardlink
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/issue16645
Pedro Algarvio added the comment:
This is not a 2.7 issue only:
import sys
sys.version_info
(2, 6, 5, 'final', 0
'Foo {0}'.format(u'bár')
Traceback (most recent call last):
File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 1:
Daniel Shahaf added the comment:
New patch, with better docs and less error leaks, per Ezio's review.
--
Added file: http://bugs.python.org/file28496/i16379-v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16379
Daniel Shahaf added the comment:
A couple of random eyebrow-raisers I noticed while working on v2:
- sqlite3.Warning is a subclass of Exception, rather than sqlite3.Error
or builtins.Warning. (Also, the docs say will raise a Warning,
intending to refer to sqlite3.Warning, but the lack of
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1470548
___
Ezio Melotti added the comment:
2.6 only gets security fixes.
My patch converts the format string to unicode using the default
encoding. It's inconsistent with str%args: str%args converts str to
unicode using the ASCII charset (if a least one argument is an unicode
string), not the
Serhiy Storchaka added the comment:
Have you reviewed the patch? Is it good?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15861
___
___
Daniel Shahaf added the comment:
New patch fixing indentation of versionadded markup.
--
Added file: http://bugs.python.org/file28497/i16379-v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16379
Serhiy Storchaka added the comment:
Catalin, are you going to continue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8745
___
___
Serhiy Storchaka added the comment:
What variant of patches should I commit? Or prepare other?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9720
___
Serhiy Storchaka added the comment:
I going speed up other cases for replace(), but for now I have only this patch.
Is it good? Should I apply it to 3.3 as there is a 3.3 regression?
--
keywords: +3.3regression
___
Python tracker
Serhiy Storchaka added the comment:
This is definitely non-trivial. 1-argument int() works with UserString because
__int__() method is defined for UserString (as __float__(), as __complex__()).
I.e. UserString looks as number-like for it. Unfortunately there is no way to
make a class be
Benjamin Peterson added the comment:
As __ap__ says, it would be nice to have a comment.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16061
___
Antoine Pitrou added the comment:
64-bit linux results:
3.2 3.3 patch
133 (-28%) 1343 (-93%) 96 1 'a' 'b' 'c'
414 (-9%)704 (-47%) 3752 'a' 'b' 'c'
319 (-8%)491 (-40%) 2933 'a' 'b' 'c'
253 (-7%)384 (-39%) 2354 'a' 'b' 'c'
216 (-8%)320
Serhiy Storchaka added the comment:
Please review. This function is very important for many applications (and it
hard to get right).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11344
Antoine Pitrou added the comment:
64-bit windows results:
3.3 patched
925 (-90%) 97 1 'a' 'b' 'c'
881 (-54%) 4052 'a' 'b' 'c'
623 (-51%) 3083 'a' 'b' 'c'
482 (-48%) 2524 'a' 'b' 'c'
396 (-44%) 2235 'a' 'b' 'c'
344 (-40%) 2086 'a' 'b' 'c'
306 (-38%)
Antoine Pitrou added the comment:
Please review. This function is very important for many applications
(and it hard to get right).
The pathlib module (PEP 428) has such functionality built-in.
--
___
Python tracker rep...@bugs.python.org
Alexey Kachayev added the comment:
Updated diff with:
* fix object leaks
* tp_clear
* additional test for maxsize 0
I also reimplemented multithreading test (fixed error and added skip rule). But
actually, I'm not sure that it's enough for ensuring thread-safety of clear
operation. I'm
Serhiy Storchaka added the comment:
As __ap__ says, it would be nice to have a comment.
Oh, I thought I had already done this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16061
___
Serhiy Storchaka added the comment:
Antoine, how about this mosquito?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6975
___
___
Carsten Klein added the comment:
I have created a patch for Python 2.7.3 that fixes the issue for that release,
too.
--
Added file: http://bugs.python.org/file28499/python2.7.3.diff
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
str_replace_1char.patch: why not implementing replace_1char_inplace() in
stringlib, with one version per character type (UCS1, UCS2, UCS4)?
I prefer unicode_2.patch algorithm because it's simpler: only one loop (vs two
loops for str_replace_1char.patch, with
New submission from Barry Alan Scott:
bundlebuild in pytthon 2.7 fails to create usable applications.
After examining the code there are a number of coding errors:
1. optimize will puts the -O in the wrong place in the argv
2. Modules.zip is never added to the path
The bunderbuilder in 2.6
STINNER Victor added the comment:
Another option is to decide that this issue will *not* be fixed in Python 2,
and Python 3 *is* the good solution if you have this issue.
Doing the work twice can cause new problems, formatting an argument twice may
return two different values :-( It may have
Eric V. Smith added the comment:
I agree that we should close this as won't fix in 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7300
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16817
___
Samuel John added the comment:
Sounds reasonable, but please put the libs not in a place that might conflict
with a Tk installed by other means (e.g. homebrew's Tk is a `/usr/local`).
--
nosy: +samueljohn
___
Python tracker rep...@bugs.python.org
Changes by Ed Campbell drescampb...@gmail.com:
--
nosy: +esc24
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15663
___
___
Python-bugs-list
Eli Bendersky added the comment:
I'm renaming the issue to just mention the problem, not the initially proposed
solution (following the python-dev discussion).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16817
Changes by Eli Bendersky eli...@gmail.com:
--
title: test___all__ has to save and restore sys.modules while it does all the
importing - test___all__ affects other tests by doing too much importing
___
Python tracker rep...@bugs.python.org
Ned Deily added the comment:
Barry, can you provide a simple test case that demonstrates the failures you
see?
--
assignee: - ronaldoussoren
components: +Macintosh
nosy: +ned.deily, ronaldoussoren
stage: - test needed
type: performance - behavior
Barry Alan Scott added the comment:
I'm using the pysvn workbench sources to find the problem.
Test cases for Mac Apps are not that simple. You need a GUI
framework for starters.
But I'm happy to test any candidate fix using workbench.
As I said a code inspection of the changes since 2.6 will
New submission from Ned Batchelder:
If I register an atexit handler, and then call os.execv, the handler is not
invoked before my process changes over to the new program. Shouldn't it be?
My program is ending, so my atexit handlers should be invoked.
This is based on this coverage.py bug:
Roumen Petrov added the comment:
No - it is broken.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14516
___
___
Python-bugs-list mailing list
Berker Peksag added the comment:
Attaching new patch to address Vinay Sajip's suggestions on Rietveld. Thank
you, Vinay.
--
Added file: http://bugs.python.org/file28500/issue12915_v2.diff
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9586
___
___
Python-bugs-list mailing list
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
___
___
Python-bugs-list
Giampaolo Rodola' added the comment:
Updated patch including test fixes is in attachment.
--
Added file: http://bugs.python.org/file28501/issue10527-3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10527
Daniel Shahaf added the comment:
Attached. Differences to previous version:
- Avoid the test___all__ issue (#16817) by manipulating sys.modules
directly
- Support pickling interoperability between the C and Python
implementations
--
Added file:
Ralf Schmitt added the comment:
flushing stdout may help before writing to stderr (or at least when writing a
traceback). see
http://utcc.utoronto.ca/~cks/space/blog/programming/HowToWriteToStderr for a
discussion.
I don't think it's unreasonable to implement that in python core.
--
William D. Colburn added the comment:
What it should do is be consistent (predictable) in it's handling of
input and output. If it accepts unicode and outputs unicode, then it
should accept unicode and output unicode, not accept garbage and then
barf. Valid data should be consistantly valid,
Ned Deily added the comment:
An update: the problem with OS X behavior appears to have been fixed between OS
X 10.6 and 10.7. As of 10.7, print to a read-only file also fails as on linux:
print f, Hi
Traceback (most recent call last):
File stdin, line 1, in module
IOError: [Errno 9] Bad
Changes by Roger Serwy roger.se...@gmail.com:
--
nosy: -serwy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13657
___
___
Python-bugs-list
Roumen Petrov added the comment:
Jason Huntley wrote:
Jason Huntley added the comment:
Finally! I was able to get all building on mingw64, gcc 4.7.2, and python
3.3. I had to take everybody's work here a little further, and I have
produced a new patch which will build python33 using the
Changes by Łukasz Langa luk...@langa.pl:
--
assignee: - lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16820
___
___
Python-bugs-list
Daniel Shahaf added the comment:
BTW, maybe I'm just confused, but I'm a little surprised that C pickling -
Python unpickling works: the C __reduce__ returns a 3-element tuple, which
according to pickle docs[1] must either be a dictionary or be passed to
__setstate__; it's not a dictionary
Meador Inge added the comment:
Georg's proposal seems reasonable to me sans one very minor nit. I think the
e.g. bit is better off parenthesized:
There are, however, enough ways to crash Python with :mod:`ctypes`, so you
-should be careful anyway.
+should be careful anyway. The
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16747
___
___
STINNER Victor added the comment:
I spoke with schmir on IRC about this issue because he considers the request as
valid, and he doesn't understand why the issue was closed with wont fix.
--
schmir use case:
- a network where IPv6 doesn't work (for an unknown reason)
- a Linux system with
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16801
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16802
___
___
1 - 100 of 119 matches
Mail list logo