> My problem is more complex than this, but how about I boil down one sticking
> point for starters. I have a file with a Spanish word in it, "años", which I
> wish to read with:
What is the encoding of that file? Without a correct answer to that
question, you will not be able to achieve what yo
Hi,
I've packaged up the minimal STM discussed over the past couple of days as a
standalone package which I've now uploaded
Getting it
==
You can download a beta test version here:
http://thwackety.com/Axon.STM-1.0.0.tar.gz
Previewing it
=
You can look at the sourcecode
You probably need to set stdout mode to binary. They are not by default on
Windows.
"weheh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear web gods:
>
> After much, much, much struggle with unicode, many an hour reading all the
> examples online, coding them, testing them,
Dear web gods:
After much, much, much struggle with unicode, many an hour reading all the
examples online, coding them, testing them, ripping them apart and putting
them back together, I am humbled. Therefore, I humble myself before you to
seek guidance on a simple python unicode cgi-bin script
On Dec 9, 11:01 pm, Prabhu Gurumurthy <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> All,
>
> I have the following lines that I would like to parse in python using
> pyparsing, but have some problems forming the grammar.
>
> Line in file:
> table const { 207.135.1
I wrote a software and I want to protect it so can not be cracked
easily. I wrote it in python and compile it using py2exe. what is the
best way in your opinion?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 10, 7:01 am, Prabhu Gurumurthy <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> All,
>
> I have the following lines that I would like to parse in python using
> pyparsing, but have some problems forming the grammar.
>
> Line in file:
> table const { 207.135.1
"Mario M. Mueller" <[EMAIL PROTECTED]> wrote:
> I uploaded a short sample data file under
> http://www.FastShare.org/download/test.bin - maybe one can give me another
> hint... In a full data example max value is 1179760 (in case one looks only
> at the eye-cathing "65535"+- values).
I clicked
On Dec 10, 12:22 pm, MRAB <[EMAIL PROTECTED]> wrote:
> On Dec 9, 10:12 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Dec 10, 8:53 am, Noah Hoffman <[EMAIL PROTECTED]> wrote:
>
> > > On Dec 9, 1:41 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
> > > > A pattern that can validly be descr
En Sun, 09 Dec 2007 21:03:50 -0300, Flavio <[EMAIL PROTECTED]> escribió:
> I am a big fan of ZODB and use it stand alone on many project of mine.
> One of the things I miss is a community around it. I don't care much
> about ZOPE (though I admire it) and have not being able to find a
> ZODB focu
On Sun, 09 Dec 2007 12:44:46 -0800, MonkeeSage wrote:
> On Dec 8, 4:11 pm, Bruno Desthuilliers
> <[EMAIL PROTECTED]> wrote:
>> MonkeeSage a écrit :
> You're talking about the result of calling a.a(), I'm talking about
> what the attribute "a" on the object "a" is. Which is a callable
> attribute,
En Sun, 09 Dec 2007 20:53:38 -0300, stef mientki <[EMAIL PROTECTED]>
escribió:
> this question may look a little weird,
> but I want to create library shells that are a simple as possible.
>
> So I've a module where one base class is defined,
> which looks like this (and might be complex)
>
> ba
En Sun, 09 Dec 2007 16:45:53 -0300, charonzen <[EMAIL PROTECTED]>
escribió:
>> [John Machin] Another suggestion is to ensure that the job
>> specification is not
>> overly simplified. How did you parse the text into "words" in the
>> prior exercise that produced the list of bigrams? Won't you
En Sat, 08 Dec 2007 14:46:46 -0300, Donn Ingle <[EMAIL PROTECTED]>
escribió:
> UnboundLocalError: local variable 'kills' referenced before assignment
>
> I'm amazed that I've spent so much time with Python and something like
> that
> totally stumps me!?
>
>> FWIW, this is a FAQ.
> If you have
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
I have the following lines that I would like to parse in python using
pyparsing, but have some problems forming the grammar.
Line in file:
table const { 207.135.103.128/26, 207.135.112.64/29 }
table persist { ! 10.200.2/24, 10.200/22 }
table
on 12/10/2007 05:14 AM Jack wrote :
> I wonder if it's possible to have a Python that's completely (or at
> least for the most part) implemented in C, just like PHP - I think
> this is where PHP gets its performance advantage. Or maybe I'm wrong
> because the core modules that matter are already
On Dec 9, 10:04 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Dec 9, 6:07 pm, "Jack" <[EMAIL PROTECTED]> wrote:
>
> > Plus, Psyco is not the
> > main stream and has stopped development.
>
>
>
> What makes you think it has stopped development? I just swung by the
> SF project page, and its most
"Jack" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| The second articple does have a column for Psyco. It helps in some areas
| but still not good enough to stand up against Java. Plus, Psyco is not
the
| main stream and has stopped development.
It further development is effecti
Seongsu Lee wrote:
> Hi,
>
> I have a dictionary with million keys. Each value in the
> dictionary has a list with up to thousand integers.
> Follow is a simple example with 5 keys.
>
> dict = {1: [1, 2, 3, 4, 5],
>2: [10, 11, 12],
>90: [100, 101, 102, 103, 104, 105],
>91: [20
On Dec 9, 6:07 pm, "Jack" <[EMAIL PROTECTED]> wrote:
> Plus, Psyco is not the
> main stream and has stopped development.
>
What makes you think it has stopped development? I just swung by the
SF project page, and its most recent news post was just 2 months ago.
Psyco may not be in the standard
Op Sun, 09 Dec 2007 01:11:28 +, schreef Jeremy C B Nicoll:
> What command (in XP) does one need to issue to syntax check a saved
> python script without running it?
>
> Does a syntax check report all syntax errors or just the first one
> found?
python -c "import py_compile; py_compile.compil
--- Jan Claeys <[EMAIL PROTECTED]> wrote:
>
> To conclude this discussion:
>
> * in Python, methods are attributes
> * in Ruby, attributes are methods
>
So clearly one of the languages has it all wrong. ;)
___
Op Sun, 09 Dec 2007 12:44:46 -0800, schreef MonkeeSage:
> The point is that just because the attributes are "looked up the same
> way" or whatever, doesn't make them the same *kind* of attribute. To say
> that all attributes are the same in python muddies the water. They are
> the same in a generi
On Dec 9, 5:49 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Sun, 09 Dec 2007 00:35:18 -0800, kettle wrote:
> > Hi,
> > I'm wondering what the best practice is for creating an extensible
> > dictionary-of-dictionaries in python?
>
> > In perl I would just do something like:
>
> > m
Seongsu Lee <[EMAIL PROTECTED]> wrote:
> The reason I use the dict for my data is to speed up the search by key.
Ok, I understand that once the overhead of creating the dict has been done,
getting access to values within it is quick. And taking the time to create
a set of reverse keys speeds up
On 12월10일, 오전6시49분, Jeremy C B Nicoll <[EMAIL PROTECTED]> wrote:
> Seongsu Lee <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I have a dictionary with million keys. Each value in the
> > dictionary has a list with up to thousand integers.
> > Follow is a simple example with 5 keys.
>
> > dict = {1: [1, 2
On 2007-12-09, Just Another Victim of the Ambient Morality
<[EMAIL PROTECTED]> wrote:
> I'm looking for a linked list implementation. Something
> iterable with constant time insertion anywhere in the list. I
> was wondering if deque() is the class to use or if there's
> something else. Is there?
--- MonkeeSage <[EMAIL PROTECTED]> wrote:
> On Dec 9, 6:23 pm, MonkeeSage <[EMAIL PROTECTED]>
> wrote:
> > Hi Bruno,
> >
> > I think that we've been having a mainly "semantic"
> (pun intended)
> > dispute. I think you're right, that we've been
> using the same words
> > with different meanings.
>
On Dec 9, 10:12 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Dec 10, 8:53 am, Noah Hoffman <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 9, 1:41 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
> > > A pattern that can validly be described as a "regular expression"
> > > cannot count and thus can't ma
> I have a dictionary with million keys. Each value in the
> dictionary has a list with up to thousand integers.
> Follow is a simple example with 5 keys.
>
> dict = {1: [1, 2, 3, 4, 5],
>2: [10, 11, 12],
>90: [100, 101, 102, 103, 104, 105],
>91: [20, 21, 22],
>99: [15,
Thanks to all, you were very helpful. I suppose I'll use Jython after
all.
On Dec 6, 10:17 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
> On Dec 6, 9:16 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 6, 3:51 pm, nomihn0 <[EMAIL PROTECTED]> wrote:
>
> > > I'd like to accept mouse gestures
On Dec 9, 6:23 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
> Hi Bruno,
>
> I think that we've been having a mainly "semantic" (pun intended)
> dispute. I think you're right, that we've been using the same words
> with different meanings.
>
> I would like to say firstly that I've been using python for
Hi Bruno,
I think that we've been having a mainly "semantic" (pun intended)
dispute. I think you're right, that we've been using the same words
with different meanings.
I would like to say firstly that I've been using python for a few
years now (about three I think), and I think I have a basic gr
--- Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Steve Howell a écrit :
> (snip)
> >
> > Jordan and others, thanks for all your posts; I am
> > learning a lot about both languages.
> >
> > This is what I've gathered so far.
> >
> > Python philosophy:
> >passing around references to met
[EMAIL PROTECTED] wrote:
> I took Greg's idea and found this web-site:
>
> http://www.unicode.org/charts/PDF/U0370.pdf
>
> which gave me all the unicode characters for the Greek font.
You can also use the MacOSX Character Palette to go hunting
for unicode characters. You can get to it from Term
[EMAIL PROTECTED] wrote:
> Jeremy C B Nicoll:
> > The code someone else posted ...
>
> If you are talking about my D code then I know it...
No I meant the code that used python to iterate over the dict and create
zillions of extra keys. I've deleted earlier posts in the thread and wasn't
sure w
>> I think most Java-Python benchmarks you can find online will indicate
>> that Java is a 3-10 times faster. A few here:
>> http://mail.python.org/pipermail/python-list/2002-January/125789.html
>> http://blog.snaplogic.org/?p=55
>
> There are lies, damn lies and benchmarks. :)
>
> Pure Python cod
Hi,
I am a big fan of ZODB and use it stand alone on many project of mine.
One of the things I miss is a community around it. I don't care much
about ZOPE (though I admire it) and have not being able to find a
ZODB focused community. Is there one?
thanks
--
http://mail.python.org/mailman/listi
hello,
this question may look a little weird,
but I want to create library shells that are a simple as possible.
So I've a module where one base class is defined,
which looks like this (and might be complex)
base_class_file.py
class brick_base ( object ) :
now I've a lot of l
On Dec 10, 9:43 am, "Just Another Victim of the Ambient Morality"
<[EMAIL PROTECTED]> wrote:
> I'm looking for a linked list implementation. Something iterable with
> constant time insertion anywhere in the list.
It's on the shelf between the jar of phlogiston and the perpetual
motion machine
I'm looking for a linked list implementation. Something iterable with
constant time insertion anywhere in the list. I was wondering if deque() is
the class to use or if there's something else. Is there?
Thank you...
--
http://mail.python.org/mailman/listinfo/python-list
"Jack" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|I understand that the standard Python distribution is considered
| the C-Python. Howerver, the current C-Python is really a combination
| of C and Python implementation. There are about 2000 Python files
| included in the Windows
Jeremy C B Nicoll:
> The code someone else posted to reverse the keys is all very well, but
> surely hugely wasteful on cpu, maybe storage, and elapsed time.
If you are talking about my D code then I know it, the creation of the
first dict has to be skipped, if possible... The code I have posted
m
Jack wrote:
> I guess this is subjective :) - that's what I felt in my experience
> with web applications developed in Python and PHP. I wasn't able to
> find a direct comparison online.
Please compare the number of serious bugs and vulnerabilities in PHP and
Python.
> I understand. Python module
Hi Doug,
> I'm not *that* familiar with the Terminal program on OS/X, but regardless
> perhaps I can point out a possibly useful path to explore...
Wow!! Thanks for all this info!! This is some good stuff!!! :-)
Well, I got to experimenting with a lot of different stuff, as well as doing a
l
That first article is five years old... I wouldn't give too much
weight to it.
--
http://mail.python.org/mailman/listinfo/python-list
"Paddy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| On Dec 8, 9:22 pm, Neal Becker <[EMAIL PROTECTED]> wrote:
| > I'm looking for recommendations for writing a user manual. It will
need
| > lots of examples of command line inputs and terminal outputs.
| >
| > I'd like to minim
On Dec 10, 8:53 am, Noah Hoffman <[EMAIL PROTECTED]> wrote:
> On Dec 9, 1:41 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
> > A pattern that can validly be described as a "regular expression"
> > cannot count and thus can't match balanced parentheses. Some "RE"
> > engines provide a method of taggi
Steve Howell a écrit :
(snip)
>
> Jordan and others, thanks for all your posts; I am
> learning a lot about both languages.
>
> This is what I've gathered so far.
>
> Python philosophy:
>passing around references to methods should be
> natural (i.e. my_binary_op = math.add)
>calling meth
On Dec 9, 1:41 pm, John Machin <[EMAIL PROTECTED]> wrote:
> A pattern that can validly be described as a "regular expression"
> cannot count and thus can't match balanced parentheses. Some "RE"
> engines provide a method of tagging a sub-pattern so that a match must
> include balanced () (or [] or
Seongsu Lee <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a dictionary with million keys. Each value in the
> dictionary has a list with up to thousand integers.
> Follow is a simple example with 5 keys.
>
> dict = {1: [1, 2, 3, 4, 5],
>2: [10, 11, 12],
>90: [100, 101, 102, 103, 104, 1
MonkeeSage a écrit :
> On Dec 9, 1:58 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
>
>
>> Sure. But as I understand, every attribute in python is a value,
>
>
> sorry...*references* a value
>
So make it: 'reference an object'
--
http://mail.python.org/mailman/listinfo/python-list
MonkeeSage a écrit :
> On Dec 8, 4:54 pm, Bruno Desthuilliers
> <[EMAIL PROTECTED]> wrote:
>
>>MonkeeSage a écrit :
>>
>>
>>
>>
>>>On Dec 8, 12:42 pm, Bruno Desthuilliers
>>><[EMAIL PROTECTED]> wrote:
>>
MonkeeSage a écrit :
>>
>On Dec 7, 11:08 pm, Steve Howell <[EMAIL PROTECTED]> wrote:
>
Jack wrote:
> I wonder if it's possible to have a Python that's completely (or at
> least for the most part) implemented in C, just like PHP - I think
> this is where PHP gets its performance advantage. Or maybe I'm wrong
PHP is slower than Python.
--
http://mail.python.org/mailman/listinfo/pyt
2007/12/9, hashcollision <[EMAIL PROTECTED]>:
> From http://ivory.idyll.org/blog/dec-07/conversions.html:
> class X:
> internal = [5,6,7,8]
> def __getitem__(self, i):
> return self.internal[i]
>
> x = X()
>
> l = [1,2,3]
> print l + x
>
>
>
> fails withTypeError: can only concatenate list (not
>> I'm not sure
>>how much of the C-Python is implemented in C but I think the more
>>modules implemented in C, the better performance and lower memory
>>footprint it will get.
>
> Prove it. ;-)
I guess this is subjective :) - that's what I felt in my experience
with web applications developed i
Jack schrieb:
> I understand that the standard Python distribution is considered
> the C-Python. Howerver, the current C-Python is really a combination
> of C and Python implementation. There are about 2000 Python files
> included in the Windows version of Python distribution. I'm not sure
> how mu
On Dec 10, 8:13 am, Noah Hoffman <[EMAIL PROTECTED]> wrote:
> I have been trying to write a regular expression that identifies a
> block of text enclosed by (potentially nested) parentheses. I've found
> solutions using other regular expression engines (for example, my text
> editor, BBEdit, which
On Dec 9, 3:10 pm, I V <[EMAIL PROTECTED]> wrote:
> On Sun, 09 Dec 2007 11:58:05 -0800, MonkeeSage wrote:
> > class A
> > attr_accessor :a # == self.a,
> ># accessible to instances of A
> > def initialize
> > @a = "foo" # A.__a
> ># only accessible from c
In article <[EMAIL PROTECTED]>,
Jack <[EMAIL PROTECTED]> wrote:
>
>I understand that the standard Python distribution is considered
>the C-Python. Howerver, the current C-Python is really a combination
>of C and Python implementation. There are about 2000 Python files
>included in the Windows versi
I understand that the standard Python distribution is considered
the C-Python. Howerver, the current C-Python is really a combination
of C and Python implementation. There are about 2000 Python files
included in the Windows version of Python distribution. I'm not sure
how much of the C-Python is im
I have been trying to write a regular expression that identifies a
block of text enclosed by (potentially nested) parentheses. I've found
solutions using other regular expression engines (for example, my text
editor, BBEdit, which uses the PCRE library), but have not been able
to replicate it using
Steve Howell <[EMAIL PROTECTED]> wrote:
>
> --- Jeremy C B Nicoll <[EMAIL PROTECTED]> wrote:
>
> > Steve Howell <[EMAIL PROTECTED]> wrote:
> >
> > > --- Jeremy C B Nicoll <[EMAIL PROTECTED]>
> > wrote:
> >
> > > > What command (in XP) does one need to issue to syntax check a saved
> > > > pyt
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 09 Dec 2007 00:25:53 +, Jeremy C B Nicoll wrote:
>
> > > for app_name in settings.INSTALLED_APPS:
> > > try:
> > > __import__(app_name + '.management', {}, {}, [''])
> > > except ImportError, exc:
> >
On Sun, 09 Dec 2007 11:58:05 -0800, MonkeeSage wrote:
> class A
> attr_accessor :a # == self.a,
># accessible to instances of A
> def initialize
> @a = "foo" # A.__a
># only accessible from class scope of A
> end
> end
>
> Once again, there is no such
John J. Lee wrote:
> Durus might be worth a look too (though I doubt it's suitable for your
> situation):
>
> http://www.mems-exchange.org/software/durus/
>
> The link to their paper about it seems to be broken, but I think it
> was based somewhat on ZODB, but is simpler (67k tarball :-).
Much
--- CoolGenie <[EMAIL PROTECTED]> wrote:
> OK, sorry, this was about indents. Stupid VIM!
One more piece of VIM advice. You can use "set list"
to show where tabs are. I prefer to convert my own
tabs to spaces automatically, but you inevitably come
across code that you don't own where it's nice
--- CoolGenie <[EMAIL PROTECTED]> wrote:
> OK, sorry, this was about indents. Stupid VIM!
No prob. Add something like this (untested) to your
~/.vimrc:
set expandtab
set sw=4
set ts=4
Looking for
On Dec 8, 4:11 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> MonkeeSage a écrit :
>
>
>
> > On Dec 8, 12:56 pm, Bruno Desthuilliers
> > <[EMAIL PROTECTED]> wrote:
>
> >>MonkeeSage a écrit :
>
> >>>On Dec 8, 2:10 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>
> On Fri, 07 Dec 2
On Sun, 09 Dec 2007 12:35:46 -0800, CoolGenie wrote:
> OK, sorry, this was about indents. Stupid VIM!
$ mkdir -p $HOME/.vim/ftplugin/
$ echo "setlocal sw=4
setlocal ts=4
noremap py o/**/
" >> ~/.vim/ftplugin/python.vim
$ echo "syntax on
set sw=2
set ts=2
set nu
set nuw=3
set autoin
--- CoolGenie <[EMAIL PROTECTED]> wrote:
> self.feed = self.config['feedsrc']
> self.numfeeds = self.config['numfeeds']
> self.numlines = self.config['numlines']
>
> self.w = 520
> self.h = 12*self.numfeeds*(self.numlines+1)
> adesklets.
On Dec 10, 7:15 am, CoolGenie <[EMAIL PROTECTED]> wrote:
> Hi!
> I'm trying to write a small adesklet that will read newsfeeds. Here's
> the code:
>
> #
> #
> # fparser.py
> #
> # P. Kaminski <[EMAIL PROTECTED]>
> # Time-stamp: <>
OK, sorry, this was about indents. Stupid VIM!
--
http://mail.python.org/mailman/listinfo/python-list
--- MonkeeSage <[EMAIL PROTECTED]> wrote:
>
> Not just callable, but interchangeable. My point was
> that in ruby, if
> you use a block or a lambda as a HOF, you have to
> use #call / #[] /
> yield keyword on it to call it.
>
> def foo(a)
> puts a
> end
> bar = lambda { | a | puts a }
>
> # t
Hi!
I'm trying to write a small adesklet that will read newsfeeds. Here's
the code:
#
#
# fparser.py
#
# P. Kaminski <[EMAIL PROTECTED]>
# Time-stamp: <>
##
impor
On Dec 10, 3:40 am, [EMAIL PROTECTED] wrote:
> Mario M. Mueller napisa³(a):
>
> > Personally I would expect simple counts (since other seismic formats don't
> > even think of using floats because most digitizers deliver counts). But I
> > was told that there are floats inside.
>
> > But if I assume
On Dec 9, 1:58 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
> Sure. But as I understand, every attribute in python is a value,
sorry...*references* a value
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 8, 4:54 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> MonkeeSage a écrit :
>
>
>
> > On Dec 8, 12:42 pm, Bruno Desthuilliers
> > <[EMAIL PROTECTED]> wrote:
>
> >>MonkeeSage a écrit :
>
> >>>On Dec 7, 11:08 pm, Steve Howell <[EMAIL PROTECTED]> wrote:
>
> >>(snip)
>
> 4) Ruby force
> Another suggestion is to ensure that the job specification is not
> overly simplified. How did you parse the text into "words" in the
> prior exercise that produced the list of bigrams? Won't you need to
> use the same parsing method in the current exercise of tagging the
> bigrams with an under
Allâh, Exalted is He says, "You who have faith! Have taqwâ of Allâh
and be with the truthful"; "...being true to Allâh would be better
for
them"; "... men and women who are truthful...Allâh has prepared for
them
forgiveness and an immense reward"; "Among the believers are those
who
have been true
Steven D'Aprano a écrit :
> On Fri, 07 Dec 2007 11:56:14 +0100, Bruno Desthuilliers wrote:
>
>
>>Also, modifying a sequence in place while iterating over it is a *very*
>>bad idea.
>
>
> That's somewhat of an exaggeration, surely.
Somewhat of a shortcut if you want - given the context, I obvio
Seongsu Lee:
> What do you think of this? Ideas with less space complexity?
You can put the second group of keys in a second dictionary, so you
don't have to mangle them, and it may be a bit faster.
Regarding the space complexity, I don't know how you can reduce it
with Python. Probably you can c
Seongsu Lee a écrit :
> Hi,
>
> I have a dictionary with million keys. Each value in the
> dictionary has a list with up to thousand integers.
> Follow is a simple example with 5 keys.
>
> dict = {1: [1, 2, 3, 4, 5],
>2: [10, 11, 12],
>90: [100, 101, 102, 103, 104, 105],
>91:
Lou Pecora a écrit :
> In article <[EMAIL PROTECTED]>,
> Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
>
>>>Thus: close;
>>>could replace close();
*Please* give proper attribution. I'd *never* suggest such a thing.
>
> Wouldn't this give an ambiguity?
>
> afcn=close # make an
After starting this discussion thread, I found the
link below:
http://www.b-list.org/weblog/2006/jun/18/lets-talk-about-python-and-ruby/
If you're like me--struggling to learn Ruby while
having Python as your primary point of reference--you
might find some of the points informative. I suspect
vi
Is there a way to keep track of the number of times someone clicks on a
menu item in a prorgam? What I want to do is make the rectangle
disappear after they click on it at the main menu 3 times so visually
show them they can't do it any longer.
>
> Since I appended the button to a main menu lis
Michael Sparks <[EMAIL PROTECTED]> writes:
> Duncan Booth wrote:
>
>> Michael Sparks <[EMAIL PROTECTED]> wrote:
>>
>>> I'm interested in writing a simple, minimalistic, non persistent (at
>>> this stage) software transactional memory (STM) module. The idea being
>>> it should be possible to write
In article <[EMAIL PROTECTED]>,
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> > Thus: close;
> > could replace close();
Wouldn't this give an ambiguity?
afcn=close # make an "alias" to the close function
val=close() # set val to the return value of the close function
--
-- Lou
On 12월10일, 오전1시53분, Pablo Ziliani <[EMAIL PROTECTED]> wrote:
> Seongsu Lee escribió:
>
> > Hi,
>
> > I have a dictionary with million keys. Each value in the
> > dictionary has a list with up to thousand integers.
> > (...)
>
> > I want to find out the key value which has a specific
> > integer in
On Dec 9, 8:52�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> On 7 Dez., 22:36, John Machin <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Dec 8, 12:20 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > From a zone-file of a Microsoft Active Directory integrated DNS server
> > > I get
Please see the correction from Cliff pasted here after this excerpt.
Tim
> the byte string is ASCII which is a subset of Unicode (IS0-8859-1
> isn't).)
The one comment I'd make is that ASCII and ISO-8859-1 are both subsets
of Unicode, (which relates to the abstract code-points) but ASCII is
also
Hi All,
My setup is:
WinXP
Python 2.5.1
TKinter version: $Revision: 50704 $
Tcl: 8.4
Debugger: WinPdb
My program uses some Tkinter code written by someone else, that
creates a basic 24x80 terminal across different platforms. The
terminal worked fine in earlier versions of Python (version 1.5.2
On 12월10일, 오전1시23분, Seongsu Lee <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a dictionary with million keys. Each value in the
> dictionary has a list with up to thousand integers.
> Follow is a simple example with 5 keys.
>
> dict = {1: [1, 2, 3, 4, 5],
>2: [10, 11, 12],
>90: [100, 101,
Seongsu Lee escribió:
> Hi,
>
> I have a dictionary with million keys. Each value in the
> dictionary has a list with up to thousand integers.
> (...)
>
> I want to find out the key value which has a specific
> integer in the list of its value.
Sorry if this is unhelpful, but have you considered m
Mario M. Mueller napisał(a):
> Personally I would expect simple counts (since other seismic formats don't
> even think of using floats because most digitizers deliver counts). But I
> was told that there are floats inside.
>
> But if I assume counts I get some reasonable numbers out of the file.
I
Hi Croliina,
caroliina escribió:
> i made a list of lists
Please notice that this problem:
> but i cant write it into a file.
has nothing to do with this other one:
> how do i get the
> first string in a sublist?
>
For the first one, it is impossible to answer without seeing some actual
co
Hi,
I have a dictionary with million keys. Each value in the
dictionary has a list with up to thousand integers.
Follow is a simple example with 5 keys.
dict = {1: [1, 2, 3, 4, 5],
2: [10, 11, 12],
90: [100, 101, 102, 103, 104, 105],
91: [20, 21, 22],
99: [15, 16, 17, 18,
Sunday 09 December 2007 18:11:00 tarihinde caroliina şunları yazmıştı:
> i made a list of lists but i cant write it into a file. how do i get the
> first string in a sublist?
An easy example:
>>> a=[[1,2,3],[4,5,6]]
>>> a[0][0]
1
>>> a[1][0]
4
>>>
--
Never learn by your mistakes, if you
--- caroliina <[EMAIL PROTECTED]> wrote:
>
> i made a list of lists but i cant write it into a
> file. how do i get the
> first string in a sublist?
> --
Try doing this:
print list_of_lists
print list_of_lists[0]
print list_of_lists[0][0]
print list_of_lists[0][0][0]
It might give you some i
i made a list of lists but i cant write it into a file. how do i get the
first string in a sublist?
--
View this message in context:
http://www.nabble.com/reading-list-of-list-to-a-file-tp14239876p14239876.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://ma
1 - 100 of 129 matches
Mail list logo