On Tue, Mar 3, 2009 at 7:03 PM, Ivan i...@invalid.com wrote:
Hello everyone,
I know this is not a direct python question, forgive me for that, but
maybe some of you will still be able to help me. I've been told that
for my application it would be best to learn a scripting language, so
I
Graham Breed wrote:
Johannes Bauer wrote:
Hello group,
I'm looking for a Python function but have forgotten it's name.
Essentially what I want is:
class Foo():
def bar(self):
pass
x = Foo()
y = x.MAGIC(bar)
print(y)
bound method Foo.bar of __main__.Foo instance at
Philip Semanchuk wrote:
On Mar 2, 2009, at 5:26 PM, John Machin wrote:
[...]
I (mostly) agree with your rule. But as I said, there's more than one
way to solve this problem. Or perhaps I should say that there's more
than one way to lead the OP to a solution to this problem. We teach
En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com
escribió:
I am having a bit on an issue getting my program to work. The online
On Tue, Mar 3, 2009 at 12:54 PM, Steve Holden st...@holdenweb.com wrote:
Graham Breed wrote:
Johannes Bauer wrote:
Hello group,
I'm looking for a Python function but have forgotten it's name.
Essentially what I want is:
class Foo():
def bar(self):
pass
x = Foo()
y =
On Feb 27, 9:55 am, Falcolas garri...@gmail.com wrote:
If order did matter, and the list itself couldn't be stored in memory,
I would personally do some sort of hash of each item (or something as
simple as first 5 bytes, last 5 bytes and length), keeping a reference
to which item the hash
When I write program (.py) with IDLE , I am able to use run package .
- - - - start - - - -
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
- - - - end - - - - -
above code works simply with the IDLE.
But
Chris Rebert wrote:
On Tue, Mar 3, 2009 at 9:05 AM, Ivan i...@invalid.net wrote:
Hello everyone,
I know this is not a direct python question, forgive me for that, but
maybe some of you will still be able to help me. I've been told that
for my application it would be best to learn a scripting
Ivan wrote:
Hello everyone,
I know this is not a direct python question, forgive me for that, but
maybe some of you will still be able to help me. I've been told that
for my application it would be best to learn a scripting language, so
I looked around and found perl and python to be the
Matko ivastipan...@inet.hr writes:
Can someone help me to understand the following code:
uv_face_mapping = [[0,0,0,0] for f in faces]
It constructs a fresh list, with the same number of elements as are in
the iterable object referred to by `faces', and where each element is a
distinct list of
2009/3/3 MRAB wrote:
Python 2.7's regex will include possessive quantifiers, atomic groups,
variable-length lookbehinds, and Unicode properties (at least the common
ones), amongst other things.
--
http://mail.python.org/mailman/listinfo/python-list
Wow, that's excellent news!
Many thanks
Oltmans wrote:
I'm reading from a file that contains text like
5
google_company
apple_fruit
pencil_object
4
test_one
tst_two
When I read the integer 5 I want to make sure it's an integer.
Likewise, for strings, I want to make sure if something is indeed a
string. So how do I check
Looks like the instructions found on
http://wiki.python.org/moin/MacPython/Leopard
have been updated. Who ever did that: Thanks!
-kevin
--
http://mail.python.org/mailman/listinfo/python-list
Ivan wrote:
Hello everyone,
I know this is not a direct python question, forgive me for that, but
maybe some of you will still be able to help me. I've been told that
for my application it would be best to learn a scripting language, so
I looked around and found perl and python to be the nice.
Paul McGuire pt...@austin.rr.com wrote:
Pyparsing will easily carve up these function declarations, and will
I didn't know about this module, it looks like what I was looking
for... Thanks!!!
--
Mark Harrison
Pixar Animation Studios
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 3, 2:17 pm, Cool Dude mittal.aniket...@gmail.com wrote:
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial
In article 1236111699.4546.4.ca...@localhost, ati atiw...@gmx.net
wrote:
I recompiled Python-2.6.1 with MACOSX_DEPLOYMENT_TARGET=10.3, but no
change..
I updated developertools to xcode312_2621, no change..
Btw.. Python-2.5.4 compiled from scratch works fine.
I forgot to mention the ppc
Python 2.7's regex will include possessive quantifiers, atomic groups,
variable-length lookbehinds, and Unicode properties (at least the common
ones), amongst other things.
Wow, that's excellent news!
Many thanks for all your efforts to enhance the re capabilities in
Python!
+1 !!
Howdy,
I need to do some geospatial work and am a complete newbie at this. I have
access to a PostGIS database and there are lots of MultiLineString objects.
I want to run a python algorithm that determines a group of these
MultiLineString
objects and creates a KML file of the results.
Is
Has anybody had success getting pexpect to work well on solaris 10
(x86)? I am trying to do some test automation which involves
controlling some other processes. Soon after I spawn the process I am
trying to control a message comes up on stdout telling me that a tty
has been closed.
If there is
Is your email program broken or what? Why are you sending the same
exact message 5 times!?
Not to mention that the name Cool Dude isn't exactly convincing me
that I should apply for a job there...
Diez
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 2:29 am, Uberman bhoo...@hotmail.com wrote:
Graham Dumpleton wrote:
Why don't you want to use MacOS X Framework libraries? It is the
better installation method.
Because I'm not installing Python, I'm building it. If I were just interested
in installing Python, I wouldn't care
On Mar 3, 6:01 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 04:42:02 -0200, Aaron Brady castiro...@gmail.com
escribió:
Also, did not receive Gabriel's post.
That's because I replied a month ago - and probably you had no idea what I
was talking about by that
Danny Shevitz wrote:
Howdy,
I need to do some geospatial work and am a complete newbie at this. I have
access to a PostGIS database and there are lots of MultiLineString objects.
I want to run a python algorithm that determines a group of these
MultiLineString
objects and creates a KML file of
On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com
escribió:
Peter Billam wrote:
I've been trying (newbie warning still on) tkinter with python3.0,
and I'm getting to that stage where I'm beginning to think there
must be a better a way to do this... But I'm unsure if the
big names Qt, Gtk and Wx are available for Py3 yet - e.g.
bearophileh...@lycos.com wrote:
Chris Rebert:
That seems to just be an overly complicated way of writing:
spaces = bool(form.has_key('spaces') and form.getvalue('spaces') == 1)
Better:
spaces = bool(('spaces' in form) and form.getvalue('spaces') == 1)
Is it still necessary to convert the
On Tue, 2009-03-03 at 15:33 -0800, Fab86 wrote:
I have been trying except SearchError: however I get the error:
Traceback (most recent call last):
File C:\Downloads\MoS\yws-2.12\Python\pYsearch-3.1\timeDelay.py,
line 19, in module
except SearchError:
NameError: name 'SearchError' is
Marcel Luethi wrote:
Hi Steve
[I've probably replied to this once already, but here's another try]
I really appreciate your feedback!
Certainly I'm no expert for the many differences in package formats and
install requirements between the different platforms.
But let me explain a bit
Fab86 wrote:
On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com
On Mar 2, 1:11 am, Paul Rubin wrote:
Mitch Kapor (of Lotus 1-2-3 fame) spent a lot of money hiring
very sharp Python programmers to write an email client called
Chandler, but from what I understand, progress so far has been
disappointing, at least in part for performance reasons.
Paul
On Tue, 2009-03-03 at 14:10 -0800, Ned Deily wrote:
Ah, OS X Server and 2.5.4 works fine! For 2.6, I see that the
getproxies code in urllib was re-written to eliminate use of the
deprecated python mac Carbon interfaces and instead use ctypes to call
the SystemConfiguration framework
On Mar 4, 10:53 am, Mel mwil...@the-wire.com wrote:
bearophileh...@lycos.com wrote:
Chris Rebert:
That seems to just be an overly complicated way of writing:
spaces = bool(form.has_key('spaces') and form.getvalue('spaces') == 1)
Better:
spaces = bool(('spaces' in form) and
Hi all,
I only just noticed this thread... :-(
At the moment, I am working on a Python Package Manager project on
Sourceforge.
http://sourceforge.net/projects/pythonpkgmgr/
Firstly, I would welcome any developers who are willing to assist.
Secondly, I think there is much work to be done with
This reminds me: the SimpleParse developers ran into
some troubles porting to Python 2.6. It would be
great if someone could give them a hand.
Alan Isaac
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 12:00 am, MRAB goo...@mrabarnett.plus.com wrote:
Fab86 wrote:
On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue,
En Tue, 03 Mar 2009 22:39:19 -0200, Alan G Isaac ais...@american.edu
escribió:
This reminds me: the SimpleParse developers ran into
some troubles porting to Python 2.6. It would be
great if someone could give them a hand.
Do you mean the simpleparser project in Sourceforge? Latest alpha
En Tue, 03 Mar 2009 23:11:30 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 4, 12:00 am, MRAB goo...@mrabarnett.plus.com wrote:
Fab86 wrote:
On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
How to spell exactly the exception name should appear in the
On Mar 3, 10:17 am, Cool Dude mittal.aniket...@gmail.com wrote:
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial
I'm looking for something to do template processing. That is, transform
text making various substitutions. I'd like to be able to do substitutions
that include python expressions, to do arithmetic computations within
substitutions.
I know there are lots of template packages, but most seem
I am learning python right now. In the lesson on tkinter I see this
piece of code
from Tkinter import *
class MyFrame(Frame):
def __init__(self):
Frame.__init__(self)
self.grid()
My question is what does self.grid() do? I understand that the grid
method registers widgets with
I know there are lots of template packages, but most seem aimed at web
use.
This is just text processing, not part of any web stuff.
Any suggestions?
It doesn't matter if it is web or not. it's worth using a template
package.
You might very much like Cheatah... only takes a day to
On Tue, 03 Mar 2009 18:58:47 -, W. eWatson notval...@sbcglobal.net
wrote:
I'm probably confused too. Let's try this. In
s=dialog.stopVar.get()
I'd like to eliminate the statement and replace it with something like:
s=dialog. + stopV.get()
)and execute
On Mar 3, 2009, at 9:06 PM, Neal Becker wrote:
I'm looking for something to do template processing. That is,
transform
text making various substitutions. I'd like to be able to do
substitutions
that include python expressions, to do arithmetic computations within
substitutions.
I know
W. eWatson wrote:
odeits wrote:
On Mar 2, 7:14 am, W. eWatson notval...@sbcglobal.net wrote:
I'm modifying a Tkinter Python program that uses hard coded initial
values
for several widgets. For example, latitude = 40. My plan is to put
the names
and values for configuration purposes into a
On Mar 4, 2:05 am, Matko ivastipan...@inet.hr wrote:
Can someone help me to understand the following code:
uv_face_mapping = [[0,0,0,0] for f in faces]
As others have mentioned, this is a list comprehension, which is a
simpler way of writing the following:
uv_face_mapping = []
for f in
On Tue, 03 Mar 2009 15:22:20 -, plsulliv...@gmail.com wrote:
It's not firing off the vbs script. Have I got the syntax correct?
Thanks.
My latest attempt:
vBS = C:\\Program Files\\nasa\\nmail.vbs
os.system('cscript /from:wrk-...@pittcountync.gov /
to:plsulli...@pittcountync.gov /sub:TEST
Hi,
Is it the case that the random module will always give the same
results if given the same seed across all configurations (e.g.,
architectures, compilers, etc.)?
Amir
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote:
Hi,
Is it the case that the random module will always give the same
results if given the same seed across all configurations (e.g.,
architectures, compilers, etc.)?
Your question is vague. Define what you mean by same
On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote:
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote:
Hi,
Is it the case that the random module will always give the same
results if given the same seed across all configurations (e.g.,
architectures, compilers,
On Tue, Mar 3, 2009 at 7:11 PM, Amir Michail amich...@gmail.com wrote:
On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote:
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote:
Hi,
Is it the case that the random module will always give the same
results if given the
On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote:
I am learning python right now. In the lesson on tkinter I see this
piece of code
from Tkinter import *
class MyFrame(Frame):
def __init__(self):
Frame.__init__(self)
self.grid()
My question is what does self.grid()
On 2 Mrz., 23:14, Clarendon jine...@hotmail.com wrote:
Thank you, Lie and Andrew for your help.
I have studied NLTK quite closely but its parsers seem to be only for
demo. It has a very limited grammar set, and even a parser that is
supposed to be large does not have enough grammar to cover
John Posner wrote:
I'd like to create a simple Menu bar with one item in it,
say, called My
Menu, and have a few submenu items on it like Change
Data and Exit. I
can do that but I'd like the title I put on the enclosing
window to be
completely visible. The title is, for
I'm converting a Tkinter program (Win XP) that uses widgets that allows the
user to change default values of various parameters like start and stop time
in hh:mm:ss, time of exposure in seconds, and whether certain options should
be on or off. The initial values are set in the code. I can
Ray Van Dolson wrote:
So I'm looking for an easy (read: lazy) way to generate output in nice
ASCII tables like the Text::SimpleTable[1] module in perl. I've come
across two so far in the Python world that look promising[2][3] but I'm
wondering if anyone else out there has some recommendations
Mike Driscoll wrote:
On Mar 3, 7:44 am, Ske calypso-b...@hotmail.com wrote:
Let me apologise in advance if I’m missing something obvious, I’m still
very
new to this!
I’m attempting to install MySQL-python in Python2.6 on Windows. On
running
easy_install MySQL-python I get a The system
Hello everyone,
I'm curious about creating .app files for the mac using bundlebuilder
(or py2app or even py2exe). I'm just about done creating a GUI for a
little set of scripts which basically perform batch image editing.
If I send this app to friends and family will they be able to use it?
Or
On Mar 3, 6:59 pm, Amir Michail amich...@gmail.com wrote:
Hi,
Is it the case that the random module will always give the same
results if given the same seed across all configurations (e.g.,
architectures, compilers, etc.)?
If you need a repeatable sequence, such as for unit testing, you
Diez B. Roggisch de...@nospam.web.dewrote:
Is your email program broken or what? Why are you sending the same
exact message 5 times!?
Not to mention that the name Cool Dude isn't exactly convincing me
that I should apply for a job there...
Quite so.
The only name that could
After reading the discussion about the same subject ( From: Thomas
Moore jsfrank.c...@msa.hinet.net Date: Tue, 1 Nov 2005 21:45:56
+0800 ), I tried myself some tests with some confusing results (I'm a
beginner with Python, I'm coming from PHP)
# 1. Short alpha-numeric String without space
a =
Amir Michail schrieb:
On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote:
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote:
Hi,
Is it the case that the random module will always give the same
results if given the same seed across all configurations (e.g.,
DLitgo schrieb:
Hello everyone,
I'm curious about creating .app files for the mac using bundlebuilder
(or py2app or even py2exe). I'm just about done creating a GUI for a
little set of scripts which basically perform batch image editing.
If I send this app to friends and family will they be
On Mar 4, 2:26 am, Diez B. Roggisch de...@nospam.web.de wrote:
Amir Michail schrieb:
On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote:
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote:
Hi,
Is it the case that the random module will always give the same
Avetis KAZARIAN wrote:
After reading the discussion about the same subject ( From: Thomas
Moore jsfrank.c...@msa.hinet.net Date: Tue, 1 Nov 2005 21:45:56
+0800 ), I tried myself some tests with some confusing results (I'm a
beginner with Python, I'm coming from PHP)
# 1. Short alpha-numeric
Joshua Kinard ku...@gentoo.org added the comment:
Making progress!
Adapted the cross-2.5.1.patch from Issue #1597850, integrated the %zd
printf fixup patch, and added another cross-compiler check for the
libffi configure bits in setup.py (it'd pass libffi's configure no
--host options, so
STINNER Victor victor.stin...@haypocalc.com added the comment:
Should this be backported?
It's the r70113 (not the 70112). I see that pitrou backported the fix
to 3.0.x. I think that it's enough, 2.x doesn't require the fix.
___
Python tracker
Retro vinet...@gmail.com added the comment:
In my Windows Vista registry I only have the second two keys present
1)
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9cc89170-000b-457d-91f1-53691f85b223}
2)
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Changes by Antoine Pitrou pit...@free.fr:
--
priority: - normal
type: behavior - feature request
versions: +Python 2.7, Python 3.1 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5396
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
I came from issue5391. Here is quote of Victor's message.
* msvcrt.putch(char), msvcrt.ungetch(char): msvcrt has also:
- msvcrt.getch()-byte string of 1 byte
- msvcrt.getwch()-unicode string of 1 character
-
New submission from Per Øyvind Karlsen peroyv...@mandriva.org:
Here's a patch that adds support for xz compression:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python/current/SOURCES/Python-2.6.1-distutils-xz-support.patch?view=log
--
assignee: tarek
components: Distutils
andrej andrej.filip...@ijs.si added the comment:
Is there a reason why this patch has not been implemented in the
official release (2.5.4)? I am having plenty of troubles using it in a
similar program.
--
nosy: +andrej
___
Python tracker
Changes by Akira Kitada akit...@gmail.com:
--
title: bdist_rpm assumes python - bdist_rpm should enable --fix-python by
default
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4459
___
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
Joshua,
may be you need patch from Issue4010 to pass LDFLAGS to distutils.
Another issue4305 - it is for mipsel.
About cross compilation - yes it is Python flaw. For past ten years the
progress is near to zero.
About you problem -
Changes by Raghuram Devarakonda draghu...@gmail.com:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5409
___
New submission from Jeff Kaufman jkauf...@bbn.com:
This is a patch against the configparser in the cvs version of 3.1 to
support [] notation:
import configparser_patched
config = configparser_patched.SafeConfigParser()
config.add_section(spam)
config[spam, eggs] = yummy
config[spam, eggs]
Changes by jan matejek jmate...@suse.cz:
--
nosy: +matejcik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
___
Python-bugs-list mailing
Changes by jan matejek jmate...@suse.cz:
--
nosy: +matejcik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue858809
___
___
Python-bugs-list mailing
jan matejek jmate...@suse.cz added the comment:
well, seeing as redesign of distutils probably won't happen anytime soon...
why don't we fix the obvious bug (broken configure) now and redesign
distutils later?
___
Python tracker rep...@bugs.python.org
jan matejek jmate...@suse.cz added the comment:
...the patch is absolutely trivial, doesn't have any deep consequences
and applies cleanly to head and all branches i know of.
...i wonder if the patch-fasttracking offer still applies...
___
Python tracker
Bill Janssen bill.jans...@gmail.com added the comment:
Yes, the reason is that the supplied patch doesn't provide enough test
cases. This is a big patch; 2.5.x is a bug-fix release; a newer version
of the SSL code is available from PyPI as a work-around; I don't have
time right now to write
Bill Janssen bill.jans...@gmail.com added the comment:
I brought this up on pydotorg, and Barry suggests that someone put
together a Twisted environment which could be downloaded and run locally
on the test machine. It would provide IMAP and POP servers, perhaps
NNTP and others as well. Now,
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:
Giampaolo, I'm concerned that your patch uses a global 'tasks' list
which cannot be overriden. Shouldn't loop() accept an optional task
list argument, as it already does with the socket map? That would keep
with the
Guido van Rossum gu...@python.org added the comment:
The idea is to be able (whether you see a use case or not) to use
different tasks lists simultaneously. Messing with globals is the worst
possible API for that. All you need is to add a tasks=None argument to
the loop() signature, rename the
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
Forest:
To answer your question, yes, that blog post discusses a better variant
of sched.py , but no, there isn't a bug. I should probably post it some
time soon for 2.7/3.1 inclusion.
Forest Wilkinson for...@users.sourceforge.net added the comment:
I was just reading the PEP, and caught this bit:
Does OrderedDict.popitem() return a particular key/value pair?
Yes. It pops-off the most recently inserted new key and its
corresponding value.
Okay, but I'd also like a convenient
Georg Brandl ge...@python.org added the comment:
I wonder if, instead of all kinds of new APIs, the _keys list could just
be made public (under a different name of course).
Of course, that makes further optimization or a rewrite in C harder.
___
Python
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
The internal data structure *must* remain private so that we can build a
C replacement or switch to one of the other possible algorithms.
___
Python tracker rep...@bugs.python.org
Jeffrey Yasskin jyass...@gmail.com added the comment:
Hold off on reviewing this. There's one bug around the peepholer not
turning itself off when line numbers skip by more than 127, and another
around the traceback generator still assuming line numbers are unsigned.
I'll post another patch when
Georg Brandl ge...@python.org added the comment:
The internal data structure *must* remain private so that we can build a
C replacement or switch to one of the other possible algorithms.
Even then the keys list could be offered as a property.
___
Python
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Forest, I've taken another look at what's involved and am inclined to
accept the idea. It can be done without mucking-up the regular dict API
and without precluding any of the other possible underlying algorithms.
I like
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Forest, for your use case I recommend copying the code to a new class
and replacing the _keys list with a deque so that you can efficiently
pop from the other end.
___
Python tracker
Forest Wilkinson for...@users.sourceforge.net added the comment:
Shouldn't popitem() allow the caller to choose which end from
which to pop?
Thinking it through a bit more, and LRU cache would actually need to
access the oldest item without necessarily removing it. Besides,
popitem() should
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13221/od4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13228/od5.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13229/od6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Armin Ronacher armin.ronac...@active-4.com added the comment:
Please no. We just decided to *not* extend the API. The PEP originally
had a well designed list of dict API extensions that already provided
exactly that. If we really want to provide access to that, we can roll
back to where we
Armin Ronacher armin.ronac...@active-4.com added the comment:
Please no. We just decided to *not* extend the API. The PEP originally
had a well designed list of dict API extensions that already provided
exactly that. If we really want to provide access to that, we can roll
back to where we
Changes by Armin Ronacher armin.ronac...@active-4.com:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
___
Python-bugs-list mailing list
101 - 200 of 230 matches
Mail list logo