New submission from Ned Deily n...@acm.org:
In several contexts, IDLE binds clicking of the right mouse button to context
popup menus, most importantly, to provide the Set Breakpoint and Clear
Breakpoint actions in edit windows. On OS X systems, however, one cannot
assume there will be more
Ned Deily n...@acm.org added the comment:
The attached patch modifies IDLE on OS X to bind popup menus to Control-Click
(of the main or left button), as is commonly done elsewhere in OS X.
--
Added file:
http://bugs.python.org/file19592/issue10404-idle_no_context_menus.txt
R. David Murray rdmur...@bitdance.com added the comment:
Yes. However, if None were a valid value for mode, then the would would
instead do something like:
SENTINEL = object()
class GZipFile...
def __init__(self, filename=None, mode=SENTINEL, ...
and then where None currently appears
New submission from Ned Deily n...@acm.org:
In neither the IDLE section of the Library Reference nor in IDLE's own help
file is there any documentation on how to use its breakpoint capability. Since
the menu options only appear if the user knows to Right-click (or Control-click
on OS X - see
Changes by Ned Deily n...@acm.org:
--
nosy: +Bruce.Sherwood, kbk, taleinat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10404
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Okay; go ahead and apply (preferably in two separate commits, since you're
fixing two only marginally related issues here).
--
assignee: - skrah
___
Python tracker rep...@bugs.python.org
New submission from Ned Deily n...@acm.org:
r73001 for Issue5150 added the Rstrip extension to IDLE and modified the
extensions configuration file, config-extensions.def, to enable it by default.
For Python 2 OS X installs, however, the config-extensions.def file from
Lib/idlelib is replaced
Changes by Ned Deily n...@acm.org:
Added file: http://bugs.python.org/file19593/issue10406-idle27-rstrip-27.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10406
___
Senthil Kumaran orsent...@gmail.com added the comment:
Thanks for the explanation, Éric. That helps.
- Backported QName tests in r86447 to release31-maint.
As for the logic of the fix, it follows like this:
If True and False:
#Doesn't go here
elif True:
# Goes here
vs
if True:
# Goes
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The patch looks good at first glance, but is there a way to test the feature?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10141
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Ok, here is a new patch which slightly expands the documentation and improves
the timeout unittest.
If there are no objections I'll then commit this shortly.
--
Added file: http://bugs.python.org/file19594/wait_for2.patch
Mark Dickinson dicki...@gmail.com added the comment:
The Fraction type has the same behaviour, so I've fixed it to match the
proposed new Decimal behaviour in r86448.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10356
Senthil Kumaran orsent...@gmail.com added the comment:
On Sat, Nov 13, 2010 at 01:20:45AM +, Łukasz Langa wrote:
You think wrong. Try it.
Okay, I get it. Coercing would be a bad idea in RawConfigParser
because there are cases where get method can have raw=True and
coercing would break
Georg Brandl ge...@python.org added the comment:
Good, but please wait until after the a4 freeze.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10260
___
Antoine Pitrou pit...@free.fr added the comment:
Ok, here is a new patch which slightly expands the documentation and improves
the timeout unittest.
If there are no objections I'll then commit this shortly.
Again, I think you should use a larger timeout value than 0.1, to avoid
intermittent
Senthil Kumaran orsent...@gmail.com added the comment:
This is an invalid bug report at the moment. In fact, aged.
The redirection depends upon max_redirections and max_repeats together. Setting
it to 0 explicitly (inside the code) is not a good use case under any condition.
--
nosy:
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in r86450 (py3k). Will be back porting shortly.
--
resolution: - fixed
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5111
Changes by Senthil Kumaran orsent...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10116
___
___
Luke Kenneth Casson Leighton l...@lkcl.net added the comment:
I am not sure how we should do this, but here's my proposal
for distutils2 at least:
- make this new feature a standalone package that patches distutils
- release it for 2.x
- let's add your work in distutils2 as well, so it's
Luke Kenneth Casson Leighton l...@lkcl.net added the comment:
The current patch makes too many changes in core distutils functions;
it cannot be accepted in this form. I'm sure that most of the needed
changes can be made in a subclass of the present Mingw32CCompiler.
that's what i did when
Antoine Pitrou pit...@free.fr added the comment:
There are still sporadic failures such as:
==
ERROR: testURLread (test.test_urllibnet.URLTimeoutTest)
--
Vlastimil Brom vlastimil.b...@gmail.com added the comment:
I'd have liked to suggest updating the underlying unicode data to the latest
standard 6.0, but it turns out, it might be problematic with the cross-version
compatibility;
according to the clarification in
New submission from Zbyszek Szmek zbys...@in.waw.pl:
Fix is trivial:
diff -r 8daacdacf720 -r 1a821081b470 Lib/distutils/dir_util.py
--- a/Lib/distutils/dir_util.py Sat Nov 13 13:27:49 2010 +0100
+++ b/Lib/distutils/dir_util.py Sat Nov 13 14:37:49 2010 +0100
@@ -5,6 +5,7 @@
__revision__ = $Id:
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. I’ve run pyflakes over the distutils directory and
found another error in test_sysconfig. Will fix shortly.
--
assignee: tarek - eric.araujo
status: open - pending
type: crash - behavior
versions: +Python 2.7,
New submission from Antoine Pitrou pit...@free.fr:
This is a patch experiment which does two things:
- make dicts denser by making the resize factor 2 instead of 4 for small dicts
- improve cache locality on collisions by using linear probing
It should be noted that these two changes are not
Antoine Pitrou pit...@free.fr added the comment:
Here is a benchmark adapted from another bug entry (I merely adapted the dict
sizes in order to better exhibit the performance degradation when the CPU cache
becomes too small to hold the whole dict).
Results without the patch:
1 words
John J Lee jj...@users.sourceforge.net added the comment:
Why not?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
New submission from Stein Magnus Jodal stein.mag...@jodal.no:
I'm using Distutils2 1.0a3 with Python 2.6.6.
To reproduce:
1. Run ``python -m distutils2.mkcfg``
2. When you get to the Trove classifier step enter e.g. Apache 2 as license
3. When asked to select a matching license, enter
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Thanks for the feedback, I can reproduce this. Fixing it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10409
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
this is, after all, a new platform! it starts off with
sys.platform == 'mingw32'
I disagree; programs compiled with mingw32 run on Windows, and use the MSVC
runtime. It's the same platform as the current win32 build.
It's even
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
issue2636-20101113.zip is a new version of the regex module.
It now supports Unicode 6.0.0.
--
Added file: http://bugs.python.org/file19597/issue2636-20101113.zip
___
Python tracker rep
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Commited in a99e29d63071 (hg.python.org)
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10409
Brett Cannon br...@python.org added the comment:
Unladen actually has something like this in place for performance
optimizations. Not sure how Antoine's approach differs, though.
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
Changes by Michael Hoffman qq9jsuv...@snkmail.com:
--
nosy: +hoffman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2571
___
___
Python-bugs-list
Michael Hoffman qq9jsuv...@snkmail.com added the comment:
As always, it seems a bit more complicated than I originally expected. Since
it's too late for a Python 2.x feature addition, I'll wait until I upgrade to
3.x to work on that.
You are correct, technically this is not a docs bug but I
Vlastimil Brom vlastimil.b...@gmail.com added the comment:
Thank you very much!
a quick test with my custom unicodedata with 6.0 on py 2.7 seems ok.
I hope, there won't be problems with cooperation of the more recent internal
data with the original 5.2 database in python 2.x releases.
vbr
Antoine Pitrou pit...@free.fr added the comment:
There aren't many possible approaches. The more complex variants of globals
caches try to also speedup writes, which is IMO a waste of time since rebinding
globals is not a good coding practice, and especially not in the middle of
time-critical
Brett Cannon br...@python.org added the comment:
While I have nothing to say directly about the inline optimization, I do have
some stuff to say about moving to AST optimizations.
First, doing in Python is a good thing. It not only makes prototyping easier,
but it allows other VMs to use the
New submission from INADA Naoki songofaca...@gmail.com:
In http://docs.python.org/release/2.6.6/glossary.html, iterable is described
as
A container object capable of returning its members one at a time.
Is it correct? Is stream object like file a container type?
Container ABC requires only
Brad Greenlee b...@footle.org added the comment:
Understood. I just felt that fileobj.mode == None should be handled the same
way that GzipFile(...,mode=None) is handled.
I've submitted a patch to Django: http://code.djangoproject.com/ticket/14681
--
New submission from Bobby Impollonia bob...@gmail.com:
After checking out and converting the benchmark suite to py3k, the py3k
benchmark set fails because of an ImportError in bm_pickle.py.
Steps to reproduce:
hg clone http://hg.python.org/benchmarks/ py2benchmarks
mkdir py3benchmarks
cd
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
My previous experiments along these lines showed it was a dead-end. The number
of probes was the most important factor and beat-out any effort to improve
cache utilization from increased density.
Doing extra work (more
Antoine Pitrou pit...@free.fr added the comment:
My previous experiments along these lines showed it was a dead-end.
The number of probes was the most important factor and beat-out any
effort to improve cache utilization from increased density.
Can you describe your experiments? What
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
FWIW, one way to make a dict denser without increasing the number of probes is
to use Brent's Variation of Algorithm D in Knuth. That optimizes the insertion
order to minimize the number of collisions and lets you pack well
Antoine Pitrou pit...@free.fr added the comment:
FWIW, one way to make a dict denser without increasing the number of
probes is to use Brent's Variation of Algorithm D in Knuth. That
optimizes the insertion order to minimize the number of collisions and
lets you pack well over two-thirds
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Members and methods should just be attributes.
+1
That substitution should be made almost everywhere.
Individual slot variable are still called members though
and their type is a member_descriptor. And the C API
still
Antoine Pitrou pit...@free.fr added the comment:
Well, since this benchmark is already 3.x compatible, there's not much sense in
making a 2to3 pass, is there?
So perhaps make_perf3.sh (which I've never used) should be a bit smarter.
--
___
Python
Maciek J e...@wp.pl added the comment:
Couldn't compile to html at the moment, but it should be fine anyway.
Note that I didn't wanted to start a new paragraph (I'm guessing you meant the
sentence at line 13 of the patch) as there was no new paragraph in a previous
version.
--
Added
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
See Objects/dictnotes.txt for some of the results.
I spent about full month trying to optimize dict
performance either by tuning parameters or using
different algorithms.
There were a couple wins that were not implemented.
1)
Antoine Pitrou pit...@free.fr added the comment:
See Objects/dictnotes.txt for some of the results.
I spent about full month trying to optimize dict
performance either by tuning parameters or using
different algorithms.
Well, I've seen those results. I'm asking about which workloads or
Bobby Impollonia bob...@gmail.com added the comment:
Are there any files in performance/ that need 2to3?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10411
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: d...@python - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10410
___
Antoine Pitrou pit...@free.fr added the comment:
Are there any files in performance/ that need 2to3?
All the ones that require external libs (such as django, spambayes,
etc.). Although, of course, since they require external libs it's not
sure the translation will work either.
I think I've
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
iterable is described as A container object
capable of returning its members one at a time.
That wording is confusing. I'll fix it.
Likewise, and objects of any classes you define
with an __iter__() or __getitem__()
New submission from Bobby Impollonia bob...@gmail.com:
A patch is attached that does the following:
1) Add py3k support for the slow (pure-Python) pickle/ unpickle benchmarks.
2) Add a runtime check to the pickle benchmark verifying that we do or don't
have the C accelerators as expected.
3)
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Attached patch updates some comments in unicode.h mostly reflecting the fact
that the default encoding is now unconditionally UTF-8.
--
assignee: belopolsky
components: Documentation, Interpreter Core
files:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I don't think a Patricia Trie is going to find its way into the code
distribution. It has a better chance as a third-party module listed on PyPI
(much in the same way that people access memcached from Python).
--
Matthias Klose d...@debian.org added the comment:
this adds the modifier to the prefix/python3.2abi/config directory.
Now you end up with both
prefix/python3.2abi/config
and
prefix/python3.2/
for anything else. This is not what Debian, Fedora and Ubuntu are currently
doing. Is this
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Good point, Antoine. I'm always trying to keep those timeouts low, however, to
avoid having the testsuite duration grow too much with every test :)
I think we can probably fix the issue by having the lock_tests.Bunch() function
Matthias Klose d...@debian.org added the comment:
the change to python.pc should make the abi change to includedir, not Cflags.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9807
___
Senthil Kumaran orsent...@gmail.com added the comment:
r86461 (release31-maint)
r86462 (release27-maint)
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5111
___
New submission from david db.pub.m...@gmail.com:
(socket.gethostbyname doesn't return an ipv6 address)
So just to start with I know the documentation says [0] and getaddrinfo()
should be used instead for IPv4/v6 dual stack support.
However, the getaddrinfo() method provides more information
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Removed the incorrect container reference.
See r86463.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10410
Bobby Impollonia bob...@gmail.com added the comment:
Patch is attached for make_perf3.sh to have it not convert things that don't
need to be converted. This fixes the issue and with the patch all the py3k
benchmarks run successfully after running the script.
--
Added file:
Bobby Impollonia bob...@gmail.com added the comment:
Attached is a patch for perf.py that goes along with the previous patch for
make_perf3.sh. This patch changes the py3k group to include everything in the
2n3 group since we can still run all those tests after converting.
Previously,
New submission from Justin Lebar justin.le...@gmail.com:
The readline documentation currently says:
readline.insert_text(string)
Insert text into the command line.
But as far as I can tell, readline.insert_text() does something only when
called from startup_hook or pre_input_hook.
Justin Lebar justin.le...@gmail.com added the comment:
Actually, maybe startup_hook doesn't do what it sounds like it does and
insert_text() only works from startup_hook.
If this is the case, then the documentation for startup_hook could also be
improved:
The startup_hook function is called
Ron Adam ron_a...@users.sourceforge.net added the comment:
Ok, here is the latest patch for review. issue2001_a.diff'
I restored the pydoc.py file and then put most of the new code in these two
functions,
_startserver(urlhandler, port)
_browse(port=0, *, open_browser=True)
This creates
Nick Coghlan ncogh...@gmail.com added the comment:
Just call warnings.warn with an appropriate message, a category of
DeprecationWarning and a stacklevel of 2 (so the warning will refer to the
function's caller rather than to the pydoc code).
It's basically the example from the warnings.warn
69 matches
Mail list logo