Re: Over 30 types of variables available in python ?

2013-01-07 Thread chaouche yacine
Thanks for all your comments. It appears to me that there is a slight confusion between types and classes then, plus other entities (protocols ?) So my question is : is there a notion of "type" in python, like in other languages (integers, booleans, floats, strings, characters (in c)) ? if so,

Re: os.path.realpath(path) bug on win7 ?

2013-01-07 Thread iMath
在 2013年1月7日星期一UTC+8上午7时40分06秒,Victor Stinner写道: > It looks like the following issue: > > http://bugs.python.org/issue14094 > > Victor > > Le 6 janv. 2013 07:59, "iMath" <22815...@qq.com> a écrit : > > > > > os.path.realpath(path)  bug on win7 ? > > Temp.link is a Symbolic link > Its target 

Re: how to detect the character encoding in a web page ?

2013-01-07 Thread iMath
在 2012年12月24日星期一UTC+8上午8时34分47秒,iMath写道: > how to detect the character encoding in a web page ? > > such as this page > > > > http://python.org/ up to now , maybe chadet is the only way to let python automatically do it . -- http://mail.python.org/mailman/listinfo/python-list

INSTRUCTOR SOLUTIONS MANUAL :: Design of Reinforced Concrete, 8th Ed by McCormac, Brown

2013-01-07 Thread ronaldmanualsea
Here are instructor's solutions manuals to the scientific textbooks in PDF format. They cover solutions to all problems. If you need any, let me know its title, edition and author. If your title is not listed here don't worry because it is a list of some.. NOTE: This service is NOT free, and Do

Re: regular expression : the dollar sign ($) work with re.match() or re.search() ?

2013-01-07 Thread iMath
在 2012年9月26日星期三UTC+8下午3时38分50秒,iMath写道: > I only know the dollar sign ($) will match a pattern from the > > end of a string,but which method does it work with ,re.match() or re.search() > ? I thought re.match('h.$', 'hbxihi') will match ‘hi’ ,but it does not .so why ? -- http://mail.python.or

Re: pyodbc utf-8

2013-01-07 Thread Markus Christen
When i look at my output on my webpage, i can see this: W\xe4denswil but it have to be this: Wädenswil you know now what i can see exactly... im using django and they told me its a python problem with utf-8. when i turn off debug, i cant see the page, it give me an error 500. the text "Danke für

Re: Over 30 types of variables available in python ?

2013-01-07 Thread Steven D'Aprano
On Mon, 07 Jan 2013 00:53:26 -0800, chaouche yacine wrote: > Thanks for all your comments. It appears to me that there is a slight > confusion between types and classes then, plus other entities (protocols > ?) In Python 3, types and classes are synonyms. They mean the same thing. In Python 2,

License status of pycollada?

2013-01-07 Thread Gene Heskett
Greetings all; Trying to collect all the dependencies of FreeCad-0.13, but it appears that pycollada is behind some sort of a login/paywall on github. Is anyone here familiar with how that works? Thanks. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, j

RE: Numpy outlier removal

2013-01-07 Thread Joseph L. Casale
> In other words: this approach for detecting outliers is nothing more than  > a very rough, and very bad, heuristic, and should be avoided. Heh, very true but the results will only be used for conversational purposes. I am making an assumption that the data is normally distributed and I do expec

Re: regular expression : the dollar sign ($) work with re.match() or re.search() ?

2013-01-07 Thread Steven D'Aprano
On Mon, 07 Jan 2013 01:45:58 -0800, iMath wrote: > 在 2012年9月26日星期三UTC+8下午3时38分50秒,iMath写道: >> I only know the dollar sign ($) will match a pattern from the >> >> end of a string,but which method does it work with ,re.match() or >> re.search() ? > > I thought re.match('h.$', 'hbxihi') will matc

Re: running multiple django/bottle instances

2013-01-07 Thread andrea crotti
Not really, on the staging server we are using the django/bottle webserver.. Anyway I was thinking that a great possible solution might be to set up something like buildbot to: - checkout all the needed branches - run the various servers for all of them on different ports, where maybe the mappi

Re: License status of pycollada?

2013-01-07 Thread Chris Rebert
On Sunday, January 6, 2013, Gene Heskett wrote: > Greetings all; > > Trying to collect all the dependencies of FreeCad-0.13, but it appears that > pycollada is behind some sort of a login/paywall on github. Is anyone here > familiar with how that works? > Er, what? The repo seems freely browseab

Re: Over 30 types of variables available in python ?

2013-01-07 Thread Duncan Booth
chaouche yacine wrote: > > booleans > ints, floats, longs, complexes > strings, unicode strings > lists, tuples, dictionaries, dictionary views, sets, frozensets, > buffers, bytearrays, slices functions, methods, code > objects,modules,classes, instances, types, nulls (there is exactly one > obj

what’s the difference between socket.send() and socket.sendall() ?

2013-01-07 Thread iMath
what’s the difference between socket.send() and socket.sendall() ? It is so hard for me to tell the difference between them from the python doc so what is the difference between them ? and each one is suitable for which case ?-- http://mail.python.org/mailman/listinfo/python-list

"Gangnam Style" in line for UK dictionary inclusion

2013-01-07 Thread Constantine
"Gangnam Style" in line for UK dictionary inclusion http://adf.ly/2836760/news.yahoo.com/gangnam-style-line-uk-dictionary-inclusion-134517741.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with Unicode char in Python 3.3.0

2013-01-07 Thread Franck Ditter
In article , marduk wrote: > On Sun, Jan 6, 2013, at 11:43 AM, Franck Ditter wrote: > > Hi ! > > I work on MacOS-X Lion and IDLE/Python 3.3.0 > > I can't get the treble key (U1D11E) ! > > > > >>> "\U1D11E" > > SyntaxError: (unicode error) 'unicodeescape' codec can't > > decode bytes in positio

Re: Problem with Unicode char in Python 3.3.0

2013-01-07 Thread Chris Angelico
On Mon, Jan 7, 2013 at 11:57 PM, Franck Ditter wrote: > <<< print('\U0001d11e') > Traceback (most recent call last): > File "", line 1, in > print('\U0001d11e') > UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e' > in position 0: Non-BMP character not supported in Tk Th

Re: Problem with Unicode char in Python 3.3.0

2013-01-07 Thread Terry Reedy
On 1/7/2013 7:57 AM, Franck Ditter wrote: <<< print('\U0001d11e') Traceback (most recent call last): File "", line 1, in print('\U0001d11e') UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e' in position 0: Non-BMP character not supported in Tk The message comes fro

Re: what’s the difference between socket.send() and socket.sendall() ?

2013-01-07 Thread Thomas Rachel
Am 07.01.2013 11:35 schrieb iMath: what’s the difference between socket.send() and socket.sendall() ? It is so hard for me to tell the difference between them from the python doc so what is the difference between them ? and each one is suitable for which case ? The docs are your friend. See

Re: "Gangnam Style" in line for UK dictionary inclusion

2013-01-07 Thread GadgetSteve
On Monday, January 7, 2013 12:50:00 PM UTC, Constantine wrote: > "Gangnam Style" in line for UK dictionary inclusion > http://adf.ly/2836760/news.yahoo.com/gangnam-style-line-uk-dictionary-inclusion-134517741.html And this has to do with python how? -- http://mail.python.org/mailman/listinfo/pyt

Re: "Gangnam Style" in line for UK dictionary inclusion

2013-01-07 Thread Dave Angel
On 01/07/2013 08:22 AM, GadgetSteve wrote: > On Monday, January 7, 2013 12:50:00 PM UTC, Constantine wrote: >> Trying to get control: >> http://AboutToTrashYou.invalid/2892929384736760/news.yahoo.com/Whatever-you-like-it-wont&44work134517741.html > And this has to do with python how? When r

Re: Over 30 types of variables available in python ?

2013-01-07 Thread marduk
So I guess if one *really* wanted to compare C variables to Python variables, you could say that all python variables are of type void* except Python does all mallocs/frees and the casting for you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Over 30 types of variables available in python ?

2013-01-07 Thread Dave Angel
On 01/07/2013 09:32 AM, marduk wrote: > So I guess if one *really* wanted to compare C variables to Python > variables, you could say that all python variables are of type void* > except Python does all mallocs/frees and the casting for you. A better analogy would be to C++, and all names would be

Re: Over 30 types of variables available in python ?

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 1:45 AM, Dave Angel wrote: > On 01/07/2013 09:32 AM, marduk wrote: >> So I guess if one *really* wanted to compare C variables to Python >> variables, you could say that all python variables are of type void* >> except Python does all mallocs/frees and the casting for you. >

Re: Numpy outlier removal

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 05:11, Steven D'Aprano wrote: > On Mon, 07 Jan 2013 02:29:27 +, Oscar Benjamin wrote: > >> On 7 January 2013 01:46, Steven D'Aprano >> wrote: >>> On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote: >>> >>> I'm not sure that this approach is statistically robust. No,

Re: what’s the difference between socket.send() and socket.sendall() ?

2013-01-07 Thread Steven D'Aprano
On Mon, 07 Jan 2013 18:35:20 +0800, iMath wrote: > what’s the > difference between socket style="font-size: 12pt; ">.send() and socket.sendall() > ? Please re-send your question as text, instead of as HTML (so-called "rich text"). Since many people are reading this forum via Usenet, sending HT

Re: Numpy outlier removal

2013-01-07 Thread Robert Kern
On 07/01/2013 15:20, Oscar Benjamin wrote: On 7 January 2013 05:11, Steven D'Aprano wrote: On Mon, 07 Jan 2013 02:29:27 +, Oscar Benjamin wrote: On 7 January 2013 01:46, Steven D'Aprano wrote: On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote: I'm not sure that this approach i

When is overriding __getattr__ is useful?

2013-01-07 Thread Rodrick Brown
Can someone provide an example why one would want to override __getattr__ and __getattribute__ in a class? -- http://mail.python.org/mailman/listinfo/python-list

Re: what’s the difference between socket.send() and socket.sendall() ?

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 2:28 AM, Steven D'Aprano wrote: > I > once was on a maths mailing list for about three years before I > realised that the most prolific and helpful person there was as > blind as a bat. And that, I think, is what s/he would have most wanted: three years (more, most li

Vigil, the eternal morally vigilant programming language

2013-01-07 Thread Alain Ketterlin
I just came across Vigil, an extension to python for serious software engineers, at https://github.com/munificent/vigil and thought everybody in this group would be interested (sorry if it has been announced before). >From README: | Vigil is a very safe programming language, and an entry in the

Re: Vigil, the eternal morally vigilant programming language

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 3:01 AM, Alain Ketterlin wrote: > > I just came across Vigil, an extension to python for serious software > engineers, at https://github.com/munificent/vigil and thought everybody > in this group would be interested (sorry if it has been announced > before). It's the logica

Re: problem with exam task for college

2013-01-07 Thread jeltedeproft
ok after another round of reparations, my update works again and it updates the fuel meter, but i still can't get the view of the spaceship to rotate, for now only the direction the spaceship accelerates when pressing "up" changes after a rotation, but the spaceship itself keeps pointing up. Thi

Re: How to modify this script?

2013-01-07 Thread Kurt Hansen
Den 06/01/13 16.12, chaouche yacine skrev: I'm not confident this would run on gedit. It works on a python interpreter if you have a file named data.txt in the same directory containing your sample data. It surely has to do with how gedit works then, because the "$" sign isn't used in python, th

Re: When is overriding __getattr__ is useful?

2013-01-07 Thread Albert Hopkins
On Mon, Jan 7, 2013, at 10:54 AM, Rodrick Brown wrote: > Can someone provide an example why one would want to override __getattr__ > and __getattribute__ in a class? They're good for cases when you want to provide an "attribute-like" quality but you don't know the attribute in advance. For exa

Re: problem with exam task for college

2013-01-07 Thread Vincent Vande Vyvre
Le 07/01/13 17:22, jeltedepr...@hotmail.com a écrit : > ok after another round of reparations, my update works again and it updates > the fuel meter, but i still can't get the view of the spaceship to rotate, > for now only the direction the spaceship accelerates when pressing "up" > changes aft

help

2013-01-07 Thread kwakukwatiah
download wxpython but whenever I try to use it I get this I’m a beginner in python pls I need help. Traceback (most recent call last): File "C:/Python27/wxp.py", line 1, in import wx File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in from wx._core im

Re: How to modify this script?

2013-01-07 Thread Gertjan Klein
Kurt Hansen wrote: To convert tab-separated text lines into a HTML-table: As you apparently didn't receive answers that worked for you I tried to get what you want to work and test it in Gedit. Here's the result: $< lines = $GEDIT_SELECTED_TEXT.split("\n"); output = '\n'; max_columns = 0 f

[Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-07 Thread Steven D'Aprano
On Mon, 07 Jan 2013 15:20:57 +, Oscar Benjamin wrote: > There are sometimes good reasons to get a line of best fit by eye. In > particular if your data contains clusters that are hard to separate, > sometimes it's useful to just pick out roughly where you think a line > through a subset of the

test failed: test_urlwithfrag

2013-01-07 Thread Elli Lola
Dear python team,I never used python before and installed it today the first time, so I have no idea what to do about this failure:$ ./python -m test -v test_urlwithfrag== CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3]==   Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-end

OT: local technical community portals

2013-01-07 Thread Jason Hsu
For the Minneapolis/St. Paul area of Minnesota, there is a technical community portal at http://tech.mn/. You'll see that this portal has links to user groups, networking events, jobs, etc. No, I didn't start this thread to tout this site. MY QUESTION: What are the local technical community p

I'm looking for a Junior level Django job (telecommute)

2013-01-07 Thread P Dev
I'm looking for a Junior level Django job (telecommute) About me: - less than year of experience with Python/Django - Intermediate knowledge of Python/Django - Experience with Linux - Experience with Django ORM - Passion for developing high-quality software and Python language - I am able to us

Re: help

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 10:35 AM, wrote: > download wxpython but whenever I try to use it I get this I’m a beginner in > python pls I need help. > > ImportError: DLL load failed: %1 is not a valid Win32 application. Did you download the 64-bit version on a 32-bit system? Chris Angelico -- http:

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 4:58 AM, Steven D'Aprano wrote: > Anyone can fool themselves into placing a line through a subset of non- > linear data. Or, sadly more often, *deliberately* cherry picking fake > clusters in order to fool others. Here is a real world example of what > happens when people pi

INSTRUCTOR SOLUTIONS MANUAL :: Engineering Vibration 3rd Ed by Inman

2013-01-07 Thread kalvinmanual
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. INSTRUCTOR SOLUTIONS MANUAL :: Linear Algebra and Its Applic

Searching through two logfiles in parallel?

2013-01-07 Thread Victor Hooi
Hi, I'm trying to compare two logfiles in Python. One logfile will have lines recording the message being sent: 05:00:06 Message sent - Value A: 5.6, Value B: 6.2, Value C: 9.9 the other logfile has line recording the message being received 05:00:09 Message received - Value A: 5.6, Val

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 17:58, Steven D'Aprano wrote: > On Mon, 07 Jan 2013 15:20:57 +, Oscar Benjamin wrote: > >> There are sometimes good reasons to get a line of best fit by eye. In >> particular if your data contains clusters that are hard to separate, >> sometimes it's useful to just pick out r

Re: Searching through two logfiles in parallel?

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 22:10, Victor Hooi wrote: > Hi, > > I'm trying to compare two logfiles in Python. > > One logfile will have lines recording the message being sent: > > 05:00:06 Message sent - Value A: 5.6, Value B: 6.2, Value C: 9.9 > > the other logfile has line recording the message being

Re: help

2013-01-07 Thread Ian Kelly
On Mon, Jan 7, 2013 at 12:37 PM, Chris Angelico wrote: > On Tue, Jan 8, 2013 at 10:35 AM, wrote: >> download wxpython but whenever I try to use it I get this I’m a beginner in >> python pls I need help. >> >> ImportError: DLL load failed: %1 is not a valid Win32 application. > > Did you download

Re: test failed: test_urlwithfrag

2013-01-07 Thread Irmen de Jong
On 7-1-2013 19:26, Elli Lola wrote: > I never used python before and installed it today the first time, so I have > no idea what > to do about this failure: > > > $ ./python -m test -v test_urlwithfrag [..snip..] > ImportError: No module named 'test.test_urlwithfrag' > > 1 test failed: >

Re: Searching through two logfiles in parallel?

2013-01-07 Thread Victor Hooi
Hi Oscar, Thanks for the quick reply =). I'm trying to understand your code properly, and it seems like for each line in logfile1, we loop through all of logfile2? The idea was that it would remember it's position in logfile2 as well - since we can assume that the loglines are in chronological

Re: Searching through two logfiles in parallel?

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 23:41, Victor Hooi wrote: > Hi Oscar, > > Thanks for the quick reply =). > > I'm trying to understand your code properly, and it seems like for each line > in logfile1, we loop through all of logfile2? No we don't. It iterates once through both files but keeps a buffer of lines

Calculate Big Number

2013-01-07 Thread Nac Temha
Hello, How to *quickly* calculate large numbers. For example >>> (10**25) * (2**50) 11258999068426240L Regards. -- http://mail.python.org/mailman/listinfo/python-list

How to implement mouse gesture by python or pyqt ?

2013-01-07 Thread iMath
It would be better to give me some examples .thanks in advance ! P.S. which module or lib are needed ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Calculate Big Number

2013-01-07 Thread Oscar Benjamin
On 8 January 2013 00:44, Nac Temha wrote: > Hello, > How to quickly calculate large numbers. For example (10**25) * (2**50) > 11258999068426240L I just tested that line in the interpreter and it ran so quickly it seemed instantaneous (maybe my computer is faster than

INSTRUCTOR SOLUTIONS MANUAL :: Classical Electrodynamics 2nd edition by John David Jackson

2013-01-07 Thread kalvinmanual
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. INSTRUCTOR SOLUTIONS MANUAL :: Calculus 8th Edition by Varbe

Re: Ubuntu Python -dbg packages

2013-01-07 Thread Lee Harr
>> Ok, so now I tried python3.3-dbg but I don't think the pyqt >> modules are compiled for 3.3 and that may be preventing >> the import there. >> >> Those extension modules would need to be compiled for >> an exactly matching python interpreter, right? > > For Windows visual C compiler, that is tr

Difference between these two lists?

2013-01-07 Thread andydtaylor
Hi, Python newbie here again - this is probably a quick one. What's the difference between the lines I've numbered 1. and 2. below, which produce the following results: Results: 1. [ANG, BAR, BPK, CTN, QGH, QHD, KXX] 2. ['ANG', 'BAR', 'BPK', 'CTN', 'QGH', 'QHD', 'KXX'] Code: cursor_from.ex

Re: Difference between these two lists?

2013-01-07 Thread andydtaylor
I think I can answer my own question on reflection the first one is actually a string I think? I was confused by the square brackets around the placeholder %s. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calculate Big Number

2013-01-07 Thread Tim Chase
On 01/07/13 18:44, Nac Temha wrote: How to *quickly* calculate large numbers. For example (10**25) * (2**50) 11258999068426240L that's how...just do the math. For any other sort of answer, you'd have to clarify your question. On my laptop, that operation came back

Re: Difference between these two lists?

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 12:00 PM, wrote: > Hi, > > Python newbie here again - this is probably a quick one. What's the > difference between the lines I've numbered 1. and 2. below, which produce the > following results: >1. print stn_fields = '[%s]' % ', '.join(map(str, stn_list_short)) >

Re: Difference between these two lists?

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 12:06 PM, wrote: > I think I can answer my own question on reflection the first one is > actually a string I think? I was confused by the square brackets around the > placeholder %s. That's correct. Your first line is putting square brackets around a comma-joined li

Re: Calculate Big Number

2013-01-07 Thread Nac Temha
Thanks for reply. I wonder how quickly calculate big numbers. Can you explain me as theoretical? Because this numbers overflow size of integer and double. On Tue, Jan 8, 2013 at 3:08 AM, Tim Chase wrote: > On 01/07/13 18:44, Nac Temha wrote: > >> How to *quickly* calculate large numbers. For exa

Re: Difference between these two lists?

2013-01-07 Thread Roy Smith
In article <700d2bd9-e1df-4d38-81c7-77029a36c...@googlegroups.com>, andydtay...@gmail.com wrote: > Hi, > > Python newbie here again - this is probably a quick one. What's the > difference between the lines I've numbered 1. and 2. below, which produce the > following results: > > Results: > 1

Re: Difference between these two lists?

2013-01-07 Thread Dave Angel
On 01/07/2013 08:00 PM, andydtay...@gmail.com wrote: > Hi, > > Python newbie here again - this is probably a quick one. What's the > difference between the lines I've numbered 1. and 2. below, which produce the > following results: > > Results: > 1. [ANG, BAR, BPK, CTN, QGH, QHD, KXX] > 2. ['ANG

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-07 Thread Steven D'Aprano
On Mon, 07 Jan 2013 22:32:54 +, Oscar Benjamin wrote: > An example: Earlier today I was looking at some experimental data. A > simple model of the process underlying the experiment suggests that two > variables x and y will vary in direct proportion to one another and the > data broadly reflec

Re: Calculate Big Number

2013-01-07 Thread Tomasz Rola
On Tue, 8 Jan 2013, Nac Temha wrote: > Hello, > How to *quickly* calculate large numbers. For example > >>> (10**25) * (2**50) > 11258999068426240L > Um, Karatsuba multiplication? http://en.wikipedia.org/wiki/Karatsuba_algorithm Or see what GMP folks are doing: http://

Re: Calculate Big Number

2013-01-07 Thread Dave Angel
On 01/07/2013 07:44 PM, Nac Temha wrote: > Hello, > How to *quickly* calculate large numbers. For example (10**25) * (2**50) > 11258999068426240L > > Since all of the terms are const, you could just use print "11258999068426240L" Or if you hav

Re: Calculate Big Number

2013-01-07 Thread Dave Angel
On 01/07/2013 08:22 PM, Nac Temha wrote: > Thanks for reply. I wonder how quickly calculate big numbers. Can you > explain me as theoretical? Because this numbers overflow size of integer > and double. Please don't top-post. It makes the context totally out of order. Python automatically promotes

Re: Calculate Big Number

2013-01-07 Thread Roy Smith
In article , Nac Temha wrote: > Thanks for reply. I wonder how quickly calculate big numbers. Can you > explain me as theoretical? Because this numbers overflow size of integer > and double. Now, that's a good question. The answer is that Python implements multiple-precision arithmetic. This

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-07 Thread Steven D'Aprano
On Tue, 08 Jan 2013 06:43:46 +1100, Chris Angelico wrote: > On Tue, Jan 8, 2013 at 4:58 AM, Steven D'Aprano > wrote: >> Anyone can fool themselves into placing a line through a subset of non- >> linear data. Or, sadly more often, *deliberately* cherry picking fake >> clusters in order to fool oth

Re: Calculate Big Number

2013-01-07 Thread Dave Angel
(forwarding the private reply to the group) On 01/07/2013 09:03 PM, Nac Temha wrote: > Thanks. I using version 2.7 .I want to understand how to handling big > number. Just want to know logic. Without going into further details but I > want to learn logic of this issue. How to keep datas in pytho

Re: Difference between these two lists?

2013-01-07 Thread andydtaylor
Thanks, I think I'm clear now. I guess (map(str, stn_list)) was all about how to make a string starting with integers. I picked that up and began using it without realising it was over catering for a list already containing strings, and join(stn_list) was really all I required. Repr and Eval

Re: Difference between these two lists?

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 1:21 PM, wrote: > Repr and Eval I think I get. Eval certainly. That's a familiar concept, and > one I hope to use tomorrow to feed a line to psycopg2. I hope not. Why do you need eval? It's extremely dangerous. Chances are there's a better way to do it; if your users are

FYI - wiki.python.org compromised

2013-01-07 Thread Brian Curtin
On December 28th, an unknown attacker used a previously unknown remote code exploit on http://wiki.python.org/. The attacker was able to get shell access as the "moin" user, but no other services were affected. Some time later, the attacker deleted all files owned by the "moin" user, including all

how to download internet files by python ?

2013-01-07 Thread iMath
for example ,if I want to download this file ,how to implement the download functionality by python ? http://down.51voa.com/201208/se-ed-foreign-students-friends-16aug12.mp3 as for download speed ,of course ,the fast ,the better ,so how to implement it ? It would be better to show me an examp

How to get the selected text of the webpage in chrome through python ?

2013-01-07 Thread iMath
How to get the selected text of the webpage in chrome through python ? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to download internet files by python ?

2013-01-07 Thread Cameron Simpson
On 07Jan2013 20:19, iMath wrote: | for example ,if I want to download this file ,how to implement the download functionality by python ? | | http://down.51voa.com/201208/se-ed-foreign-students-friends-16aug12.mp3 | | as for download speed ,of course ,the fast ,the better ,so how to implement

Re: how to download internet files by python ?

2013-01-07 Thread Rodrick Brown
On Mon, Jan 7, 2013 at 11:19 PM, iMath wrote: > for example ,if I want to download this file ,how to implement the > download functionality by python ? > > http://down.51voa.com/201208/se-ed-foreign-students-friends-16aug12.mp3 > > as for download speed ,of course ,the fast ,the better ,so how t

Re: how to download internet files by python ?

2013-01-07 Thread Roy Smith
In article , Cameron Simpson wrote: > On 07Jan2013 20:19, iMath wrote: > | for example ,if I want to download this file ,how to implement the download > | functionality by python ? > | > | http://down.51voa.com/201208/se-ed-foreign-students-friends-16aug12.mp3 > | > | as for download speed

comparison between non-comparable objects

2013-01-07 Thread Kelvin Li
The language reference says: "...the choice whether one object [of built-in type] is considered smaller or larger than another one is made arbitrarily..." but that seems to be Python 2 behavior; Python 3 apparently raises a TypeError. Does the documentation need updating? Thanks, Kelvin -- htt

Re: comparison between non-comparable objects

2013-01-07 Thread Dave Angel
On 01/08/2013 12:28 AM, Kelvin Li wrote: > The language reference says: > > "...the choice whether one object [of built-in type] is considered > smaller or larger than another one is made arbitrarily..." When quoting some online source, please give a reference link. It took me a while to find the

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 1:06 PM, Steven D'Aprano wrote: >> given that weather patterns have been known to follow cycles at least >> that long. > > That is not a given. "Weather patterns" don't last for thirty years. > Perhaps you are talking about climate patterns? Yes, that's what I meant. In any

Re: comparison between non-comparable objects

2013-01-07 Thread Kelvin Li
> When quoting some online source, please give a reference link. It took > me a while to find the following page with your quote in it: > > > http://docs.python.org/3.3/reference/expressions.html > >in section "6.9 Comparisons" Sorry ab