| |
thread by: schaefer.mp |
last post Oct 17 '07 by: Bjoern Schliessmann
Does anyone know of an approximation to raising a negative base to a
fractional exponent? For example, (-3)^-4.11111 since this cannot be
computed without using imaginary numbers. Any help is appreciated.
|
thread by: Harlin Seritt |
last post Oct 17 '07 by: Harlin Seritt
Is there a module that can pull str values for say the last 3 months?
Something like:
print lastMonths(3)
Thanks
|
thread by: schaefer.mp |
last post Oct 17 '07 by: Jason
To compute the absolute value of a negative base raised to a
fractional exponent such as:
z = (-3)^4.5
you can compute the real and imaginary parts and then convert to the
polar form to get the correct value:
real_part = ( 3^-4.5 ) * cos( -4.5 * pi )
imag_part = ( 3^-4.5 ) * sin( -4.5 * pi )
|
thread by: Fabian Braennstroem |
last post Oct 17 '07 by: Fabian Braennstroem
Hi,
I would like to use python to start an terminal, e.g. xterm, and login on a
remote machine using rsh or ssh. This could be done using 'xterm -e ssh
machine', but after the login I would like to jump to a given directory.
Does anyone have an idea how to do this with python?
Regards!
Fabian
|
thread by: jivelasquezt |
last post Oct 17 '07 by: Carl Banks
Hi all,
I'm new to this group so I don't know if this question has been posted
before, but does anyone knows about linear/integer programming
routines in Python that are available on the web, more specifically of
the branch and bound method.
Thanks,
Jorge Velasquez
|
thread by: Milos Prudek |
last post Oct 17 '07 by: gardsted
This question concerns compilation of Python from sources. Specifically Python
2.3.6.
On Kubuntu 7.04, ./configure outputs these lines about readline:
checking for rl_pre_input_hook in -lreadline... yes
checking for rl_completion_matches in -lreadline... yes
On openSuSE 10.3, ./configure outputs these lines about readline:
checking for...
|
thread by: Falcolas |
last post Oct 17 '07 by: Falcolas
Does anybody know of a decent HTML parser for Jython? I have to do
some screen scraping, and would rather use a tested module instead of
rolling my own.
Thanks!
GP
|
| |
thread by: fahadqureshi |
last post Oct 17 '07 by: fahadqureshi
i am trying to make a gui and need some help on how to link buttons to certain commands. here is my code:
from Tkinter import *
root =Tk()
root.geometry('300x200')
root.title('EXAM')
Label (text='Enter a Bus Number').pack(side=TOP,padx=10,pady=10)
Entry(root, width=6).pack(side=TOP,padx=10,pady=10)
Button(root, text='EXAM').pack(side=...
|
thread by: SevenPy |
last post Oct 17 '07 by: KaezarRex
What I want to do is zip up my drive and not include the Windows folder or program files folder.
This is what I have and I can't get it to work.
Someone please help.
import os, zipfile
from os.path import join
|
thread by: Alexandre Badez |
last post Oct 17 '07 by: Diez B. Roggisch
Hye everyone,
I'm would like to do something a bit tricky.
I would like when I do something like to create a __init__ package's
(here calle my_package) file witch make an action when we try to
import something in this package...
Quiet like __getattribute__ work for a class, I would like this kind
of behaviour for a whole module or a...
|
thread by: ryan k |
last post Oct 17 '07 by: ryan k
I have a schedule of times in the future that I want to display in a
timezone the user sets. There is a useful module
http://www.purecode.com/~tsatter/python/README.txt (at that URL) with
a function that takes seconds from the epoch and a time zone and
returns what is basically a datetime object.
My question is how to I display the seconds...
|
thread by: Diez B. Roggisch |
last post Oct 17 '07 by: Ben Finney
Just found this:
http://feeds.feedburner.com/~r/boingboing/iBag/~3/170523979/french-lady-finds-py.html
I do believe that Python should be somewhat more upfront to brandish it's
merits - but then, sneaky ways are ok with me to...
Diez
|
thread by: Thomas Wittek |
last post Oct 17 '07 by: Andrew Durdin
Hi!
Is there any possibility/tool to automatically organize the imports at
the beginning of a module?
I don't mean automatic imports like autoimp does as I like seeing where
my objects/functions really come from.
For the same reason I don't like "from foo import *".
The downside is that you have a rather verbose import section at the
|
thread by: ryan k |
last post Oct 17 '07 by: ryan k
I have a schedule of times in the future that I want to display in a
timezone the user sets. There is a useful module
http://www.purecode.com/~tsatter/python/README.txt (at that URL) with
a function that takes seconds from the epoch and a time zone and
returns what is basically a datetime object.
My question is how to I display the seconds...
|
thread by: kang jia |
last post Oct 17 '07 by: kang jia
hi guys
i am very new to python and Django framework and currently i am doing my final year project by using this language. currently i understand their basic logic, however, i did not really know what kind of models and functions i could use. for example, i am doing signup, login and booking of cars in my website, which models or functions i...
|
| |
thread by: allen.fowler |
last post Oct 17 '07 by: Adrian Cherry
Hello,
Can anyone recommend a simple python template engine for generating
HTML that relies only on the Pyhon Core modules?
No need for caching, template compilation, etc.
Speed is not a major issue.
I just need looping and conditionals. Template inheritance would be a
|
thread by: stef mientki |
last post Oct 17 '07 by: Peter Otten
I want to view my own namespace,
i.e. to see the modules namespace in the module itself,
is that possible ?
I can use
dir()
but I read dir is just a convenience function,
and besides I want key/value pairs.
thanks,
|
thread by: Paul Miller |
last post Oct 17 '07 by: Paddy
I'm looking at doing some currency calculations in some Python code
integrated with a C++ application. I want to be able to come up with the
same values I get in an Excel spreadsheet.
I've been poking around for a couple of days and haven't come across a
definitive method for dealing with currency in a precise manner.
What do I need to...
|
thread by: Dick Crepeau |
last post Oct 17 '07 by: Dick Crepeau
I don't understand my earlier problem but the following code works no
matter what the ylim is set to:
I reworked the example major_minor_demo1.py to find the answer.
thanks
Dick C
ps: I still can't post a reply since I read the list with my mozilla or
konqueror browser and email separately with thunderbird - the reply
|
thread by: holdingbe |
last post Oct 17 '07 by: holdingbe
Hi,
How to run the jython scripts?
I have db_compare.py and jython.bat. I try in command promt
Jython,bat db_compare.py output.xml
I don't know how to store the output file..
|
thread by: Shawn Minisall |
last post Oct 17 '07 by: Zentrader
I just learned about while statements and get why you place them around
inputs for validation, but I'm a little lost on exactly where to place
it with what condition in this program where the number of fat grams
exceeds the total number of calories so that it loops back and asks you
the two questions again instead of just saying The calories...
|
thread by: Johny |
last post Oct 17 '07 by: Gabriel Genellina
My Main program imports several other smaller programs.
for example
Main.py
imports
Program1.py
Program2.py
....
Program50.py
Now I need to find out which of Programs imports a particular module
|
thread by: Gabriel Genellina |
last post Oct 17 '07 by: Gabriel Genellina
QOTW: "Aaaugh! Don't use __slots__!" - Aahz
"I will use public attributes (with access customizable with properties)
and remember that in Python I can do everything :)." - Artur Siekielski
Don't use __slots__ to create struct-like objects:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/4d0aa0ce90ee9eab/
Carsten...
|
| |
thread by: annguyen |
last post Oct 17 '07 by: annguyen
Hi, when i use Pamie to write the script to access a web site by https://, how can i catch the security alert?
Thanks,
|
thread by: Dick Crepeau |
last post Oct 17 '07 by: Ben Finney
It seems to me the original question was how can I reply to a posted
message.
I'm new here and see that while there are replies to several messages,
many times, like with this note, the issue is brought up as if it is new.
I don't know how to do a reply, can someone tell me how? This note was
sent to: python-list@python.org with the...
|