Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-21 Thread Nick Sarbicki
> The simplest thing is to use the 3.8.0 python.org installers. This use > pip to add anything you consider essential. As mentioned previously, you do need to make sure that they tick the box to add Python to the PATH on windows. It is almost guaranteed someone will not do that and will then have

Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-20 Thread Nick Sarbicki
Hi Goktug, Firstly good luck, inspiring a crowd of people who have never learnt to code (and probably never expected to) to want to code sounds like a daunting task. I think you have broadly the right idea in that you want to spend only a little bit of time on the basic syntax before demoing what

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Nick Sarbicki
Yes the community edition works fine. It seems to require a 64 bit version of Windows 7 or higher (I'm not sure as I haven't used Windows in years). On Tue, 20 Aug 2019, 03:27 , wrote: > Nick Sarbicki於 2019年8月19日星期一 UTC+8下午5時33分27秒寫道: > > PyCharm takes you to the source cod

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Nick Sarbicki
PyCharm takes you to the source code within the editor for any variables/functions/classes/modules if you ctrl+click on what you want to see. It allows you to browse the relevant bits of code quickly, as well as let you change them in your local environment if need be. That way you don't have to d

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
I'm aware of the the schedule in the PEP. But if the date at the top of the What's New page is the last day it was updated and not the release date then that is what has caused the confusion. On Wed, 14 Dec 2016, 22:58 , wrote: > On Wednesday, December 14, 2016 at 2:09:22 PM UTC,

Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
Afternoon everyone. Might be missing something obvious but the 3.6 What's New docs point to the release date being the 12th. https://docs.python.org/3.6/whatsnew/3.6.html#what-s-new-in-python-3-6 I got the team excited about Friday's release so that caused some confusion here. Guessing it's a t

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Nick Sarbicki
On Wed, Jun 22, 2016 at 9:42 AM Miki Tebeka wrote: > IMO you can do that at https://www.codecademy.com/learn/python > Some people might think differently but I wouldn't recommend a python course which teaches 2.7 over 3.x. It bugs me that learnpythonthehardway and codecademy - probably 2 of the

Re: Recommendation for GUI lib?

2016-06-07 Thread Nick Sarbicki
> > Qt Designer is certainly a good GUI builder, but not more than that. > When you actually want to use the designed GUI in Python, you will find > that this needs almost as much know how and work as if you did the GUI > in code. > I think that's a bit of an unfair statement. Sure conversion can

Re: Recommendation for GUI lib?

2016-06-02 Thread Nick Sarbicki
> > > > > > Do you have any recommendations? Primary platforms are OS X and Linux. > > > > I, of course, want to have "standard" widgets but a "calendar > > view"/"date picker" is a plus. > I generally use PyQt which is one of two (the other being pyside) python wrappers for the Qt libraries. PyQ

Re: Average calculation Program *need help*

2016-05-13 Thread Nick Sarbicki
On Fri, 13 May 2016, 06:52 Jake Kobs, wrote: > Thank you for the help..I think I'm getting closer, but I feel like after > they enter an invalid number, it should reset the invalid number(s) > somehow. Here's my updated code: > > ---

Basic plugin architecture

2016-04-06 Thread Nick Sarbicki
Hi, Question on how people here would design a basic plugin architecture: I'm playing with the idea of having a pluggable system where the users can create some simple classes which can then be accessed in a Django app. I want to make it as __simple__ as possible for the user. Hopefully to the p

Re: How to make Python interpreter a little more strict?

2016-03-26 Thread Nick Sarbicki
On Sat, Mar 26, 2016 at 9:59 AM Aleksander Alekseev wrote: > Hello > > Recently I spend half an hour looking for a bug in code like this: > > eax@fujitsu:~/temp$ cat ./t.py > #!/usr/bin/env python3 > > for x in range(0,5): > if x % 2 == 0: > next > print(str(x)) > > eax@fujitsu:~/

Re: A mistake which almost went me mad

2016-03-03 Thread Nick Sarbicki
On Thu, Mar 3, 2016 at 10:26 AM ast wrote: > Hello > > This has to be told > > I created a file pickle.py > You could stop there. The number of times I've had to correct a student for naming their script "turtle.py". And the number of times I've caught myself doing it... ...

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Nick Sarbicki
On Tue, Jan 26, 2016 at 2:22 PM David Palao wrote: > Hello, > On my system I have 2.7.10 and 3.4.3 system wide, but it is not > debian. Of course, the "python" executable can be only one of them at > a given time. > Another option is tu use a virtual environment or something (pyvenv or > virtuale

Re: Administrators and moderators of Python-list, please erase all the messages that I not should have posted here in python-list!

2015-12-10 Thread Nick Sarbicki
Great, now I have something I can use as blackmail when you are a rich and famous programmer! /s Joking aside, don't worry about embarrassing questions from your past. We've all had a journey to being programmers and we've all done dumb things. If anything, by trying to cover up your past you wil

Re: Regular expressions

2015-11-03 Thread Nick Sarbicki
On Tue, Nov 3, 2015 at 7:15 AM, Steven D'Aprano wrote: > On Tue, 3 Nov 2015 03:23 pm, ru...@yahoo.com wrote: > > > Regular expressions should be learned by every programmer or by anyone > > who wants to use computers as a tool. They are a fundamental part of > > computer science and are used in

Re: Einstein's Riddle

2015-09-18 Thread Nick Sarbicki
On Fri, Sep 18, 2015 at 10:33 AM, Steven D'Aprano wrote: > On Fri, 18 Sep 2015 04:44 am, Ian Kelly wrote: > > > On Thu, Sep 17, 2015 at 3:19 AM, wrote: > >> This is not true that only two percent of this world can solve this > >> puzzle. May be the 2% will solve it by a quick look on the statem

Re: datetime.datetime.today()

2015-09-16 Thread Nick Sarbicki
> This surprised me today: > > >>> import datetime > >>> datetime.datetime.today(), datetime.datetime.now() > (datetime.datetime(2015, 9, 16, 8, 44, 7, 723560), datetime.datetime(2015, > 9, 16, 8, 44, 7, 723577)) > > I naively expected today() to always return a datetime.date object. Oh > well, bug

Re: Reply to author, reply to list, reply to all (was: Need Help w. PIP!)

2015-09-08 Thread Nick Sarbicki
On 9 Sep 2015 07:11, "Ben Finney" wrote: > > Terry Reedy writes: > > > On 9/8/2015 6:19 PM, Cody Piersall wrote: > > > On Sat, Sep 5, 2015 at 3:14 AM, Thomas 'PointedEars' Lahn > > > mailto:pointede...@web.de>> wrote: > > > > > > > > Cody Piersall wrote: > > > > > > > > > Please respond to th

Re: Need Help w. PIP!

2015-09-04 Thread Nick Sarbicki
In the cmd "echo %path%" and send us the output. Also try to run "pip" as opposed to "python -m pip". Nick. On Fri, 4 Sep 2015 17:41 Steve Burrus wrote: > On Thursday, September 3, 2015 at 10:12:23 PM UTC-5, Mark Lawrence wrote: > > On 04/09/2015 02:04, Steve Burrus wrote: > > > On Thursday, S

Re: Need Help w. PIP!

2015-09-03 Thread Nick Sarbicki
> Just typing 'pip' as you do does't work because pip.exe is located in Python\Scripts directory which in not included on variable %PATH% Is that new for win10? Just "pip" works fine on my win7 install. Although maybe I had to extend the path and forgot... - Nick On Fri, 4 Sep 2015 07:26 ast w

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Nick Sarbicki
I run ubuntu everywhere at home and python3 has come preinstalled since at least ubuntu 12.10. This article kind of covers it: https://wiki.ubuntu.com/Python Looks like they're suggesting that it's not been fully transitioned although definitely moving that way. On Thu, 3 Sep 2015 18:34 Chris An

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Nick Sarbicki
Is 3.x the default on ubuntu now? My 14.10 is still 2.7. Although it does have python3 installed. On Thu, 3 Sep 2015 16:40 Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:31 AM, Luca Menegotto > wrote: > > Il 03/09/2015 16:32, Heli Nix ha scritto: > > > >> How can I do this in Linux ? > > > >

Re: Strange location for a comma

2015-09-03 Thread Nick Sarbicki
Tim, Doesn't work for the first column in SQL, but we tend to put the comma and a space before the column name. It makes it easier to move things around and (debateably) more readable. It is also very obvious when you have missed a comma this way. - Nick On Thu, 3 Sep 2015 16:14 Tim Chase wrote

Re: error

2015-09-02 Thread Nick Sarbicki
Where are you running the code from? The interactive prompt? (E.g. idle, or after you type "python" at the terminal) or from the terminal? (as in by typing "python p2.py" at the terminal). It looks like you're trying to load a file while in the interactive prompt which won't work that way (it wil

Re: packing unpacking depends on order.

2015-09-02 Thread Nick Sarbicki
That's interesting. I agree with you, I'd prefer the second result in both cases. But makes sense as it evaluates left to right and seems to break up the unpacking into separate statements. Could be useful if you want to hold the results of a generator in sequence, can call the same function mult

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Nick Sarbicki
Well who would we fight if we were all friends with each other? On Fri, 28 Aug 2015 07:31 Steven D'Aprano wrote: > Completely off-topic. Stop reading now if you only want to read things > about > Python. > > > On Fri, 28 Aug 2015 09:46 am, Ben Finney wrote: > > > \“Of course, everybody s