consuming hurdles.
As far as money goes, I am open to reasonable offers.
cheers
Shane
--
https://mail.python.org/mailman/listinfo/python-list
developer with too much work on his/her plate that wants some
paid help and is willing to point me in the right direction.
cheers
Shane
--
https://mail.python.org/mailman/listinfo/python-list
inHandler = open(inFile, 'r')
outHandler = open(outFile, 'w')
outHandler.write('ID\tAddress\tStreetNum&Name\tSufType\tDir\tCity\tProvince\tPostalCode\n')
for line in inHandler:
str = line.replace('FarmID\tAddress','')
outHandler.write(str[0:-1])
str = str.replace(', ON', '\t ON\t')
> I don't have any code to split that part up. There is other information
> following the street name such as street suffix, city, province, postal code,
> etc. I have been able to split the rest of it up based on certain criteria
> but have had no luck with splitting up the street name from th
I have the following sample from a data set and I am looking to split the
address number and name into separate headings as seen below.
FarmID Address
1 1067 Niagara Stone
2 4260 Mountainview
3 25 Hunter
4 1091 Hutchinson
5 5172 Green Lane
6 500 Glenridge
7
So, by introducing this collaboration mechanism with a syntax that defines it
as sending and receiving things that are *not* arbitrary objects, the language
would naturally reinforce a more thoroughly decoupled architecture?
Sent from my iPad
On Mar 17, 2013, at 8:53 PM, Mark Janssen wrote:
Hi Python Google Group! I hope someone could help me and then one day when I am
good I can contribute to the forum as well. Does anyone know what is wrong with
my syntax here as I am trying to submit this form using MultipartPostHandler
that I installed?
import MultipartPostHandler, urllib2
p
What do I need to do to successfully install a package onto python so that I
can use it as a module?
I have tried in terminal in the correct directory "python2.7 ./setup.py
install" but it says permission denied.
Shanes-MacBook-Pro:seisen-urllib2_file-cf4c4c8 chimpsarehungry$ python2.7.1
./se
Need to refine a question I asked earlier. If I have a module,
|-- foo
|---|
|---|---bar
|---|---|
|---|---|---__init__.py
then I can say import foo.bar
But suppose I want to import foo.bar.stuff and stuff isn't located on
under `bar' because it's user
supplied code:
|-
On Oct 16, 11:55 pm, Steven D'Aprano wrote:
> On Sun, 16 Oct 2011 19:43:20 -0700, Shane wrote:
> > Normally if one has a code set under a directory "top_level" like this:
>
> > top_level:
> > __main__.py
> > a
> > __init__.py
&
Normally if one has a code set under a directory "top_level" like
this:
top_level:
__main__.py
a
__init__.py
b
__init__.py
then this directory structure is naturally satisfies this line in
__main__.py:
>import a.b
But support, for some stupid reason --- say a.b is use
In the following t,t1 are the result of built-in call type() -- the
form that takes three arguments.
Therefore they are classes. Consider the following output:
print type(t)
>
print id(t)
>1234567
print t.__module__
>a.b.t.d
print type(t1)
>
print id(t1)
>1234568
print t1.__module__
>a.b.t.d
I n
Hi,
When one writes,
> className='Employee'
> baseClasses = ...
> dictionary = { ... }
> newClass = type( className, , dictionary)
in what module does newClass belong? If it's the current module what
code
do I run to print out the name of that module in a.b.c... form?
Related: If I want to make
On Apr 26, 11:58 am, Lie Ryan wrote:
> On 04/27/10 03:50, Peter Otten wrote:
>
> > It is a bit unfortunate that your editor has side effects on your program,
> > and I recommend that you never trust the result of importing a module from
> > within idle's shell completely.
>
> In fact, never trust
I'm new to Python, so I'll try to be clear about my problem.
I'm using Python 3.1 (latest stable version from python.org) on
Windows 7.
I have a program using tkinter for UI, and it works properly from both
pything GUI shell, and running from command prompt, EXCEPT that I have
a menu command to in
Hi I am a newbie for Python
Here is a question, say I have a list L,
function foo is:
def foo(L):
if L[0] > 0: return True
if later I want another function goo which returns "True" when L[0]
and L[1] are both > 0, i.e.,
def goo(L):
if L[0] > 0 and L[1] > 0: return True
Can anybody tel
I'm attempting to use a web service that takes XML as an input and returns an
XML output. I can connect to the service and attempt to pass in the XML but do
not get any results. I believe my problem is how to package up the XML and send
it in the request. The XML consists of about 20 tag/value
is).
What you're trying to do is difficult if not impossible to do as a
comprehension.
Here's another approach:
b = list(itertools.chain.from_iterable(a))
And without using a library function:
b = []
for pair in a:
for item in pair:
b.append(item)
Cheers,
Chris
following:
ACTION ADDRESS
MESSAGE ID
ASMX ADDRESS
USERNAME
PASSWORD
2009-02-14T16:14:00Z
2010-01-01T12:00:00Z
I am not getting a valid response back.
Any ideas what I may be doing wrong?
Kind Regards
Shane Bignell
Spotlight Interactive Planning for Financial
independent , something called embedded into one file only ?
thank you in anticipation .
Rohan.
--
http://mail.python.org/mailman/listinfo/python-list
--
Shane Geiger, IT Director
Council For Economic Education
modules is easier than upgrading most other language's
libraries[citation needed].
--
http://mail.python.org/mailman/listinfo/python-list
--
Shane Geiger, IT Director
Council For Economic Education / www.councilforeconed.org
sgei...@councilforeconed.org / 402-438-8958
Teaching Opportunity
--
http://mail.python.org/mailman/listinfo/python-list
#x27;s language, as it makes many of the annoying things
about programs non-issues.
--
Shane Geiger, IT Director
Council For Economic Education / www.councilforeconed.org
sgei...@councilforeconed.org / 402-438-8958
Teaching Opportunity
--
http://mail.python.org/mailman/listinfo/python-list
http://mail.python.org/mailman/listinfo/python-list
--
Shane Geiger, IT Director
Council For Economic Education / www.councilforeconed.org
sgei...@councilforeconed.org / 402-438-8958
Teaching Opportunity
--
http://mail.python.org/mailman/listinfo/python-list
else:
res.append(el)
return res
Brian Vanderburg II
--
http://mail.python.org/mailman/listinfo/python-list
--
Shane Geiger, IT Director
Council For Economic Education / www.councilforeconed.org
sgei...@councilforeconed.org / 402-438-8958
Teaching Opportunity
--
http://mail.python.org/mailman/listinfo/python-list
opies of the code running
on different boxes with synchrounous (maybe asychronous)
communication.
Shane
--
http://mail.python.org/mailman/listinfo/python-list
ng:
mag = len(string)
upper_lim = mag/50 + 1
But i'm not sure how to declare and set them to my parsed strings.
Now problem #1 isn't as pressing, i can technically get away with
cutting up the words, i'd just prefer not to. The most pressing
problem right now is #2. Any help, or sugg
tp://mail.python.org/mailman/listinfo/python-list
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
om/2008/04/developers-start-your-engines.html
http://googleappengine.blogspot.com/2008/04/introducing-google-app-engine-our-new.html
Shane
Diez B. Roggisch wrote:
> ashish wrote:
>
>
>> hi ,
>> python experts i want some help from u people just mail me how to
>> write sc
I've got a bit of code that looks like this:
for i in xrange(1000):
# shuffle the doors
doors = [ 'G', 'C', 'G' ]
random.shuffle(doors)
# save the doors that have goats (by index)
goats = [ x for x in range(2) if doors[x] == 'G' ]
but for some reason the list comprehension is
; ---
>
> Any idea ?
>
> Thanks ...
>
> # Gabriel
>
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
Windows (XP Pro, Home, whatever). The
> method I'm using is:
>
> >>> process_list = os.popen('TASKLIST').read()
>
> However, XP Home doesn't have the tasklist.exe tool so, this is kind
> of useless in that OS. Do you have any other methods I can use for
r =~ s/(\d\d\d)(?=\d)(?!d*\.)/$1,/g;
>>return scalar reverse $number;
>> }
>>
>
>
>> But I cannot find how to do this in Python.
>>
>
> Look at the locale module. If you're producing the numbers yourself then they
> get pri
gt;
> What you monitor is up to you. At a basic level, you can see if the
> server is accepting connections. At a higher level, see if you can get
> a page or see if you can login as a specific person. At a higher
> level, you may want to check what is on the page or what happens when
>
end(l)
>
> #now list is [3,9,1,5,4,2,8]
>
> list.sort()
>
> #now your list is in sorted order
>
> Then, you can just write a series of for loops to spin off your data
> however you like.
>
>
def gen(lists):
out = '[' + ','.join(["v%s"
a good start to create your gamma function:
> http://en.wikipedia.org/wiki/Factorial
> http://en.wikipedia.org/wiki/Gamma_function
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economi
#tmp = tempfile.mktemp()
print commands.getoutput('/Applications/wacaw --png ' + current
) # ' + tmp +'.png')
# Here's the actual name of the file wacaw created:
current = '/Applications/'+current+'.png'
oves bearophiles point, for-else is really
>> tricky.
>>
>
> Ah ha, but that would have been a mistake with or without the else
> clause
>
>
> Carl Banks
>
This approach works well for me:
def foo0(): print 'foo0'
def bar0(): print 'bar0&#
oes anyone have some sample code?
>
> Regards
> Bernd
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
se them from python instead of from C#.
>
> Thanks,
> Huayang
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
ather's name is Gene, and he's expressed software wants
> that I've implemented in Python...so yes, I guess I've done some
> Gene Expression Programming...
>
> ;-P
>
> -tkc
>
>
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EM
Also, it seems that the environment variable "PYTHONPATH" applies to
> "import", but not to the starting module named on the Python command
> line. Is that correct? Thanks.
>
> John Nagle
>
--
Shane Geiger
IT Director
National Counci
st = 'foo.com'
account = 'jennyjenny'
password = '8675309'
import getpass, poplib
M = poplib.POP3(host)
#M.user(getpass.getuser())
#M.pass_(getpass.getpass())
M.user(account)
M.pass_(password)
numMessages = len(M.list()[1])
for i in range(numMessages):
for j in M.ret
Does this help?
def foobar(first_name,last_name, *args, **kwargs):
print first_name
print last_name
print "Tuple:",args
print "Dict:",kwargs
x = "has"
y = "demonstrated"
foobar('Shane','Geiger', x, y, adjective='us
ealize this might be more controversial and might have been avoided on
purpose, but I wasn't around for that discussion.)
>>> sentence = 'this is a senTence WiTH'
>>> generator = (word.capitalize() for word in sentence.split())
>>> while a,b,c = generator.
;
>
>>>> import linecache
>>>> linecache.getline(glob.glob('/etc/*', 4)
>>>>
>
> doens't work
>
> is there any better methods??? thank you very much in advance
>
> jo3c
>
--
Shane Geiger
IT Director
Nati
Does someone know where SVGDraw has gone? It used to be here:
http://www2.sfk.nl/svg/
Googling hasn't helped me locate it. :-\
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economi
x27;)
return "\n".join(msg)
def copyfile(self, source, outputfile):
shutil.copyfileobj(source, outputfile)
def main(HandlerClass = MyHTTPRequestHandler,
ServerClass = BaseHTTPServer.HTTPServer):
BaseHTTPServer.test(HandlerClass, ServerClass)
if __name__ == '__main__':
main()
vinoj davis wrote:
> hi all,
> i am new to python, can anyone tell me how can i connect to
> a remote machine using python and execute commands.
>
> Thanking you..
>
> Regards,
>
> ---ViNOJ DAViS---
>
>
>
> Chat on a cool, new interface. No download required. Click here.
> <http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yahoo.com/webmessengerpromo.php>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
t;
>
>
>>>> import os
>>>> os.remove(tmp)
>>>>
> Traceback (most recent call last):
> File "", line 1, in
> OSError: [Errno 2] No such file or directory: '/tmp/tmpZkS0Gj'
>
>
>
>
> You mi
>
>>>> x.write("1234")
>>>> print len(x.read())
>>>>
> 0
>
>>>> x.flush()
>>>> print len(x.read())
>>>>
> 0
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
MAIL PROTECTED]:/nu/mine/myothername$ sudo crontab -l
15 10 * * * /usr/sbin/ipcheck.py -l -r checkip.dyndns.org:8245
shanerg asdfasdf sgeiger.mine.nu,sgeigerbot.mine.nu,myothername.mine.nu
--acctfile /root/ipcheck.dat
[EMAIL PROTECTED]:/nu/mine/myothername$
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
going to take a look at itertools. I prefer the
>> Kugutsumen> list version since I need to buffer that chunk in memory at
>> Kugutsumen> this point.
>>
>> Also consider this solution from O'Reilly's Python Cookbook (2nd Ed.) p705
>>
>> def chop(iterable, length=2):
>> return izip(*(iter(iterable),) * length)
>>
>> Terry
>>
>
>
>> [snip code]
>>
>> Try this instead:
>>
>> import itertools
>>
>> def chunk(iterator, size):
>> # I prefer the argument order to be the reverse of yours.
>> while True:
>> chunk = list(itertools.islice(iterator, size))
>> if chunk: yield chunk
>> else: break
>>
>>
>
> Steven, I really like your version since I've managed to understand it
> in one pass.
> Paul's version works but is too obscure to read for me :)
>
> Thanks a lot again.
>
>
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
ence, AIXtarmay fail)
>> - Is your disk full or do you have the correct permissions with your
>> current user?
>>
>> ++
>>
>> Sam
>>
>
> Hi Sam ,
> I am using windows server 2003, python2.5.1 and version 1.16 of tar
>
> and as per
this using python. If yes then
> which library and functions are required and if no then reasons why it
> cant be done.
>
> Thank you All
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading
ich of these overlap each
> other. So, in this case, tuple 1 overlaps with tuples 2 and 3. Tuple
> 2 overlaps with 1. Tuple 3 overlaps with tuple 1.
>
> In my scenario I would have hundreds, if not thousands of these
> ranges. Any nice pythonic way to do this?
>
> Thanks.
&g
=
['cat','num','name','blank1','blank2','company','phone1','phone2', \
'phone3','phone4','email','addr1','city','state','zip','blank3
have to
> convert over to that. Any help is appreciated. Thanks
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
--
http://mail.python.org/mailman/listinfo/python-list
image2
>> etc.
>>
>
> I just put the reference in my module. Don't hard code an absolute
> path, use the environment tools.
>
> app_path = os.getenv('HOME') + "/your_sub_dir"
>
> resources_path = os.getenv('HOME&#
If you are just asking those questions for people living now (and are
> not called Connor McLeod ;-) and the gregorian calender it's easy but
> providing functions in the standard library for arbitrary date calculation
> involving years is not so easy.
>
> Ciao,
> Marc
csv_list:
> author_name = row[-1]
> if author_name == '': #Find entries where no author is listed
> csv_list.remove(row) #Remove those entries from the list
>
> def assign_author_to_title(): #Assign an author to every title
> author_of_title = {}
> for row in csv_file:
> title = row[3]
> author = row[-1]
> author_of_title[title] = author
>
>
> assign_author_to_title()
> print author_of_title
>
> --
>
> Ok, the last two lines are kind of my "test the last function" test.
> Now when I run these two lines I get the error:
>
> Traceback (most recent call last):
> File "D:\Python25\Lib\SITE-P~1\PYTHON~1\pywin\framework
> \scriptutils.py", line 310, in RunScript
> exec codeObject in __main__.__dict__
> File "D:\Python25\csv_read.py", line 33, in
> print author_of_title
> NameError: name 'author_of_title' is not defined
>
> I am guessing that the author_of_title dict does not exist outside of
> the function in which it is created? The concept of instantiation is
> sort of foreign to me so I'm having some trouble predicting when it
> happens.
>
> If I call the assign_author_to_title function later, am I going to be
> able to work with the author_of_title dictionary? Or is it best if I
> create author_of_title outside of my function definitions?
>
> Clearly I'm just stepping through my thought process right now,
> creating functions as I see a need for them. I'm sure the code is
> sloppy and terrible but please be gentle!
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
e cmdline parsing with ini
> file parsing code)
>
> I've looked at configparse, cfgparse, iniparse.
>
> configparse looks like what I want, but it seems last commit was >2years
> ago.
>
> What is the best choice?
>
>
--
Shane Geiger
IT Director
National Co
html",index2_html)
os.system('chmod 755 ' + DOCUMENT_ROOT+"/index2.html")
try:
os.remove('/tmp/web') # this path is OS-dependent
os.symlink(DOCUMENT_ROOT, '/tmp/web')
print "Created symlink /tmp/web"
except:
pass
import os
/using_matlab_from_python.html
Calling Matlab from Python
Rolf Wester wrote:
> Hi,
>
> is there a tool to automatically translate Matlab source to Python/numpy
> code?
>
> Regards
>
> Rolf
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL
http://montypython.tribe.net/thread/fd519910-25e3-4102-b898-8815d6ece32a
>
> http://www.flickr.com/photos/kirstywombat/1862165664/
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Ec
print str(i) + " COMPLETED" # debug
data = sound.readframes(bytes_per_second)
if not data:
break
#print data # debug
player.writeframes(data) # this line is causing this problem with
every .aiff file I try:
i += 1
#import sys; sys.exit()
player.wait()
ver I'm not sure how to tell the request that I'm building in my
> python script to either use the info in my AD account or enter in my
> user/pass automatically.
>
> Anyone know how to do this?
>
> Thanks
>
--
Shane Geiger
IT Director
National Council on Economic
This should do the trick:
http://www.libsdl.org/
Dave wrote:
> I need to read microphone input and determine frequency. Is there a lib
> for that?
>
> Thanks,
> Dave
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402
I think this is what you need to make the output readable:
tidy -asxml output.xml
James Matthews wrote:
> Thank You Shane,
>
> However that is using PyRss2Gen which doesn't put newlines in the XML.
> So it's a little out of the picture!
> On Nov 27, 2007 1:57
ames
>
>
> --
> http://search.goldwatches.com/?Search=Movado+Watches
> http://www.goldwatches.com/coupons
> http://www.jewelerslounge.com
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Ec
http://pyenchant.sourceforge.net/
helzer wrote:
> I need to add spell checking to my Python application (for Windows).
> Any ideas on where to start?
>
> Thanks,
> Helzer
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402
om: [EMAIL PROTECTED]
> > Subject: Re: Getting name of control under mouse in Windows?
> > Date: Mon, 19 Nov 2007 03:33:24 -0300
> >
> > En Sun, 18 Nov 2007 21:10:18 -0300, Shane Clark
> > escribió:
> >
> >>> From: [EMAIL PROTECTED]
> >>
> To: python-list@python.org
> From: [EMAIL PROTECTED]
> Subject: Re: Getting name of control under mouse in Windows?
> Date: Mon, 19 Nov 2007 03:33:24 -0300
>
> En Sun, 18 Nov 2007 21:10:18 -0300, Shane Clark
> escribió:
>
&g
> To: python-list@python.org
> From: [EMAIL PROTECTED]
> Subject: Re: Getting name of control under mouse in Windows?
> Date: Sun, 18 Nov 2007 13:32:54 -0300
>
> En Fri, 16 Nov 2007 16:16:25 -0300, Shane Clark
> escribi�:
>
s was the wrong place to ask for help, but I did
not find a more pertinent mailing list.
Thanks,
-Shane
_
Climb to the top of the charts! Play Star Shuffle: the word scramble
challenge with star power.
http://club.live.com/star_sh
>
> I was wondering how can I make an executable or some kind of
> installer, so that end user doesn't need to compile and worry if he/
> she has Python installed or not ?
>
> Every help is greatly appreciated.
>
> Thanks,
>
>
--
Shane Geiger
IT Director
N
ter core.
> Might need to do nasty things to the low-level import mechanism so that
> villains can't rig a web site to contain an import module with ability
> to access the local file system.
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED
lso don't condone tirades based on myths. Please
verify for yourself that some problems exist.
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
begin:vcar
t; 'Decimal' is about as short as I'd want.
>>
>
> You don't like str, int, float, list, set, dict, or bool?
>
> Or for that matter, enum
> http://www.python.org/dev/peps/pep-0354/
>
> *wink*
>
>
>
--
Shane Geiger
IT Director
Na
>> Chris
>>
>>
>
> Before you reinvent the wheel, you should look into using a mailing list
> manager, Mailman for example:
>
> http://www.gnu.org/software/mailman/index.html
>
> Regardless, confirmed double-opt-in should be a requirement as should a
>
ng first that could equivalent to the
> name of the function I wish to call. how could I do that? the string
> could might include name of the module.
>
> for example
>
> a_string = 'datetime.' + 'today()'
>
> how could I call a_string as function?
>
&g
last_months(3))
>for month in last_months(24): print month
>
> The alternative would likely be to do something like subtract one
> from the current month, and if it drops below 1, decrement the
> year and reset the month to 12. Equally fuzzy:
>
>def lastN(months
6/10/2007" into a date object which I can then compare with the
> current date created by datetime.now().
> is that right?
> if yes then please explain me how I can get the delta object to give
> me results in days.
> regards,
> Krishnakant.
>
--
Shane Geiger
IT Di
ible with Qt also.
> So, perhaps (which I don't know) Aqua buttons simply don't permit
> absolute stuff ?
> Or the Aqua programmers read the user interface guidelines carefully ?
>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-
"for dummies" or "in x
(hours/days)" books. They can be decent introductory material, but
unless you are really really new to programming, you probably wouldn't
be getting enough information to justify the cost of the book (and a
lot of times they have a lot of bad pra
jango and PyGame. Something you could point a newbie to and they
would be able to create "real" applications with, without needing to
download hundreds of dependencies.
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http:/
text
files is not possible.
I'm not completely understanding your problems here. Can you explain
why urllib.urlencode wouldn't work?
(http://docs.python.org/lib/module-urllib.html)
Thanks,
-Dave
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTE
Watch television online now for free.
Includes television channels from all over the world and sport events
from all over the world including, NBA, Soccer, Motor Racing and much
more.
http://homepage.ntlworld.com/louise.randall41
--
http://mail.python.org/mailman/listinfo/python-list
t_name
if __name__ == '__main__':
sys.argv.append('-cl')
from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
print "Please set these variables: project_name, group_name ...and
then type create()"
### I even tried to put all my
ipshell() #
Sergiy wrote:
> print 1 / 2
> print -1 / 2
>
> 0
> -1
>
> correct?
Yes. It works like the floor() function.
>>> import math
>>> math.floor(1.0 / 2)
0.0
>>> math.floor(-1.0 / 2)
-1.0
Shane
--
http://mail.python.org/mailman/listinfo/python-list
sInMonth(year, month):
Matt> s1 = mktime((year,month,1,0,0,0,0,0,-1))
Matt> s2 = mktime((year,month+1,1,0,0,0,0,0,-1))
Matt> return s2-s1
Probably won't work if month==12. ;-)
Skip
--
Shane Geiger
IT Director
National Council on Economic Education
[EM
11',
'value12', 'value13'], 'keyvalue3': ['value31', 'value32', 'value33'],
'keyvalue2': ['value21', 'value22', 'value23']}
do something like this
{keyvalue1:[ value1, value2, va
can spend more time finding cool files
to share and making funny user pictures. It's kind of like myspace
really, except it's not broken every other day. (Well, let's hope.)
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958
st):
File "", line 1, in ?
ImportError: No module named amod
import sys
sys.path.append('otherdir')
import amod
amod.afunc()
'found'
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.n
ED]> wrote:
how can i compare a string which is non null and empty?
[...]
In java,I do this:
if (str != null) && (!str.equals(""))
how can i do that in python?
If you want to litterally do that, it's
if (str != None) and (str != ""):
t, see
the recipe
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303339
But I don't see any obvious way to get the process id of the spawned
subprocess.
- Andrew
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee
OMG, I was starting to reconsider Ruby.
Maël Benjamin Mettler wrote:
Is this supposed to be a joke?
First of April? Likely.
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for
dant 'cruft' that
Word puts in there, rather than making valid HTML out of invalid HTML.
Again, IIUC, HTMLtidy does not do this.
If Beautiful Soup does, then I'm intererested!
jon N
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] |
ing']=RN('quoted_string', r'"%(qtext)s"' % regex)
# ::= |
regex['local_part']=RN('local_part', r'%(quoted_string)s|%
(dot_string)s' % regex)
# ::= "@"
regex['mailbox']=RN('mailbox', r'
'sandboxes' for testing
programs. It is also an ideal launcher for IronPython.
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
begin:vcard
fn:Shane Gei
nows how to enumerate the current running processes , or
how to obtain a specific process by its name or process id. I know I
can do this in many programming languages , but how in python? any
one know?
Thanks for any guidance.
--
li xianmin
[EMAIL PROTECTED] <mailto:[EMAIL PROT
any guidance.
--
li xianmin
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
begin:vcard
fn:Shane
1 - 100 of 180 matches
Mail list logo