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 location is 

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

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 ? --

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,

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 expect

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 match ‘hi’

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

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 browseable.

Re: Over 30 types of variables available in python ?

2013-01-07 Thread Duncan Booth
chaouche yacine yacinechaou...@yahoo.com 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

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

2013-01-07 Thread iMath
what’s the difference between socket.send() andsocket.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 mailman.175.1357492817.2939.python-l...@python.org, marduk mar...@python.net 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)

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 nob...@nowhere.org wrote: print('\U0001d11e') Traceback (most recent call last): File pyshell#1, line 1, in module print('\U0001d11e') UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e' in position 0: Non-BMP character

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 pyshell#1, line 1, in module print('\U0001d11e') UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e' in position 0: Non-BMP character not supported in Tk The

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.

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? --

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-wont44work134517741.html And this has to do with python how? When

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 d...@davea.name 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

Re: Numpy outlier removal

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 05:11, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 07 Jan 2013 02:29:27 +, Oscar Benjamin wrote: On 7 January 2013 01:46, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote: I'm

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: p class=MsoNormalttspan lang=EN-US style=font-size: 12pt; color: white; background-color: rgb(68, 110, 248); background-position: initial initial; background-repeat: initial initial; what’s the difference between socket/span/span lang=EN-US

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 steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 07 Jan 2013 02:29:27 +, Oscar Benjamin wrote: On 7 January 2013 01:46, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 06 Jan 2013

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 steve+comp.lang.pyt...@pearwood.info 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

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 al...@dpt-info.u-strasbg.fr 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

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. This

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,

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

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 after a

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 module import wx File C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py, line 45, in module from

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 = 'table\\n'; max_columns =

[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

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

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

Re: help

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 10:35 AM, kwakukwat...@gmail.com 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

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 steve+comp.lang.pyt...@pearwood.info 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

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

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,

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

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 17:58, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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

Re: Searching through two logfiles in parallel?

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 22:10, Victor Hooi victorh...@gmail.com 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

Re: help

2013-01-07 Thread Ian Kelly
On Mon, Jan 7, 2013 at 12:37 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Jan 8, 2013 at 10:35 AM, kwakukwat...@gmail.com 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

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

Re: Searching through two logfiles in parallel?

2013-01-07 Thread Oscar Benjamin
On 7 January 2013 23:41, Victor Hooi victorh...@gmail.com 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

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 nacctte...@gmail.com 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

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

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 true. I do not

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:

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, 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: 1. print stn_fields = '[%s]' % ', '.join(map(str,

Re: Difference between these two lists?

2013-01-07 Thread Chris Angelico
On Tue, Jan 8, 2013 at 12:06 PM, andydtay...@gmail.com 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

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 python.l...@tim.thechases.comwrote: On 01/07/13 18:44, Nac Temha wrote: How to *quickly*

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. [ANG,

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 reflects

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:

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 have some

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 mailman.252.1357608154.2939.python-l...@python.org, Nac Temha nacctte...@gmail.com 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

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 steve+comp.lang.pyt...@pearwood.info wrote: Anyone can fool themselves into placing a line through a subset of non- linear data. Or, sadly more often, *deliberately* cherry picking fake

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 python?

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, andydtay...@gmail.com 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

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

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 redstone-c...@163.com 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

Re: how to download internet files by python ?

2013-01-07 Thread Rodrick Brown
On Mon, Jan 7, 2013 at 11:19 PM, iMath redstone-c...@163.com 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

Re: how to download internet files by python ?

2013-01-07 Thread Roy Smith
In article mailman.259.1357620254.2939.python-l...@python.org, Cameron Simpson c...@zip.com.au wrote: On 07Jan2013 20:19, iMath redstone-c...@163.com wrote: | for example ,if I want to download this file ,how to implement the download | functionality by python ? | |

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 --

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 steve+comp.lang.pyt...@pearwood.info 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,

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 http://docs.python.org/3.3/reference/expressions.htm in section 6.9 Comparisons Sorry about that.

[issue9685] tuples should remember their hash value

2013-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: Given the responses so far, I suggest closing this as rejected. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9685 ___

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-07 Thread Benno Leslie
Benno Leslie added the comment: In a similar manner the bininstall target relies on $(LIBPC), but does not create that. This makes me consider if the libainstall target should be installing pkg-config sciprt at all (and whether bininstall should be installing the .pc files). It is hard for

[issue9685] tuples should remember their hash value

2013-01-07 Thread Christian Heimes
Christian Heimes added the comment: I'm not too worried about the slightly increased memory usage. For example one of our largest application instances consumes about 8 GB memory right now. It has just about 22k tuples in gc.get_objects(). An additional Py_hash_t in tuple's struct would

[issue16883] --enable-shared during configure forces 2.7.3 to build as 2.7.2+ on Ubuntu 11.10

2013-01-07 Thread Ned Deily
Ned Deily added the comment: You need to be careful when using a Python with --enable-shared to ensure that the correct dynamic libraries are being used at execution time. Normally, after a make, you use make install to install the Python executable and the shared library into the configured

[issue16853] add a Selector to the select module

2013-01-07 Thread Charles-François Natali
Charles-François Natali added the comment: Also notice the need for a third constant, SELECT_CONNECT. For details see the class WindowsPollPollster in the Tulip code. I'll trust Richard on all Windows matter, so if you need a SELECT_CONNECT constant, I'll expose one. However, two Tulip

[issue16882] Python 2.7 has 73 files with hard references to /usr/local when building on *NIX

2013-01-07 Thread Ned Deily
Ned Deily added the comment: Thanks for your suggestion. However, the issue you've created is too wide in scope to be actionable. As you note, just because the string /usr/local appears in a file within the Python source distribution does not indicate a problem. Many of the cites are in

[issue9685] tuples should remember their hash value

2013-01-07 Thread Georg Brandl
Georg Brandl added the comment: Still, actual benefits in some kind of benchmark will be needed to show that this is not a premature optimization. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9685

[issue16853] add a Selector to the select module

2013-01-07 Thread Charles-François Natali
Charles-François Natali added the comment: The second test runs fine on Linux, and from a cursory look, I don't see how it could fail (the socket should be reported as write ready upon ECONNREFUSED). Hum, thinking about it, I wonder is OS-X doesn't report POLLPRI or some other esoteric event

[issue10156] Initialization of globals in unicodeobject.c

2013-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are patches for all four Python versions. They fixes possible usage of the followed non-initialized global variables: free_list, numfree, interned, unicode_empty, static_strings, unicode_latin1, bloom_linebreak, unicode_default_encoding. --

[issue10156] Initialization of globals in unicodeobject.c

2013-01-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: commit review - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10156 ___

[issue16884] logging handler automatically added starting in 3.2+

2013-01-07 Thread Chris Jerdonek
New submission from Chris Jerdonek: Starting in 3.2, the logging module no longer outputs the following message when logging and no handlers are configured for the root logger: log = logging.getLogger() log.error('test') 'No handlers could be found for logger root' However, I can't

[issue16850] Add x mode to open(): close-and-exec (O_CLOEXEC) / O_NOINHERIT

2013-01-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Atomic open + close-and-exec - Add x mode to open(): close-and-exec (O_CLOEXEC) / O_NOINHERIT ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16850

[issue16850] Add x mode to open(): close-and-exec (O_CLOEXEC) / O_NOINHERIT

2013-01-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, my patch doesn't check fcntl() error code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16850 ___ ___

[issue16883] --enable-shared during configure forces 2.7.3 to build as 2.7.2+ on Ubuntu 11.10

2013-01-07 Thread Isaac (.ike) Levy
Isaac (.ike) Levy added the comment: Ned, absolutely correct, thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16883 ___ ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: To clarify the vague allusion in my last comment, Ron's suggestion was along the lines of creating a dis.Bytecode object that encapsulated everything the dis module can figure out about a piece of compiled code. That would mean exposing the kind of info

[issue16882] Python 2.7 has 73 files with hard references to /usr/local when building on *NIX

2013-01-07 Thread Isaac (.ike) Levy
Isaac (.ike) Levy added the comment: Hi Ned, Thanks. Your logic is rational here, I'll close it, and open another if I can carve out time to attack this with an appropriate patch for setup.py - to attempt resolution of the 3rd party library build issues. However, off the top of your head if

[issue16882] Python 2.7 has 73 files with hard references to /usr/local when building on *NIX

2013-01-07 Thread Isaac (.ike) Levy
Changes by Isaac (.ike) Levy ike.l...@axialmarket.com: -- resolution: wont fix - duplicate ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16882 ___

  1   2   3   >