Re: [Tutor] Complications Take Two (Long) Frustrations.

2015-08-22 Thread Laura Creighton
In a message of Sat, 22 Aug 2015 17:00:55 +1000, Steven D'Aprano writes: On Fri, Aug 21, 2015 at 11:29:52PM +0200, Roel Schroeven wrote: Joel Goldstick schreef op 2015-08-21 23:22: so: print -max(-A, -B) That's what I mean, yes. I haven't tried it, but I don't see why it wouldn't work.

Re: [Tutor] Do not understand why test is running.

2015-08-22 Thread Peter Otten
boB Stepp wrote: In the cold light of morning, I see that in this invocation, the path is wrong. But even if I correct it, I get the same results: e:\Projects\mcmpy -m unittest ./test/db/test_manager.py [...] ValueError: Empty module name Make sure that there are files ./test/__init__.py

[Tutor] filtering listed directories

2015-08-22 Thread Chris Roy-Smith
Hi, environment: Python 2.7, Ubuntu 12.4 Linux I am trying to get the list of directories shown by tkFileDialog.askdirectory to not show hidden files (starting with .) this code results in lots of hidden directories listed in the interface making things harder than they need to be for the

Re: [Tutor] filtering listed directories

2015-08-22 Thread Laura Creighton
In a message of Sat, 22 Aug 2015 12:20:31 +1000, Chris Roy-Smith writes: Hi, environment: Python 2.7, Ubuntu 12.4 Linux I am trying to get the list of directories shown by tkFileDialog.askdirectory to not show hidden files (starting with .) this code results in lots of hidden directories listed

Re: [Tutor] Can someone explain this to me please

2015-08-22 Thread eryksun
On Fri, Aug 21, 2015 at 1:04 PM, Jon Paris jon.f.pa...@gmail.com wrote: import sys x = sys.maxsize print (Max size is: , x) y = (x + 1) print (y is, type(y), with a value of, y) Produces this result: Max size is: 9223372036854775807 y is class 'int' with a value of 9223372036854775808

Re: [Tutor] Complications Take Two (Long) Frustrations.

2015-08-22 Thread Steven D'Aprano
On Fri, Aug 21, 2015 at 11:29:52PM +0200, Roel Schroeven wrote: Joel Goldstick schreef op 2015-08-21 23:22: so: print -max(-A, -B) That's what I mean, yes. I haven't tried it, but I don't see why it wouldn't work. It won't work with anything which isn't a number: py min(hello,

Re: [Tutor] filtering listed directories

2015-08-22 Thread Laura Creighton
In a message of Sat, 22 Aug 2015 14:32:56 +0100, Alan Gauld writes: But maybe some questions on a Tix (or Tk) forum might get more help? Once you know how to do it in native Tcl/Tk/Tix you can usually figure out how to do it in Python. -- Alan G I asked the question on tkinter-discuss, but the

Re: [Tutor] filtering listed directories

2015-08-22 Thread Alan Gauld
On 22/08/15 11:43, Laura Creighton wrote: How can I filter out these hidden directories? Help(tkFileDialog) doesn't help me as it just shows **options, but doesn't show what these options might be. tix (tkinter extensions) https://wiki.python.org/moin/Tix have some more file dialogs, so

[Tutor] Problem using lxml

2015-08-22 Thread Anthony Papillion
Hello Everyone, I'm pretty new to lxml but I pretty much thought I'd understood the basics. However, for some reason, my first attempt at using it is failing miserably. Here's the deal: I'm parsing specific page on Craigslist ( http://joplin.craigslist.org/search/rea) and trying to retreive the

Re: [Tutor] Problem using lxml

2015-08-22 Thread Joel Goldstick
On Sat, Aug 22, 2015 at 5:05 PM, Anthony Papillion papill...@gmail.com wrote: Hello Everyone, I'm pretty new to lxml but I pretty much thought I'd understood the basics. However, for some reason, my first attempt at using it is failing miserably. Here's the deal: I'm parsing specific page

Re: [Tutor] Problem using lxml

2015-08-22 Thread Martin A. Brown
Hi there Anthony, I'm pretty new to lxml but I pretty much thought I'd understood the basics. However, for some reason, my first attempt at using it is failing miserably. Here's the deal: I'm parsing specific page on Craigslist ( http://joplin.craigslist.org/search/rea) and trying to