"x""") can be used to block out huge sections of code during
testing, where you'd have to put a # in front of every line otherwise.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
a string, as in:
print """
...
"""
I don't really understand your original problem, but perhaps this will help get
you rolling again.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
me of the other internals you are talking about:
>>> import inspect
>>> help(inspect)
Back to exceptions, you can also provide your own global exception handler by
overriding sys.excepthook (drop in your own function).
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
gt;>> grid.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.onCellSelected)
And, your questions will be better on the wxpython-users list at
http://wxpython.org/maillist.php
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
Paul McNett wrote:
> lux wrote:
>
>>How can I capture the EVT_SET_FOCUS on a wxGrid?
>
>
> If you want to catch when the grid as a whole gets the focus, use:
>
> >>> grid.Bind(wx.grid.EVT_SET_FOCUS, self.onGridFocus)
Oops, my bad:
>>> grid.Bi
ows, and I made the guess that
the first window to get the focus is actually that little corner window at the
intersection of the column labels and the row labels. Try this instead:
>>> g.GetGridCornerLabelWindow().Bind(wx.EVT_SET_FOCUS, onGridFocus)
--
Paul McNett
http://paulmcnet
._lastGridFocusTimestamp = time.time()
if now-prev < .05:
return
self.raiseEvent(dEvents.GotFocus, evt)
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
for everything wrong with wxPython/wxWidgets,
I'd
probably not get anything else done. But on the other hand you couldn't force
me
to stop using wxPython if you tried!
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
server machine
by name, your name server addresses (/etc/resolv.conf on Linux).
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
you are on Windows, please open a command window (Start|Run and then type
'cmd') and type:
route print
On Linux or Mac, the command would simply be:
route
Do this on both computers, and post the output here. If you are using ip
addresses only in your URL's the problem isn
s worth: I'm on Ubuntu (a Debian derivative), using Python
2.4.2 and wxPython 2.6. The wxPython was installed using 'apt-get install
python-wxGtk2.6'.
So I don't know why you say you need to use Python 2.3 as I don't even have
that
on my system.
--
Paul
6 should be used. But, I
don't
know if it is available for Python 2.4 under Debian (or Ubuntu, for that
matter).
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
look because of their own bigoted ideas, I say Python
doesn't want that type of person to begin with. Perhaps that sounds a bit
elitist, but if people would just put their preconceptions aside, they'd
quickly
realize that Python really does get block indentation (and a who
ludicrous: the only programming language, for
> example, which does not need documentation is the natural language, and
> that contains so many ambiguities that humans often get instructions wrong.
Indeed, there is only one user interface that needs no documentation whatsoever.
--
Paul
worlds, because let's face it, tabs do make slightly more sense.
Finding out that Emacs has been doing this by default makes me feel better
about
admitting this publicly.
There are definitely issues with mixing whitespace like this, especially is
someone is encountering it without understanding it. But Python handles it just
fine.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
.computronix.com/utilities.shtml
ODBC isn't really the best solution for Python programs.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
database
queries, or both.
Also, have you run through the tutorial on python.org?
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
issuing:
import XXX
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
think there may be
possibility for some mindshare between the projects, but it is, alas,
always easier to reinvent the wheel yourself than to try to design by
committee.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
Admittedly, installing from source is more difficult than any other
project I've found, but still doable.
Tkinter was a contender, but unfortunately while it is easy to use, it
doesn't provide a modern GUI look and feel. That was a showstopper, at
least for me.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
f
them, so that an individual developer can "set it and forget it" for
each individual app. There are other settings as well, such as event
logging, that are useful during testing - we should consolidate all
these options into a setup screen of some sort. All in good time!
--
Paul McNe
o.ui.dForm):
def afterInit(self):
self.addObject(MyTextBox)
def initProperties(self):
self.Caption = "Ground Control To Major Tom"
app.MainFormClass = MyForm
app.start()
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
> Paul McNett <[EMAIL PROTECTED]> writes:
>
>>On Windows and Mac, you download the package and run through the wizard.
>
> Which package? I'm looking at the sourceforge download site, and don't
> see any packages for Python 2.4 on OS X 10.4
In that situation, I had enough control over the deployment
to also ship a small smtp client, and automatically email the error
without requiring any interaction at all. Clients were impressed when
I'd already have a fix for the problem before they even notified me of
the issue!
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
uch need to build from
>>>source if you want the latest and greatest.
>
>
> FWIW, Tiger ships with wxPython pre-installed.
Yes, but it's an older version... isn't it 2.4?
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
TED]:~/projects/dabo/dabo/ui/uiwx $ python fileB.py
myInstance is None
[EMAIL PROTECTED]:~/projects/dabo/dabo/ui/uiwx $ python fileA.py
myInstance is <__main__.Test object at 0xb7dfcf6c>
Is this what you want? BTW, what you call "files", we refer to as
"scripts" (if run
e):
if result is None:
result = []
Others will certainly post links to the python docs that explain this.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
e AppWizard in daboide/wizards has also been updated to produce even
better generated applications, ones that give the developer a starting
structure that is relatively easy to tweak, modify, and augment.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
the StyledTextControl, which is by far
much faster on Windows, and with lots of styled text dog-slow on Linux.
Wx does use the native underlying toolkit for the platform (Qt is
owner-drawn), which can cause some platform inconsistencies.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
Gensek wrote:
I have a grid. I want to sort it when a column label is clicked. I know
about the EVT_GRID_LABEL_LEFT_DCLICK event, but that is not enough. I
do not merely need to know that a label was clicked. I need to know
which label was clicked. I do not know how to do that. I suspect you
might
Hi,
On Windows, os.startfile() does what I want:
os.startfile("myDocument.pdf")
That launches the default PDF viewer on the system in a separate
process. Perfect.
On Linux, I understand that there really isn't a standard for
determining a default application for a given file type (indeed, there
On 5/29/14, 7:47 PM, Chris wrote:
I'm trying to read ten 200 MB textfiles into a MySQL MyISAM database
(Linux, ext4). The script output is suddenly stopping, while the Python
process is still running (or should I say sleeping?). It's not in top,
but in ps visible.
Does it stop in the same place
On 5/31/14, 11:36 AM, tokib...@gmail.com wrote:
Suds is defacto python SOAP client, but it does not mainte recent few years.
Why?
Is it really the defacto? It seems like I've heard more about
pysimplesoap, and looking at GitHub there have been commits in the past
4 days.
As far as why it h
On 6/18/14, 10:20 AM, cutey Love wrote:
I'm trying to read in 10 lines of text, use some functions to edit them and
then return a new list.
How is it that you are opening the file, and iterating the contents?
The problem is my program always goes not responding when the amount of lines
On 6/16/14, 11:20 PM, Jaydeep Patil wrote:
I have two powerpoints, which consists of images in each slide.
I need to read each powerpoint, copy images from both powerpoint & paste these
images into output powerpoint side by side.
How should i do thism using python?
The repoisition of shapes see
On 6/18/14, 3:32 PM, cutey Love wrote:
Hi, thanks for the replies,
I mean windows displays "Not responding close the program now"
How can I do it asynconistrically?
It's simple code just open file, loop through line by line and do some
comparons with the string.
To get anything better from
On 6/18/14, 4:03 PM, cutey Love wrote:
I'm trying to write data to a text file
But I'm getting the error:
TypeError: invalid file: <_io.TextIOWrapper
Always better to err on posting too much context (the entire traceback)
than too little.
Code is
def saveFile():
file_path = filedia
On 6/27/14, 2:19 AM, suburb4nfi...@gmail.com wrote:
Hello I finished the codeacademy python course a week ago and my goal is to
start developing websites (both back and front end) ,my question is do i start
the web dev tuts and learn the holes of knoledge on the go or continue to learn
python?
On 6/27/14, 11:12 AM, alister wrote:
On Fri, 27 Jun 2014 08:18:24 -0700, Paul McNett wrote:
On 6/27/14, 2:19 AM, suburb4nfi...@gmail.com wrote:
Hello I finished the codeacademy python course a week ago and my goal
is to start developing websites (both back and front end) ,my question
is do i
On 7/17/14, 12:30 PM, Rick Johnson wrote:
You know, you would fit in nicely in the American public
school system, since American teachers are not only free of
the requirement of "teaching", they are actually*COMPELLED*
not to do so by the greedy unions.
Hi Rick,
I know a lot of American public
return ret
v = property(_getv)
class B(A):
_v = [4,5,6]
b = B()
print b.v
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
ake
a look at this:
class A(object):
_v = [1,2,3]
def _getv(self):
print self._v ## hey, look, I'm [4,5,6]!!!
v = property(_getv)
class B(A):
_v = [4,5,6]
b = B()
print b.v
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
_mro__ tree backwards.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
> self.connect(fileID, mode= 'w') # open the sheet in the
'dOH! . Change to self.connect(fileId, ...)
:)
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
Alexander Klingenstein wrote:
> I need to take a bunch of .doc files (word 2000) which have a little text
> including some tables/layout and mostly pictures and comvert them to a pdf
> and extract the text and images separately too. If I have a pdf, I can do
> create the html with pdftohtml call
kath wrote:
> Hello, sorry about the lengthy message.
>
> I finding difficult to execute this program. The wx.Notebook i created
> is coming on the splitted frame(self.p2). How do I that. I am started
> to learn wxPython, and when I run the code, the code doesnot close
> gracefully, it throughs m
Michael B. Trausch wrote:
> GISDude wrote:
>> Mike,
>> I totally forgot that MS Works was out there. Haven't used that one in
>> about 6 or 7 years. Honestly, your best bet is to convert to .csv or
>> some delimited .txt file. Once that is done, all your rows/columns will
>> be "nice and neat" .
>>
1, u'Ziggy Marley', 2, u'Nuevo Reggae')]
>>> cur.execute("select customers.id as cust_id, customers.name as
cust_name, categories.id as cat_id, categories.name as cat_name from
customers inner join cust_cat on cust_cat.cust_id = customers.id inner
join categories on categories.id = cust_cat.cat_id where categories.id =
'3' order by 2,4")
>>> cur.fetchall()
[(2, u'David Bowie', 3, u'Male Singers'), (1, u'Ziggy Marley', 3, u'Male
Singers')]
>>> cur.execute("select customers.id as cust_id, customers.name as
cust_name, categories.id as cat_id, categories.name as cat_name from
customers inner join cust_cat on cust_cat.cust_id = customers.id inner
join categories on categories.id = cust_cat.cat_id where categories.id =
3 order by 2,4")
>>> cur.fetchall()
[(2, u'David Bowie', 3, u'Male Singers'), (1, u'Ziggy Marley', 3, u'Male
Singers')]
If I have skipped the test case that will fail, please enlighten me.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
own url type: List
You were expecting u to be a url string like "http://google.com";, but it
looks like it is actually a list. I'm not familiar with package xlrd but
cell_value() must be returning a list and not a cell value. Presumably,
the list contains the cell value probably in element 0. Put in a print
statement before your call to urlopen() like:
print u
You'll likely discover your error.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
--
http://mail.python.org/mailman/listinfo/python-list
bill ramsay wrote:
> none of this matters, all i am trying to find out is whether or not
> the local MSDE is actually running.
If it is a local MSDE then you may be able to rely on the connection
being refused if the server isn't running.
#-- begin
import socket
host = "127.0.0.1"
port = 1433
Luc Heinrich wrote:
> Peter Decker <[EMAIL PROTECTED]> wrote:
>
>> You're full of it. I routinely write GUI apps in Dabo for both Windows
>> and Linux users, and they look just fine on both platforms.
>
> Oh, I'm sure you do. Now go try to run one of your Dabo apps on a Mac
> and see how it looks
Steven D'Aprano wrote:
> But I think we all agree that mixing tabs and spaces is A Very Bad Thing.
I like mixing tabs and spaces, actually. Tabs for indentation, and
additional spaces to make the code "look pretty". Somebody please tell
me why this is bad and I'll stop.
class Apple(object):
Sebastian 'lunar' Wiesner wrote:
> Paul McNett <[EMAIL PROTECTED]> typed
>
>> Steven D'Aprano wrote:
>>> But I think we all agree that mixing tabs and spaces is A Very Bad
>>> Thing.
>> I like mixing tabs and spaces, actually. Tabs for ind
Pawel wrote:
> I plan to make Visual Reporting Editior, a new product for
> corporate-class systems. Data will be in XML and in my application,
> designer should be able to make fascinating templates of reports. I
> will use Python and MSVS 2005 Pro. My question is, which libaries will
> be useful
john peter wrote:
> in java, i can prevent a block of code from executing
> by bracketing the block with comment indicators, as shown
> below:
> /*
> statement1 will not execute;
> statement2 will not execute;
> */
> statement3 will execute
>
> is there a similar mechanism in python, other
John Salerno wrote:
> But I read in the PEP that spaces are recommended over tabs. If this is
If you like tabs, stick with tabs. There isn't any reason to use spaces
unless your boss is demanding it. Tabs are the slightly better choice,
in my humble opinion.
That said, you should be able to te
Joseph Garvin wrote:
> I was looking at this earlier today because I was curious how they were
> going to handle performance concerns (both due to Python and bandwidth).
> I'm having trouble understanding all of the details -- what is the
> significance of the use of a torus for the world space? Do
Ville Vainio wrote:
>>>>>>"Paul" == Paul McNett <[EMAIL PROTECTED]> writes:
>
>
> Paul> Only, I couldn't hear what they said back to me because I
> Paul> don't have UDP port 6000 open on my firewall and forwarding
> Pau
Aahz wrote:
> In article <[EMAIL PROTECTED]>,
> Paul McNett <[EMAIL PROTECTED]> wrote:
>
>>[1] Although, some ISP's are taking it upon themselves to drop or reject
>>port 25 traffic. A wrong but understandable stopgap solution to the
>>problem
Jeremy Bowers wrote:
> The problem is that if you're really looking for performance, it may
> differ based on the characteristics of the text and the quality of the
> target computer, the platform (which you don't mention; GTK may scream in
> Linux and make you scream in Windows...), etc., and ther
Terry Reedy wrote:
> While the above is not directly on-topic for c.l.p, it does suggest
> possible design considerations for users of the socket module and packets
> built on top ;-).
> -- including Solipsis, which is such.
I contributed to the thread going kind of off-topic, so I'll just follo
Rocco Moretti wrote:
> Dave Brueck wrote:
>
>>Grant Edwards wrote:
>>
>>>[In case you can't tell, I hate web forums. I've never seen a
>>>single one with a suable UI.]
>>
>>Amen! Generally they are an abomination.
>
> It may seem snobish, but my main gripe with most of the web-forums I've
> see
Ximo wrote:
> Hello, I'm programing an advanced calculator, and I have many problems with
> the execution errors, specually with the division by 0.
>
> And my question is how can show the execution error whitout exit of the
> program, showing it in the error output as
Wrap the math in a try/ex
Terry Hancock wrote:
> On Wednesday 25 May 2005 08:27 am, [EMAIL PROTECTED] wrote:
>
>>Is there an impact analysis tool out there that can cross reference
>>python -- VB has a couple of these tools (eg. Visual Expert)
>
> I could be wrong, but my first impression is that that must be
> VB jargon
Sriek wrote:
> hi,
> i come from a c++ background. i ws happy to find myself on quite
> familiar grounds with Python. But, what surprised me was the fact that
> the __init__(), which is said to be the equivlent of the constructor in
> c++, is not automatically called.
What do you mean by automati
for very
> little gain.
Don't we already have multi-line comments in the form of string literals?
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
l and recording a macro, and then
taking a look at the vbscript the macro recorded.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
te a newbie in python so I would appreciate any help on this.
The above should get you started, even though it won't satisfy your
exact needs.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
x27;d love to have all of Python
available as my unix shell, while still doing shell-type stuff such as
traversing directories, launching applications, etc.
There's likely a project that does this already that I'm just unaware of.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
s is technically unsafe,
as it is theoretically possible that another process would create a file
of the same name in the same directory and then try to use it, resulting
in a race condition between the two processes. This is practically
unlikely, however, and I'm a pragmatist.
--
Paul McNet
those changes down upon exit of the
main application. I just saved the file locations locally in an INI file.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
x27;s requirement is specifically for winword on Windows, a
more specific approach could be used that doesn't involve saving any
temporary files at all, such as by using COM automation to build the
document. But I hate nonportable solutions! :)
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
le to
> the already running instance so that I can push it to the foreground
> as well.
There are ways using win32 to get the handle to the existing process,
but I'm too rusty with win32 to offer that part of the solution.
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
> @pv@ 0 @db.changex@ 44 44 @mh@ @mh@ 1118875308 0 @ :@@: :: @
>
> (this is from a perforce journal file, btw)
--
Paul McNett
http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
Tempo wrote:
> Has anyone sucesfully built a *.exe file on a mac operating system
> before from a *.py file? I have been trying to do this with
> pyinstaller, but I keep getting errors and I don't know how to install
> UPX properly. I tried putting the linux UPX folder in my python 2.4
> directory,
Sherm Pendley wrote:
> "Gabriel Genellina" <[EMAIL PROTECTED]> writes:
>
>> En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <[EMAIL PROTECTED]> escribió:
>>
>>> Tempo wrote:
>>>> Has anyone sucesfully built a *.exe file on a mac operati
John Fisher wrote:
> Ted <[EMAIL PROTECTED]> wrote:
>
>> On Jun 14, 1:31 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote:
>>> John Fisher wrote:
Hi Groupies,
I have an Intel Macbook running OS X 10.4.
It came installed with Python 2.3.5. I have since installed MacPython
with version
meg99 wrote:
> I just downloaded 2.5 and read the readme file. It says "Before you
> can build Python, you must first confiigure itStart by running the
> script "./configure".
>
> I can't find "./configure"
>
> I am running Windows XP SP2
You downloaded the wrong file. You want the Windows
meg99 wrote:
> On Jul 12, 4:24 pm, Paul McNett <[EMAIL PROTECTED]> wrote:
>> meg99 wrote:
>>> I just downloaded 2.5 and read the readme file. It says "Before you
>>> can build Python, you must first confiigure itStart by running the
>>> scri
meg99 wrote:
> On Jul 12, 4:35 pm, Paul McNett <[EMAIL PROTECTED]> wrote:
>> meg99 wrote:
>>> On Jul 12, 4:24 pm, Paul McNett <[EMAIL PROTECTED]> wrote:
>>>> meg99 wrote:
>>>>> I just downloaded 2.5 and read the readme file. It says "B
Frank Millman wrote:
> I guess the point of all this rambling is that my thought process is
> leading me towards my third option, but this would be a bit of work to
> set up, so I would appreciate any comments from anyone who has been
> down this road before - do I make sense, or are there better w
[EMAIL PROTECTED] wrote:
> Just wondering on what peoples opinions are of the GUIs avaiable for
> Python?
Python has, I believe, 4 compelling choices for GUI library: Tkinter,
wxPython, PyQt, and PyGTK. Like everything in life, each has their
relative merits and downsides. Briefly, here are my f
Peter Decker wrote:
> On 5/22/07, daniel gadenne <[EMAIL PROTECTED]> wrote:
>
>> I'm considering moving over to dabo for wxpython development.
>> However I do not write traditional database applications
>> à la foxpro (I'm a 20 years user of fox...) anymore.
>> Only xml-fed applications.
>>
>> I'm
[EMAIL PROTECTED] wrote:
> We have been using the Google recommended python script for about a
> year.
Which script would that be? Googling for 'python script' yields approx.
27 million hits.
> We recently realized that the script was not crawling our sites
> url's, but just our folders which r
gert wrote:
> I made something that i was hoping it could make people happy enough
> so i could make a living by providing support for commercial use of
> http://sourceforge.net/projects/dfo/
>
> But in reality i am a lousy sales men and was wondering how you people
> sell stuff as a developer ?
Chris Fonnesbeck wrote:
> I have a script set up to perform UPDATE commands on an sqlite database
> using the sqlite3 module. Everything appears to run fine (there are no
> error messages), except that none of the UPDATE commands appear to have
> actually updated the table. If I run each command
Paul Rubin wrote:
> Frank Millman <[EMAIL PROTECTED]> writes:
>> Any suggestions will be much appreciated.
>
> Why on earth don't you write the whole thing as a web app instead of
> a special protocol? Then just use normal html tags to put images
> into the relevant pages.
I believe he has a ful
Calvin Spealman wrote:
> On 7/22/07, Paul McNett <[EMAIL PROTECTED]> wrote:
>> Paul Rubin wrote:
>> > Frank Millman <[EMAIL PROTECTED]> writes:
>> >> Any suggestions will be much appreciated.
>> >
>> > Why on earth don't you writ
Steve Holden wrote:
> When someone starts to push the limits of PHP they either continue to
> push until they get where they want to be (producing an ugly or
> ill-maintained bunch of code along the way) or they choose a more
> appropriate tool.
>
> The latter behavior is typical of programmers
Niklas Ottosson wrote:
> I need to get hold of the mouse position and also need to be able to
> change it. In windows I have used ctypes.windll.user32.getCursorPos()
> and ctypes.windll.user32.setCursorPos() with great success in my program
> but now I also need to make a Mac OS X version of the
I administer email for a few clients of mine, using Postfix. One of the
policies that is in place is SPF-checking, and rejecting messages
accordingly. This has been working well for months.
However, today a user called me to complain that they weren't able to
get confirmed with PayPal to set up
Greg Lindstrom wrote:
> This may be more of a Linux question, but I'm hoping some of you may be
> able to help me.
>
> I have a python (2.4) routine running on Gentoo Linux. It creates a
> file and, after the file is complete, renames the file using the
> os.rename() command. When I run the f
Jia Lu wrote:
> I donot want to use a real DB like MySQL ... But I need something to
> save about more than 1000 articles.
> Is there any good ways?
(in Python 2.5):
#-- begin
import sqlite3.dbapi2 as sqlite
con = sqlite.connect("path/to/new/filename.db")
cur = con.cursor()
cur.executescript("
[EMAIL PROTECTED] wrote:
> I am working on a loop for my code and was wondering if there is a way
> to limit the number of lines read through? I'd hate to cut the test
> file in order to run the code in the testing phase. Can you add a
> value in the parenthesis of the readline() function?
>
> t
Lamonte Harris wrote:
> Like say you don't got python installed, but you want to test code is
> there a way?(School)
Like way, dude, check this out:
http://www.portablepython.com/
--
pkm ~ http://paulmcnett.com
--
http://mail.python.org/mailman/listinfo/python-list
Matthieu Brucher wrote:
> I want to create a temporary database that is downloaded for the net. So
> I want to use a temporary file that will be deleted at the end of my
> program. For this, I wanted to use tempfile.TemporaryFile. The problem
> with Windows is that I can't give to sqlite3.connec
Matthieu Brucher wrote:
> Are you aware that you can do an in-memory database (IOW no file at
> all)?
>
> cur = sqlite.connect (":memory:")
>
>
> Yes, but in this case, how can I use the DB that I downloaded from the net ?
Ah, sorry, I guess I missed that part.
> If this is the way
Matthieu Brucher wrote:
> > If this is the way of using sqlite, it is still cumbersome as a
> lot of
> > other classes that work on files can work on file-like (and isn't
> it the
> > whole point of Python ;) ?
>
> I don't think that sqlite can work on streams, or on fil
[EMAIL PROTECTED] wrote:
> On Oct 19, 7:32 am, Florian Lindner <[EMAIL PROTECTED]> wrote:
>> Hello,
>> I have a string:
>>
>> INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`,
>> `gid`, `password`) VALUES (%s, %s, %s, %s, %i, %i, %s)
>>
>> that is passed to a MySQL cursor from MySQ
Abandoned wrote:
> Hi..
> I want to do this:
> for examle:
> 12332321 ==> 12.332.321
>
> How can i do?
Assuming that the dots are always in the 3rd and 7th position in the string:
def conv(s, sep="."):
l = [s[0:3], s[3:6], s[6:]]
return sep.join(l)
print conv("12332321")
--
pkm ~ htt
1 - 100 of 133 matches
Mail list logo