Re: Python, Be Bold!

2020-01-05 Thread Andrea D'Amore
On Thu, 2 Jan 2020 at 09:38, Chris Angelico wrote: > The wheel does not need to be reinvented. I see what you did there. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: Jupyter Notebook -> PDF with A4 pages?

2019-11-01 Thread Andrea D'Amore
On Thu, 31 Oct 2019 at 22:08, Martin Schöön wrote: > Den 2019-10-16 skrev Piet van Oostrum : >> Why should that not work? > pip install --user pip broke pip. I have not been able to repair pip I guess that's just the local pip shadowing the system one when you let the command "pip" to be

Re: (New to Python) Shopping List Code

2019-10-28 Thread Andrea D'Amore
On Mon, 28 Oct 2019 at 14:42, ferzan saglam wrote: > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > item = input() > item != -1: Try these

Re: what's the differences: None and null?

2019-09-15 Thread Andrea D'Amore
On Sat, 14 Sep 2019 at 03:40, Random832 wrote: > On Fri, Sep 13, 2019, at 21:22, Hongyi Zhao wrote: > > what's the differences: None and null? > null isn't really a concept that exists in Python... I'd say the opposite, according to [1] "None" is just the name of the null object. [1]:

Re: issue in handling CSV data

2019-09-08 Thread Andrea D'Amore
On Sun, 8 Sep 2019 at 02:19, Sharan Basappa wrote: This is the error: > my_data_3 = my_data_2.astype(np.float) > could not convert string to float: " "81 > As you can see, the string "\t"81 is causing the error. > It seems to be due to char "\t". It is not clear what format do you expect to be

Re: How do I decouple these two modules?

2019-08-28 Thread Andrea D'Amore
On Wed, 28 Aug 2019 at 10:04, Spencer Du via Python-list wrote: > I have code for a GUI and MQTT […] currently they rely on each other to some > extent. How? I am failing to see the circular dependency there. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: Mergesort problem

2016-12-22 Thread Andrea D'Amore
I know a code review wasn't the main goal of you message but I feel it's worth mentioning two tips: On 22 December 2016 at 01:55, Deborah Swanson wrote: > ls = [] > with open('E:\\Coding projects\\Pycharm\\Moving\\New Listings.csv', > 'r') as infile: >

Re: Help me cythonize a python routine!

2016-11-09 Thread Andrea D'Amore
On 10 November 2016 at 00:15, Steve D'Aprano wrote: > py> import collections […] > py> import os > py> os.listdir('/usr/local/lib/python3.5/collections/') Not os.listdir(collections.__path__[0]) since it's already there? -- Andrea --

Re: Lua tutorial help for Python programmer?

2016-11-08 Thread Andrea D'Amore
On 7 November 2016 at 20:27, Skip Montanaro wrote: > I just got Lua scripting dumped in my lap as a way to do some server > side scripting in Redis. The very most basic stuff isn't too hard (i = > 1, a = {"x"=4, ...}, for i = 1,10,2 do ... end), but as soon as I get >

Re: advanced SimpleHTTPServer?

2016-11-02 Thread Andrea D'Amore
On 2 November 2016 at 08:27, Ulli Horlacher wrote: > "python -m SimpleHTTPServer" is really cool :-) > - some kind of a chroot, to prevent file access higher then the base > directory Shouldn't that be done by chrooting the python process in the calling

Re: Need help with coding a function in Python

2016-11-01 Thread Andrea D'Amore
On 31 October 2016 at 23:09, wrote: > http://imgur.com/a/rfGhK#iVLQKSW > How do I code a function that returns a list of the first n elements > of the sequence defined in the link? I have no idea! For those who didn't open the page (that you should have

Re: Software Needs Philosophers

2016-09-12 Thread Andrea D'Amore
On 2016-09-12 17:09:03 +, danut...@gmail.com said: Yes, it does: Operating systems do as well . -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: How to split value where is comma ?

2016-09-11 Thread Andrea D'Amore
On 2016-09-08 09:27:20 +, Joaquin Alzola said: Cannot do anything about it. It is not on my MTA client and it is added by the company server :( If it depended on my I will remove it but I can not do that. This email is confidential and may be subject to privilege. If you are not the

Re: Python source repo

2016-09-11 Thread Andrea D'Amore
On 2016-09-10 15:27:07 +, Steve D'Aprano said: Never mind. I got bored and frustrated and Ctrl-C'ed the process and ran it again. This time it took about 15 seconds to complete. Out of curiosity I checked for python debugger with "attach" feature (aking to gdb/lldb) and I found a few but

Re: Help with Debugging

2015-09-28 Thread Andrea D'Amore
On 2015-09-28 05:26:35 +, Cai Gengyang said: File "/Users/CaiGengYang/mysite/mysite/settings.py", line 45 'django.middleware.csrf.CsrfViewMiddleware', ^ SyntaxError: invalid syntax The syntax looks fine in the pastebin, did you

Re: Question about python package numpy

2015-03-01 Thread Andrea D'Amore
On 2015-03-01 20:32:34 +, fl said: import numpy it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting code example snippet, such as Cookbook / ParticleFilter, Markov chain etc. I don't know how I can access these code examples, because I don't know where Enthought

Re: Proposed new conditional operator: or else

2014-12-02 Thread Andrea D'Amore
On 2014-12-02 17:41:06 +, Zachary Ware said: foo == 42 or else Never going to happen, but I like it! Perhaps raise IntimidationError instead of AssertionError when it fails? That should probably be a DONTPANICError in large, friendly terminal font letters. -- Andrea --

Re: Idle on Mac issues

2014-11-04 Thread Andrea D'Amore
On 2014-11-04 12:43:59 +, Rustom Mody said: I seem to be stuck with some issues of Idle on macs. The page https://www.python.org/download/mac/tcltk seems to talk only of Tcl/Tk versions 8.5 System's 8.5 should be enough, if not there's explicit mention of the ActiveTcl distribution.

Re: Idle on Mac issues

2014-11-04 Thread Andrea D'Amore
On 2014-11-04 19:55:00 +, Ned Deily said: […] all Apple 8.5 version have serious bugs that have been fixed upstream. The most serious involves an immediate, unrecoverable crash in Tk when typing a composition character in an edit window or the IDLE shell […] I stand corrected, I wasn't

Re: brackets at the end of a method name

2014-09-24 Thread Andrea D'Amore
On 2014-09-24 13:30:55 +, ast said: we have some methods associated with file f […] f.close() f.name print(type(f.close)) print(type(f.name)) Spot the difference. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: find the error

2014-09-13 Thread Andrea D'Amore
On 2014-09-13 05:53:37 +, Chris Angelico said: If you're using sys.argv, you need to provide arguments to your script. Or check sys.argv's length ensuring that an element is there before accessing it. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-09-01 Thread Andrea D'Amore
You make hard to follow your messages both by sending lot of messages and not using an adequate quoting. Please pick a posting style [1] (possibly interleaved) and stick to it. On 2014-08-31 23:35:09 +, andydtay...@gmail.com said: Andrea - yes I am using the virtualenv interpreter as the

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-09-01 Thread Andrea D'Amore
On 2014-09-01 12:32:38 +, andydtay...@gmail.com said: Google groups doesn't exactly help you with that. Drop it, get a usenet client or subscribe the mailing list (the newsgroup and the ml are bridged IIRC). * Your man on the street would say I described the error fairly well. That

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread Andrea D'Amore
On 2014-08-31 14:19:24 +, andydtay...@gmail.com said: - Installing to a virtualenv python environment. Are you using the virtualenv interpreter as the Pycharm project interpreter? -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: Network/multi-user program

2014-07-22 Thread Andrea D'Amore
On 2014-07-21 16:07:22 +, Monte Milanuk said: So I guess I'm asking for advice or simplified examples of how to go about connecting a client desktop app to a parent/master desktop app, so I can get some idea of how big of a task I'm looking at here, and whether that would be more or less

Re: Python 3 on Mac OS X 10.8.4

2014-06-19 Thread Andrea D'Amore
On 2014-06-19 07:02:21 +, Une Bévue said: I want to install Python 3 such as python-3.4.0-macosx10.6.dmg avoiding disturbing the built-in version. Is that possible ? The Installer app won't let you see the target path of each package in the metapackage so you'll have to open each of the

Re: Da dove prende python il default timezone?

2014-06-06 Thread Andrea D'Amore
On 2014-06-06 15:37:24 +, Strae said: Ho acquistato un server di test in canada; Installato debian 7, settato il timezone di Roma tramite dpkg-reconfigure tzdata e sembra tutto ok; Però sembra che python di default prenda sempre il timezone canadese I'm on a very similar setup (Wheezy,

Re: OT: This Swift thing

2014-06-04 Thread Andrea D'Amore
On 2014-06-03 20:43:06 +, Sturla Molden said: I see no reason to use Swift instead of Python and PyObjC Most likely there'll be better integration with Xcode and its tools. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: IDE for python

2014-05-30 Thread Andrea D'Amore
On 2014-05-29 22:40:36 +, Travis Griggs said: I use either vim or textwrangler for simple one file scripts. Since you're on OS X have a look at Exedore, it's paid but very cheap. It aims at providing a beautiful interface, I fetched the free trial a couple days ago and the job so far is

Re: IDE for python

2014-05-30 Thread Andrea D'Amore
On 2014-05-30 07:21:52 +, Andrea D'Amore said: It aims at providing a beautiful interface, Side note: the text editing is still green. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: How to implement key of key in python?

2014-05-10 Thread Andrea D'Amore
On 2014-05-10 03:28:29 +, eckhle...@gmail.com said: While it is fine for a small dataset, I need a more generic way to do so. I don't get how the dataset size affects the generality of the solution here. From your first message: attr = {} with open('test.txt','rb') as tsvin:

Re: Installing PyGame?

2014-04-26 Thread Andrea D'Amore
On 2014-04-25 23:57:21 +, Gregory Ewing said: I don't know what you're doing to hose your system that badly. I've never had a problem that couldn't be fixed by deleting whatever the last thing was I added that caused it. The actual problem with the native MacOSX way is that there's no

Re: Installing PyGame?

2014-04-26 Thread Andrea D'Amore
On 2014-04-25 23:42:33 +, Gregory Ewing said: That's fine if it works, but the OP said he'd already tried various things like that and they *didn't* work for him. By reading the original message (the empty reply with full quote of a ten months earlier message) I couldn't figure what the