format string which makes the data writable to python.The solution
can be for either python 2.6 or 3.1.
Thanks,
Christopher
--
http://mail.python.org/mailman/listinfo/python-list
Hyuga writes:
> I just wanted to add, in defense of the Chinese written language
> ... that I think it would make a fairly good candidate for use at
> least as a universal *written* language. Particularly simplified
> Chinese since, well, it's simpler.
>
> The advantages are that the grammar is r
ru...@yahoo.com writes:
> Fashion changes in science as well as clothes. :-)
A favourite line of crackpots who think that their ridiculous position
is not held by others merely because of "fashion".
> I wouldn't count
> Sapir-Whorf out yet...
> http://edge.org/3rd_culture/boroditsky09/boroditsky
Robin Becker writes:
> well allegedly, "the medium is the message" so we also need to take
> account of language in addition to the meaning of communications. I
> don't believe all languages are equivalent in the meanings that they
> can encode or convey. Our mathematics is heavily biassed towards
Hendrik van Rooyen writes:
> 2) Is about as useful as stating that any Turing complete language and
> processor pair is capable of solving any computable problem, given enough
> time. So why are we not all programming in brainfuck?
Except the amount of circumlocution one language might happen t
Meeting in October?
Chris Mahan
(818) 671-1709
http://christophermahan.com/
chris.ma...@gmail.com
http://twitter.com/chris_mahan
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I've been trying to decode a series of observations from multiple files
(each file is a different time) and put each type of observation into their
own separate file. The script runs successfully for one file but whenever I
try it for more they just overwrite each other. I'm new to python and I
cloud
observations are going to follow - something that is not always reported at
stations.
I hope this has helped
Chris
On Thu, Oct 14, 2010 at 3:16 PM, John Posner wrote:
> On 10/14/2010 6:08 AM, Christopher Steele wrote:
>
>> Hi
>>
>> I've been trying to decode a se
ot;+c+"-"+c+str(direction)+c
print newline4
dir_out+=newline4+'\n'
fout = open(foutname4,'w')
fout.writelines(dir_out)
fout.close()
newline5 =
message_type+c+str(station_id)+c+newtime+c+lat+c+lon+c+c+"-"+c+
"032&quo
Greetings,
I'm developing a web scraper script. It takes 25 minutes to process 590
pages and ~9,000 comments. I've been told that the script is taking too
long.
The way the script currently works is that the page requester is a
generator function that requests a page, checks if the page cont
Greetings,
I have two functions that I generalized to be nearly identical except
for one line. One function has a yield statement, the other function
appends to a queue.
If I rewrite the one line to be a function passed in as an argument --
i.e., func(data) -- queue.append works fine. If I c
On 6/5/2017 4:55 PM, Gregory Ewing wrote:
Mahmood Naderan wrote:
from a button on a web page, I chose "export as excel" to download
the data.
Do you get an option to export in any other format?
CSV would be best, since you can trivially read that
with Python's csv module.
If Excel is the onl
> On Jun 15, 2017, at 3:24 PM, jlada...@itu.edu wrote:
>
> This is hilarious, I have to share:
>
> https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/
>
> Thanks to Guido for making us all richer!
One commentator on a tech website admonished programmers for wasting
> On Jun 18, 2017, at 11:02 PM, Chris Angelico wrote:
>
> On Mon, Jun 19, 2017 at 3:54 PM, Steven D'Aprano wrote:
>>> With a list? No, I would say it's a bad idea.
>>
>>
>> Why a bad idea?
>>
>> As opposed to "can't be done", or "too hard and slow".
>
> Maintaining a record of list indices i
On Jul 5, 2017, at 6:34 AM, Sam Chats wrote:
> Just curious, is it better, performance wise, to read from a text file (css
> or tsv) compared to reading from a binary pickle file?
I prefer CSV because I can load the file into Microsoft Excel and do a quick
search.
Chris R.
--
https://mail.py
I still need help with this.
I'd like to have the Sample A box place itself in the optimal empty space, so
as not to overly any graphing elements (if possible):
import numpy.random
import matplotlib.pyplot as plt
fig = plt.figure(1, figsize=(5,5))
fig.clf()
ax = fig.add_subplot(111)
ax.set_a
The following code:
from pylab import arange
nSegments=5.0
print arange(0,1.0+1.0/nSegments,1.0/nSegments)
nSegments=6.0
print arange(0,1.0+1.0/nSegments,1.0/nSegments)
nSegments=8.0
print arange(0,1.0+1.0/nSegments,1.0/nSegments)
nSegments=10.0
print arange(0,1
ad_time):
on_snapshot('cpu_temp', col_snapshot, changes, read_time)
cpu_temp_col_ref = db.collection('cpu_temp')
cpu_temp_col_watch = cpu_temp_col_ref.on_snapshot(cpu_temp_on_snapshot)
# End repeated code section
# Start repeated code section
door_status_col_watch.unsubscri
pters = list()
for collection in ['door_status', 'cpu_temp']:
adapters.append(bridge(collection))
while True:
sleep(1)
for adapter in adapters:
adapter.unsubscribe()
Christopher de Vidal
Would you consider yourself a good person? Have you ever taken the 'Good
it in a text-based environment. I've received a
significant amountof Nigerian spam in plain text lately.
> Program listings are much more readable on my website.
Courier is typically the de facto fixed-width font, and I find that it
is rather too wide a font for program listings.
--
Chris
How do I do this using httplib.HTTPConnection and
httplib.HTTPConnection.request()? The library reference only gives a
simple GET example with no header stuff. I tried this, but it didn't work:
conn.request("GET", "/somepage.html", None, {"AUTHORIZATION": "Basic
username:password"})
Thanks for t
There are several GUI toolkits for python. Tkinter comes with python,
but wxPython, a binding to wxWindows is popular, as is pyQT, and pyGTK.
You can also build native win32 GUIs using PythonWin, part of win32all.
A more complete list of options is available here:
http://www.python.org/cgi-bin/moin
I should learn to type faster. You beat me to the response.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
John J. Lee wrote:
> Jonas Galvez <[EMAIL PROTECTED]> writes:
>
>> Christopher J. wrote:
>> > I tried this, but it didn't work:
>> > conn.request("GET", "/somepage.html", None,
>> > {"AUTHORIZATION": "Basic
First off, writing the blob. From what I gather on the internet, I'm
suppose to read the entire file into memory (a Python string), then create
a dbiRaw object with that string and use the dbiRaw object in an insert
statement?
That doesn't sound very efficient to me. What if my computer only has
I just installed python2.4 and used it to install a set of scripts I
had previously been using distutils with. It worked fine, and replaced
the first line with:
#!/usr/local/bin/python2.4
distutils should replace that first line with the location of the
binary used to run setup.py. Are you runnin
I've got python 2.3.3, 2.4, and 1.5.2 (which came preinstalled) on my
linux box. It's redhat 7.2 (I know... I would upgrade, but it would
void my service contract, so I just install things in /usr/local). You
can check if PYTHONHOME or PYTHONPATH are set, which may somehow be
interfering. I don't h
It is possible, though possibly painful, to call java modules from
CPython using JNI. This is more difficult than Jython integration, but
probably required if you want to keep using your extension modules.
The JNI tutorial is available at
http://java.sun.com/docs/books/tutorial/native1.1/index.htm
On Sat, Jan 22, 2005 at 01:54:17AM +0100, Uwe Mayer wrote:
> Any suggestions how I handle uninstallation? This was provided by automake
> rather mechanically. I didn't find a section on that in the distutils
> documentation... :(
I've been using distutils for a couple of projects I've written for
"/usr/sbin/psrinfo -p" will print the number of physical processors on the
system, though it does not indocate if they are on- or off-line. You could also
write an extension which gets processor information using the sys/processor
library. Example code is available in the "p_online" man page.
Chr
On Sun, Jan 30, 2005 at 03:12:06PM -0800, mike wrote:
> I am new with python. Is it possible to have an MFC application and
> develop some module using python? what are the steps in doing this? can
> anybody give me a url or some documentation for this.. thanks..
It is possible to embed python in
On Mon, Jan 31, 2005 at 02:42:11PM -0800, mike wrote:
> I was also advised to build the python core (pythoncore.vcproj) with my
> C++ program. By that way I would not have to load the python core
> anymore during runtime. Is this a good approach?
> I am currently using VC++ 7 and python 2.4.
I'm n
I find myself doing the following very often:
class Struct:
pass
...
blah = Struct()
blah.some_field = x
blah.other_field = y
...
Is there a better way to do this? Is this considered bad programming
practice? I don't like using tuples (or lists) because I'd rather use
symbolic names, ra
On Sun, Feb 06, 2005 at 01:42:22PM -0800, Bobby Owens wrote:
> I've muddled through the python code and figured out parts of it. I've
> now installed Sun Solaris 10 on a VM ware installation successfully
> and can muddle thorough the basics of the o/s. I cant figure out how
> to install python. Fro
On Mon, Feb 07, 2005 at 03:43:15PM -0500, Dan Perl wrote:
>
> "Xah Lee" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > is it possible to write python code without any indentation?
>
> I read just today in a tutorial that "Python on the other hand, does not
> even allow change
On Mon, Feb 07, 2005 at 11:57:02AM -0800, Keith Veleba wrote:
> Background:
> I'm working on a project where I have to do some serious
> multithreading. I've worked up a decorator in Python 2.3.4 to implement
> the lock semantics required for specific functions I want to
> synchronize:
I found Chr
On Sat, Feb 12, 2005 at 07:16:02PM +, ted wrote:
> How does the speed of the Scons build tool compare with Ant?
I would recommend asking this question on [EMAIL PROTECTED] , but my
impressions is that most of the time is probably spent in the compiler. If you
are working on a java project you
On Sun, Feb 13, 2005 at 01:25:02PM -0600, Efrat Regev wrote:
> I would like to recurse through a directory and make files (which match
> a specific criteria) read only. From searching the Internet, I found
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303343
> which shows how to
I get this exception when I run the following code:
Exception exceptions.TypeError: 'super() argument 1 must be type, not None'
in > ignored
Here is the code:
class Txrposdn(PRI.BasicBatch):
def __init__(self, *argv):
super(Txrposdn, self).__init__(*argv)
def __del__(self):
super(T
Fredrik Lundh wrote:
> "Warning: Due to the precarious circumstances under which __del__()
> methods are invoked, exceptions that occur during their execution are
> ignored, and a warning is printed to sys.stderr instead. Also, when
> __del__() is invoked in response to a module be
Jeff Shannon wrote:
> Christopher J. Bottaro wrote:
>
>> 2 Questions...
>> 1) Why does this never happen in C++? Or does it, its just never
>> happened to me?
>> 2) I can understand random destruction of instantiated objects, but I
>> find it weir
Jeff Shannon wrote:
> Python's __del__() is not a C++/Java destructor.
Learn something new everyday... What is it then? Excuse my ignorance, but
what are you suppose to do if your object needs to clean up when its no
longer used (like close open file handles, etc)? Are you use supposed to
make
On Thu, Feb 24, 2005 at 11:11:07AM -0600, Efrat Regev wrote:
> I was wondering whether there are any Python modules for various
> Internet protocols, ...
Twisted (http://twistedmatrix.com/products/twisted) is an event driven
framework for writing network applications. It includes many internet
On Wed, Feb 23, 2005 at 10:54:50PM -0500, Douglas Alan wrote:
> Is there a canonical way of iterating over the lines of a file that
> are null-separated rather than newline-separated?
I'm not sure if there is a canonical method, but I would recommending using a
generator to get something like this
On Thu, Feb 24, 2005 at 02:03:52PM -0500, Douglas Alan wrote:
> Thanks for the generator. It returns an extra blank line at the end
> when used with "find -print0", which is probably not ideal, and is
> also not how the normal file line iterator behaves. But don't worry
> -- I can fix it.
Sorry.
On Fri, Feb 25, 2005 at 07:56:49AM +1100, John Machin wrote:
> Try this:
> !def readweird(f, line_end='\0', bufsiz=8192):
> !retain = ''
> !while True:
> !instr = f.read(bufsiz)
> !if not instr:
> !# End of file
> !break
> !splitstr = ins
On Mon, Feb 28, 2005 at 08:30:59AM -0800, [EMAIL PROTECTED] wrote:
> WHen I use the code below and printing all the results i get this:
> --
> 0 1 10
> 11 2 3
> 4 5 6
> 7 8 9
> --
> But I want
> --
> 0 1 2
> 3 4 5
> 6 7 8
> 9 10 11
> --
If you want your key, value pairs in a certai
On Wed, Mar 02, 2005 at 01:31:04PM +0300, Denis S. Otkidach wrote:
> You are not right, records in BTree (btopen) are certainly sorted. For
> positive integers you can pack keys with struct.pack('>I', value).
You're right... I missed the btopen (rather a key thing to miss I know, but
when you hav
"Brandon J. Van Every" <[EMAIL PROTECTED]> writes:
> Last I looked, 2 years ago?, there were no compiled, open source
> lisps that ran on Windows. Has this changed?
GCL (formerly known as KCL and ACL) has been around since 1984,
and has been available on Windows since 2000.
ECL (another KCL deri
Batista, Facundo wrote:
> [Shawn Milo]
>
> #- I was just wondering what the best books were for learning Python.
> #-
> #- Which books are good for getting started, and which should
> #- be saved for
> #- later, or or not useful except as a reference for the learned?
>
> My particular process did
Hello,
I want to be able to say stuff like "import CJB.ClassA" and "import
CJB.ClassB" then say "c = CJB.ClassA()" or "c = CJB.ClassB()". CJB will be
a directory containing files "ClassA.py" and "ClassB.py".
Now that I think about it, that can't work because Python allows you
imp
bit
digits.
> i needed to implement this myself and was thinking of storing the digits
> of an integer in a list.
That's sort of what Python does except the "digits" are 15 bits,
not base 10. Doing it in base 10 would be a huge pain because of the
problems with base 10->b
Why don't this code work?
import PRI
class Poscdnld_PYIO(PRI.BasicBatch):
def __init__(self, *argv):
super(Poscdnld_PYIO, self).__init__(*argv)
x = Poscdnld_PYIO()
I get this exception:
File "poscdnld_pyio.py", line 52, in __init__
super(Poscdnld_PYIO, self).__init__(*argv)
Typ
Thank you everyone for the help, that cleared it up for me.
Andy Gross wrote:
>
> Florian,
>
> See: http://www.python.org/doc/newstyle.html
>
> /arg
>
>
> On Dec 7, 2004, at 5:38 AM, Florian Lindner wrote:
>
>> Steven Bethard schrieb:
>>> Chri
I have a generator that works like this:
for row in obj.ExecSQLQuery(sql, args):
# process the row
Now there are some querys that run where I know the result will only be a
single row. Is there anyway to get that single row from the generator
without having to use it in a for loop? I wa
Steven Bethard wrote:
> I don't do much with SQL/databases stuff, but if you really know the
> result will be a single row, you can take advantage of tuple unpacking
> and do something like:
>
> row, = obj.ExecSQLQuery(sql, args)
>
> or
>
> [row] = obj.ExecSQLQuery(sql, args)
>
> This has the a
. round(x,n) in (Python 2.4):
multiplies x by 10**n
adds .5
truncates
divides by 10**n.
Don't confuse this trick with giving us the correct result though,
it's still floating point:
>>> round(1.77499, 2)
1.78
--
Christopher A. Craig <[EMAIL PROTECTED]>
&qu
I have a script with a class in it:
class Class:
def f(x, y):
# do something
I start up the debugger like this:
python /usr/lib/python2.3/pdb.py myscript.py
I want to set a conditional breakpoint:
b Class.f, x == 1 and y == 2
...but that doesn't work. How can I do what I
Colin J. Williams wrote:
> Christopher J. Bottaro wrote:
>> I have a script with a class in it:
>> class Class:
>> def f(x, y):
>> # do something
>>
>> I start up the debugger like this:
>> python /usr/lib/python2.3/pdb.py m
help.
Fredrik Lundh wrote:
> Christopher J. Bottaro wrote:
>
>>I installed Python-2.3.4 from source...
>> configure && make && make install
>>
>> Now I want to remove it, but make uninstall doesn't work. How do I
>> uninstall it?
>
>
I use fetchmail in daemon mode and have procmail set up to filter my
email through bogofilter (http://bogofilter.sourceforge.net/). As for
outgoing mail postfix, exim, and sendmail are popular. From my laptop I
do use a python script to cache mail my mail when I'm not connected. I
then use a script
Roy Smith already touched on regular expressions, but as far as
features go, I would say that the real difference between python and
perl is not in the features, but in the philosophy. It seems to me that
any program you can write in python could also be written in perl. What
it comes down to for m
I installed Python-2.3.4 from source...
configure && make && make install
Now I want to remove it, but make uninstall doesn't work. How do I
uninstall it?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
It is possible to store 70,000 items in a list (try "l =
range(7)"), but the best way to check if you can store all the
items you need to store is to try it. After all if they are all very
large you might potentially run out of memory.
Chris
--
http://mail.python.org/mailman/listinfo/python-
e are some very real performance reasons to
do it in C rather than Python (i.e. I'm manipulating the internals of
the numerator and denominator by hand for performance in the GCD
function)
--
Christopher A. Craig <[EMAIL PROTECTED]>
"I affirm brethren by the boasting in you which
Python's base64 module encodes and decodes differently than PHP's. Python's
docs says that it ahere's to RFC1521 (sept 1993), while PHP's adheres to
RFC2045 (nov 1996). Is there any Python module that uses the new standard?
Why is Python using the old standard anyways?
Thanks.
--
http://mail.
Christopher J. Bottaro wrote:
> Python's base64 module encodes and decodes differently than PHP's.
> Python's docs says that it ahere's to RFC1521 (sept 1993), while PHP's
> adheres to
> RFC2045 (nov 1996). Is there any Python module that uses the new
&g
Fredrik Lundh wrote:
> Christopher J. Bottaro wrote:
>> Python's base64 module encodes and decodes differently than PHP's.
>
> really?
Yeah, weird, huh? Actually the problem is that Python puts newlines at
every 76th char. How do I stop Python from doing that? I
Christopher J. Bottaro wrote:
>
>
> Fredrik Lundh wrote:
>
>> Christopher J. Bottaro wrote:
>>> Python's base64 module encodes and decodes differently than PHP's.
>>
>> really?
>
> Yeah, weird, huh? Actually the problem is that Py
I am trying to help a buddy out. I am a C++ on Windows guy. This buddy
of mine is learning Python at work on a Mac. I figured I could
contribute with non language specific questions and such.
When learning any new language, I said, the first step would be a Hello
World program. Let's see if we
On 1/24/2015 7:12 PM, Terry Reedy wrote:
On 1/24/2015 6:53 PM, Christopher J. Pisz wrote:
I am trying to help a buddy out. I am a C++ on Windows guy. This buddy
of mine is learning Python at work on a Mac. I figured I could
contribute with non language specific questions and such.
When
Hi,
I can't for the life of me figure out how to get the post vars when using
basehttpserver. Here's my code:
class MyHandler(BaseHTTPRequestHandler):
def do_POST(self):
print self.path, self.command
if self.rfile:
print self.rfile.read()
else:
print 'no
This post is just the culmination of my thoughts and discussions with my
coworkers on Python. If you are not interested, please skip over it.
At my work, we are developing a product from scratch. It is completely
modular and the modules communicate via SOAP. Because of that, we can
implement in
Christopher J. Bottaro wrote:
> ...blah blah blah...
Heh, silly me...there is already a huge thread about this...kinda.
The intricacies of the computing term "greedy" aside, yes I think the Python
documentation should generally be better. What that means, I have no idea.
All I k
[EMAIL PROTECTED] wrote:
> I think Python's doc really rock. It's odd, why do you refer to the
> tutorial when the lib API is what I'd consider "the docs".
I guess I mean Python needs a manual, which is basically what the tutorial
serves as, but its not comprehensive and organized like how (I thi
Steven Bethard wrote:
> Christopher J. Bottaro wrote:
>> After we were done, we talked about the pros and cons of the languages.
>> Funny, the con of Python (documentation) is PHP's strong point. The PHP
>> manual is extremely easy to navigate and its search feature wor
SÃbastien BoisgÃrault wrote:
>
> "Manual" == scope of the *Lib Reference* + informal style of the
> *Tutorial*,
>
> Right ?
Yes! That sounds good. "Informal style" yes, but "tutorial style" no. I
shouldn't be there to teach like the tutorial, but for reference. And of
course, the manual sho
rbt wrote:
> Christopher J. Bottaro wrote:
>> Christopher J. Bottaro wrote:
>>
>>
>>>...blah blah blah...
>>
>>
>> Heh, silly me...there is already a huge thread about this...kinda.
>>
>> The intricacies of the computing term "
Steven Bethard wrote:
> Ivan Van Laningham wrote:
>> The Python docs are not ideal. I can never remember, for instance,
>> where to find string methods (not methods in the string module, but
>> methods with '')
>
> Hmmm... Well going to http://docs.python.org/ and typing "string
> methods" into
Steven Bethard wrote:
> Christopher J. Bottaro wrote:
>> Contrast that with Python. First off there is no "search" mechanism
>> built into the documentation page (yes I know you can google it, but that
>> just doesn't feel right).
>
> Um, are you
I actually want all the parent classes too. So if D derives off C derives
off B derives off A, I ultimately want a tuple ('D', 'C', 'B', 'A').
For those of you following the Python Documentation thread, this is a good
example of how the PHP manual is "better". I found how to do this in a few
sec
Bengt Richter wrote:
> >>> type(obj)
>
> >>> type(obj).mro()
> [, , ,
> [, ]
> >>> tuple(x.__name__ for x in type(obj).mro())
> ('A', 'B1', 'B2', 'C', 'object')
Wow awesome, thats exactly what I was looking for. I hate to bring up the
documentation thing again...but.where the hell is
Christopher J. Bottaro wrote:
> Bengt Richter wrote:
>
>> >>> type(obj)
>>
>> >>> type(obj).mro()
>> [, , ,
>> [, ]
>> >>> tuple(x.__name__ for x in type(obj).mro())
>> ('A', 'B1', 'B2
Hello fellow Pythonists,
Is there such a thing? My work is thinking of maybe experimenting with
Ruby on Rails for some lesser projects. Naturally, I wonder if Python can
do as good a job or better...
Thanks for the info,
-- C
--
http://mail.python.org/mailman/listinfo/python-list
bruno modulix wrote:
> Christopher J. Bottaro wrote:
>> Hello fellow Pythonists,
>> Is there such a thing?
>
> As what ?
> Oops, sorry, the question is in the subject... May be helpful to repeat
> it in the body.
>
> You may want to have a look at Subwa
I want to get the name of the function from within the function. Something
like:
def myFunc():
print __myname__
>>> myFunc()
'myFunc'
Really what I want to do is to easily strip off the prefix of a function
name and call another function. Like this:
def prefix_myFunc(a, b, c):
name = __myn
Paul McGuire wrote:
> we just recently on
> this forum had someone ask about "polymorphism" when what they really
> meant was "overloaded method signatures." (It is even more unfortunate
> that language features such as overloaded method signatures and
> operator overloading get equated with OO
Steven Bethard wrote:
> Christopher J. Bottaro wrote:
>> I want to get the name of the function from within the function.
>> Something like:
>>
>> def myFunc():
>> print __myname__
>>
>>>>> myFunc()
>> 'myFunc'
>
&
Steven Bethard wrote:
[...snip...]
> Yes, has's suggestion is probably the right way to go here. I'm still
> uncertain as to your exact setup here. Are the functions you need to
> wrap in a list you have? Are they imported from another module? A
> short clip of your current code and what you wa
Steven Bethard wrote:
...snip...
> Something like this might work:
>
> py> class C(object):
> ... def func_a(self):
> ... print "func_a"
> ... def func_b_impl(self):
> ... print "func_b"
> ... raise Exception
> ... def __getattr__(self, name):
> ... f
Kent Johnson wrote:
...snip...
>> I guess I'm just lazy, but I don't want to write the wrapper func for
>> each
>> new func I want to add. I want it done automatically.
>
> You can do this almost automatically with a decorator:
>
> def in_try(func):
> def wrapper(*args, **kwargs):
>
Steven Bethard wrote:
> Christopher J. Bottaro wrote:
>> Kent Johnson wrote:
>>>class C(object):
>>>@in_try
>>>def func_a(self):
>>>print "func_a"
>>>
>>>@in_try
>>>def func_b(sel
flamesrock wrote:
> ok, so to my knowledge, object oriented means splitting something into
> the simplest number of parts and going from there.
That sounds like normal top down imperative (procedural) programming to me.
> But the question is- when is it enough?
Thats a judgment call on the prog
Hey again Steven,
I'm still having problems...
Steven Bethard wrote:
> Something like this might work:
>
> py> class C(object):
> ... def func_a(self):
> ... print "func_a"
> ... def func_b_impl(self):
> ... print "func_b"
> ... raise Exception
> ... def _
Christopher J. Bottaro wrote:
> The problem is:
>>>> c.func_b.__name__
> 'wrapper'
>
> That messes up SOAPpy's RegisterFunction() method which apparently depends
> on the __name__ of the function to publish it as an available SOAP
> function.
>
Hi,
Why is there no support for explicit transactions in the DB API? I mean
like transaction() to start the trans and commit() and rollback() would end
the trans or something.
The reason why I ask is because I wrote a daemon that interacts with a
Postgres DB. The value of CURRENT_TIMESTAMP accor
Magnus Lycka wrote:
> You might have spotted a fairly nasty bug there!
> PostgreSQL violates the SQL standards by running in autocommit mode
> unless you explicitly perform its non-standard BEGIN command. If you
> are right about the behaviour you describe, the PostgreSQL binding
> for Python t
Dear list,
I am attempting to build a python based project off SourceForge, iTorrent (
http://sourceforge.net/project/showfiles.php?group_id=163841&package_id=185388&release_id=415006).
The project is built with py2exe, includes bittorrent 4.4 and appears to
require a number of dependent modules.
Its called mylyn now. You can get it from here:
http://www.eclipse.org/mylyn/dl.php
Best,
Chris
On 6/19/07, Danyelle Gragsone <[EMAIL PROTECTED]> wrote:
My first post!
Greetings all,
I am trying to get pydev up and running in linux. I have it up and
running in windows but for some strange
Here is a file "test.csv"
number,name,description,value
1,"wer","tape 2"",5
1,vvv,"hoohaa",2
I want to convert it to tab-separated without those silly quotes. Note
in the second line that a field is 'tape 2"' , ie two inches: there is
a double quote in the string.
When I use csv module to read th
401 - 500 of 518 matches
Mail list logo