The advantages of this approach include:
- Consistent docstring syntax everywhere
- Centralsied documentation server; find all your docs in one place
Search and jump-to-source from any documented function or class; in either
language
Are there any modules integrating with Sphinx or simila
Chris Angelico writes:
> On Mon, Jan 20, 2014 at 4:21 PM, Dan Stromberg wrote:
> > I did a short time of teaching while I was in school. If three
> > students all turned in the same assignment, they all got docked
> > significantly. There was no "who copied off of whom?", it was
> > "someone sha
Looking at my own code after four years, I just realized that most of
parentheses can be avoided by redefining the += operators to be a synonym of
the add method.
Go figure, I guess that with age it _does_ come a little wisdom ... :-)
Ciao
-
FB
--
https://mail.python.org/mailman/listinfo/p
On Monday, January 20, 2014 8:19:04 AM UTC+2, larry@gmail.com wrote:
> Nope, no problems at all.
Thanks!
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Jan 20, 2014 at 3:04 PM, Jean Dupont wrote:
> I started a thread "[newbie] starting geany from within idle does not
> work" both here and in the raspberry pi forum. I just wondered why I never
> got an answer concerning that topic.
I saw that thread. It looked like a R-Pi problem, not a P
On Mon, Jan 20, 2014 at 4:21 PM, Dan Stromberg wrote:
> I did a short time of teaching while I was in school. If three
> students all turned in the same assignment, they all got docked
> significantly. There was no "who copied off of whom?", it was
> "someone shared when they shouldn't have."
W
On Sun, Jan 19, 2014 at 9:57 PM, Asaf Las wrote:
> On Sunday, January 19, 2014 9:30:21 PM UTC+2, larry@gmail.com wrote:
>> On Sun, Jan 19, 2014 at 3:30 AM, Asaf Las wrote:
>> I use this technique for demonizing:
>> http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
>>
On Sat, Jan 18, 2014 at 10:31 PM, Steven D'Aprano
wrote:
> On Sat, 18 Jan 2014 14:32:21 -0800, indar kumar wrote:
>
>> @Roy Smith
>>
>> Can you help me privately because its an assignment and have to submit
>> plagiarism free
>
> Then don't plagiarise.
>
>
> Plagiarism means YOU copy other people.
On Sunday, January 19, 2014 9:30:21 PM UTC+2, larry@gmail.com wrote:
> On Sun, Jan 19, 2014 at 3:30 AM, Asaf Las wrote:
> I use this technique for demonizing:
> http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
> And has been ported to 3:
> http://www.jejik.com/files/
Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin:
> On 18 January 2014 14:52, Jean Dupont wrote:
> >
> > Thanks Peter and Terry Jan for the useful suggestions. One thing which I
> >find a bit weird: when asking for Python-help concerning raspberry pi code
> > or problems, a lot
On Sat, 18 Jan 2014 16:00:45 -, Jussi Piitulainen
wrote:
Rustom Mody writes:
On Saturday, January 18, 2014 2:06:29 PM UTC+5:30, Peter Otten wrote:
> What would a list-comp with `let` or `where` look like? Would it
> win the beauty contest against the loop?
For me this is neat
[somefu
On Mon, Jan 06, 2014 at 11:39:13PM +, Nicholas Cole wrote:
> This email is inspired by a YouTube video of a talk that Jessica McKellar
Could you please share the link to the video please?
> recently gave. I was struck by her analysis that it is hard to remain a
> popular language (as Python
On 1/19/2014 4:41 PM, Mark Lawrence wrote:
On 19/01/2014 21:26, Charles Hixson wrote:
Could it please be clearly documented that keys(), values(), and items()
are not writeable. I agree that this is how they should be, but it
would be still better if they were clearly documented as such. The
l
John Allsup writes:
> Hi,
>
> I'd agree with the advice that it's not the best idea: readability sucks
> here, but consider the following:
>
>
> import time
>
> def somefunc(a,b,c,d): # dummy function
> return "{} - {} - {} : {}".format(a,b,c,d)
> l = [(time.time(),"name {}".format(n)) for n
On Mon, Jan 20, 2014 at 8:40 AM, Roy Smith wrote:
> In article ,
> Charles Hixson wrote:
>
>> Could it please be clearly documented that keys(), values(), and items()
>> are not writeable.
>
> We'll, technically, they are.
>
> Of course, this only changes the list that keys() returns, it doesn't
In article ,
Charles Hixson wrote:
> Could it please be clearly documented that keys(), values(), and items()
> are not writeable.
We'll, technically, they are.
>>> d = {'foo': 1, 'bar':2}
>>> k = d.keys()
>>> k
['foo', 'bar']
>>> k[0] = "some other key"
>>> k
['some other key', 'bar']
Of co
On 19/01/2014 21:26, Charles Hixson wrote:
Could it please be clearly documented that keys(), values(), and items()
are not writeable. I agree that this is how they should be, but it
would be still better if they were clearly documented as such. The
labeling of them as dynamic, while true, was
Could it please be clearly documented that keys(), values(), and items()
are not writeable. I agree that this is how they should be, but it
would be still better if they were clearly documented as such. The
labeling of them as dynamic, while true, was a bit confusing here.
(I.e., it was talk
On Sun, Jan 19, 2014 at 1:12 PM, Gene Heskett wrote:
> On Sunday 19 January 2014 15:11:52 Larry Martell did opine:
>
>> On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence
> wrote:
>> > On 19/01/2014 18:15, Grant Edwards wrote:
>> >> On 2014-01-19, Mark Lawrence wrote:
>> >>> Actually, to go off at
On Sun, Jan 19, 2014 at 12:30 PM, buck wrote:
> Thanks Ian.
> Have you personally used pyjs successfully?
> It's ominous that the examples pages are broken...
I don't have any personal experience with either project. I don't
know what's going on with pyjs.org currently, but the examples at the
p
On Sunday 19 January 2014 15:08:31 Roy Smith did opine:
> In article ,
>
> Grant Edwards wrote:
> > I can still remember the point in my first trip to the UK when I
> > accidentally stumbled across darts on TV. Given the endless variety
> > (and quantity) of pointless crap that people watch her
On Sunday 19 January 2014 15:11:52 Larry Martell did opine:
> On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence
wrote:
> > On 19/01/2014 18:15, Grant Edwards wrote:
> >> On 2014-01-19, Mark Lawrence wrote:
> >>> Actually, to go off at a tangent, I'm just getting into GUIs via
> >>> wxPython. I'v
On Sat, 18 Jan 2014 18:23:01 -0800, indar kumar wrote:
> I have to save students information in a database that is keeping
> continuously track of the information. Format is as follows:
You probably need to use one of the database modules.
> Note: if this name already exists there in database, j
On 01/19/2014 10:41 AM, Chris Angelico wrote:
On Mon, Jan 20, 2014 at 4:50 AM, Ethan Furman wrote:
The difference I was thinking of is:
"%h" % 3.14 # this works
vs.
hex(3.14) # this raises
In 3.5 both will raise.
Now you have me *thoroughly* intrigued. It's not %h (incomplete form
On Sunday, January 19, 2014 12:19:29 AM UTC-8, Ian wrote:
> On Sat, Jan 18, 2014 at 10:40 PM, buck wrote:
>
> > I'm trying to work through Skienna's algorithms handbook, and note that the
> > author often uses graphical representations of the diagrams to help
> > understand (and even debug) the
On Sun, Jan 19, 2014 at 3:30 AM, Asaf Las wrote:
> Hi Community
>
> Is there ported to Python v3 python-daemon package?
>
> https://pypi.python.org/pypi/python-daemon/
>
> i am afraid it is not as simple as correction of relative path input
> feature and except clauses in mentioned package.
I use
On 19/01/2014 19:24, Larry Martell wrote:
On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence wrote:
On 19/01/2014 18:15, Grant Edwards wrote:
On 2014-01-19, Mark Lawrence wrote:
Actually, to go off at a tangent, I'm just getting into GUIs via
wxPython. I've discovered there are distinct advan
On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence wrote:
> On 19/01/2014 18:15, Grant Edwards wrote:
>>
>> On 2014-01-19, Mark Lawrence wrote:
>>> Actually, to go off at a tangent, I'm just getting into GUIs via
>>> wxPython. I've discovered there are distinct advantages having to
>>> write endles
candide writes:
> http://cyrille.rossant.net/whats-wrong-with-scientific-python/
> Any comments ?
It's in need of a good summary.
--
\ “I have never imputed to Nature a purpose or a goal, or |
`\anything that could be understood as anthropomorphic.” —Albert |
_o__)
On 19/01/2014 18:15, Grant Edwards wrote:
On 2014-01-19, Mark Lawrence wrote:
On 18/01/2014 18:41, Mark Lawrence wrote:
On 18/01/2014 18:30, Roy Smith wrote:
Pardon me for being cynical, but in the entire history of the universe,
has anybody ever used input()/raw_input() for anything other th
On 2014-01-19, Roy Smith wrote:
> In article ,
> Grant Edwards wrote:
>
>> I can still remember the point in my first trip to the UK when I
>> accidentally stumbled across darts on TV. Given the endless variety
>> (and quantity) of pointless crap that people watch here in the US, I
>> can't real
On 19/01/2014 18:46, candide wrote:
http://cyrille.rossant.net/whats-wrong-with-scientific-python/
Any comments ?
Not worth reading as doesn't seem to have anything new to say. As for
Python 2 being obsolete, well I just give up :(
--
My fellow Pythonistas, ask not what our language can
On Mon, Jan 20, 2014 at 5:53 AM, Philip Werner wrote:
> On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote:
>
>> On 18/01/2014 12:40, phi...@gmail.com wrote:
>>
>> [snip the stuff I can't help with]
>>
>> Here's the link you need to sort the problem with double spacing from
>> google groups h
On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote:
> On 18/01/2014 12:40, phi...@gmail.com wrote:
>
> [snip the stuff I can't help with]
>
> Here's the link you need to sort the problem with double spacing from
> google groups https://wiki.python.org/moin/GoogleGroupsPython
Thanks for the
http://cyrille.rossant.net/whats-wrong-with-scientific-python/
Any comments ?
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Jan 20, 2014 at 5:37 AM, Roy Smith wrote:
> What's so complicated?
>
> points = 501
> for dart in throws():
>if points - dart == 0 and dart.is_double():
> raise YouWin
>if points - dart < 0:
> continue
>points -= dart
>beer.drink()
assert victory
raise beer
Ch
On Mon, Jan 20, 2014 at 4:50 AM, Ethan Furman wrote:
> The difference I was thinking of is:
>
> "%h" % 3.14 # this works
>
> vs.
>
> hex(3.14) # this raises
>
> In 3.5 both will raise.
Now you have me *thoroughly* intrigued. It's not %h (incomplete format
- h is a modifier), nor %H (unsuppo
In article ,
Grant Edwards wrote:
> I can still remember the point in my first trip to the UK when I
> accidentally stumbled across darts on TV. Given the endless variety
> (and quantity) of pointless crap that people watch here in the US, I
> can't really explain why I was so baffled and amused
On 01/19/2014 08:38 AM, Chris Angelico wrote:
On Mon, Jan 20, 2014 at 3:14 AM, Ethan Furman wrote:
--> def quux1(x): return str(x+1)
--> quux1(2.3)
'3.3'
(Will be) fixed in 3.5 [1] :)
[1] Which is to say, both will raise an exception.
Why would that raise?
Sorry, should have read that c
On 2014-01-19, Mark Lawrence wrote:
> On 18/01/2014 18:41, Mark Lawrence wrote:
>> On 18/01/2014 18:30, Roy Smith wrote:
>>> Pardon me for being cynical, but in the entire history of the universe,
>>> has anybody ever used input()/raw_input() for anything other than a
>>> homework problem?
>>
>> N
On 18/01/2014 18:41, Mark Lawrence wrote:
On 18/01/2014 18:30, Roy Smith wrote:
Pardon me for being cynical, but in the entire history of the universe,
has anybody ever used input()/raw_input() for anything other than a
homework problem?
Not me personally. I guess raw_input must have been us
On Mon, Jan 20, 2014 at 4:42 AM, Grant Edwards wrote:
> 2) I didn't claim that sys.stdin.readline() was as simple as using
>input. I didn't claim it was preferable. I merely presented it as
>a refutation to the argument that if you don't use input/raw_input
>then you have to use a GU
On 2014-01-19, Dennis Lee Bieber wrote:
> On Sun, 19 Jan 2014 16:14:48 + (UTC), Grant Edwards
> declaimed the following:
>
>>On 2014-01-18, Terry Reedy wrote:
>>> On 1/18/2014 1:30 PM, Roy Smith wrote:
Pardon me for being cynical, but in the entire history of the universe,
has anybo
On Mon, Jan 20, 2014 at 3:14 AM, Ethan Furman wrote:
>>> --> def quux1(x): return str(x+1)
>> --> quux1(2.3)
>> '3.3'
>
> (Will be) fixed in 3.5 [1] :)
> [1] Which is to say, both will raise an exception.
Why would that raise?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On 01/19/2014 12:26 AM, Rustom Mody wrote:
On Sunday, January 19, 2014 10:29:58 AM UTC+5:30, Chris Angelico wrote:
On Sun, Jan 19, 2014 at 3:43 PM, Rustom Mody wrote:
As do these pieces of code:
--> def quux1(x): return str(x+1)
--> def quux2(x): return hex(x+1)[2:]
They do?
--> quux1(2.3
On 2014-01-18, indar kumar wrote:
> I want to show a code for review but afraid of plagiarism issues.
> Kindly, suggest how can I post it for review here without masking it
> visible for public
http://www.python.org/community/jobs/
I'm sure once you've agreed on contract and payment terms with
On 2014-01-18, Terry Reedy wrote:
> On 1/18/2014 1:30 PM, Roy Smith wrote:
>> Pardon me for being cynical, but in the entire history of the universe,
>> has anybody ever used input()/raw_input() for anything other than a
>> homework problem?
>
> Homework problems (and 'toy' programs, such as hangm
On 18 January 2014 20:51, Kevin K wrote:
> I have some code that I need help vectorizing.
> I want to convert the following to vector form, how can I? I want to get rid
> of the inner loop - apparently, it's possible to do so.
> X is an NxD matrix. y is a 1xD vector.
>
> def foo(X, y, mylambda, N
On Sunday, January 19, 2014 12:41:31 PM UTC+2, Ben Finney wrote:
> Have a read through the archives for the ‘python-daemon-devel’
> discussion forum
> http://lists.alioth.debian.org/mailman/listinfo/python-daemon-devel>,
> where we have had discussions about porting the library to Python 3.
> I'd b
On 19-1-2014 6:40, buck wrote:
> I'm trying to work through Skienna's algorithms handbook, and note that the
> author often uses graphical representations of the diagrams to help
> understand (and even debug) the algorithms. I'd like to reproduce this in
> python.
>
> How would you go about thi
Asaf Las writes:
> Is there ported to Python v3 python-daemon package?
>
> https://pypi.python.org/pypi/python-daemon/
Have a read through the archives for the ‘python-daemon-devel’
discussion forum
http://lists.alioth.debian.org/mailman/listinfo/python-daemon-devel>,
where we have had discussio
On Sun, Jan 19, 2014 at 7:26 PM, Rustom Mody wrote:
> If you want to give an irrelevant example at least give a correct one :D
> the difference between str and hex is an arcane difference (Ive never used
> hex)
> the difference between functions and procedures is absolutely basic.
They don't giv
Hi Community
Is there ported to Python v3 python-daemon package?
https://pypi.python.org/pypi/python-daemon/
i am afraid it is not as simple as correction of relative path input
feature and except clauses in mentioned package.
Thanks
Asaf
--
https://mail.python.org/mailman/listinfo/python-
El miércoles, 15 de enero de 2014 18:02:08 UTC+1, Sergio Tortosa Benedito
escribió:
> Hi I'm developing a sort of language extension for writing GUI programs
>
> called guilang, right now it's written in Lua but I'm considreing Python
>
> instead (because it's more tailored to alone application
On Sunday, January 19, 2014 10:29:58 AM UTC+5:30, Chris Angelico wrote:
> On Sun, Jan 19, 2014 at 3:43 PM, Rustom Mody wrote:
> > Because these two pieces of code
> def foo(x): print x+1
> def bar(x): return x+1
> > look identical (to a beginner at least)
> foo(3)
> > 4
> bar(3)
On Sat, Jan 18, 2014 at 10:40 PM, buck wrote:
> I'm trying to work through Skienna's algorithms handbook, and note that the
> author often uses graphical representations of the diagrams to help
> understand (and even debug) the algorithms. I'd like to reproduce this in
> python.
>
> How would y
On 2014-01-18, Jaiprakash Singh wrote:
> hi,
>
> can you please suggest me some method for study so that i can
> scrap a site having JavaScript behind it
>
>
> i have tried selenium, ghost, pyQt4, but it is slow and as a am
> working with thread it sinks my ram memory very fast.
I
57 matches
Mail list logo