On Feb 1, 1:42 am, mcheun...@hotmail.com mcheun...@hotmail.com
wrote:
Hi all
what IDE is the best to write python?
That's like asking boxers or briefs, everybody thinks their choice is
the best. I like freedom if that gives you a hint. :)
--
On Sat, 31 Jan 2009 09:08:25 -0800, thmpsn.m.k wrote:
On Jan 30, 12:15 am, Chris Rebert c...@rebertia.com wrote:
- Python supports encapsulation. Prefixing an attribute/method with an
underscore indicates that other programmers should treat it as
'private'. However, unlike BD languages,
On Sat, Jan 31, 2009 at 11:42 PM, mcheun...@hotmail.com mcheun...@hotmail.com wrote:Hi all
what IDE is the best to write python?
thanks
from Peter (mcheun...@hotmail.com)What OS? And define "IDE"? Do you just want an editing environment with say class browsing capabilities or do you want an
Robin Becker wrote:
Whilst considering a port of old code to python 3 I see that in several
places we are using type comparisons to control processing of user
instances (as opposed to instances of built in types eg float, int, str)
I find that the obvious alternatives are not as fast as the
D'Arcy J.M. Cain wrote:
First of all, list is a reserved word. Don't use it as a variable name.
Unless you mean to. Shadowing built-ins is only a bad thing when you do it
by accident.
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano st...@pearwood.info writes:
First question is, why do you care that it's slower? The difference between
the fastest and slowest functions is 1.16-0.33 = 0.83 microsecond.
That's a 71% speedup, pretty good if you ask me.
If you call the slowest function one million times, your
On Jan 31, 9:36 pm, Tim Roberts t.robe...@cqu.edu.au wrote:
Actually, all I'm interested in is whether the 100 digit numbers have an
exact integral root, or not. At the moment, because of accuracy concerns,
I'm doing something like
for root in powersp:
On Sun, Feb 1, 2009 at 1:14 AM, John Machin sjmac...@lexicon.net wrote:
On Feb 1, 3:39 pm, Shawn Milochik sh...@milochik.com wrote:
Not to discourage the use of Python, but it seems that fgrep with the
-f flag already does exactly what you want. If you're on Windows, you
can get the Windows
En Sun, 01 Feb 2009 03:47:27 -0200, Deepak Chandran
dchandr...@tinkercell.com escribió:
I have a program in which I have successfully embedded Python. Now, I
want
to include NumPy as well (and other modules). I am able to import numpy
once. Then I close the python console in my program and
On Feb 1, 7:34 pm, Shawn Milochik sh...@milochik.com wrote:
On Sun, Feb 1, 2009 at 1:14 AM, John Machin sjmac...@lexicon.net wrote:
On Feb 1, 3:39 pm, Shawn Milochik sh...@milochik.com wrote:
Not to discourage the use of Python, but it seems that fgrep with the
-f flag already does exactly
Wingware IDE is pretty good. It's not free though.
http://www.wingware.com/
On Sun, Feb 1, 2009 at 12:14 AM, Stephen Hansen apt.shan...@gmail.com wrote:
On Sat, Jan 31, 2009 at 11:42 PM, mcheun...@hotmail.com
mcheun...@hotmail.com wrote:
Hi all
what IDE is the best to write python?
thanks
flagg iana.@gmail.com wrote:
Let me see if i can elaborate on the requirements. I have 20+
different zone files. I want the xmlrpc server to be able to
determine what zone file to open by looking at the incoming xml
request. For example one of the functions I have now is to show a DNS
My program contains some sys.exit(1) and when its executed an
exception known as SystemExit is thrown.
I tried to handle bu using following code snippet
if __name__ == __main__:
try:
main() #main contains sys.exit(1)
except KeyboardInterrupt:
print aborted by user
Paul Rubin wrote:
Steven D'Aprano st...@pearwood.info writes:
First question is, why do you care that it's slower? The difference
between the fastest and slowest functions is 1.16-0.33 = 0.83
microsecond.
That's a 71% speedup, pretty good if you ask me.
Don't you care that the code is
asit wrote:
My program contains some sys.exit(1) and when its executed an
exception known as SystemExit is thrown.
I tried to handle bu using following code snippet
if __name__ == __main__:
try:
main() #main contains sys.exit(1)
except KeyboardInterrupt:
print
En Sun, 01 Feb 2009 07:27:26 -0200, asit lipu...@gmail.com escribió:
My program contains some sys.exit(1) and when its executed an
exception known as SystemExit is thrown.
This is normal behaviour - but you should not see the SystemExit. Do you
mean that a stack trace appears in the
st...@savechicago.org wrote:
Hello, I am a brand brand new programming student in Jython and I have
been working on a simple homework assignment in JES for the last 12
hours and am completely lost.
Basically, we have to make a jpeg slideshow with 5 different pictures
with audio background
On Sun, Feb 1, 2009 at 3:22 AM, Hussein B hubaghd...@gmail.com wrote:
Hey,
I have a log file that doesn't contain the word Haskell at all, I'm
just trying to do a little performance comparison:
++
from datetime import time, timedelta, datetime
start = datetime.now()
print start
mcheun...@hotmail.com wrote:
Hi all
what IDE is the best to write python?
thanks
from Peter (mcheun...@hotmail.com)
vim in one terminal, ipython in the other.
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com
--
I am porting an application which embeds a Python interpreter to
Python 2.6.
On version 2.5 all is working fine, but importing the sqlite3 module
doesn't work any more on 2.6.
The statement import sqlite3 does work fine when executed from in
the python command prompt, ie not from the embedded
Laszlo Nagy wrote:
8--
... Setting the
SO_REUSEADDR flag on POSIX fixes this problem (don't set it on Windows,
though).
Why not? I have been merrily setting it, and I have not noticed
anything weird.
(yet)
Please see my original post. I
Steve Holden wrote:
W. eWatson wrote:
Steve Holden wrote:
W. eWatson wrote:
r wrote:
On Jan 28, 10:12 pm, W. eWatson notval...@sbcglobal.net wrote:
Where in the world is a description of pack() for Tkinter widgets?
Is it
some sort of general method for all widgets? I'm looking in a few
docs
Laszlo Nagy wrote:
8--
... Setting the
SO_REUSEADDR flag on POSIX fixes this problem (don't set it on Windows,
though).
Why not? I have been merrily setting it, and I have not noticed
anything weird.
(yet)
Please see my original post. I
On Jan 29, 8:54 pm, Jean-Paul Calderone exar...@divmod.com wrote:
On Thu, 29 Jan 2009 08:38:43 -0800 (PST), markobrie...@gmail.com wrote:
G'day
I'm currently usingsocketserverto build a simple XMLSocket (an XML
based protocol used for communication between flash and the outside
world)
jdetaeye wrote:
I am porting an application which embeds a Python interpreter to
Python 2.6.
On version 2.5 all is working fine, but importing the sqlite3 module
doesn't work any more on 2.6.
The statement import sqlite3 does work fine when executed from in
the python command prompt, ie not
Hussein B wrote:
Hey,
I have a log file that doesn't contain the word Haskell at all, I'm
just trying to do a little performance comparison:
++
from datetime import time, timedelta, datetime
start = datetime.now()
print start
lines = [line for line in
W. eWatson wrote:
Steve Holden wrote:
W. eWatson wrote:
Steve Holden wrote:
W. eWatson wrote:
r wrote:
On Jan 28, 10:12 pm, W. eWatson notval...@sbcglobal.net wrote:
Where in the world is a description of pack() for Tkinter widgets?
Is it
some sort of general method for all widgets? I'm
eclipse
--- On Sun, 2/1/09, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
From: Dennis Lee Bieber wlfr...@ix.netcom.com
Subject: Re: what IDE is the best to write python?
To: python-list@python.org
Date: Sunday, February 1, 2009, 3:31 AM
On Sat, 31 Jan 2009 23:42:42 -0800 (PST),
On Sun, 01 Feb 2009 19:23:58 +1100
Steven D'Aprano st...@pearwood.info wrote:
D'Arcy J.M. Cain wrote:
First of all, list is a reserved word. Don't use it as a variable name.
Unless you mean to. Shadowing built-ins is only a bad thing when you do it
by accident.
I suppose but I am having
thanks Matthew,
for the extended answer
and the great link,
I'm going to study that carefully.
cheers,
Stef
MattBD wrote:
On Feb 1, 12:19 pm, Stef Mientki stef.mien...@gmail.com wrote:
IMHO, scripting languages like Python are generally better suited to
working with a text editor than an
On Feb 1, 7:42 am, mcheun...@hotmail.com mcheun...@hotmail.com
wrote:
Hi all
what IDE is the best to write python?
thanks
from Peter (mcheun...@hotmail.com)
I like Vim, that works really well for me when coding in Python.
Enable syntax highlighting and it's a great development environment.
Hi,
Do you know a python alternative to rapid ajax platform (RAP)?
For the development of a user interface for mathematical models
someone suggested to use eclipse and that tool:
http://www.eclipse.org/rap/
http://www.eclipse.org/rap/about.php
If I understand correctly it allows you to design
Steven D'Aprano wrote:
D'Arcy J.M. Cain wrote:
First of all, list is a reserved word. Don't use it as a variable name.
Unless you mean to. Shadowing built-ins is only a bad thing when you do it
by accident.
Quite. And we should observe that list is not a reserved word in the
sense of a
Steven D'Aprano wrote:
Paul Rubin wrote:
Steven D'Aprano st...@pearwood.info writes:
First question is, why do you care that it's slower? The difference
between the fastest and slowest functions is 1.16-0.33 = 0.83
microsecond.
That's a 71% speedup, pretty good if you ask me.
Don't you
David Bolen wrote:
thmpsn@gmail.com writes:
I don't know how you would do it in C# (or Java for that matter).
In C++ you can play with pointers to get at some memory location
somewhere in the object. The only portable way to know the exact
location between the beginning of the object and
On Sat, Jan 31, 2009 at 9:08 AM, thmpsn@gmail.com wrote:
On Jan 30, 12:15 am, Chris Rebert c...@rebertia.com wrote:
- Python supports encapsulation. Prefixing an attribute/method with an
underscore indicates that other programmers should treat it as
'private'. However, unlike BD
Thanx everyone
This is my fault. Exception was thrown before the main function.
--
http://mail.python.org/mailman/listinfo/python-list
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode
support. It is written with Python+GTK. It has features like
scoring/actions, X-Face and Face decoding, muting of quoted text,
newsrc import/export, find article and search in the body, spoiler
char/rot13, random taglines and
On Feb 1, 12:19 pm, Stef Mientki stef.mien...@gmail.com wrote:
IMHO, scripting languages like Python are generally better suited to
working with a text editor than an IDE.
I don't understand that, because in my opinion yields
IDE = texteditor + (much) more
please could you explain (as
It cost me a while to analyze the cause of the following problem.
The symptom was that testing a local web app with twill was fast
on Python 2.3, but very slow on Python 2.4-2.6 on a Win XP box.
This boiled down to the problem that if you run a SimpleHTTPServer
for localhost like this,
Hello,
When I run following code with os.popen (for this time measure I'm
using python module timeit):
for i in range(50):
print i
I get this result: 0.00246958761519
But when I run same code from IDLE i get this result:
6.4533341528e-005
now, I have two questions:
1)
My initial goal is to finally install Trac. This is the second day
I've been trying to make this possible but I can't find, for the life
of me, how to do this. OK, here is the story:
My system is a VPS with CentOS 5.
I found out that I have two versions of python: 2.4 at /usr/bin/
python2.4 and
On Feb 1, 3:34 am, asit lipu...@gmail.com wrote:
I hv been developing a link scanner. Here the objective is to
recursively scan a particular web site.
During this, my script methttp://images.google.co.in/imghp?hl=entab=wi
and passed it to the scan function, whose body is like this..
def
On Feb 1, 3:34 am, asit lipu...@gmail.com wrote:
I hv been developing a link scanner. Here the objective is to
recursively scan a particular web site.
During this, my script methttp://images.google.co.in/imghp?hl=entab=wi
and passed it to the scan function, whose body is like this..
def
I hv been developing a link scanner. Here the objective is to
recursively scan a particular web site.
During this, my script met http://images.google.co.in/imghp?hl=entab=wi
and passed it to the scan function, whose body is like this..
def scan(site):
log=open(logfile,'a')
log.write(site
Hello, i use python 2.6 + PyQt4.
I compile my main.pyw. It is compile, but don't run. In
index.exe.log error log:
File index.pyw, line 100, in GetVal
ConfigParser.NoSectionError: No section: 'Main'
Code line 92 to 104 this is class that uses ConfigParser lib:
class ConfigAcces:
def
On 2009-02-01, Steve Holden st...@holdenweb.com wrote:
I believe this is because Microsoft failed to understand the
original meaning of ___, and persisted with
this ghastly error in the name of backwards compatibility,
justifying it by suggesting that
Robin Becker wrote:
Steven D'Aprano wrote:
Paul Rubin wrote:
Steven D'Aprano st...@pearwood.info writes:
First question is, why do you care that it's slower? The difference
between the fastest and slowest functions is 1.16-0.33 = 0.83
microsecond.
That's a 71% speedup, pretty good if you
IMHO, scripting languages like Python are generally better suited to
working with a text editor than an IDE.
I don't understand that, because in my opinion yields
IDE = texteditor + (much) more
please could you explain (as I'm very interested in user interfaces in
general )
cheers,
Stef
Hello,
Thanks to all ... it's working now !
Google isn't always your friend :) I found in the net a lot but wrong
examples for specification of data_files. Now I have the correct one.
Best Regards
--Armin
Gabriel Genellina wrote:
En Sat, 31 Jan 2009 11:51:16 -0200, Armin
Hey,
I have a log file that doesn't contain the word Haskell at all, I'm
just trying to do a little performance comparison:
++
from datetime import time, timedelta, datetime
start = datetime.now()
print start
lines = [line for line in file('/media/sda4/Servers/Apache/
I sort of guessed that was the issue -- doing Py_Initialize/Py_Finalize more
than once. Thanks for the help.
On Sun, Feb 1, 2009 at 12:43 AM, Gabriel Genellina
gagsl-...@yahoo.com.arwrote:
En Sun, 01 Feb 2009 03:47:27 -0200, Deepak Chandran
dchandr...@tinkercell.com escribió:
I have a
berserker...@gmail.com schrieb:
Hello, i use python 2.6 + PyQt4.
I compile my main.pyw. It is compile, but don't run. In
index.exe.log error log:
File index.pyw, line 100, in GetVal
ConfigParser.NoSectionError: No section: 'Main'
Code line 92 to 104 this is class that uses ConfigParser
vedrandeko...@yahoo.com wrote:
Hello,
When I run following code with os.popen (for this time measure I'm
using python module timeit):
for i in range(50):
print i
I get this result: 0.00246958761519
But when I run same code from IDLE i get this result:
6.4533341528e-005
Hi,
IMHO, scripting languages like Python are generally better suited to
working with a text editor than an IDE.
I don't understand that, because in my opinion yields
IDE = texteditor + (much) more
please could you explain (as I'm very interested in user interfaces in
general )
Try
On Feb 1, 1:50 am, Marc 'BlackJack' Rintsch bj_...@gmx.net wrote:
On Sat, 31 Jan 2009 15:28:14 -0800, thmpsn.m.k wrote:
On Jan 31, 2:27 pm, Christian Heimes li...@cheimes.de wrote:
Do you honestly believe that C++'s private members are really private?
Privateness is only enforced during
Anyway, it doesn't matter. We're losing the point here. The point is
that language support for private access, by disallowing user access
to private data, provides an unambiguous information hiding mechanism
which encourages encapsulation. Python's approach, however, which is
only a naming
Quoting thmpsn@gmail.com:
Or ``#define private public`` before including the header files. Which
doesn't look complicated to me.
Which again won't always work, if:
(a) the header defines another macro, say, PRIVATE, as private,
and uses PRIVATE to declare private members
[other
Hi,
My foo.txt file contains the following:
1,house,2,5
2,table,6,7
3,chair,-4,5
... as seen with notepad.
This file was created with the OpenOffice Calc spreadsheet, but since
I use comma as the decimal separator for numbers, the last value in
each line appears sorrounded by quotes.
I would
Hello Python,
does anyone know of a Python based project that has a GUI based
functionality to edit
config files read/written by ConfigParser?
I found a command line tool here:
pyinieditor - Google Code - http://code.google.com/p/pyinieditor/
But I'd rather go with a GUI tool.
Thanks in
Stephen Hansen wrote:
[...]
don't play with anyone else's
privates.
A good rule in life as well as programming.
The *idea* of encapsulation is good in many cases, it is quite often a
solid design point and admirable goal. The *implementation* of enforced
data encapsulation brings no value
On 1 velj, 17:42, Steve Holden st...@holdenweb.com wrote:
vedrandeko...@yahoo.com wrote:
Hello,
When I run following code with os.popen (for this time measure I'm
using python module timeit):
for i in range(50):
print i
I get this result: 0.00246958761519
But when I run
Try the csv module
py import csv
py reader = csv.reader(open(csvfile, rb))
py for row in reader:
print row
['1', 'house', '2,5 ']
['2', 'table', '6,7 ']
['3', 'chair', '-4,5 ']
--
http://mail.python.org/mailman/listinfo/python-list
r wrote:
Try the csv module
py import csv
py reader = csv.reader(open(csvfile, rb))
py for row in reader:
print row
['1', 'house', '2,5 ']
['2', 'table', '6,7 ']
['3', 'chair', '-4,5 ']
And then, to conert the last field to numbers? ...
regards
Steve
--
Steve Holden
On 1 Feb, 15:48, kimwlias kimwl...@gmail.com wrote:
My initial goal is to finally install Trac. This is the second day
I've been trying to make this possible but I can't find, for the life
of me, how to do this. OK, here is the story:
My system is a VPS with CentOS 5.
I found out that I
On Feb 1, 11:50 am, Steve Holden st...@holdenweb.com wrote:
And then, to conert the last field to numbers? ...
Are you asking me Steve? Well i did not want to short-circuit the OP's
learning process by spoon-feeding him the entire answer. I thought i
would give him a push in the right direction
On Sun, Feb 1, 2009 at 9:24 AM, vsoler vicente.so...@gmail.com wrote:Hi,
My foo.txt file contains the following:
1,"house","2,5"
2,"table","6,7"
3,"chair","-4,5"
... as seen with notepad.
This file was created with the OpenOffice Calc spreadsheet, but since
I use comma as the
vedrandeko...@yahoo.com wrote:
On 1 velj, 17:42, Steve Holden st...@holdenweb.com wrote:
vedrandeko...@yahoo.com wrote:
Hello,
When I run following code with os.popen (for this time measure I'm
using python module timeit):
for i in range(50):
print i
I get this result:
I'm having some fun with Popen. I have the following line:
process = subprocess.Popen(command, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
print process.stdout
Under normal circumstances, this displays:
open file 'stdout', mode 'w' at 0xb7f8e068
However, I have a binary that
Hello, anybody. Any help would be good help
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
In article 871vur39k7@benfinney.id.au,
Ben Finney bignose+hates-s...@benfinney.id.au wrote:
I actually use this style:
foo = {
0: 'spam',
1: 'eggs',
2: 'beans',
}
because that makes it clear that *all* the indented lines are a
continuation of the same
Quoth thmpsn@gmail.com:
Anyway, it doesn't matter. We're losing the point here. The point is
that language support for private access, by disallowing user access
to private data, provides an unambiguous information hiding mechanism
which encourages encapsulation. Python's approach,
PS:
The braces are there because i used *arg in the fuction, so that is
not a problem now. All i want to do is overide the print statement to
sent all it's output to a Tkinter Label widget
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to build python 2.6 on a machine (web server) that I do not
have
root access to. (has 2.4 installed)
Python 2.5 builds fine, but I am getting an error when I run make for
2.6.1.
Mmm... my 2.6.1 source show different line numbers, maybe you should check
it's
On Sun, 1 Feb 2009 15:36:43 +1000, Tim Roberts t.robe...@cqu.edu.au wrote:
Actually, all I'm interested in is whether the 100 digit
numbers have an exact integral root, or not. At the
moment, because of accuracy concerns, I'm doing something
like
for root in powersp:
On 1 feb, 19:02, Stephen Hansen apt.shan...@gmail.com wrote:
On Sun, Feb 1, 2009 at 9:24 AM, vsolervicente.so...@gmail.comwrote:Hi,
My foo.txt file contains the following:
1,house,2,5
2,table,6,7
3,chair,-4,5
... as seen with notepad.
This file was created with the OpenOffice Calc
On Jan 30, 3:49 am, Diez B. Roggisch de...@nospam.web.de wrote:
alex23 gave you a set of tools that you can use for full-text-search.
However, that's not necessarily the best thing to do if things have a
record-like structure.
In Nucular (and others I think) you can do searches
for terms
Stephen Hansen wrote:
On Sun, Feb 1, 2009 at 9:24 AM, vsoler vicente.so...@gmail.com wrote:
Hi,
My foo.txt file contains the following:
1,house,2,5
2,table,6,7
3,chair,-4,5
... as seen with notepad.
This file was created with the OpenOffice Calc
Quoth Christoph Zwerschke c...@online.de:
What actually happens is the following:
* BaseHTTPServer binds only to the IPv4 address of localhost, because
it's based on TCPServer which has address_family=AF_INET by default.
* HTTPConnection.connect() however tries to connect to all IP
Dear all,
I'd like to know how to elegantly check a list for the membership of
any of its items to another list. Not caring for elegance, I would
use the following code:
blah = [1,2,3]
yadda = [3,4,5,6]
blah[0] or blah[1] or blah[2] in yadda
Please tell me how to change the preceding code
On Sun, Feb 1, 2009 at 1:46 PM, Andrew Parker gbofs...@gmail.com wrote:
I'm having some fun with Popen. I have the following line:
process = subprocess.Popen(command, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
print process.stdout
Under normal circumstances, this displays:
inkhorn schrieb:
Dear all,
I'd like to know how to elegantly check a list for the membership of
any of its items to another list. Not caring for elegance, I would
use the following code:
blah = [1,2,3]
yadda = [3,4,5,6]
blah[0] or blah[1] or blah[2] in yadda
Please tell me how to
I'd like to know how to elegantly check a list for the membership of
any of its items to another list. Not caring for elegance, I would
use the following code:
That's one of the useful properties of sets: a = [1,2,3] b = [3,4,5,6] set(a) set(b)set([3]) set(a).intersection(b)set([3])
That's
inkhorn matt.dub...@sympatico.ca writes:
blah = [1,2,3]
yadda = [3,4,5,6]
blah[0] or blah[1] or blah[2] in yadda
if set(blah) set(yadda): print yes
--
http://mail.python.org/mailman/listinfo/python-list
Wow thanks for the lightning fast reply! This does exactly the right
job.
Matt
On Feb 1, 3:01 pm, Stephen Hansen apt.shan...@gmail.com wrote:
I'd like to know how to elegantly check a list for the membership of
any of its items to another list. Not caring for elegance, I would
use the
On Feb 1, 12:38 am, Hendrik van Rooyen m...@microcorp.co.za wrote:
flagg iana.@gmail.com wrote:
Let me see if i can elaborate on the requirements. I have 20+
different zone files. I want the xmlrpc server to be able to
determine what zone file to open by looking at the incoming xml
On Feb 1, 2:27 am, casevh cas...@gmail.com wrote:
On Jan 31, 9:36 pm, Tim Roberts t.robe...@cqu.edu.au wrote:
Actually, all I'm interested in is whether the 100 digit numbers have an
exact integral root, or not. At the moment, because of accuracy concerns,
I'm doing something like
rdmur...@bitdance.com schrieb:
Quoth Christoph Zwerschke c...@online.de:
With Py 2.3 (without IPv6 support) this is only the IPv4 address,
but with Py 2.4-2.6 the order is (on my Win XP host) the IPv6 address
first, then the IPv4 address. Since the IPv6 address is checked first,
hello,
Until now I used a simple wrapper around pysqlite and pyodbc to manage
my databases.
Now I'm looking for a better solution,
because I've to support a (for this moment) unknown database,
and I'm not the one who will choose the database.
Googling, I found SQLalchemy,
which looks quit
On Feb 2, 6:18 am, vsoler vicente.so...@gmail.com wrote:
r: in the open statement, why do you use 'rb' as 2nd argument? b is
supposed to be binary, and my file is text!
Because unlike Stephen, r has read the csv manual. Binary mode is
required to handle properly cases like '\n' embedded in a
On 1 feb, 23:57, John Machin sjmac...@lexicon.net wrote:
On Feb 2, 6:18 am, vsoler vicente.so...@gmail.com wrote:
r: in the open statement, why do you use 'rb' as 2nd argument? b is
supposed to be binary, and my file is text!
Because unlike Stephen, r has read the csv manual. Binary mode
Quoth Christoph Zwerschke c...@online.de:
rdmur...@bitdance.com schrieb:
Quoth Christoph Zwerschke c...@online.de:
With Py 2.3 (without IPv6 support) this is only the IPv4 address,
but with Py 2.4-2.6 the order is (on my Win XP host) the IPv6 address
first, then the IPv4 address.
On Sun, 01 Feb 2009 17:31:27 -, Steve Holden st...@holdenweb.com
wrote:
Stephen Hansen wrote:
[...]
don't play with anyone else's
privates.
A good rule in life as well as programming.
Unless, of course, you're both consenting adults.
What? Someone had to say it!
--
Rhodri James
On Sun, Feb 1, 2009 at 2:56 PM, Stef Mientki stef.mien...@gmail.com wrote:
hello,
Until now I used a simple wrapper around pysqlite and pyodbc to manage my
databases.
Now I'm looking for a better solution,
because I've to support a (for this moment) unknown database,
and I'm not the one who
In article e85efc5f-d141-4c5a-b228-8dba960a6...@l33g2000pri.googlegroups.com,
MattBD matthewbd...@googlemail.com wrote:
I like Vim, that works really well for me when coding in Python.
Enable syntax highlighting and it's a great development environment.
It's a little tough at first but run
Googling, I found SQLalchemy,
which looks quit good.
SQLAlchemy is very good. I'm very slowly migrating our entire codebase to it.
But as I only want to choose once,
I googled for "SQLalchemy alternatives",
but it didn't find many answers.
(Storm / Grok are of no interest, because
In article 387f23cd-90e2-46fc-8c91-1c2f6b31c...@u13g2000yqg.googlegroups.com,
andrew cooke and...@acooke.org wrote:
However, i am thinking I could really do with:
- a mailing list
- simple bug tracking
- subversion
and am wondering which is the best (free) provider for these (the code
is LGPL
Is SQLalchemy the best / most popular database wrapper ?
SQLAlchemy is the best SQL library I have ever used.
But it may depend on who you ask. For me, what makes SQLAlchemy so
good is the way it allows you to use SQL from within Python. I have
used the ORM side, and that's fine, but it's the
On Feb 1, 8:45 pm, a...@pythoncraft.com (Aahz) wrote:
Note that it's fairly easy to get a new list hosted at python.org, just
ask postmaster. I for one won't participate in any list hosted on
Google because of the need for a Google login.
ah well - i guess you can use pyparsing ;o)
So, I'm using lxml to screen scrap a site that uses the cyrillic
alphabet (windows-1251 encoding). The sites HTML doesn't have the META
..content-type.. charset=.. header, but does have a HTTP header that
specifies the charset... so they are standards compliant enough.
Now when I run this
1 - 100 of 189 matches
Mail list logo