On Mar 15, 7:14 am, Tim Roberts wrote:
> hiral wrote:
> >...
> >Output:
> >real 0.0m0.010002421s
> >user 0.0m0.0s
> >sys 0.0m0.0s
>
> >Command:
> >$ time ls
>
> >Output:
> >real 0m0.007s
> >user 0m0.000s
> >sys 0m0.000s
>
> >Is this the intended behaviour?
>
> What is it th
In China these video can not watch at all. I must spent 3 days to download
it...
On Mon, Mar 15, 2010 at 5:19 AM, Terry Reedy wrote:
> On 3/14/2010 2:41 PM, Terry Reedy wrote:
>
>> On 3/14/2010 11:14 AM, David Boddie wrote:
>>
>
> You should still be able to get at the videos themselves by insp
On Sun, Mar 14, 2010 at 6:55 AM, D'Arcy J.M. Cain wrote:
> On Sat, 13 Mar 2010 23:42:31 -0800
> Jonathan Gardner wrote:
>> On Fri, Mar 12, 2010 at 11:23 AM, Paul Rubin wrote:
>> > "D'Arcy J.M. Cain" writes:
>> >> Just curious, what database were you using that wouldn't keep up with
>> >> you?
Alf P. Steinbach wrote:
* Sang-Ho Yun:
I learned that I can check the existence of a file using
os.path.isfile("filename").
What if I need to check if there is a file that contains "HV" in the
filename? What should I do?
from __future__ import print_function
import os
for filen
* Sang-Ho Yun:
I learned that I can check the existence of a file using
os.path.isfile("filename").
What if I need to check if there is a file that contains "HV" in the
filename? What should I do?
from __future__ import print_function
import os
for filename in os.listdir( "." ):
* Alex Hall:
Hi all,
I have a dll I am trying to use, but I get a Windows error 126, "the
specified module could not be found". Here is the code segment:
nvdaController=ctypes.windll.LoadLibrary("nvdaControllerClient32.dll")
I have the specified dll file in the same directory as the file
I learned that I can check the existence of a file using
os.path.isfile("filename").
What if I need to check if there is a file that contains "HV" in the
filename? What should I do?
Thank you,
Sang-Ho
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
I found this PyCon2010 presentation to be excellent:
The Mighty Dictionary, Branden Craig Rhodes, 30 min.
http://pycon.blip.tv/file/3264041/
Even knowing Python for over a decade, I learned a few things.
Terry Jan Reedy
Is this available as a paper?
The HTMLTemplate module is useful for static web page generation.
It doesn't do much. It's not a "content management system".
If you just need to generate a page with some data items filled in, it's fine.
If you need more than that, there are bigger packages, but they have more
baggage.
Hi all,
I have a dll I am trying to use, but I get a Windows error 126, "the
specified module could not be found". Here is the code segment:
nvdaController=ctypes.windll.LoadLibrary("nvdaControllerClient32.dll")
I have the specified dll file in the same directory as the file trying
to use said d
hiral wrote:
>...
>Output:
>real0.0m0.010002421s
>user0.0m0.0s
>sys 0.0m0.0s
>
>
>Command:
>$ time ls
>
>Output:
>real0m0.007s
>user0m0.000s
>sys 0m0.000s
>
>
>Is this the intended behaviour?
What is it that you are wondering about? The formatting difference is due
to
First of all, as Steve Holden mentioned, do look at xlrd. It's
awesome.
Second, for your (a) question, if you want an iterator, that's quite
easy:
matriz = iter(matriz)
matriz.next() # Discard the first one
for i in matriz:
This technique works really well, especially if you have sub-loops.
Th
* Mark Tolonen:
"Terry Reedy" wrote in message
news:hnjkuo$n1...@dough.gmane.org...
On 3/14/2010 4:40 PM, Guillermo wrote:
Adding the byte that some call a 'utf-8 bom' makes the file an invalid
utf-8 file.
Not true. From http://unicode.org/faq/utf_bom.html:
Q: When a BOM is used, is it o
"Terry Reedy" wrote in message
news:hnjkuo$n1...@dough.gmane.org...
On 3/14/2010 4:40 PM, Guillermo wrote:
Adding the byte that some call a 'utf-8 bom' makes the file an invalid
utf-8 file.
Not true. From http://unicode.org/faq/utf_bom.html:
Q: When a BOM is used, is it only in 16-bit Uni
I found this PyCon2010 presentation to be excellent:
The Mighty Dictionary, Branden Craig Rhodes, 30 min.
http://pycon.blip.tv/file/3264041/
Even knowing Python for over a decade, I learned a few things.
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
I found it. Had to use "figure" to create a new figure!
" Cal Who" wrote in message
news:hnjp6f$l...@news.eternal-september.org...
>I cleaned up the code by moving all the imports to the top.
> There are two plotting routines shown below.
> Either one will work without error.
> But when I inclu
On Sun, 14 Mar 2010 14:11:18 -0600, John Bokma wrote:
> One could argue, sure. But to me it's just the same as posting GFY
> (don't want to upset the tender soulds again with "the F-word".
Are you *still* going on about this thing? Sheesh.
You've made your point. You don't think posting links to
On Fri, 2010-03-12 at 08:32 +0100, Laszlo Nagy wrote:
> > From memory you can't issue a "CREATE TABLE" statement inside a
> > transaction, at least not at the default isolation level. Such a
> > statement will automatically commit the current transaction. Doesn't
> > help with your current proble
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release c
I cleaned up the code by moving all the imports to the top.
There are two plotting routines shown below.
Either one will work without error.
But when I include both, running produces:
The exception unknown software exception (0x4015) occurred in the
application at location 0x1e05b62a.
In
> 2) My script gets output from a Popen call (to execute a Powershell
> script [new Windows shell language] from Python; it does make sense!).
> I suppose changing the Windows codepage for a single Popen call isn't
> straightforward/possible?
Nevermind. I'm able to change Windows' codepage to 6500
Guillermo:
> 2) My script gets output from a Popen call (to execute a Powershell
> script [new Windows shell language] from Python; it does make sense!).
> I suppose changing the Windows codepage for a single Popen call isn't
> straightforward/possible?
You could try SetConsoleOutputCP and Set
On Fri, 2010-03-12 at 08:48 +0100, Laszlo Nagy wrote:
> >
> > I'm now confused. Also, I could not find anything about these
> > isolation levels on the sqlite website. The only think I could find is
> > "PRAGMA read_uncommited". If that is the same as setting
> > isolation_level to None, then I
> The console is commonly using Code Page 437 which is most compatible
> with old DOS programs since it can display line drawing characters. You
> can change the code page to UTF-8 with
> chcp 65001
That's another issue in my actual script. A twofold problem, actually:
1) For me chcp gives 850
I'm now confused. Also, I could not find anything about these
isolation levels on the sqlite website. The only think I could find is
"PRAGMA read_uncommited". If that is the same as setting
isolation_level to None, then I don't want it.
Yes, it is. Here is a test:
import os
import sqlite3
> There's a recent thread about this on the python-dev list,
pointers? i searched but didn’t find anything.
--
http://mail.python.org/mailman/listinfo/python-list
i am afraid that thread goes straight perpendicular to what re2 is
supposed to be, or do. my suggestion for these folks would be to
create a new, clean interface to stop the violence that comes with the
Python ``re`` interface, and open the thing up so one can plug in
``re`` implementations as are
Guillermo:
> Is this an enforced convention under Windows, then? My head's aching
> after so much pulling at my hair, but I have the feeling that the
> problem only arises when text travels through the dos console...
The console is commonly using Code Page 437 which is most compatible
with old
On 3/14/2010 4:40 PM, Guillermo wrote:
Hi,
I would appreciate if someone could point out what am I doing wrong
here.
Basically, I need to save a string containing non-ascii characters to
a file encoded in utf-8.
If I stay in python, everything seems to work fine, but the moment I
try to read t
From memory you can't issue a "CREATE TABLE" statement inside a
transaction, at least not at the default isolation level. Such a
statement will automatically commit the current transaction. Doesn't
help with your current problem but worth pointing out :-)
Thank you. I'll keep in mind.
Whe
On 14 mar, 22:22, Guillermo wrote:
> > That is what happens: the file now starts with a BOM \xEB\xBB\xBF as
> > you can see with a hex editor.
>
> Is this an enforced convention under Windows, then? My head's aching
> after so much pulling at my hair, but I have the feeling that the
> problem o
> That is what happens: the file now starts with a BOM \xEB\xBB\xBF as
> you can see with a hex editor.
Is this an enforced convention under Windows, then? My head's aching
after so much pulling at my hair, but I have the feeling that the
problem only arises when text travels through the dos co
On Mar 14, 4:04 pm, David Monaghan wrote:
> On Sun, 14 Mar 2010 13:10:32 -0600, John Bokma wrote:
> >David Monaghan writes:
>
> >> of Google. If they haven't used it, I don't really consider the gentle
> >> reminder that LMGTFY gives too harsh. If you do, you're too much of a
> >> gentle
> >> s
On 3/14/2010 2:41 PM, Terry Reedy wrote:
On 3/14/2010 11:14 AM, David Boddie wrote:
You should still be able to get at the videos themselves by inspecting
the page contents, looking for download links like this one:
http://blip.tv/file/get/Pycon-PyCon2010UsingPythonToCreateRoboticSimulationsF
On Sun, Mar 14, 2010 at 12:58 PM, Cal Who wrote:
> Second question: Is it common to group all the "from" statements at the top
> of the program
> or to put them by the relavent code as I have here?
The former.
Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailman/listinfo
Guillermo:
> I then open the file m.txt with notepad, and I see "mañana" normally.
> I save (again, no actual modifications), go back to the dos prompt, do
> type m.txt and this time it works! I get "mañana". When notepad opens
> the file, the encoding is already UTF-8, so short of a UTF-8 bom bei
"Terry Reedy" wrote in message
news:mailman.746.1268592481.23598.python-l...@python.org...
> On 3/14/2010 2:20 PM, Cal Who wrote:
>>
>> The below code produces the error as indicated. But, in
>> E:\Python26\Lib\site-packages\ffnet\tools I see:
>> drawffnet.py
>
> drawffnet is a module in
"MRAB" wrote in message
news:mailman.745.1268592389.23598.python-l...@python.org...
> Cal Who wrote:
>> The below code produces the error as indicated. But, in
>> E:\Python26\Lib\site-packages\ffnet\tools I see:
>> drawffnet.py
>> drawffnet.pyc
>> drawffnet.pyo
>> Is that what it i
On Fri, 2010-03-12 at 07:46 +0100, Laszlo Nagy wrote:
> >
> >>> import sqlite3
> >>> conn = sqlite3.connect(':memory:')
> >>> with conn:
> ... conn.execute("BEGIN")
> ... conn.execute("create table a ( i integer)")
> ... conn.execute("insert into a values (1)")
> ... conn.execute
Thanks for the replies.
That fixed it but produced another problem.
There are two plotting routines below.
Either one will work without error.
But the combo produces:
The exception unknown software exception (0x4015) occurred in the
application at location 0x1e05b62a.
in a dialog box and the
pyt...@bdurham.com wrote:
>>> Any reason you prefer PDB over WinPDB?
>>> http://winpdb.org/
>
>> Yes. I don't have Windows except one one PC :P
>
> WinPDB runs on non-Windows platforms :)
>
One might reasonably argue that it has a pretty couter-intuitive name, then.
regards
Steve
--
Steve Hol
2010/3/14 _wolf :
>...
> i would like to use re2 from Python (preferrably Python 3.1) and was
> excited to see files like make_unicode_groups.py in the distro (maybe
> just used during the build process?). those however were not deployed
> on my machine.
>...
>
If you would need a re engine with f
Am 14.03.2010 21:08, schrieb pyt...@bdurham.com:
Any reason you prefer PDB over WinPDB?
http://winpdb.org/
Yes. I don't have Windows except one one PC :P
WinPDB runs on non-Windows platforms :)
Uh, OK.
Then the name mislead me ;)
But yeah, I prefer a console based debugger.
--
http://mail.pyt
That's the sqlite *bindings* version:
>>> sqlite3.version
'2.4.1'
>>> sqlite3.sqlite_version
'3.6.16'
>>>
Thanks. I tried it and RELEASE command didn't work:
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> with conn:
... conn.execute("BEGIN")
... conn.execute("
Hi,
I would appreciate if someone could point out what am I doing wrong
here.
Basically, I need to save a string containing non-ascii characters to
a file encoded in utf-8.
If I stay in python, everything seems to work fine, but the moment I
try to read the file with another Windows program, eve
On 14 mar, 20:35, Michael Rudolf wrote:
> Am 14.03.2010 16:03, schrieb pyt...@bdurham.com:
>
> > Any reason you prefer PDB over WinPDB?
> >http://winpdb.org/
>
> Yes. I don't have Windows except one one PC :P
Sorry, i hit the wrong key. Again:
winpdb is crossplatform. It uses a wxwindows gui.
Nam
Laszlo Nagy writes:
> gand...@ubuntu:~$ python
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
import sqlite3
sqlite3.version
> '2.4.1'
>
> Is it possible to install a real sqlite ve
On 14 mar, 20:35, Michael Rudolf wrote:
> Am 14.03.2010 16:03, schrieb pyt...@bdurham.com:
>
> > Any reason you prefer PDB over WinPDB?
> >http://winpdb.org/
>
> Yes. I don't have Windows except one one PC :P
WinPdb is crossplatform. Is build with
--
http://mail.python.org/mailman/listinfo/pytho
David Monaghan writes:
> On Sun, 14 Mar 2010 13:10:32 -0600, John Bokma wrote:
>
>>David Monaghan writes:
>>
>>> of Google. If they haven't used it, I don't really consider the gentle
>>> reminder that LMGTFY gives too harsh. If you do, you're too much of a gentle
>>> soul to be on the internet
On Fri, 2010-03-12 at 06:48 +0100, Laszlo Nagy wrote:
> gand...@ubuntu:~$ python
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sqlite3
> >>> sqlite3.version
> '2.4.1'
>
> Is it
>> Any reason you prefer PDB over WinPDB?
>> http://winpdb.org/
> Yes. I don't have Windows except one one PC :P
WinPDB runs on non-Windows platforms :)
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 14 Mar 2010 13:10:32 -0600, John Bokma wrote:
>David Monaghan writes:
>
>> of Google. If they haven't used it, I don't really consider the gentle
>> reminder that LMGTFY gives too harsh. If you do, you're too much of a gentle
>> soul to be on the internet at all; someone might say "Boo"
For Good messages please visit
http://messagezonehere.blogspot.com/2010/03/friendly-messages.html
--
http://mail.python.org/mailman/listinfo/python-list
Am 14.03.2010 16:03, schrieb pyt...@bdurham.com:
Any reason you prefer PDB over WinPDB?
http://winpdb.org/
Yes. I don't have Windows except one one PC :P
--
http://mail.python.org/mailman/listinfo/python-list
gand...@ubuntu:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.version
'2.4.1'
Is it possible to install a real sqlite version 3 somehow? I really need
it b
On Mar 13, 8:45 pm, News123 wrote:
> Hi,
>
> I'd like to make sure, that a certain python program will only be run
> once per host. (linux/windows)
>
> so if the program is started a second time it should just terminate and
> let the other one run.
>
> This does not have to be the fastest solution
>> #we now have the default mode to be used, but what if it is disabled?
>> if(sys.modules[modeNames[mode]].enabled=='False'):
>> nextMode()
>
>How is this call supposed to work when `funcs` (which nextMode() uses)
>hasn't been defined yet?!
That seems to have done it, thanks. Sorry about top-pos
> On 3/14/10, Chris Rebert wrote:
>> On Sun, Mar 14, 2010 at 10:26 AM, Alex Hall wrote:
>>> Hi all,
>>> I have a file with a dictionary and a function. The dictionary holds
>>> the name of the function, and the function references the dictionary.
>>> If I put the dictionary first, the function is
David Monaghan writes:
> of Google. If they haven't used it, I don't really consider the gentle
> reminder that LMGTFY gives too harsh. If you do, you're too much of a gentle
> soul to be on the internet at all; someone might say "Boo" to you at any
> moment. Beware.
I've no problem with lmgtfy.
Below is pasted the function which is looking for the "funcs"
dictionary, as well as the dictionary. They appear in my py file in
this order, yet I get an error in nextMode() that "global name 'funcs'
is not defined". Oddly, the keys dictionary works fine; it is defined
above the nextMode function.
- Original Message -
From: Stephen Hansen
To: Cal Who
Cc: python-list@python.org
Sent: Sunday, March 14, 2010 2:33 PM
Subject: Re: What does Error: 'module' object is not callable Mean?
On Sun, Mar 14, 2010 at 10:20 AM, Cal Who wrote:
from ffnet.tools import drawff
On Sun, Mar 14, 2010 at 10:26 AM, Alex Hall wrote:
> Hi all,
> I have a file with a dictionary and a function. The dictionary holds
> the name of the function, and the function references the dictionary.
> If I put the dictionary first, the function is happy but the
> dictionary says the function
On 3/14/2010 2:20 PM, Cal Who wrote:
The below code produces the error as indicated. But, in
E:\Python26\Lib\site-packages\ffnet\tools I see:
drawffnet.py
drawffnet is a module initialized from drawffnet.py (or either of the below)
drawffnet.pyc
drawffnet.pyo
Is that what i
Cal Who wrote:
The below code produces the error as indicated. But, in
E:\Python26\Lib\site-packages\ffnet\tools I see:
drawffnet.py
drawffnet.pyc
drawffnet.pyo
Is that what it is looking for?
I'm not sure what "not callable" means.
Could it be referencing to "nn" rather than drawf
On Sun, Mar 14, 2010 at 2:20 PM, Cal Who wrote:
>
> The below code produces the error as indicated. But, in
> E:\Python26\Lib\site-packages\ffnet\tools I see:
>drawffnet.py
>drawffnet.pyc
>drawffnet.pyo
> Is that what it is looking for?
>
> I'm not sure what "not callable" means.
> Co
On 3/14/2010 11:14 AM, David Boddie wrote:
On Saturday 13 March 2010 20:01, Terry Reedy wrote:
On 3/13/2010 11:23 AM, Lee Harr wrote:
I am having a great time watching videos from PyCon. Thanks to
everyone who presented, and to those who did such a great job
putting the videos up at: http://p
Hi Alex,
On Sun, 2010-03-14 at 14:26 -0400, Alex Hall wrote:
> Reverse it, though:
>
> def myFunc():
> myOtherVar=myVar
>
> myVar={
> 1:myFunc
> }
>
> and the function myFunc does not see the dictionary.
The code you provided works just fine (as one would expect). If you can
provide an exam
Jonathan,
> I summarised a all the alternatives to py2exe I could find, here:
> http://spreadsheets.google.com/pub?key=tZ42hjaRunvkObFq0bKxVdg&output=html
Really great work - thanks for sharing this with all of us!!!
Regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Mar 14, 2010 at 10:20 AM, Cal Who wrote:
> from ffnet.tools import drawffnet
> import pylab
> drawffnet(nn) #Error: 'module' object is not callable
First and foremost, please please please: don't describe or paraphrase
tracebacks when asking for help, show them. The whole thing. It doe
pyt...@bdurham.com wrote:
Or you could use a real debugger, like pdb
http://docs.python.org/library/pdb.html
Any reason you prefer PDB over WinPDB?
http://winpdb.org/
I always count "in the standard library" as a big plus over any
add-ons It's nice to know about alternatives such as WinPDB,
Hi all,
I have a file with a dictionary and a function. The dictionary holds
the name of the function, and the function references the dictionary.
If I put the dictionary first, the function is happy but the
dictionary says the function is not defined. If I switch the two and
put the function first
On Mar 13, 1:45 pm, pyt...@bdurham.com wrote:
> Robin,
>
> > do you of an alternate compilter it doesn't work (py2exe) on my windows 7
> > box
>
> I can assure you that Py2exe does work on Windows 7 (my firm develops
> commercial Python applications packaged using Py2exe running on Windows
> 7), b
The below code produces the error as indicated. But, in
E:\Python26\Lib\site-packages\ffnet\tools I see:
drawffnet.py
drawffnet.pyc
drawffnet.pyo
Is that what it is looking for?
I'm not sure what "not callable" means.
Could it be referencing to "nn" rather than drawffnet?
What should
Hi
Thank you so much for all these great suggestions. I will have time
today to try all these and see which one works best for me
cheers
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 14 Mar 2010 08:57:36 -0700, _wolf wrote:
>
> how can i use re2 from Python?
>
Hello Wolf,
There's a recent thread about this on the python-dev list,
Unfortunately it seems to suggest that there are no Python
bindings at present.
Cheers,
Kev
--
http://mail.python.org/mailman/lis
vsoler wrote:
> I am working on a script that reads data from an excel workbook. The
> data is located in a named range whose first row contains the headers.
> It works!!! I find it superb that python is able to do such things!!!
>
> Now my questions.
>
> a. My ranges can in practice be quite bi
I am working on a script that reads data from an excel workbook. The
data is located in a named range whose first row contains the headers.
It works!!! I find it superb that python is able to do such things!!!
Now my questions.
a. My ranges can in practice be quite big, and although I am happy
w
Helge Stenström wrote:
I want to write function that prints a value of a variable, for
debugging. Like:
with
myVariable = "parrot"
otherVariable = "dead"
probe(myVariable)
probe(otherVariable)
instead of the longer
print "myVariable = ", myVariable
print "otherVariable = ", otherVariable
I
i just discovered http://code.google.com/p/re2, a promising library
that uses a long-neglected way (Thompson NFA) to implement a regular
expression engine that can be orders of magnitudes faster than the
available engines of awk, Perl, or Python.
so i downloaded the code and did the usual sudo ma
On Saturday 13 March 2010 20:01, Terry Reedy wrote:
> On 3/13/2010 11:23 AM, Lee Harr wrote:
>>
>> I am having a great time watching videos from PyCon. Thanks to
>> everyone who presented, and to those who did such a great job
>> putting the videos up at: http://pycon.blip.tv/
>>
>> My trouble is
Hi Daniel,
One more question:
Daniel Fetchinson wrote:
>> I'd like to make sure, that a certain python program will only be run
>> once per host. (linux/windows)
>>
>>
>> so if the program is started a second time it should just terminate and
>> let the other one run.
>>
>> This does not have t
Michael,
> Or you could use a real debugger, like pdb
> http://docs.python.org/library/pdb.html
Any reason you prefer PDB over WinPDB?
http://winpdb.org/
Thanks,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hi DUncan,
Duncan Booth wrote:
> Xah Lee wrote:
>
>> For example, consider, if you are within world's top 100th user of
>> database in terms of database size, such as Google, then it may be
>> that the off-the-shelf tools may be limiting. But how many users
>> really have such massive size of d
On Sun, 14 Mar 2010 10:16:43 -0400
Steve Holden wrote:
> A common complaint about large database loads taking a long time comes
> about because of trying to commit the whole change as a single
> transaction. Such an approach can indeed causes stresses on the database
> system, but aren't usually n
Hi Daniel,
Daniel Fetchinson wrote:
>> I'd like to make sure, that a certain python program will only be run
>> once per host. (linux/windows)
>>
>>
>> so if the program is started a second time it should just terminate and
>> let the other one run.
>>
>> This does not have to be the fastest solut
Hi Francesco,
Francesco Bochicchio wrote:
> On 13 Mar, 19:45, News123 wrote:
>> Hi,
>>
>> I'd like to make sure, that a certain python program will only be run
>> once per host. (linux/windows)
>>
>> so if the program is started a second time it should just terminate and
>> let the other one run.
D'Arcy J.M. Cain wrote:
> On Sat, 13 Mar 2010 23:42:31 -0800
> Jonathan Gardner wrote:
>> On Fri, Mar 12, 2010 at 11:23 AM, Paul Rubin wrote:
>>> "D'Arcy J.M. Cain" writes:
Just curious, what database were you using that wouldn't keep up with
you? I use PostgreSQL and would never cons
On 14 mar, 12:34, vsoler wrote:
> Hello,
>
> I am still learning python, thus developnig small scripts.
>
> Some of them consist only of the main module. While testing them
> (debugging) I sometimes want to stop the script at a certain point,
> with something like stop, break, end or somethin
On Sat, 13 Mar 2010 23:42:31 -0800
Jonathan Gardner wrote:
> On Fri, Mar 12, 2010 at 11:23 AM, Paul Rubin wrote:
> > "D'Arcy J.M. Cain" writes:
> >> Just curious, what database were you using that wouldn't keep up with
> >> you? I use PostgreSQL and would never consider going back to flat
> >>
On Sun, 14 Mar 2010 08:36:55 -0400 Steve Holden
wrote:
> Andreas Waldenburger wrote:
> > On Sat, 13 Mar 2010 13:42:12 -0800 (PST) vsoler
> > wrote:
> >
> >> By the way, I suppose I am the OP. Since I am not an native English
> >> speaking person, I do not know what it stands for. Perhaps you ca
Mark Lawrence wrote:
> vsoler wrote:
>> Hello,
>>
>> I am still learning python, thus developnig small scripts.
>>
>> Some of them consist only of the main module. While testing them
>> (debugging) I sometimes want to stop the script at a certain point,
>> with something likestop, break, end
kuru wrote:
> Hi
>
> I have couple classes in the form of
>
> class Vector:
> def __init__(self,x,y,z):
>self.x=x
>self.y=y
>self.z=z
>
> This works fine for me. However I want to be able to provide a list,
> tuple as well as individual arguments like below
>
> myvec=Vector(1,2,3)
Andreas Waldenburger wrote:
> On Sat, 13 Mar 2010 13:42:12 -0800 (PST) vsoler
> wrote:
>
>> By the way, I suppose I am the OP. Since I am not an native English
>> speaking person, I do not know what it stands for. Perhaps you can
>> tell me.
>>
> Perhaps you can find out yourself:
>
> http://www
Am 14.03.2010 12:53, schrieb Mark Lawrence:
vsoler wrote:
I sometimes want to stop the script at a certain point,
with something like stop, break, end or something similar.
What statement can I use?
Something like
import sys
sys.exit()?
Or just "raise SystemExit", "raise SyntaxError" or any o
I want to write function that prints a value of a variable, for
debugging. Like:
with
myVariable = "parrot"
otherVariable = "dead"
probe(myVariable)
probe(otherVariable)
instead of the longer
print "myVariable = ", myVariable
print "otherVariable = ", otherVariable
Is that even possible?
Th
vsoler wrote:
Hello,
I am still learning python, thus developnig small scripts.
Some of them consist only of the main module. While testing them
(debugging) I sometimes want to stop the script at a certain point,
with something likestop, break, end or something similar.
What statement ca
Hello,
I am still learning python, thus developnig small scripts.
Some of them consist only of the main module. While testing them
(debugging) I sometimes want to stop the script at a certain point,
with something likestop, break, end or something similar.
What statement can I use?
Vicent
Am 10.03.2010 16:55, schrieb Bill:
def fizzbuzz(num):
if num:
if num % 15 is 0: return fizzbuzz(num-1) + 'fizzbuzz \n'
elif num % 5 is 0: return fizzbuzz(num-1) + 'buzz \n'
elif num % 3 is 0: return fizzbuzz(num-1) + 'fizz \n'
else : return fizzbuzz(num-1)
On 03/14/10 10:32, hackingKK wrote:
Instead of using the library directly,
isn't python-twisted a better choice?
Why?
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
> I'd like to make sure, that a certain python program will only be run
> once per host. (linux/windows)
>
>
> so if the program is started a second time it should just terminate and
> let the other one run.
>
> This does not have to be the fastest solution, but it should be reliable.
>
>
> I have
1 - 100 of 107 matches
Mail list logo