Spyder
El 20/11/14 a las 18:47, TP escibió:
On Thu, Nov 20, 2014 at 11:29 AM, Irmen de Jong
irmen.nos...@xs4all.nl mailto:irmen.nos...@xs4all.nl wrote:
PyCharm *is* free, if you fall in one of several categories.
See http://www.jetbrains.com/pycharm/buy/license-matrix.jsp
Even
I use Spyder both in Windows as in Linux.
Pretty good programing environment, lots of features, simple enough,
works on both platforms and it's free.
El 08/01/14 08:27, ayushpokha...@gmail.com escribió:
On Friday, 23 November 2001 04:13:40 UTC+5:30, MANUEL FERNANDEZ PEREZ wrote:
Hello,
I'm
El 13/12/13 18:05, bucha...@gmail.com escribió:
I have this simple/stupid tree module:
https://github.com/abuchanan/bolts/blob/master/bolts/tree.py
Thanks, I'll check it.
--
https://mail.python.org/mailman/listinfo/python-list
I need to use a tree structure. Is there a good and known library?
Doesn't have to be binary tree, I need to have multiple children per node.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
El 12/12/13 16:26, Neil Cerutti escribió:
On 2013-12-12, Ricardo Aráoz ricar...@gmail.com wrote:
I need to use a tree structure. Is there a good and known library?
Doesn't have to be binary tree, I need to have multiple children per node.
Have you tried nested lists?
[[1, 2], [3, 4]
Can
El 12/12/13 15:56, Terry Reedy escribió:
On 12/12/2013 1:14 PM, Ricardo Aráoz wrote:
I need to use a tree structure. Is there a good and known library?
Search tools, both for the web and on pypi.python.org, are your friend.
I thought it was obvious that I've already looked around.
I'm
El 12/12/13 18:01, Mark Lawrence escribió:
On 12/12/2013 18:56, Terry Reedy wrote:
On 12/12/2013 1:14 PM, Ricardo Aráoz wrote:
I need to use a tree structure. Is there a good and known library?
Search tools, both for the web and on pypi.python.org, are your friend.
stackoverflow
El 27/11/13 07:46, amjad...@gmail.com escribió:
Hello,
I am working on a problem (Bioinformatics domain) where all possible
combinations of input string needs to be printed as sublist
For example:
Input string : LEQN
Output= [L,E,Q,N][LE,EQ,QN,NL] [LEQ,EQN,QNE,NLE]
[LEQN]
The code i have
El 12/11/13 01:46, Rick Johnson escribió:
No, Python modules can be poked, prodded, and violated by any pervert
who can spell the word import. Attribute values can be reassigned
and state can be externally manipulated resulting in all types of
undefined behaviors --
Nice!
My code, my
El 18/10/13 13:18, John Ladasky escribió:
What a lovely thread title! And just in time for Halloween! :^)
LOL
Couldn't that be construed as sexism?
Next we'll have a new long moronic thread about sexism and
discrimination in mail subjects. Which will, as usual, leave a lot of
satisfied
El 04/03/13 09:18, newtopython escribió:
Hi all,
I'm super new to python, just fyi.
In the piece of code below, secretWord is a string and lettersGuessed is a
list. I'm trying to find out if ALL the characters of secretWord are included
in lettersGuessed, even if there are additional values
On 17/02/2011 06:46 p.m., Steven D'Aprano wrote:
On Thu, 17 Feb 2011 19:44:20 +, Katie T wrote:
Running any kind of script sudo'd is a bad idea, it's very very hard (in
many cases impossible) to do securely. Root permissions in general
should only be used for what they're needed for and
On 14/07/2010 12:19 p.m., Kenneth Tilton wrote:
Steven D'Aprano wrote:
On Tue, 13 Jul 2010 23:24:12 -0400, Kenneth Tilton wrote:
The moral? If you look for the spam, you'll find it.
And if you *don't* look for spam, you can be sure that some goose
will reply to it and get it past your
On 30/06/2010 01:23 p.m., Lie Ryan wrote:
On 07/01/10 01:42, Michele Simionato wrote:
On Jun 30, 2:52 pm, Lie Ryanlie.1...@gmail.com wrote:
On 06/27/10 11:24, Steven D'Aprano wrote:
Producing print function takes a little bit more effort than producing a
print statement.
(1) The main
On 14/06/2010 02:57 p.m., rantingrick wrote:
On Jun 14, 11:17 am, Stephen Hansenme+list/pyt...@ixokai.io wrote:
And the recursive flow of the DOM is powerful
This style of speaking reminds me of our former hillbilly president
(no not Clinton, he was the eloquent hillbilly!) No i am
Aahz wrote:
In article mailman.1341.1269989861.23598.python-l...@python.org,
Justin Park h...@rice.edu wrote:
The real problem is this. When I started working on the package,
somehow all of indentations were made by space-bars instead of using
tabs. But when I am implementing my own on
Lawrence D'Oliveiro wrote:
In message 20100331003241.47fa9...@vulcan.local, Robert Fendt wrote:
The braces are gone, and with them the holy wars.
Let me start a new one. I would still put in some kind of explicit indicator
of the end of the grouping construct:
count = 99
Luis M. González wrote:
On 26 mar, 11:49, kj no.em...@please.post wrote:
What's the word on using classes as namespaces? E.g.
class _cfg(object):
spam = 1
jambon = 3
huevos = 2
breakfast = (_cfg.spam, _cfg.jambon, _cfg.huevos)
I see no problem.
I wouldn't mix
I'm developing an in house app. Many coders here are not fluent in
english, so docstrings must be in Spanish in spite of recommendations
that docstrings better be in English.
When I use accented characters (in this case an 'ó') in my docstrings I
get :
help('OpMejoraBizobj')
Traceback (most
Bruce C. Baker wrote:
Terry Reedy tjre...@udel.edu wrote in message
news:mailman.1929.1265328905.28905.python-l...@python.org...
Iterators, and in particular, generators.
A killer feature.
Terry Jan Reedy
Neither unique to Python.
And then're the other killer features
namekuseijin wrote:
On May 4, 9:15 am, David Robinow drobi...@gmail.com wrote:
On Mon, May 4, 2009 at 2:33 AM, namekuseijin
namekuseijin.nos...@gmail.com wrote:
ls = [(1,2), (3,4), (5, None), (6,7), (8, None)]
[(x,y) for (x,y) in ls if y]
[(1, 2), (3, 4), (6, 7)]
Hi, I need to track where a certain condition is met in a program.
Checking on pdb docs I find the break statement :
b(reak) [[/filename/:]/lineno/ | /function/[, /condition/]]
But it requires me to name a line/function where my condition is tested.
Now there are far too many places in a project
Reckoner wrote:
hi,
I have the following problem: I have two objects, say, A and B, which
are both legitimate stand-alone objects with lives of their own.
A contains B as a property, so I often do
A.B.foo()
the problem is that some functions inside of B actually need A
(remember I said
Lada Kugis wrote:
On 01 Apr 2009 01:26:41 GMT, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
Why Python (and other languages) count from zero instead of one, and
why half-open intervals are better than closed intervals:
Mark Wooding wrote:
Steven D'Aprano st...@remove-this-cybersource.com.au writes:
No it's not. It's *practical*. There are domains where *by law* code
needs to meet all sorts of strict standards to prove safety and
security, and Python *simply cannot meet those standards*.
Paul Rubin wrote:
Mark Wooding m...@distorted.org.uk writes:
Some people (let's call them `type A programmers') have decided that
they want to be assisted with writing correct programs...
Other people (`type B programmers') don't like having their (apparently?
possibly?) correct programs
James Stroud wrote:
Tim Arnold wrote:
Hi, I don't even know what to google for on this one. I need to drive
a commercial desktop app (on windows xp) since the app doesn't have a
batch interface. It's intended to analyze one file at a time and
display a report.
I can get the thing to write
Edwin B. wrote:
Robert Lehmann [EMAIL PROTECTED] writes:
I don't think there is a one-size-fits-all solution.
I definetly agree.
Setting up a 'snippets' repository sounds good if you just want to be
able to look back at what you've done and/or have a place to stash away
quick tests.
Terry Reedy wrote:
MRAB wrote:
How about something like this:
def clear_workspace():
keep_set = set(['__builtins__', '__doc__', '__name__',
'clear_workspace'])
For 2.6/3.0, add __package__ to the list to be kept.
for x in globals().keys():
if x not in keep_set:
Kay Schluehr wrote:
On 20 Sep., 23:07, Aaron \Castironpi\ Brady [EMAIL PROTECTED]
wrote:
On Sep 20, 3:22 pm, Kay Schluehr [EMAIL PROTECTED] wrote:
On 20 Sep., 18:33, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
The following definitions are AFAIK the only commonly accepted
definitions
Fett wrote:
On Sep 4, 2:23 pm, Mike Driscoll [EMAIL PROTECTED] wrote:
On Sep 4, 1:39 pm, Fett [EMAIL PROTECTED] wrote:
I need a crypto package that works on windows with python 2.5. Can
anyone suggest one for me?
I have been searching for a couple days for a good cryptography
package to
ajak_yahoo wrote:
Hi,
How can I access a foxpro dbf file from my python program.
I just want to read it as a read only file.
Regards,
Check Paul McNett's article in FoxTalk Exploring Python from a Visual
Foxpro Perspective and check the code in :
Terry Reedy wrote:
[EMAIL PROTECTED] wrote:
Is the following code is ok. who to call all method.
It is working but the call to m() without a reference to self seems
strange
The reference to self is bound to the methods by the way you look them up.
class CustomMethod:
def
Mensanator wrote:
On Jun 6, 1:40 pm, The Pythonista [EMAIL PROTECTED] wrote:
On Thu, 05 Jun 2008 23:42:07 -0400, John Salerno wrote:
Is it possible to write a list comprehension for this so as to produce a
list of two-item tuples?
base_scores = range(8, 19)
score_costs = [0, 1, 1, 1, 1, 1, 1,
Ville M. Vainio wrote:
Ricardo Aráoz [EMAIL PROTECTED] writes:
The easy/simple (too easy/simple?) way I see out of it is to read THE
WHOLE file into memory and don't worry. But what if the file is too
The easiest and simplest approach is often the best with
Python.
Keep forgetting
Ville Vainio wrote:
On May 8, 8:11 pm, Ricardo Aráoz [EMAIL PROTECTED] wrote:
All these examples assume your regular expression will not span multiple
lines, but this can easily be the case. How would you process the file
with regular expressions that span multiple lines?
re.findall
Anton Slesarev wrote:
I try to save my time not cpu cycles)
I've got file which I really need to parse:
-rw-rw-r-- 1 xxx xxx 3381564736 May 7 09:29 bigfile
That's my results:
$ time grep python bigfile | wc -l
2470
real0m4.744s
user0m2.441s
sys 0m2.307s
And python
Méta-MCI (MVP) wrote:
Re!
An exemple. With this script:
a=123
b=456
d=a+b+c
(note than 'c' is not defined).
When I run, inside Pyscripter, the error-dialog is showed, and, one
second after, PyScripter is closed.
This problem is present since Python 2.5.2.
I search, for
K Viltersten wrote:
import tkininter
When that fails, try without the stutter G
import tkinter
I must be doing something wrong because
neither tkinter nor tkininter works.
I tried both with and without stuttering.
I even asked my wife to stutter some but,
sadly, to no avail.
zaley wrote:
On Feb 24, 6:48 am, Ricardo Aráoz [EMAIL PROTECTED] wrote:
Lie wrote:
On Feb 23, 4:02 pm, zaley [EMAIL PROTECTED] wrote:
On Feb 22, 11:06 pm, Jesper polluks(#at#)post.tele.dk wrote:
Give PyScripter fromhttp://www.mmm-experts.com/atry
It is for Windows, though it is written
zaley wrote:
So I hope I can find something helpful in open source IDE for python.
Exactly so. PyScripter does it easy, besides you can have in different
tabs all the modules of your application. You just hit the run button
and your program runs, you hit the debug button and you start going
zaley wrote:
On 2月25日, 上午10时35分, Ricardo Aráoz [EMAIL PROTECTED] wrote:
zaley wrote:
So I hope I can find something helpful in open source IDE for python.
Exactly so. PyScripter does it easy, besides you can have in different
...
..
From then on you are on your own.
HTH
Hehe. You
Dotan Cohen wrote:
On 20/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
It's a bad sign. If you aren't keeping your thoughts to yourself, and
thrashing about the world for a peer, a social network, a support
group, or a community, then you missed the day in grammar school when
they
Edward K Ream wrote:
Here is something cool that will rock your world (ok, excuse the slight
hyperbole):
Many thanks for this posting, Ville. It is indeed very cool:
- It shows how Leo can be used *now* as an IPython notebook.
- It expands the notion of what is possible with
Lie wrote:
On Feb 23, 4:02 pm, zaley [EMAIL PROTECTED] wrote:
On Feb 22, 11:06 pm, Jesper polluks(#at#)post.tele.dk wrote:
Give PyScripter fromhttp://www.mmm-experts.com/atry
It is for Windows, though it is written in Delphi and not in C/C++
/Jesper
zaley [EMAIL PROTECTED] skrev i en
J Peyret wrote:
I got coverage.py to work after somewhat of a difficult start...
Hint: if moving your code from Windows to Linux and if running
'coverage.py -r mymodule.py' causes SyntaxError/SyntaxException, the
'flip' utility is your friend to deal with removing those nasty \r\n
newlines
Ivan Illarionov wrote:
from xml.etree import ElementTree as et
from decimal import Decimal
root = et.parse('file/with/your.xml')
debits = dict((debit.attrib['category'],
Decimal(debit.find('amount').text)) for debit in root.findall('debit'))
for cat, amount in debits.items():
... print
Diez B. Roggisch wrote:
Ricardo Aráoz schrieb:
Thanks Ivan, it seems a elegant API, and easy to use.
I tried to play a little with it but unfortunately could not get it off
the ground. I kept getting
root = et.fromstring(doc)
Traceback (most recent call last):
File input, line 1
Diez B. Roggisch wrote:
Ricardo Aráoz schrieb:
Diez B. Roggisch wrote:
Ricardo Aráoz schrieb:
Thanks Ivan, it seems a elegant API, and easy to use.
I tried to play a little with it but unfortunately could not get it off
the ground. I kept getting
root = et.fromstring(doc)
Traceback (most
Diez B. Roggisch wrote:
Simon Pickles schrieb:
Hi
Can anyone suggest a really simple XML reader for python? I just want to
be able to do something like this:
xmlDoc = xml.open(file.xml)
element = xmlDoc.GetElement(foo/bar)
... to read the value of:
foo
bar42/bar
/foo
Since
What about :
doc =
moo
bar99/bar
/moo
foo
bar42/bar
/foo
That's not an XML document, so what about it?
Stefan
--
Ok Stefan, I will pretend it was meant in good will.
I don't know zit about xml, but I might need to, and I am saving
teddyber wrote:
here's the solution i have for the moment :
t = shlex.shlex(data)
t.wordchars = t.wordchars + /+.-
r=''
while 1:
token = t.get_token()
if not token:
break
if not token==',': r = r+token
else:
Bruno Desthuilliers wrote:
[EMAIL PROTECTED] a écrit :
Vasudev Ram wrote:
Why not try writing your own code for this first?
If nothing else, it'll help you learn more, and may also help you
understand better, the other options.
Thanks for your reply even it was not really helpful.
The
[EMAIL PROTECTED] wrote:
code sample:
--
i=input()
try:
x=int(i)
print you input an integer
except ValueError:
print you must input an integer
when I input a value like, b
I got the
[EMAIL PROTECTED] wrote:
On Nov 29, 5:46 pm, [EMAIL PROTECTED] wrote:
Hi all,
Fairly new Python guy here. I am having a lot of trouble trying to
figure this out. I have some data on some regulations in Excel and I
need to basically add up the total regulations for each country--a
Peter Otten wrote:
Kelie wrote:
Hello,
This function does I what I want. But I'm wondering if there is an
easier/better way. To be honest, I don't have a good understanding of
what pythonic means yet.
def divide_list(lst, n):
Divide a list into a number of lists, each with n items.
[EMAIL PROTECTED] wrote:
On Nov 22, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On 22 Nov, 12:09, Neil Webster [EMAIL PROTECTED] wrote:
Hi all,
I'm sure I'm doing something wrong but after lots of searching and
reading I can't work it out and was wondering if anybody can help?
Michael Bacarella wrote:
This would seem to implicate the line id2name[id] = name as being
excruciatingly slow.
As others have pointed out there is no way that this takes 45
minutes.Must be something with your system or setup.
A functionally equivalent code for me runs in about 49 seconds!
Gabriel Genellina wrote:
En Thu, 01 Nov 2007 20:12:52 -0300, Ricardo Aráoz [EMAIL PROTECTED]
escribió:
def sumToOneDigit(num) :
if num 10 :
return num
else :
return sumToOneDigit(sum(int(i) for i in str(num)))
def sumToOneDigit(num):
return num % 9
Boris Borcic wrote:
Ricardo Aráoz wrote:
Boris Borcic wrote:
[EMAIL PROTECTED] wrote:
I want to create a program that I type in a word.
for example...
chaos
each letter equals a number
A=1
B=20
and so on.
So Chaos would be
C=13 H=4 A=1 O=7 S=5
I want to then have those
Tim Chase wrote:
i have a file :
file 1:
1
2
3
4
5
6
file2:
a
b
c
d
e
f
how do i make the two files into list like this =
[1,a,2,b,3,c,4,d,5,e,6,f]
from itertools import cycle
def serialize(*sources):
while True:
for source in sources:
Beema shafreen wrote:
hi everbody,
I have a file,
a b c d e
2722316 2722360A_16_P03641972150-44
2722510 2722554A_16_P2136023916-44
2722570 2722614
Boris Borcic wrote:
[EMAIL PROTECTED] wrote:
I want to create a program that I type in a word.
for example...
chaos
each letter equals a number
A=1
B=20
and so on.
So Chaos would be
C=13 H=4 A=1 O=7 S=5
I want to then have those numbers
13+4+1+7+5 added together to be 30.
Beema shafreen wrote:
hi everybody,
I have a file :
A B C D E
2717353 2717412A_16_P03641964214-59
2717626 2717685A_16_P4156365525-59
2717710 2717754
Beema shafreen wrote:
hi all,
I have problem to sort the data.. the file includes data as
follow.
file:
chrX:123343123123343182A_16_P41787782
chrX:123343417123343476A_16_P03762840
chrX:123343460123343519A_16_P41787783
chrX:12334336
Dick Moores wrote:
Windows XP Pro, Python 2.5.1
import msvcrt
while True:
if msvcrt.kbhit():
key = msvcrt.getch()
if key == 'Enter'
do something
Is there a way to catch the pressing of the 'Enter' key?
Thanks,
Dick Moores
You have examples for
tomamil wrote:
i know this example is stupid and useless, but that's not the answer
to my question.
here it goes:
status = 0.0
for i in range(10):
status = status + 0.1
if status == 0.1:
print status
elif status == 0.2:
print status
elif status == 0.3:
Alan Gauld wrote:
Dick Moores [EMAIL PROTECTED] wrote
http://www.redcanary.ca/view/top-programming
Interesting, but I'm not sure what the criteria for top is.
Is it a measure of power, popularity, usage?
Scary that HTML/CSS should be so high though
given its not a programming
Matimus wrote:
On Oct 6, 8:31 pm, goldtech [EMAIL PROTECTED] wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm
Wildemar Wildenburger wrote:
Steve Holden wrote:
Malheureusement, I see that absence of accented capitals is a modern
phenomenon that is regarded as an impediment to the language mostly
stemming from laziness of individual authors and inadequacy of low-end
typesetting software. I hadn't
Paul Hankin wrote:
On Oct 2, 12:25 pm, [EMAIL PROTECTED] wrote:
Hi!
I'm a new user of python, and have problem.
I have a plain ascii file:
11..1
12..1
11..1
I want to create a new file which contains only lines with '1' on 15th
position.
[EMAIL PROTECTED] wrote:
Hello World in Ruby (and a few other
languages):http://www.oreillynet.com/ruby/blog/2005/12/hello_world.html
Hello World in
Python:http://python.about.com/od/gettingstarted/ss/helloworld.htm
I know nothing of Ruby, but just the fact that in Ruby the Hello World
[EMAIL PROTECTED] wrote:
How do I delete or remove values from a list or string using the
index.
If a = [1,2,3,4,5,6,7,8] and I want to get rid of 1 -5, how would I do
that?
Thanks.
del a[1]
del a[-5]
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
How do I delete or remove values from a list or string using the
index.
If a = [1,2,3,4,5,6,7,8] and I want to get rid of 1 -5, how would I do
that?
Thanks.
If you want to do it all at once :
del a[1:4:2]
--
http://mail.python.org/mailman/listinfo/python-list
Marcin Stępnicki wrote:
Hello.
I thought I understand this, but apparently I don't :(. I'm missing
something very basic and fundamental here, so redirecting me to the
related documentation is welcomed as well as providing working code :).
Trivial example which works as expected:
x =
Hi, I know I'm being dumb but, why does it not work?
class MyList(list):
... def __init__(self):
... self.calls = 0
... def __getattr__(self, name):
... self.calls += 1
... return list.__getattribute__(self, name)
a = MyList()
a
[]
a.append(1)
a
[1]
a.calls
Dan Bar Dov wrote:
I'm trying to construct a regular expression to match valid IP address,
without leading zeroes (i.e
1.2.3.4 http://1.2.3.4, 254.10.0.0 http://254.10.0.0, but not
324.1.1.1, nor 010.10.10.1 http://010.10.10.1)
This is what I come up with, and it does not work.
That is self.__attributes
Been reading about the reasons to introduce them and am a little
concerned. As far as I understand it if you have a class that inherits
from two other classes which have both the same name for an attribute
then you will have a name clash because all instance attributes
Bruno Desthuilliers wrote:
TheFlyingDutchman a écrit :
Well I'm with Bruce Eckel - there shouldn't be any argument for the
object in the class method parameter list.
def fun(obj, *args, **kw):
# generic code here that do something with obj
import some_module
some_module.SomeClass.fun
John Machin wrote:
On Sep 10, 8:05 am, Lee Harr [EMAIL PROTECTED] wrote:
Python will always yield a number x = m%n such that 0 = x n, but
Turbo C will always yield a number such that if x = m%n -x = -m%n. That
is, since 111 % 10 = 1, -111 % 10 = -1. The two values will always
differ by n
Zentrader wrote:
On Sep 7, 11:30 am, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Fri, 07 Sep 2007 18:49:12 +0200, Jorgen Bodde wrote:
As for why caring if they are bools or not, I write True and False to
the properties, the internal mechanism works like this so I need to
make that
Dr Mephesto wrote:
On Sep 8, 3:33 am, Gabriel Genellina [EMAIL PROTECTED] wrote:
En Fri, 07 Sep 2007 16:16:46 -0300, Dr Mephesto [EMAIL PROTECTED]
escribi?:
hey, that defaultdict thing looks pretty cool...
whats the overhead like for using a dictionary in python?
Dictionaries are heavily
Steven D'Aprano wrote:
...
..
.
You know, one or two examples was probably plenty. The other six or seven
didn't add anything to your post except length.
Also, type testing by equality is generally not a good idea. For example:
class HexInt(int):
Like built-in ints, but print in hex
John Zenger wrote:
To my horror, someone pointed out to me yesterday that a web app I
wrote has been prominently displaying a misspelled word. The word was
buried in my code.
Is there a utility out there that will help spell-check literal
strings entered into Python source code? I don't
David wrote:
(I know that the better practice is to isolate user-displayed strings
from the code, but in this case that just didn't happen.)
Use the re module, identify the strings and write them to another file,
then open the file with your spell checker. Program shouldn't be more
than 10
Is there a way to import a module whose name is in a variable (read from
a configuration file for example)?
TIA
--
http://mail.python.org/mailman/listinfo/python-list
Tim Golden wrote:
[EMAIL PROTECTED] wrote:
Hi,
I am working on a timesheet application in which I need to to find the
first pay period in a month that is entirely contained in that month
to calculate vacation time. Below are some example date ranges:
December 31, 2006January 13, 2007
Tom Brown wrote:
On Thursday 06 September 2007 15:44, Torsten Bronger wrote:
Hallöchen!
Tom Brown writes:
[...] Python has been by far the easiest to develop in. Some
people might say it is not real programming because it is so
easy.
I can't believe this. Have you really heard such a
John Machin wrote:
On Sep 5, 10:26 pm, planetmatt [EMAIL PROTECTED] wrote:
On 5 Sep, 12:34, John Machin [EMAIL PROTECTED] wrote:
On Sep 5, 8:58 pm, planetmatt [EMAIL PROTECTED] wrote:
I am a Python beginner. I am trying to loop through a CSV file which
I can do. What I want to change
Shawn Milochik wrote:
On 9/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have a text source file of about 20.000 lines.
From this file, I like to write the first 5 lines to a new file. Close
that file, grab the next 5 lines write these to a new file... grabbing
5 lines and creating new
AniNair wrote:
On Sep 5, 4:35 am, Ricardo Aráoz [EMAIL PROTECTED] wrote:
Steve Holden wrote:
AniNair wrote:
hi.. I am trying to match '+ %/-' etc using regular expression in
expressions like 879+34343. I tried \W+ but it matches only in the
beginning of the string Plz help Thanking you
Steve Holden wrote:
AniNair wrote:
hi.. I am trying to match '+ %/-' etc using regular expression in
expressions like 879+34343. I tried \W+ but it matches only in the
beginning of the string Plz help Thanking you in advance...
Perhaps you could give a few example of strings that should
Gabriel Genellina wrote:
En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist [EMAIL PROTECTED]
escribi�:
On 8/24/07, Gabriel Genellina [EMAIL PROTECTED] wrote:
En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist [EMAIL PROTECTED]
escribi�:
def check_user_logged_in(func):
def
Alex Martelli wrote:
Ricardo Aráoz [EMAIL PROTECTED] wrote:
...
We should remember that the level
of security of a 'System' is the same as the level of security of it's
weakest component,
...
You win the argument, and thanks you prove my point. You typically
concerned yourself
Peter Otten wrote:
Am Sat, 01 Sep 2007 18:56:38 -0300 schrieb Ricardo Aráoz:
Hi, I've been working on sorting out some words.
My locale is :
import locale
locale.getdefaultlocale()
('es_AR', 'cp1252')
I do :
a = 'áéíóúäëïöüàèìòù'
print ''.join(sorted(a, cmp=lambda x,y: locale.strcoll
Alex Martelli wrote:
Ricardo Aráoz [EMAIL PROTECTED] wrote:
Peter Otten wrote:
...
print ''.join(sorted(a, cmp=lambda x,y: locale.strcoll(x,y)))
aeiouàáäèéëìíïòóöùúü
The lambda is superfluous. Just write cmp=locale.strcoll instead.
No it is not :
print ''.join(sorted(a, cmp
Paddy wrote:
On Sep 1, 7:57 am, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
Richie Hindle richi...ian.com wrote:
But - the word for someone who posts to the internet with the intention of
stirring up trouble derives from the word for what fishermen do, not from
the word for something that
Hendrik van Rooyen wrote:
Carl Banks pavlmail.com wrote:
This is starting to sound silly, people. Critical is a relative term,
and one project's critical may be anothers mundane. Sure a flaw in your
flagship product is a critical problem *for your company*, but are you
really
Steve Holden wrote:
Ricardo Aráoz wrote:
Paddy wrote:
On Sep 1, 7:57 am, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
Richie Hindle richi...ian.com wrote:
But - the word for someone who posts to the internet with the intention of
stirring up trouble derives from the word for what fishermen do
Hi, I've been working on sorting out some words.
My locale is :
import locale
locale.getdefaultlocale()
('es_AR', 'cp1252')
I do :
a = 'áéíóúäëïöüàèìòù'
print ''.join(sorted(a, cmp=lambda x,y: locale.strcoll(x,y)))
aeiouàáäèéëìíïòóöùúü
This is not what I am expecting. I was expecting :
1 - 100 of 127 matches
Mail list logo