On Monday, December 31, 2012 12:18:48 PM UTC+8, contro opinion wrote:
> here is my haha class
> class haha(object):
> def theprint(self):
> print "i am here"
>
The definition of a class named haha.
> >>> haha().theprint()
> i am here
> >>> haha(object).theprint()
> Traceback (most recen
On Tuesday, January 1, 2013 11:10:48 AM UTC+8, Steven D'Aprano wrote:
> On Sat, 29 Dec 2012 18:56:57 -0500, Terry Reedy wrote:
>
>
>
> > On 12/29/2012 2:48 PM, Quint Rankid wrote:
>
> >
>
> >> Given a list like:
>
> >> w = [1, 2, 3, 1, 2, 4, 4, 5, 6, 1]
>
> >> I would like to be able to do
On 01Jan2013 03:46, Steven D'Aprano
wrote:
| On Sat, 29 Dec 2012 14:00:23 -0500, Mitya Sirenef wrote:
| > [...] For instance, if I need to change
| > a block inside parens, I type ci) (stands for change inside parens),
| > while with a regular editor I'd have to do it manually and by the time
| >
See this code (understand why I commented out first line):
# from OpenGL.GL import *
from OpenGL.GL import glEnable, GL_DEPTH_TEST, \
glShadeModel, GL_SMOOTH, glClearColor, \
GL_CULL_FACE, GL_BLEND, glBlendFunc, \
GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, \
glClear, GL_COLOR_BUFFE
On Tue, Jan 1, 2013 at 10:00 PM, someone wrote:
> See this code (understand why I commented out first line):
>
> # from OpenGL.GL import *
> from OpenGL.GL import glEnable, GL_DEPTH_TEST, \
> glShadeModel, GL_SMOOTH, glClearColor, \
> GL_CULL_FACE, GL_BLEND, glBlendFunc, \
> GL_SRC_
I am facing one issue in my module. I am gathering data from sql server
database. In the data that I got from db contains special characters like
"endash". Python was taking it as "\x96". I require the same character(endash).
How can I perform that. Can you please help me in resolving this issue
On Tue, 01 Jan 2013 12:00:32 +0100, someone wrote:
> See this code (understand why I commented out first line):
>
> # from OpenGL.GL import *
[...]
> The reason why I commented out the first line is that I use "pylint" and
> it reports: "[W] Redefining built-in 'format'" for this line.
>
> From:
On Tue, 01 Jan 2013 03:35:56 -0800, anilkumar.dannina wrote:
> I am facing one issue in my module. I am gathering data from sql server
> database. In the data that I got from db contains special characters
> like "endash". Python was taking it as "\x96". I require the same
> character(endash). How
someone wrote:
> See this code (understand why I commented out first line):
>
> # from OpenGL.GL import *
> from OpenGL.GL import glEnable, GL_DEPTH_TEST, \
> glShadeModel, GL_SMOOTH, glClearColor, \
> GL_CULL_FACE, GL_BLEND, glBlendFunc, \
> GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
On 01/01/13 04:12, Cameron Simpson wrote:
I must admit I find Apple's "help" search box neat this way - you
can type a keyword is it will actually find the menu item for
you. Not that I use this for vi, of course...
If you've not used it, Vim's ":helpgrep" command provides full Vim
regexp powe
I am using the nltk.classify.MaxEntClassifier. This object has a set of labels,
and a set of probabilities: P(label | features). It modifies this probability
given data. SO for example, if you tell this object that the label L appears
60% of the time with the feature F, then P(L | F) = 0.6.
The
hi . . my name is usama khan
i am the student of civil engeering and we got assignment to make a project
program on flexible pavement design using python.
i know very litle about programing. still learning from tutorials. u can call
me a beginner.
now i need to solve this equation so that i c
On Wed, Jan 2, 2013 at 2:40 AM, wrote:
> hi . . my name is usama khan
> i am the student of civil engeering and we got assignment to make a project
> program on flexible pavement design using python.
>
> i know very litle about programing. still learning from tutorials. u can call
> me a begin
On 01/01/2013 10:40 AM, usamazo...@gmail.com wrote:
> hi . . my name is usama khan
> i am the student of civil engeering and we got assignment to make a project
> program on flexible pavement design using python.
>
> i know very litle about programing. still learning from tutorials. u can call
On 01/01/2013 11:03 AM, Chris Angelico wrote:
> On Wed, Jan 2, 2013 at 2:40 AM, wrote:
>> hi . . my name is usama khan
>> i am the student of civil engeering and we got assignment to make a project
>> program on flexible pavement design using python.
>>
>> i know very litle about programing. st
am just a begginer bro. . jus learnt if elif while nd for loop. .
can u just display me the coding u want. .it could save my time that i have
while searchning SN out. . i will give u that dependable variables values. .
nd SN range 4 inches to 13.5 inches
log(w18)=50x10^6
Z=-1.645
S=0.45
dpsi=2
Sn range is given in here. .
www.dot.state.fl.us/rddesign/DS/08/IDx/514.pdf
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 2, 2013 at 3:42 AM, Dave Angel wrote:
> On 01/01/2013 11:03 AM, Chris Angelico wrote:
>> This isn't a Python question, it's an algebra one. I don't know what
>> Z, S, and so on are, but for the most part, the basic rule of solving
>> equations applies: Do the same thing to both sides a
In article ,
Usama Khan wrote:
> am just a begginer bro.
That's fine, we were all beginners once. You will discover that people
here are willing to invest a lot of time and effort helping beginners
get started.
> now can u give me the coding of this equation as i need to save my time. . .i
On Wed, Jan 2, 2013 at 4:25 AM, Usama Khan wrote:
> now can u give me the coding of this equation as i need to save my time. . .i
> am learning from tutorials. . so its taking lot of time. kindly consider my
> request nd give me the code so that i can put it. .i dont want to losen up my
> grade
u r right bro. . am serving my time. .realy i dont need a short cut code. .
nor its a programing class. .
i have chosen tis project on my own so that we can aviod that graph procedure. .
i guess the program i am making on python has many many things. .not just the
iteration. .i am not that che
how shud i intiate this equation myself. .can u give me some links to solve
that myself. . am ready already. .its a chalange for me now. . .i just
requested for a code as i dont know nothing about iteration of that much
complex equation not the entire program. .
so kindly show me the way. .i w
On Jan 1, 2013 3:41 AM, wrote:
>
> I am facing one issue in my module. I am gathering data from sql server
database. In the data that I got from db contains special characters like
"endash". Python was taking it as "\x96". I require the same
character(endash). How can I perform that. Can you pleas
On 12/31/2012 10:46 PM, Steven D'Aprano wrote:
On Sat, 29 Dec 2012 14:00:23 -0500, Mitya Sirenef wrote:
>
>> I think the general idea is that with editors like Vim you don't get
>> distracted by having to do some kind of an editor task, letting you keep
>> your full attention on the code logic.
kindly let me know how to solve complex equation in pyhton. . ??
nd then use that equation in program. . ??
am desperate to learn but i guess the posters are a bit angry with me that i
asked the code for solving that equation. .plzz help me out,. .
am here to learn. . !!!
just dont knwo th
how to solve complex equation in pyhton? and then use it to make a program. . i
have created new post as my last post is i guessed ranked as a cheater. .:(
i know very litle about python as well as programing. .
which equation am taliking u will be thinking. . i am giving u the link kindly
c t
In article ,
Mitya Sirenef wrote:
> Clunky is the last word I'd use to describe it (ok maybe for Emacs :-)
> I probably remember about 200 commands, plus or minus, but a lot of them
> fit into a consistent scheme which makes them much easier to remember
At some point, it becomes muscle memory,
Omer Korat wrote:
>
>I am using the nltk.classify.MaxEntClassifier. This object has a set of
>labels, and a set of probabilities: P(label | features). It modifies
>this probability given data. SO for example, if you tell this object
>that the label L appears 60% of the time with the feature F,
On 01/01/2013 02:02 PM, Roy Smith wrote:
In article ,
> Mitya Sirenef wrote:
>
>> Clunky is the last word I'd use to describe it (ok maybe for Emacs :-)
>> I probably remember about 200 commands, plus or minus, but a lot of them
>> fit into a consistent scheme which makes them much easier to r
contro opinion wrote:
>
>here is my haha class
>class haha(object):
> def theprint(self):
>print "i am here"
>
haha().theprint()
>i am here
haha(object).theprint()
>Traceback (most recent call last):
> File "", line 1, in
>TypeError: object.__new__() takes no parameters
>
>why
OK, thank you all for your help yesterday!
Here's where we are today (using python 3.3.0)
He has everything running well except for the final calculations - he needs to
be able to total the number of rooms in the hotel, as well as the number of
occupied rooms. We have tried several different t
rooms_on_floor is being set by the manual input for each floor iterated
over in your for loop. My guess is your total_rooms value equals the rooms
from the last floor you processed. Same goes for the occupied_rooms.
You'll want a separate variable to increment after each occupied_rooms or
rooms_
usamazo...@gmail.com wrote:
>
>i know very litle about programing. still learning from tutorials. u can call
>me a beginner.
>now i need to solve this equation so that i can put this in python but the
>formula of design is very complex
>
>Formula is :
>
>log(W18) = (Z)(S)+9.36log(SN+1)
>-2.0
Usama Khan wrote:
> how to solve complex equation in pyhton? and then use it to make a program.
> . i have created new post as my last post is i guessed ranked as a cheater.
> .:(
> i know very litle about python as well as programing. .
> which equation am taliking u will be thinking. . i am g
That's it!!! Thank you, Matt!! project done! :)
Thank you all, very much.
Happy New Year!
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 2, 2013 at 7:14 AM, wrote:
> floor_number = 0
> for i in range(number_of_floors):
> floor_number = floor_number + 1
Matt's already given you the part you need (and it seems to have
worked for you, yay!). Side point: Are you aware that i and
floor_number are always going to have t
On Jan 1, 9:00 pm, someone wrote:
> I can see that pygame hasn't been updated for
> a long while - not many users use it?
It helps if you look in the right place:
pygame "Last Updated 2012-12-29": https://bitbucket.org/pygame/pygame/src
pygame2: http://code.google.com/p/pgreloaded/
--
http://ma
On 01/01/2013 11:02 AM, Usama Khan wrote:
how to solve complex equation in pyhton? and then use it to make a program. . i
have created new post as my last post is i guessed ranked as a cheater. .:(
i know very litle about python as well as programing. .
which equation am taliking u will be thi
On Jan 2, 5:02 am, Usama Khan wrote:
> i have created new post as my last post is i guessed ranked as a cheater. .:(
Don't do this. Starting new threads on the same subject because you're
not happy with the response you're getting elsewhere is a surefire way
to end up in a lot of killfiles.
> i
my question is can we import newtonsmethod from nympy or sciPy?
--
http://mail.python.org/mailman/listinfo/python-list
2013/1/1 Steven D'Aprano :
> On Sun, 30 Dec 2012 10:20:19 -0500, Roy Smith wrote:
>
>> The way I would typically do something like this is build my regexes in
>> all lower case and .lower() the text I was matching against them. I'm
>> curious what you're doing where you want to enforce case sensit
thanks :)
no issues. . :)
sorry for wasting ur precious time. . .sorry once again. .
its mine problem now. . neither python. .nor the algebra. . .
sorry guys. dont mind. .:) dont get me wrong. .
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 2, 2013 at 10:01 AM, Usama Khan wrote:
> my question is can we import newtonsmethod from nympy or sciPy?
http://www.catb.org/esr/faqs/smart-questions.html#classic
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On 01/01/2013 12:13 PM, Chris Angelico wrote:
> On Tue, Jan 1, 2013 at 10:00 PM, someone wrote:
>> See this code (understand why I commented out first line):
>>
>> # from OpenGL.GL import *
>> from OpenGL.GL import glEnable, GL_DEPTH_TEST, \
>> glShadeModel, GL_SMOOTH, glClearColor, \
>>
On 01/01/2013 12:49 PM, Steven D'Aprano wrote:
> On Tue, 01 Jan 2013 12:00:32 +0100, someone wrote:
>
>> See this code (understand why I commented out first line):
>>
>> # from OpenGL.GL import *
> [...]
>> The reason why I commented out the first line is that I use "pylint" and
>> it reports: "[W
On 01/01/2013 01:56 PM, Peter Otten wrote:
> someone wrote:
> It turns out pylint is lying. The situation is equivalent to
>
> $ cat module.py
> for format in [42]:
> pass
> del format
>
> $ cat main.py
> original_format = format
> from module import *
> assert format is original_format
> $
2013/1/2 Usama Khan :
> my question is can we import newtonsmethod from nympy or sciPy?
> --
> http://mail.python.org/mailman/listinfo/python-list
Hi,
After successfully installing SciPy
http://www.scipy.org/Download
you should be able to import the respective modules and use this
functionality su
On 01/01/2013 11:39 PM, alex23 wrote:
On Jan 1, 9:00 pm, someone wrote:
I can see that pygame hasn't been updated for
a long while - not many users use it?
It helps if you look in the right place:
pygame "Last Updated 2012-12-29": https://bitbucket.org/pygame/pygame/src
pygame2: http://code.
On 2012-12-31 23:42, worldsbiggestsabres...@gmail.com wrote:
Hey :)
I'm trying to help my son with an assignment and spending hours making an inch
of progress. I know nothing about programming and I'm trying to learn, on my
own, at a rate faster than possible. I would love a little help!
My
On 01/01/2013 03:14 PM, worldsbiggestsabres...@gmail.com wrote:
> OK, thank you all for your help yesterday!
>
> Here's where we are today (using python 3.3.0)
>
> He has everything running well except for the final calculations - he needs
> to be able to total the number of rooms in the hotel, as
On 01/01/2013 05:01 PM, Chris Angelico wrote:
> On Wed, Jan 2, 2013 at 7:14 AM, wrote:
>> floor_number = 0
>> for i in range(number_of_floors):
>> floor_number = floor_number + 1
> Matt's already given you the part you need (and it seems to have
> worked for you, yay!). Side point: Are you aw
FWIW on the Windows platform the Zeus IDE has support for Python:
http://www.zeusedit.com/python.html
Zeus does the standard Python syntax highlighting, code completion, smart
indenting, class browsing, code folding etc.
Zeus also has limited Python debugger support and is fully scriptable
thanks. .
but how to instal scipy. because its in .rar form. .i have extracted the files
to the place where python2.7 is installed. . but everytime i write import
sciPy. .it give me error. .
nd regarding ur question. .
its a long story telling u why i have just ask this breif question. . anyw
yeah i have read it sir CrisA. .:)
thanks . .:)
i wish i could make u watch my google search list of last two days nd idm
downlaodng list of last two days. .text me ur email id. .i can show u my
efforts. .
:)
--
http://mail.python.org/mailman/listinfo/python-list
Traceback (most recent call last):
File "C:/Python27/12.py", line 4, in
import scipy # also has log
File "C:/Python27\scipy\__init__.py", line 114, in
raise ImportError(msg)
ImportError: Error importing scipy: you cannot import scipy while
being in scipy source directory; ple
On Jan 2, 10:28 am, Usama Khan wrote:
> but how to instal scipy. because its in .rar form. .i have extracted
> the files to the place where python2.7 is installed. . but everytime
> i write import sciPy. .it give me error. .
If you want help, you have to remember we can't magically detect your
de
On Jan 2, 10:34 am, Usama Khan wrote:
> i wish i could make u watch my google search list of last two days nd idm
> downlaodng list of last two days. .text me ur email id. .i can show u my
> efforts. .
> :)
I'm guessing it would show you flailing around and _not_ typing "numpy
newton's method",
k thanks :)
--
http://mail.python.org/mailman/listinfo/python-list
2013/1/2 Usama Khan :
> thanks. .
>
> but how to instal scipy. because its in .rar form. .i have extracted the
> files to the place where python2.7 is installed. . but everytime i write
> import sciPy. .it give me error. .
> nd regarding ur question. .
>
> its a long story telling u why i have ju
On Tue, 01 Jan 2013 16:42:13 -0800, Usama Khan wrote:
> Traceback (most recent call last):
> File "C:/Python27/12.py", line 4, in
> import scipy # also has log
> File "C:/Python27\scipy\__init__.py", line 114, in
> raise ImportError(msg)
> ImportError: Error importing scipy: you can
Hi,
I wrote couple of scrips to work with OWL-intution-LC home/office electricity
monitor. The concept of the first scrip (owl.py) to capture network multicast
from the OWL gateway and write to a .csv file has been taken from a raspberrypi
forum and further developed upon to work with sqlite. T
On Wed, 02 Jan 2013 00:49:36 +0100, someone wrote:
> In [11]: del format
> ---
> NameError Traceback (most recent call last)
> in ()
> > 1 del format
>
> NameError: name 'format' is not de
On 01/02/2013 04:01 AM, Nobody wrote:
On Wed, 02 Jan 2013 00:49:36 +0100, someone wrote:
In [11]: del format
---
NameError Traceback (most recent call last)
in ()
> 1 del format
NameErr
On 01/01/2013 10:49 PM, Jens Thoms Toerring wrote:
Usama Khan wrote:
how to solve complex equation in pyhton? and then use it to make a program.
. i have created new post as my last post is i guessed ranked as a cheater.
.:(
i know very litle about python as well as programing. .
which eq
On Wed, Jan 2, 2013 at 11:34 AM, Usama Khan wrote:
> yeah i have read it sir CrisA. .:)
>
> thanks . .:)
>
> i wish i could make u watch my google search list of last two days nd idm
> downlaodng list of last two days. .text me ur email id. .i can show u my
> efforts. .
> :)
Well, my "email id"
On Jan 1, 2013, at 9:42 PM, vbho...@gmail.com wrote:
> Hi,
>
> I wrote couple of scrips to work with OWL-intution-LC home/office electricity
> monitor. The concept of the first scrip (owl.py) to capture network multicast
> from the OWL gateway and write to a .csv file has been taken from a
> r
On Wednesday, January 2, 2013 12:00:06 AM UTC+5:30, Chris Rebert wrote:
> On Jan 1, 2013 3:41 AM, wrote:
>
> >
>
> > I am facing one issue in my module. I am gathering data from sql server
> > database. In the data that I got from db contains special characters like
> > "endash". Python was ta
On Friday, 28 December 2012 01:31:16 UTC+5:30, mogul wrote:
> 'Aloha!
>
>
>
> I'm new to python, got 10-20 years perl and C experience, all gained on unix
> alike machines hacking happily in vi, and later on in vim.
>
>
>
> Now it's python, and currently mainly on my kubuntu desktop.
>
>
On Tuesday, 1 January 2013 22:55:21 UTC+5:30, Usama Khan wrote:
> am just a begginer bro. . jus learnt if elif while nd for loop. .
>
>
>
> can u just display me the coding u want. .it could save my time that i have
> while searchning SN out. . i will give u that dependable variables values.
I've print statements in my code for troubleshooting purpose, but I do not find
it in any of the logs in /var/log/, not even system.log. Anything that I need
to do for it to write the log ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 1, 2013 8:48 PM, wrote:
> On Wednesday, January 2, 2013 12:00:06 AM UTC+5:30, Chris Rebert wrote:
> > On Jan 1, 2013 3:41 AM, wrote:
> >
> > > I am facing one issue in my module. I am gathering data from sql
server database. In the data that I got from db contains special characters
like "
On Wed, 02 Jan 2013 00:49:36 +0100, someone wrote:
> On 01/01/2013 12:49 PM, Steven D'Aprano wrote:
> > On Tue, 01 Jan 2013 12:00:32 +0100, someone wrote:
> >
> >> See this code (understand why I commented out first line):
> >>
> >> # from OpenGL.GL import *
> > [...]
> >> The reason why I
72 matches
Mail list logo