On Mon, Dec 17, 2012 at 6:25 PM, wrote:
> No, that's not what you were "just" informing people of...
> you were also informing us that we are "twits" for finding
> Google Groups fits our needs better than some other clients.
I didn't say that. The first twit filter I met was when my dad put
*his
On Mon, Dec 17, 2012 at 5:47 PM, Steven D'Aprano
wrote:
> On Mon, 17 Dec 2012 07:13:44 +1100, Chris Angelico wrote:
>> I don't understand the idea behind the boycott. Are people worried about
>> the longevity of linked-to content, in the event that pastebin should,
>
On Tue, Dec 18, 2012 at 2:28 AM, Gilles Lenfant
wrote:
> Hi,
>
> I have googled but did not find an efficient solution to my problem. My
> customer provides a directory with a hge list of files (flat, potentially
> 10+) and I cannot reasonably use os.listdir(this_path) unless creating a
On Tue, Dec 18, 2012 at 5:29 AM, MRAB wrote:
>
> Years ago I had to deal with an in-house application that was written
> using a certain database package. The package stored each predefined
> query in a separate file in the same directory.
>
> I found that if I packed all the predefined queries i
On Tue, Dec 18, 2012 at 8:33 AM, Mitya Sirenef wrote:
> On 12/17/2012 01:30 PM, Tim Chase wrote:
>>
>> On 12/17/12 11:43, Mitya Sirenef wrote:
>>>
>>> On 12/17/2012 12:27 PM, Gnarlodious wrote:
Hello. What I want to do is delete every dictionary key/value
of the name 'Favicon' regar
On Tue, Dec 18, 2012 at 9:26 PM, Marc Aymerich wrote:
> Any other idea on how to monkey patch those two conditionals ?
Would it be plausible to simply add a parameter to the function that
controls its behaviour? It'd be a lot more readable than fiddling from
the outside ever would.
ChrisA
--
ht
On Wed, Dec 19, 2012 at 1:28 AM, Roy Smith wrote:
> In article ,
> iMath wrote:
>> > Download the source for the version you're interested in.
>>
>> but which python module is open() in ?
>
> I met you half-way, I showed you where the source code is. Now you
> need to come the other half and l
On Wed, Dec 19, 2012 at 9:28 AM, Tom Borkin wrote:
> No (lol). It returns a date as a string: "2012-12-12" for example.
> Tom
Then that's why it doesn't work. Wayne was hinting at a major MAJOR
problem with your code; it's interpolating data into the SQL
statement, instead of providing parameters
On Wed, Dec 19, 2012 at 2:57 PM, John Gordon wrote:
> In Tom Borkin
> writes:
>
>> Actually, what I originally had was:
>> cursor.execute("""insert into interactions values(Null, %s, "Call Back",
>> %s)""", (i_id, date_plus_2))
>> and that didn't work, either. I tried your variation like:
>> cu
On Thu, Dec 20, 2012 at 1:28 AM, wrote:
> I am using telnetlib and the box that I'm connecting to has a special escape
> sequence--^]--to leave the prompt and go back to the regular telnet prompt.
> For example, from teh command line I do this:
> ...
> When I pressing and hold Ctrl and then ],
On Thu, Dec 20, 2012 at 1:23 AM, wrote:
> But, this is not the problem.
> I was suprised to discover this:
>
'Straße'.upper()
> 'STRASSE'
>
> I really, really do not know what I should think about that.
> (It is a complex subject.) And the real question is why?
Not all strings can be upperc
On Thu, Dec 20, 2012 at 2:18 AM, Johannes Bauer wrote:
> On 19.12.2012 15:23, wxjmfa...@gmail.com wrote:
>> I was using the German word "Straße" (Strasse) — German
>> translation from "street" — to illustrate the catastrophic and
>> completely wrong-by-design Unicode handling in Py3.3, this
>> tim
On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate wrote:
> Hi All !
>
> Is is possible and if yes, is it more easily possible (i am thinking f_back
> maybe) to get the context of the caller when in a function ?
>
> Like to which variable name is this object assigned ?
>
> Or whatever of the callers cont
On Thu, Dec 20, 2012 at 8:23 AM, Ian Kelly wrote:
> On Wed, Dec 19, 2012 at 1:55 PM, wrote:
>> Yes, it is correct (or can be considered as correct).
>> I do not wish to discuss the typographical problematic
>> of "Das Grosse Eszett". The web is full of pages on the
>> subject. However, I never s
On Thu, Dec 20, 2012 at 5:27 AM, Ian Kelly wrote:
> From what I've been able to discern, [jmf's] actual complaint about PEP
> 393 stems from misguided moral concerns. With PEP-393, strings that
> can be fully represented in Latin-1 can be stored in half the space
> (ignoring fixed overhead) compa
On Thu, Dec 20, 2012 at 12:23 PM, wrote:
>
> Thanks!! This was very helpful. It worked perfectly.
> I had no clue about the intricacies of how python represents the group data
> from the underlying OS.
>
> This page doesn't go into to detailed explanation like you did:
> http://docs.python.org/
On Thu, Dec 20, 2012 at 2:12 PM, Westley Martínez wrote:
> Really, why should we be so obsessed with speed anyways? Isn't
> improving the language and fixing bugs far more important?
Because speed is very important in certain areas. Python can be used
in many ways:
* Command-line calculator wit
On Thu, Dec 20, 2012 at 8:37 PM, Pierre Quentel
wrote:
> I'm afraid I am going to disagree. The document is a tree structure, and
> today Python doesn't have a syntax for easily manipulating trees. To add a
> child to a node, using an operator instead of a function call saves a lot of
> typing
On Fri, Dec 21, 2012 at 1:52 AM, Johannes Bauer wrote:
> def fetchmanychks(cursor):
> cursor.execute("SELECT id FROM foo;")
> while True:
> result = cursor.fetchmany()
> if len(result) == 0:
> break
> for x in
On Fri, Dec 21, 2012 at 2:20 AM, Johannes Bauer wrote:
> Hmm, but this:
>
> result = cursor.fetchone()
> yield result
>
> Works nicely -- only the fetchmany() makes the example break.
Okay, now it's sounding specific to sqlite. I'll bow out. :)
>
>> Would
On Fri, Dec 21, 2012 at 7:20 AM, MRAB wrote:
> On 2012-12-20 19:19, wxjmfa...@gmail.com wrote:
>> The rule is to treat every character of a unique set of characters
>> of a coding scheme in, how to say, an "equal way". The problematic
>> can be seen the other way, every coding scheme has been buil
On Fri, Dec 21, 2012 at 11:19 AM, larry.mart...@gmail.com
wrote:
> This code works, but it takes way too long to run - e.g. when cdata has
> 600,000 elements (which is typical for my app) it takes 2 hours for this to
> run.
>
> Can anyone give me some suggestions on speeding this up?
>
It sound
On Fri, Dec 21, 2012 at 11:43 AM, larry.mart...@gmail.com
wrote:
> It came from a database. Originally I was getting just the data I wanted
> using SQL, but that was taking too long also. I was selecting just the
> messages I wanted, then for each one of those doing another query to get the
> d
On Fri, Dec 21, 2012 at 1:05 PM, Steven D'Aprano
wrote:
> On Thu, 20 Dec 2012 18:59:39 -0500, Terry Reedy wrote:
>> What Python does have is 11 versions of the augmented assignment
>> statement: +=, -=, *=, /=, //=, %=, **=, >>=, <<=, &=, ^=, |=. Moreover,
>> these are *intended* to be implemented
On Fri, Dec 21, 2012 at 4:23 PM, iMath wrote:
> Pass and return
> Are these two functions the same ?
>
> def test():
> return
>
> def test():
> pass
They're different statements, but in this case they happen to
accomplish the same thing.
The pass statement means "do nothing". For
On Fri, Dec 21, 2012 at 4:23 PM, iMath wrote:
> redirect standard output problem
>
> why the result only print A but leave out 888 ?
No idea, because when I paste your code into the Python 3.3
interpreter or save it to a file and run it, it does exactly what I
would expect. A and 888 get sent to
On Fri, Dec 21, 2012 at 11:38 PM, Pierre Quentel
wrote:
> With the tree syntax proposed in Brython it would just be
>
> doc <= DIV('hello '+B('world'))
>
> If "pythonic" means concise and readable, which one is more pythonic ?
Pythonic also means:
If the implementation is hard to explain, it's a
On Fri, Dec 21, 2012 at 5:35 PM, Isml <76069...@qq.com> wrote:
> By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a problem?
You may want to consider using 'make altinstall' rather than 'make
install'. That way, you don't stomp all over the system Python (so
system scripts that expe
On Sat, Dec 22, 2012 at 2:00 AM, Dimitrios Xenakis
wrote:
> Hi there, i would like to ask.. i need to create an html webpage and bring
> that live on the internet via my host service, and i would also like a
> conversion calculator being showed on this website. Concersion tool such as
> Cels. t
On Sat, Dec 22, 2012 at 2:36 AM, Pierre Quentel
wrote:
>> doc.add(Tag('DIV').add('hello ').add(Tag('B').add('world')))
>>
> No, with this syntax, the result of Tag('B').add('world') is below 'hello' in
> the tree structure, not at the same level (just below Tag('DIV')) as it
> should be
No; loo
On Fri, Dec 21, 2012 at 9:11 AM, Jack Silver wrote:
> On the first one (the server), I want to build install python 3.3.0 in a
> shared filesystem and access it from the second one (the client).
Correct me if I'm wrong, but my understanding of your description is this:
System #1 ("server"): Full
On Sat, Dec 22, 2012 at 3:36 AM, Pierre Quentel
wrote:
>
>> Hmm. So when that gets added into a DIV, it has to get parsed for
>> tags? How does this work? This seems very odd. I would have expected
>> it to remain as DOM objects.
>
> In DIV(child) :
> - if child is a string, integer or float, a te
On Sat, Dec 22, 2012 at 10:57 AM, Ian Kelly wrote:
> From the code, it appears that adding two nodes together *actually*
> returns a $AbstractTag object, which seems to be just a container for
> a list of child nodes with no parent, that automagically gets removed
> from the hierarchy when appende
On Sat, Dec 22, 2012 at 10:50 AM, Amirouche Boubekki
wrote:
> Last time I checked DOM
> manipulation is not the primary way for js devs to do DOM manipulation
> anymore, or is it ? Javascript template engines do DOM manipulation but this
> is almost invisible for the user...
Not sure how most of
On Sat, Dec 22, 2012 at 6:57 PM, Pierre Quentel
wrote:
> I was over-simplifying - or, to put is less diplomatically, I screwed up -
> when I answered that the addition returned a string. As Chris pointed out, it
> made the explanation very confusing. My apologies
>
> The objects handled by + and
On Sat, Dec 22, 2012 at 7:54 PM, Pierre Quentel
wrote:
>> Still, it tends to be a lot harder to explain, document, and read
>> documentation for, something that uses operators weirdly, rather than
>> keyword-searchable method names.
>
> You don't explain how to use the Python syntax (for instance
On Sat, Dec 22, 2012 at 10:05 PM, Steven D'Aprano
wrote:
> On Sat, 22 Dec 2012 20:08:25 +1100, Chris Angelico wrote:
>
>> I don't see "string % tuple" as a good syntax; I prefer to spell it
>> sprintf("format",arg,arg,arg).
>
> Very possibly o
On Sun, Dec 23, 2012 at 2:07 AM, iMath wrote:
> when I run it through command line ,it works ok ,but when I run it through
> IDLE , only print A but leave out 888
> so why ?
Because IDLE has to fiddle with stdin/stdout a bit to function. Try
adopting Dave's recommendation - you'll likely find th
On Sun, Dec 23, 2012 at 7:31 AM, Dan Sommers wrote:
> On Sat, 22 Dec 2012 23:11:00 +1100, Chris Angelico wrote:
>
>> "This is a string" / 3 ==> ["This ", "is a ", "strin", "g"]
>> and "This is a string" // 3 ==>
On Sun, Dec 23, 2012 at 9:50 AM, KarlE wrote:
> Thanx for the help!
>
> After reading your comments i am starting to suspect that i lack basic
> knowledge of Python programming. I will try to do some reading and undertand
> what i got my self into!
That happens :) Python has rules that are diff
On Sun, Dec 23, 2012 at 6:28 PM, Tim Roberts wrote:
> Duncan Booth wrote:
>>
>>In this year's Christmas Raffle at work I won a 'party-in-a-box' including
>>USB fairy lights.
>>
>>They sit boringly on all the time, so does anyone know if I can toggle the
>>power easily from a script? My work PC is
On Mon, Dec 24, 2012 at 4:19 AM, Kene Meniru wrote:
> Hello: I am writing a program that is made up of a collection of POV-Ray
> macros. POV-Ray is available at povray.org. It is a ray-tracing program that
> reads a scene description language (SDL) to create photo-realistic images. At
> this ti
On Mon, Dec 24, 2012 at 11:34 AM, iMath wrote:
> how to detect the character encoding in a web page ?
> such as this page
>
> http://python.org/
You read part-way into the page, where you find this:
That tells you that the character set is UTF-8.
ChrisA
--
http://mail.python.org/mailman/lis
On Mon, Dec 24, 2012 at 12:46 PM, Terry Reedy wrote:
>> snapOffset("Closet-S1_r1", "Closet-S2_r3", <0,0,0>)
>
>
> Already legal Python
>
Not quite. This is the one part that *doesn't* work directly. In
POV-Ray, a vector eg is used to represent points,
transformations, and sometimes colors. The c
I'm hoping you meant for that to be public; if not, my apologies for
forwarding a private message.
On Mon, Dec 24, 2012 at 8:45 PM, Kene Meniru wrote:
> Chris Angelico wrote:
>> from povray_macros import *
>>
>
> Am afraid you misunderstood my post. The file fo
On Mon, Dec 24, 2012 at 9:32 PM, Kene Meniru wrote:
> You are saying I can create a python module that can parse this file format
> without using a system like python-ply? I know how to parse strings using
> python but considering that text files that describe a whole building may be
> quite large
On Wed, Dec 26, 2012 at 8:08 PM, iMath wrote:
> I am going to do a Basic Authentication ,
> so I need a url
> that its http response header that cotain 401 status code.
Looking into my binocular crystal ball, I see two things:
Left eye: You're trying to write a basic auth client, and want
some
On Thu, Dec 27, 2012 at 11:04 AM, wrote:
> Second, I honestly have no idea how to answer your questions. I am a
> sophomore in high school and I am trying to learn this on my own because my
> teacher is not very good at explaining things.
Unfortunately, there are a great many bad programming
On Thu, Dec 27, 2012 at 11:45 AM, Joshua Landau
wrote:
> FINALLY:
> When you use Google Groups, your quotations look to us like this:
>
>> This is something I said
>>
>> with lots of extra
>>
>> lines in the middle
>>
>> for no reason. Google
>>
>> Groups sucks, basically.
>
> So please just delet
On Thu, Dec 27, 2012 at 12:17 PM, Mitya Sirenef wrote:
> I have to agree - I saw that howto as well and it occurred to me
> that if we have to delete blank lines manually we might
> as well use postal pigeons with tiny little papyrus scrolls -
> at least those don't insert blank lines automaticall
On Thu, Dec 27, 2012 at 4:06 PM, Mitya Sirenef wrote:
> On 12/26/2012 10:09 PM, Gnarlodious wrote:
>>
>> This is problem that has unduly vexed me. When you start learning Python
>> they don't tell you about these sharp edges. Someone needs to explain. --
>> Gnarlie
>
>
> In fact, if there were no
On Thu, Dec 27, 2012 at 3:52 PM, Tim Roberts wrote:
> The
> compiled code in a function, for example, exists as an object without a
> name. That unnamed object can be bound to one or more function names, but
> the code doesn't know that. Example:
>
> def one():
> print( "Here's one" )
>
> tw
On Thu, Dec 27, 2012 at 3:35 PM, mjperreau wrote:
> I am new to raspberry pi and am looking at coming up with a program with a
> GUI menu for selecting saved videos onto HD TV.
>
> Can someone point me in the right direction please…
Huh, sounds like the Yosemite Project, one of the first non-triv
On Thu, Dec 27, 2012 at 6:26 PM, Abhas Bhattacharya
wrote:
> During run-time, I can always use: function_name.__name__ (although that's
> kind of lame because it returns "function_name"). But if the function itself
> contains print(__name__) and I call the function, it returns __main__ (yes,
>
On Thu, Dec 27, 2012 at 6:46 PM, Abhas Bhattacharya
wrote:
> [ a whole lot of double-spaced quoted text - please trim it ]
> If i call one() and two() respectively, i would like to see "one" and "two".
That completely goes against your idea of knowing at compile-time,
because the name "two" isn't
On Thu, Dec 27, 2012 at 5:50 PM, Ranting Rick
wrote:
> Every keyword, syntactical structure, style, etc, etc, should be based
> on logical foundations; not adolescent fads or propagating more
> idiotic cultural traditions. You piss and moan about language X and
> how asinine the language is, them
On Fri, Dec 28, 2012 at 12:16 AM, Omer Korat
wrote:
> I see. In that case, all I have to do is make sure NLTK is available when I
> load the pickled objects. That pretty much solves my problem. Thanks!
> So it means pickle doesn't ever save the object's values, only how it was
> created?
>
> Say
On Fri, Dec 28, 2012 at 7:01 AM, mogul wrote:
> Do I really need a real IDE, as the windows guys around me say I do, or will
> vim, git, make and other standalone tools make it the next 20 years too for
> me?
Welcome!
No, you don't *need* an IDE. Some people like them and are the more
producti
On Fri, Dec 28, 2012 at 8:52 PM, Andrew Berg wrote:
> On 2012.12.28 00:51, Jamie Paul Griffin wrote:
>> The benefit of the tmux client (terminal multiplexer) is that I can see
>> all the screens at the same time and quickly switch between them. I
>> believe Linux has screen(1) which does the same
On Sat, Dec 29, 2012 at 2:42 AM, Marco wrote:
> Hi all, in the documentation:
>
> http://docs.python.org/3.3/reference/lexical_analysis.html
>
> the escape sequence `\newline` is expained as "Backslash and newline
> ignored". What does it mean?
It means this:
>>> foo = "This is\
one string."
>>
On Sat, Dec 29, 2012 at 3:01 AM, wrote:
> I am working with Python looping in SPSS. What are the limits for the
>
> for var1, var2, var3 in zip(Variable1, Variable2, Variable3):
>
> statement in the Python looping function within SPSS? I am getting an error
> message, I presume because of wrappi
On Sat, Dec 29, 2012 at 3:43 AM, wrote:
> Chris,
>
> I tried placing in the format you suggested and received this error message:
>
> END PROGRAM.
> Traceback (most recent call last):
> File "", line 396, in
> ValueError: incomplete format key
I don't think the code I gave could produce that.
On Sat, Dec 29, 2012 at 1:02 PM, Westley Martínez wrote:
> I only use vim for everything. IDEs just seem to get in my way.
I've just (like ten minutes ago) come across a perfect example of what
makes an IDE useful. My mother maintains a collection of documents
(book indexes, historical records,
On Sat, Dec 29, 2012 at 11:39 PM, Morten Engvoldsen
wrote:
> Hi Dave,
> Thanks for reply. I will really appreciate if you reply to my mail id and
> keep python list in cc, since everytime you reply my query i need to search
> the reply in the forwarding message of python list.
The normal thing to
On Sun, Dec 30, 2012 at 3:43 AM, Alan Graham wrote:
> Hello Python experts,
>
> I want to insert Unicode chars in an Entry widget by pushing on buttons;
> one for each Unicode character I need. I have made the Unicode buttons.
> I just need a simple function that will send the Unicode character to
On Sun, Dec 30, 2012 at 3:54 AM, Morten Engvoldsen wrote:
> but here payment_line has null value since it was not able to retrieve
> payment line value from the payment object.
Specifically what value? Is it an empty string? An empty list? The
singleton None?
ChrisA
--
http://mail.python.org/ma
On Sun, Dec 30, 2012 at 4:11 AM, Irmen de Jong wrote:
> b1=Button(f, text='char1', command=lambda b=1: insert_char(b))
> b2=Button(f, text='char2', command=lambda b=2: insert_char(b))
> ...etc..
>
> def insert_char(b):
> if b==1:
> entrywidget.insert(0, u"\u20ac") # inserts € in the
On Sun, Dec 30, 2012 at 4:44 AM, Monte Milanuk wrote:
> Maybe its because I'm still just a hobbyist when it comes to coding, but I
> spend far more time 'thinking' about what I'm doing than typing things in...
> so shaving a few seconds here and there are less important to me.
The value of a good
On Sun, Dec 30, 2012 at 6:52 AM, Roy Smith wrote:
> Chris Angelico wrote:
> [regarding
>> Bracket matching
>> Language-sensitive auto-indentation
>> and automatically indents
>
> Yeah, what he said, plus syntax coloring. And keyword highlighting.
> And autocomp
On Sun, Dec 30, 2012 at 8:52 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> It's extremely handy; not only errors from
>> compilation/execution, but things like a 'git grep -n' fit too.
>
> Emacs has integrations with many version con
On Sun, Dec 30, 2012 at 9:40 AM, Mitya Sirenef wrote:
> On 12/29/2012 05:30 PM, Chris Angelico wrote:
>>>
>>> "In the big for loop, a couple of lines down, no, not there, the other
>>> >for loop, yeah, now go down a couple of lines, no that's too far, b
On Sun, Dec 30, 2012 at 11:38 AM, Tim Johnson wrote:
> Along the way, I did use emacs as well and ended doing quite a bit
> of elisping.
elispsis. n. the intentional omission of unnecessary work which can be
inferred by the editor; often indicated with three consecutive
parentheses ((( )))
Chr
On Sun, Dec 30, 2012 at 8:52 PM, Morten Guldager
wrote:
> Question is if it's possible to tweak xml.etree.ElementTree to accept, and
> understand sloppy html, or if you have suggestions for similar easy to use
> framework, preferably among the included batteries?
>
Check out BeautifulSoup, it's f
On Tue, Jan 1, 2013 at 9:46 AM, Ben Finney wrote:
> Hans Mulder writes:
>
>> Don't bother: Python comes with a free IDE named IDLE.
>
> And any decent Unix-alike (most OSen apart from Windows) comes with its
> own IDE: the shell, a good text editor (Vim or Emacs being the primary
> candidates), a
pt, which is insignificant). The second time around, you're not
turning it into an integer, so that will crash (in Python 3) with the
error that strings and integers aren't ordered (that is, that it makes
no sense to ask whether a string is less than the integer 1). Python
2, on the
On Tue, Jan 1, 2013 at 10:42 AM, wrote:
> Hey :)
Oh, and another tip. Threatening violence to your computer is unlikely
to make it change its ways, and it certainly isn't a helpful subject
line :)
All the best.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jan 1, 2013 at 2:55 PM, Steven D'Aprano
wrote:
> On Sun, 30 Dec 2012 09:30:10 +1100, Chris Angelico wrote:
>
>> Absolutely! Though it's roughly as good to have the current cursor
>> position shown in a status line somewhere, and takes up less real
>> es
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_
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 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 appl
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
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 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 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 Thu, Jan 3, 2013 at 1:00 AM, wrote:
'''hello
> world'''
> 'hello\nworld'
fred=''' hello
> world'''
print(fred)
> hello
> world
That's because repr() converts the newline into "\n", while print
renders it literally. Check out repr() in the docs:
http://docs.python.org/3/librar
On Thu, Jan 3, 2013 at 1:04 AM, NewbiePythonic wrote:
> Hello Friends,
>
> I am very new to python and loved the easiness with which we can deal with
> problems. I would like to take things seriously and develop some good web
> applications. But right now I am stuck and looking for a mentor who
On Wed, Jan 2, 2013 at 11:07 PM, Peter Otten <__pete...@web.de> wrote:
> someone wrote:
>> Another thing is that I don't understand this warning:
>>
>> Invalid name "original_format" (should match (([A-Z_][A-Z0-9_]*)|
>> > (__.*__))$)
>>
>> I get it everywhere... I don't understand how it wants me
On Thu, Jan 3, 2013 at 1:28 AM, Roy Smith wrote:
> PPS: Some additional hints for staying sane while working with dates:
I assume you mean timestamps. A date doesn't need to worry about UTC
the way a timestamp does. Beyond that, I agree with most of your
comments.
> 3) Run all your servers with
On Thu, Jan 3, 2013 at 3:24 AM, Wolfgang Strobl wrote:
> Chris Angelico :
>>I strongly recommend IDLE - much
>>better editing/recall facilities than the command-line Python has),
>>and work through the tutorial:
>
> Well, this is certainly a matter of taste. I
On Thu, Jan 3, 2013 at 4:27 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>>> I assume you mean timestamps. A date doesn't need to worry about UTC
>>> the way a timestamp does.
>
> I'm not sure how a date and a timestamp differ in an
On Thu, Jan 3, 2013 at 4:52 AM, Ian Kelly wrote:
> On Wed, Jan 2, 2013 at 7:32 AM, Chris Angelico wrote:
>> Okay, I have to ask... why? Does it have an exception for names of classes?
>
> Yes, and for module-level functions.
Oh, okay. So the check's a lot more specific than
On Thu, Jan 3, 2013 at 10:19 PM, someone wrote:
> Doesn't this "[ ... ]" mean something optional?
>
> What does {2,30}$ mean?
>
> I think $ means that the {2,30} is something in the end of the sentence...
You can find regular expression primers all over the internet, but to
answer these specific
On Fri, Jan 4, 2013 at 5:53 AM, Ray Cote
wrote:
> proxies = {
> 'https': '192.168.24.25:8443',
> 'http': '192.168.24.25:8443', }
>
> a = requests.get('http://google.com/', proxies=proxies)
>
>
> When I look at the proxy log, I see a GET being performed -- when it should
> be a CONNECT.
>
On Sat, Jan 5, 2013 at 2:00 AM, Hans Mulder wrote:
> It the proxy URL is http://192.168.24.25/, then the client should send
> GET requests to the proxy in both cases, and the proxy should send GET
> or CONNECT to the origin server, depending on whether origin URL uses
> SSL.
>
> If the proxy URL i
On Fri, Jan 4, 2013 at 6:34 PM, Anssi Saari wrote:
> Ben Finney writes:
>
>> And any decent Unix-alike (most OSen apart from Windows) comes with its
>> own IDE: the shell, a good text editor (Vim or Emacs being the primary
>> candidates), and a terminal multiplexor (such as ‘tmux’ or GNU Screen).
On Sat, Jan 5, 2013 at 2:50 AM, wrote:
>
> Hi
>
> I wonder if the additional new line charachter at the end of the standard
> output capture is on purpose with 'subprocess.check_output'?
>
subprocess.check_output([ 'cygpath', 'C:\\' ])
> '/cygdrive/c\n'
>
> If I do the same from the shell t
On Sat, Jan 5, 2013 at 3:38 AM, Grant Edwards wrote:
> I've added equals, backslash, commas, square/curly brackets, colons and
> semicolons to the
> prohibited character list. I also reduced the maximum length to 60
> characters. It's unfortunate that parentheses are overloaded for both
> expres
On Sat, Jan 5, 2013 at 4:14 AM, Grant Edwards wrote:
> On 2013-01-04, Chris Angelico wrote:
>> On Sat, Jan 5, 2013 at 3:38 AM, Grant Edwards
>> wrote:
>
>>> I've added equals, backslash, commas, square/curly brackets, colons
>>> and semicolons to the
On Sat, Jan 5, 2013 at 5:09 AM, Grant Edwards wrote:
> The error messages are still pretty cryptic, so improving
> that will add a few more lines. One nice thing about the ast code is
> that it's simple to add code to allow C-like character constants such
> that ('A' === 0x41). Here's the first
ould simply have a
class ruimteschip that knows how to draw itself.
Final comment: Your code is fairly well laid out, and your query is
clear. Thanks! It's so much easier to read than something that's vague
about what's actually wrong :) Just one thing. Your subject line
doesn't
1401 - 1500 of 14669 matches
Mail list logo