I am sorry, i do not install, i just make, and then use the python under
source code. If you run 'make install' then some lib will compile and then
will no problem there.
Hello,
Right now, i install python2.7.3 from source code, but when use it to run
some script. It raises no module excep
Hello,
Right now, i install python2.7.3 from source code, but when use it to run
some script. It raises no module exception.
Dose `make` not compile array into builtin?
--
Best
Li Tianqing--
https://mail.python.org/mailman/listinfo/python-list
alextr...@googlemail.com wrote:
> So I got the Labnol Google Appengine proxy but it can't handle the Post
> method aka error 405.
>
> I need help adding this method to the script:
>
> mirror.py = http://pastebin.com/2zRsdi3U
>
> transform_content.py = http://pastebin.com/Fw7FCncA
>
> main.html
On Tue, Sep 23, 2014 at 3:49 PM, Nicholas Cannon
wrote:
> The git hub has not actually been updated yet I am working on somethine else
> then committing the update. How would I stop the threads though. I'am using
> the Thread from threading function.
>
Ah, okay. (Side point: I recommend committ
The git hub has not actually been updated yet I am working on somethine else
then committing the update. How would I stop the threads though. I'am using the
Thread from threading function.
--
https://mail.python.org/mailman/listinfo/python-list
On 23/09/2014 4:25 AM, Chris Angelico wrote:
On Tue, Sep 23, 2014 at 4:24 AM, Chris Kaynor wrote:
But the thing that requires the comment is the "2", not the "print" or the
"cells". And that comes to a more common issue: any number other than 0 or 1
in code most likely needs a comment (that com
Wolfgang Keller wrote:
>
>> wxPython and Qt are well known but they are not exactly lightweight.
>
>wxPython not lightweight?
>
>It's just a wrapper of win32.
That's not really accurate. wxWidgets does expose the Win32 APIs, but the
wrapping is not all that transparent. And wxPython adds signif
On Tue, Sep 23, 2014 at 5:00 AM, Chris Kaynor wrote:
> As a rule-of-thumb I'd recommend sticking to one or two high-level languages
> until you are reasonably comfortable with them, then possibly branching to
> other languages. As you've already started with Python, I'd continue on it
> for a whil
On 9/22/2014 3:34 PM, random...@fastmail.us wrote:
On Thu, Sep 18, 2014, at 14:45, Chris Kaynor wrote:
Additionally, you may want to specify binary mode by using
open(file_path,
'rb') to ensure platform-independence ('r' uses Universal newlines, which
means on Windows, Python will convert "\r\n"
On 09/22/2014 03:58 PM, Victor Stinner wrote:
Someone broke test_pydoc. Example:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.4/builds/481/steps/test/logs/stdio
I broke it while making the release. Known bug, happened before, for
3.4.1rc1.
http://bugs.python.org/is
On Mon, Sep 22, 2014 at 12:39 PM, Ian Kelly wrote:
> On Mon, Sep 22, 2014 at 1:00 PM, Chris Kaynor
> wrote:
> > Python is pretty good base-line language. It is really good as a glue
> > language to piece together other components, or for IO-bound or
> user-bound
> > code, but will not preform we
I went and looked up the PEPs regarding universal new-lines, and it seems
it would be platform-independent - all of "\r\n", "\r", and "\n" will
always be converted to "\n" in Python, unless explicitly modified on the
file object (or Universal newlines are disabled).
It still stands that for platfo
On Mon, Sep 22, 2014 at 1:00 PM, Chris Kaynor wrote:
> Python is pretty good base-line language. It is really good as a glue
> language to piece together other components, or for IO-bound or user-bound
> code, but will not preform well enough for many other applications such as
> games. It is good
On Thu, Sep 18, 2014, at 14:45, Chris Kaynor wrote:
> Additionally, you may want to specify binary mode by using
> open(file_path,
> 'rb') to ensure platform-independence ('r' uses Universal newlines, which
> means on Windows, Python will convert "\r\n" to "\n" while reading the
> file). Additional
On Mon, Sep 22, 2014 at 11:03 AM, Dave Angel wrote:
> > I need a way forward on what more free ebooks i can get mt hands on so i
> can accomplish my goals.
> >
> > I need some advice. should i go on to learn other languages like java or
> c++ cos i want to be able to using all these knowledge for
On 09/22/2014 02:59 AM, narayan naik wrote:
good evening sir,
I am doing my M.Tech project on face
detection,I am confused with the face detection algorithm,can you
please tell me the simple and best algorithm.
No, sorry, but this newsgroup is about Python (a prog
Original Message -
> From: "Chris Angelico"
> Cc: python-list@python.org
> Sent: Monday, 22 September, 2014 6:04:43 PM
> Subject: Re: Love to get some feedback on my first python app!!!
>
> On Tue, Sep 23, 2014 at 1:52 AM, Jean-Michel Pichavant
> wrote:
> > The code I posted had many bu
On Tue, Sep 23, 2014 at 4:23 AM, Irmen de Jong wrote:
> This is why Pyro has been using a different (and safe) serializer by default
> for a while
> now. You have to plow through the usual security warnings in the docs and
> make a
> conscious effort in your code to enable the pickle serializer
On Tue, Sep 23, 2014 at 4:24 AM, Chris Kaynor wrote:
> On Mon, Sep 22, 2014 at 8:52 AM, Jean-Michel Pichavant
> wrote:
>>
>> Anyway it's seems we agree anyway because your example perfectly
>> illustrate what I was trying to demonstrate:
>> print(cells[2]) is very easy to understand, most of peop
On 22-9-2014 19:53, Chris Angelico wrote:
> On Tue, Sep 23, 2014 at 3:47 AM, Irmen de Jong wrote:
>> I've developed Pyrolite (https://github.com/irmen/Pyrolite), a lightweight
>> client
>> library for Java and .NET to gain access to Python servers running Pyro. As
>> such it also
>> contains a c
On Mon, Sep 22, 2014 at 8:52 AM, Jean-Michel Pichavant <
jeanmic...@sequans.com> wrote:
> Anyway it's seems we agree anyway because your example perfectly
> illustrate what I was trying to demonstrate:
> print(cells[2]) is very easy to understand, most of people would say 'no
> need of any comment
ngangsia akumbo Wrote in message:
> I have learned python for some time now. I am developing apps using django.
>
> I need some advice.
> I want to be able to write big programs using python. I have not been able to
> do that as of now.
Define'big'. I could write a 25 line Python program that
On Tue, Sep 23, 2014 at 3:47 AM, Irmen de Jong wrote:
> I've developed Pyrolite (https://github.com/irmen/Pyrolite), a lightweight
> client
> library for Java and .NET to gain access to Python servers running Pyro. As
> such it also
> contains a complete pickle and unpickle implementation in the
Hi,
I've developed Pyrolite (https://github.com/irmen/Pyrolite), a lightweight
client
library for Java and .NET to gain access to Python servers running Pyro. As
such it also
contains a complete pickle and unpickle implementation in these languages.
Quite recently I got a pull request to fix a
On Tue, Sep 23, 2014 at 3:38 AM, LJ wrote:
> At some point in my algorithm I am looping through some subset of nodes and
> through the labels in each node and I perform some "joining" checks with the
> labels of each node in another subset of nodes. To clarify I check for a
> feasibility condit
On Monday, September 22, 2014 1:12:23 PM UTC-4, Chris Angelico wrote:
> On Tue, Sep 23, 2014 at 2:57 AM, LJ wrote:
>
> > Quick question here. In the code I am working on I am apparently doing a
> > lot of dictionary lookups and those are taking a lot of time.
>
> > I looked at the possibility o
On Tue, Sep 23, 2014 at 2:57 AM, LJ wrote:
> Quick question here. In the code I am working on I am apparently doing a lot
> of dictionary lookups and those are taking a lot of time.
> I looked at the possibility of changing the structure and I found about the
> numpy structured arrays.
> The con
Hi All,
Quick question here. In the code I am working on I am apparently doing a lot of
dictionary lookups and those are taking a lot of time.
I looked at the possibility of changing the structure and I found about the
numpy structured arrays.
The concrete question is: what would be the differe
On 22/09/2014 14:17, Nicholas Cannon wrote:
Ok I'm confused. Do I need to do better comments? I know the text is not that
great but that is my next obstacle I am going to tackle. I mostly need to know
where I am going wrong such as what is expectable readable code and what is not
and how to fi
On 22/09/2014 13:00, vek.m1...@gmail.com wrote:
https://github.com/Veek/Python/blob/master/IRC/Hexchat/fake_ctcp.py
that's not too bad as far as readability is concerned and it's bereft of all
comments {:p
Definitely googlegroups rides again.
--
My fellow Pythonistas, ask not what our langua
On Tue, Sep 23, 2014 at 2:17 AM, Mark Lawrence wrote:
> And ignore Chris at your peril, he knows a fair bit about Python. Sure he
> gets things wrong, but the only person who never gets things wrong is the
> person who never does anything.
Thanks :)
I don't mind being wrong, or being told I'm w
On 22/09/2014 14:48, C Smith wrote:
I wouldn't take it personally, just defend your position. I think that
is what he is looking for. We are all adults here (maybe?). You guys
should be able to work it out. A tangential skill to programming is
being able to give and take criticism well, even if y
On 22/09/2014 14:35, vek.m1...@gmail.com wrote:
@Chris, Hi, I don't like your style of posting - please kill file me.
@Everybody else - I don't like Chris and his style of posting (overuse of the
'troll' word and perceived aggression). I shall be ignoring him for a year
(barring an emergency).
On Tue, Sep 23, 2014 at 2:10 AM, Mark Lawrence wrote:
> Google groups rides again?
Yeah. And now someone from Google Groups has killfiled me. So it's up
to you to request/recommend alternatives, s/he won't see me saying so.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 22 Sep 2014 15:29:58 +0530, narayan naik wrote:
> good evening sir,
> I am doing my M.Tech project on face
> detection,I am confused with the face detection algorithm,can you please
> tell me the simple and best algorithm.
http://www.lmgtfy.com/?q=best+face+det
On 22/09/2014 12:47, vek.m1...@gmail.com wrote:
1. It's feedback not a mathematical proof.
What is?
2. I hope the OP tries what I suggested - it's all entirely optional.
Which is?
@OP
I have no idea what that program does because it's well commented. You aren't
using variable and functi
On Tue, Sep 23, 2014 at 1:52 AM, Jean-Michel Pichavant
wrote:
> The code I posted had many bugs but one could not be fixed without the
> comment. Or at least there's an obvious discrepancy between the comment and
> the code that should catch the reader's attention.
>
The obvious discrepancy, sa
- Original Message -
> From: "Chris Angelico"
> Cc: python-list@python.org
> Sent: Monday, 22 September, 2014 4:50:15 PM
> Subject: Re: Love to get some feedback on my first python app!!!
>
> On Tue, Sep 23, 2014 at 12:32 AM, Jean-Michel Pichavant
> wrote:
> > For instance:
> >
> > cel
On Mon, 22 Sep 2014 16:32:27 +0200, Jean-Michel Pichavant wrote:
> - Original Message -
>> From: "Chris Angelico"
>> Cc: python-list@python.org Sent: Saturday, 20 September, 2014 4:58:44
>> PM Subject: Re: Love to get some feedback on my first python app!!!
> [snip]
>>
>> #search API
@CSmith
Hi, I'm sorry, I wish I could acquiesce but I think it's better for me to stay
clear. There's criticism, and there's name calling ('dim' 'troll').
Reiterating what I said earlier, if the OP wants clarification he can ask for
it.
--
https://mail.python.org/mailman/listinfo/python-list
Someone broke test_pydoc. Example:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.4/builds/481/steps/test/logs/stdio
Victor
2014-09-22 16:15 GMT+02:00 Larry Hastings :
>
>
> On behalf of the Python development community and the Python 3.4 release
> team, I'm chuffed to announc
On Tue, Sep 23, 2014 at 12:32 AM, Jean-Michel Pichavant
wrote:
> For instance:
>
> cells = ['a', 'b' 'c']
> # print the first cell
> print cell[1]
>
> A bug that is easily spotted thanks to the comment. It's all about
> implementation versus intentions. Also note that comment should be written
>
On Mon, Sep 22, 2014 at 10:32 AM, Jean-Michel Pichavant
wrote:
> - Original Message -
>> From: "Chris Angelico"
>> Cc: python-list@python.org
>> Sent: Saturday, 20 September, 2014 4:58:44 PM
>> Subject: Re: Love to get some feedback on my first python app!!!
> [snip]
>>
>> #search API
- Original Message -
> From: "Chris Angelico"
> Cc: python-list@python.org
> Sent: Saturday, 20 September, 2014 4:58:44 PM
> Subject: Re: Love to get some feedback on my first python app!!!
[snip]
>
> #search API
> rawData =
>
> urllib.urlopen('http://ajax.googleapis.com/ajax
On behalf of the Python development community and the Python 3.4 release
team, I'm chuffed to announce the availability of Python 3.4.2rc1.
Python 3.4.2 has many bugfixes and other small improvements over 3.4.1.
One new feature for Mac OS X users: the OS X installers are now
distributed as
On Mon, Sep 22, 2014 at 11:48 PM, C Smith wrote:
> I wouldn't take it personally, just defend your position. I think that
> is what he is looking for. We are all adults here (maybe?). You guys
> should be able to work it out. A tangential skill to programming is
> being able to give and take criti
I wouldn't take it personally, just defend your position. I think that
is what he is looking for. We are all adults here (maybe?). You guys
should be able to work it out. A tangential skill to programming is
being able to give and take criticism well, even if you think it
crosses the line.
On Mon,
@Chris, Hi, I don't like your style of posting - please kill file me.
@Everybody else - I don't like Chris and his style of posting (overuse of the
'troll' word and perceived aggression). I shall be ignoring him for a year
(barring an emergency). Good communication demands that I announce this.
On Mon, Sep 22, 2014 at 11:17 PM, Nicholas Cannon
wrote:
> Ok I'm confused. Do I need to do better comments? I know the text is not that
> great but that is my next obstacle I am going to tackle. I mostly need to
> know where I am going wrong such as what is expectable readable code and what
>
On Mon, Sep 22, 2014 at 11:02 PM, Larry Martell wrote:
> On Mon, Sep 22, 2014 at 8:23 AM, Chris Angelico wrote:
>> So, comments would definitely help. In some cases, would help a lot.
>
> This is me:
>
> http://xkcd.com/1421/
Also me. I have apologized to my future selves on a number of
occasion
Also I have just been coding for about and hour and a half and added a lot more
code to it but it is not fully finished yet so it is not on github yet.
--
https://mail.python.org/mailman/listinfo/python-list
Ok I'm confused. Do I need to do better comments? I know the text is not that
great but that is my next obstacle I am going to tackle. I mostly need to know
where I am going wrong such as what is expectable readable code and what is not
and how to fix this. This is good feedback thanks to all of
On Mon, Sep 22, 2014 at 8:23 AM, Chris Angelico wrote:
> So, comments would definitely help. In some cases, would help a lot.
This is me:
http://xkcd.com/1421/
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Sep 22, 2014 at 10:00 PM, wrote:
> https://github.com/Veek/Python/blob/master/IRC/Hexchat/fake_ctcp.py
> that's not too bad as far as readability is concerned and it's bereft of all
> comments {:p
Sure, I can work out what it's doing without comments. Doesn't mean
comments are bad, thou
- Original Message -
> From: "Jean-Michel Pichavant"
> To: "Juan Christian"
> Cc: "Python"
> Sent: Monday, 22 September, 2014 1:37:41 PM
> Subject: Re: Class Inheritance from different module
>
>
> > class User(Inheritance from API):
> > def __init__(self, ID):
> > steamapi.core.APICon
On Mon, Sep 22, 2014 at 9:47 PM, wrote:
> 1. It's feedback not a mathematical proof.
> 2. I hope the OP tries what I suggested - it's all entirely optional.
Doesn't change the fact that you need to justify your recommendations,
at least when they're not obvious. You're suggesting a number of
thi
https://github.com/Veek/Python/blob/master/IRC/Hexchat/fake_ctcp.py
that's not too bad as far as readability is concerned and it's bereft of all
comments {:p
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Sep 22, 2014 at 9:43 PM, Nicholas Cannon
wrote:
> Or can I safely stop the running threads and make them drop everything error
> free?
This would be what I'd recommend. If someone wants to close your
program, s/he should be allowed to - imagine if internet traffic is
costly [1] and the q
1. It's feedback not a mathematical proof.
2. I hope the OP tries what I suggested - it's all entirely optional.
@OP
I have no idea what that program does because it's well commented. You aren't
using variable and function names to good effect and are resorting to excessive
comments.
Additional
I have a project I am working on(https://github.com/nicodasiko/Article-Grab)
which grabs info from the internet then displays it on the screen. It is a
multithreaded program so as the function that retrieves the data from the
internet there is also another function running in parallel which upda
> class User(Inheritance from API):
> def __init__(self, ID):
> steamapi.core.APIConnection(api_key = KEY)
> super( " Inheritance SteamUser" (ID)) # creates the user using the
> API
>
>
> [...]
>
>
> So that in my code when I need to create a new user, I just call 'usr
> = User("XXX")' ins
good evening sir,
I am doing my M.Tech project on face
detection,I am confused with the face detection algorithm,can you please
tell me the simple and best algorithm.
--
https://mail.python.org/mailman/listinfo/python-list
On 22/09/2014 03:00, aws Al-Aisafa wrote:
Yes I've followed and installed everything
Please provide some context when you reply and to whom you are replying,
thank you.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
On Mon, Sep 22, 2014 at 7:00 PM, wrote:
> One thing I noticed with that code was the size of your function, and
> excessive comments. It reminds me of my bubble_sort.c program in
> school/college - everything plonked into 'main'.
>
> Try writing it like this:
I'd like to see justifications for
1. Python Essential Reference, Python Standard Library by Example/Dive into
Python
2. C (K.N.King), C++(Eckel), Python, Make, GCC, Lex/Yacc/Bison, Some
HTML/CSS/XML/Javascript/XLTS+Python
3. I don't like Java much - never tried it.
--
https://mail.python.org/mailman/listinfo/python-list
One thing I noticed with that code was the size of your function, and excessive
comments. It reminds me of my bubble_sort.c program in school/college -
everything plonked into 'main'.
Try writing it like this:
1. #!/usr/bin/python or #!/usr/bin/env python
The leading #! is read by the kernel w
PRESENTLY I AM READING A BOOK MASTERING PYTHON ALGORITHMS. IT MAKES MUCH SENSE
--
https://mail.python.org/mailman/listinfo/python-list
I have learned python for some time now. I am developing apps using django.
I need some advice.
I want to be able to write big programs using python. I have not been able to
do that as of now. I need a way forward on what more free ebooks i can get mt
hands on so i can accomplish my goals.
I n
68 matches
Mail list logo