Re: pycurl.error: (55, 'select/poll returned error')

2015-03-27 Thread dieter
Nagy László Zsolt writes: > When calling curl.perform() on a curl instance I get this: > > pycurl.error: (55, 'select/poll returned error') > > This error happens only if the file to be POST-ed is big enough. Last > week files were under 1GB and everything went fine. Files above about > 1GB

Re: VB/Pascal with statement [was Re: Proposal for new minor syntax]

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 5:26 PM, Steven D'Aprano wrote: > On Sat, 28 Mar 2015 03:18 pm, Rustom Mody wrote: > >> One thing that is a bit laborious in python are object initializers: >> >> self.attr1 = field1 >> self.attr2 = field2 >> >> In VB one can do: >> >> with self >> .attr1 = field1 >> .attr2

VB/Pascal with statement [was Re: Proposal for new minor syntax]

2015-03-27 Thread Steven D'Aprano
On Sat, 28 Mar 2015 03:18 pm, Rustom Mody wrote: > One thing that is a bit laborious in python are object initializers: > > self.attr1 = field1 > self.attr2 = field2 > > In VB one can do: > > with self > .attr1 = field1 > .attr2 = field2 > > (or something like that -- dont exactly remember the

Re: Proposal for new minor syntax

2015-03-27 Thread Rustom Mody
On Saturday, March 28, 2015 at 6:26:26 AM UTC+5:30, Ian wrote: > On Fri, Mar 27, 2015 at 6:33 PM, Mario Figueiredo wrote: > > On Sat, 28 Mar 2015 10:39:04 +1100, Ben Finney wrote: > > > >>Jamie Willis writes: > >> > >>> This could be written as: > >>> > >>> hello = "hello world " > >>

Re: Sudoku solver

2015-03-27 Thread Sayth
Good test for pypy to see where it's speed sits between C and Python. -- https://mail.python.org/mailman/listinfo/python-list

Re: Sudoku solver

2015-03-27 Thread Steven D'Aprano
On Sat, 28 Mar 2015 05:18 am, sohcahto...@gmail.com wrote: > On Friday, March 27, 2015 at 7:10:54 AM UTC-7, Dave Angel wrote: >> I know, let's use "regular expressions" >> >> >> -- >> DaveA > > You jest, but... > > http://www.perlmonks.org/?node_id=471168 I'm not a Perl expert, but I call

Re: Sudoku solver

2015-03-27 Thread Steven D'Aprano
On Sat, 28 Mar 2015 01:19 am, Chris Angelico wrote: > Part of me is quaking in fear... the other part looking on in morbid > fascination. Can you build a regexp that proves a Sudoku grid > solvable? Perl's regular expressions can run arbitrary code using ?{...} which technically makes them Turin

Re: Supply condition in function call

2015-03-27 Thread Rustom Mody
On Saturday, March 28, 2015 at 5:57:08 AM UTC+5:30, Larry Hudson wrote: > On 03/26/2015 06:56 PM, Chris Angelico wrote: > > On Fri, Mar 27, 2015 at 12:41 PM, Rustom Mody wrote: > [snip] > >> After selecting the line above [inside python inside help(filter) ]for > >> cut-pasting here, by mistake I p

Re: Sudoku solver

2015-03-27 Thread Gregory Ewing
Chris Angelico wrote: Part of me is quaking in fear... the other part looking on in morbid fascination. Can you build a regexp that proves a Sudoku grid solvable? Well, it's *theoretically* possible, since there are a finite number of possible sudoku puzzles, so if nothing else you could just u

Re: time module vs. datetime module: plain language for beginners

2015-03-27 Thread Ian Kelly
On Fri, Mar 27, 2015 at 6:31 PM, Jinghui Niu wrote: > On Wednesday, March 25, 2015 at 2:17:03 PM UTC-7, Jinghui Niu wrote: >> I am learning python programming. One thing that gives me a lot of confusion >> is the division of labours between the time module and the datetime module. >> >> As it tur

Re: Proposal for new minor syntax

2015-03-27 Thread Ian Kelly
On Fri, Mar 27, 2015 at 6:33 PM, Mario Figueiredo wrote: > On Sat, 28 Mar 2015 10:39:04 +1100, Ben Finney > wrote: > >>Jamie Willis writes: >> >>> This could be written as: >>> >>> hello = "hello world " >>> hello .= strip() >> >>?1, “.=” is visually too similar to “=”. > > can't be

Re: Proposal for new minor syntax

2015-03-27 Thread Mario Figueiredo
On Sat, 28 Mar 2015 10:39:04 +1100, Ben Finney wrote: >Jamie Willis writes: > >> This could be written as: >> >> hello = "hello world " >> hello .= strip() > >?1, “.=” is visually too similar to “=”. can't be much worse than hello = "hello world", I think the dot next to

Re: time module vs. datetime module: plain language for beginners

2015-03-27 Thread Jinghui Niu
On Wednesday, March 25, 2015 at 2:17:03 PM UTC-7, Jinghui Niu wrote: > I am learning python programming. One thing that gives me a lot of confusion > is the division of labours between the time module and the datetime module. > > As it turns out to be, time module is not only about time, it's abo

Re: Supply condition in function call

2015-03-27 Thread Larry Hudson
On 03/26/2015 06:56 PM, Chris Angelico wrote: On Fri, Mar 27, 2015 at 12:41 PM, Rustom Mody wrote: [snip] After selecting the line above [inside python inside help(filter) ]for cut-pasting here, by mistake I pressed Ctrl-C rather than Ctrl-Shift-C An exception was thrown and the terminal remai

Re: Sudoku solver

2015-03-27 Thread Larry Hudson
On 03/27/2015 07:09 AM, Dave Angel wrote: [snip] I know, let's use "regular expressions" This is totally OT, but... There was a recent (2015-03-23) item on The Daily WTF web site concerning regular expressions. Take a look at http://thedailywtf.com/articles/regularly-expressing-hate

Re: Proposal for new minor syntax

2015-03-27 Thread Ben Finney
Jamie Willis writes: > This could be written as: > > hello = "hello world " > hello .= strip() −1, “.=” is visually too similar to “=”. Syntax that is ambiguous at a glance is a cost when reading, and here I think the cost is great. > In this slightly contrived example, the progra

Re: asyncio

2015-03-27 Thread orangewarrior
On Friday, March 27, 2015 at 7:17:26 AM UTC-7, Ian wrote: > On Fri, Mar 27, 2015 at 6:38 AM, Marko Rauhamaa wrote: > > I don't know the answer to your question. A superficial glance at the > > relevant asyncio source code (and documentation) suggests you shouldn't > > be seeing what you are seeing

Re: Proposal for new minor syntax

2015-03-27 Thread BartC
On 27/03/2015 20:48, Ian Kelly wrote: On Fri, Mar 27, 2015 at 2:24 PM, Jamie Willis wrote: I would like to propose a new piece of syntax for the python language; .= In short, the operator is form of syntactic sugar, for instance consider the following code: hello = "hello world "

Re: Supply condition in function call

2015-03-27 Thread Cameron Simpson
On 27Mar2015 21:02, Manuel Graune wrote: Cameron Simpson writes: This passes the local variables inside test1() to "condition" as a single parameter. Now, I grant that vars['i'] is a miracle of tediousness. So consider this elaboration: from collections import namedtuple condition_test =

Re: Proposal for new minor syntax

2015-03-27 Thread Skip Montanaro
Interesting concept. I suppose it offers some small optimization opportunities, and clearly saves some possibly error-prone typing. You construct the object on the left-hand side, then just DUP_TOP to get its use on the RHS. A couple comments though: * "dot" is pretty invisible unless surrounded

Re: Proposal for new minor syntax

2015-03-27 Thread Ian Kelly
On Fri, Mar 27, 2015 at 2:24 PM, Jamie Willis wrote: > I would like to propose a new piece of syntax for the python language; .= > > In short, the operator is form of syntactic sugar, for instance consider the > following code: > > hello = "hello world " > hello = hello.strip() > > Th

SQLObject 3.0.0a1

2015-03-27 Thread Oleg Broytman
ere is SQLObject == Site: http://sqlobject.org Development: http://sqlobject.org/devel/ Mailing list: https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss Archives: http://news.gmane.org/gmane.comp.python.sqlobject Download: https://pypi.python.org/pypi/SQLObject/3.0.0a1de

Re: Supply condition in function call

2015-03-27 Thread Peter Otten
Manuel Graune wrote: > Peter Otten <__pete...@web.de> writes: > >> Cameron Simpson wrote: >> >>> test1([0,1,2,3], [1,2,3,4], condition_test) >>> >>> This passes the local variables inside test1() to "condition" as a >>> single parameter. Now, I grant that vars['i'] is a miracle of >>> tediousn

Proposal for new minor syntax

2015-03-27 Thread Jamie Willis
I would like to propose a new piece of syntax for the python language; .= In short, the operator is form of syntactic sugar, for instance consider the following code: hello = "hello world " hello = hello.strip() This could be written as: hello = "hello world " hello .=

Re: Sudoku solver

2015-03-27 Thread BartC
On 26/03/2015 00:07, Ian Kelly wrote: On Wed, Mar 25, 2015 at 2:31 PM, Marko Rauhamaa wrote: It takes about 2 seconds for my Python program to find the answer but it spends a total of 110 seconds to exhaust the problem space. The analogous C program finished the whole thing in 200 millisecon

Re: Supply condition in function call

2015-03-27 Thread Manuel Graune
Cameron Simpson writes: > This passes the local variables inside test1() to "condition" as a > single parameter. Now, I grant that vars['i'] is a miracle of > tediousness. So consider this elaboration: > > from collections import namedtuple > > condition_test = lambda vars: vars.i + vars.j > 4

Re: Supply condition in function call

2015-03-27 Thread Manuel Graune
Peter Otten <__pete...@web.de> writes: > Cameron Simpson wrote: > >> test1([0,1,2,3], [1,2,3,4], condition_test) >> >> This passes the local variables inside test1() to "condition" as a single >> parameter. Now, I grant that vars['i'] is a miracle of tediousness. So >> consider this elaboration

Re: What is elegant way to do configuration on server app

2015-03-27 Thread CHIN Dihedral
On Thursday, March 26, 2015 at 4:19:33 PM UTC+8, Jerry OELoo wrote: > Hi. > I have used python to provide a web service app, it will running 7*24, > and it will return some data to client by API. http://jonpy.sourceforge.net/modpy.html Check the page of modpy and django. -- https://mail.python.o

Re: Sudoku solver

2015-03-27 Thread sohcahtoa82
On Friday, March 27, 2015 at 7:10:54 AM UTC-7, Dave Angel wrote: > On 03/27/2015 09:56 AM, Marko Rauhamaa wrote: > > "Frank Millman" : > > > >> So what I am talking about is called a "satisfactory" puzzle, which is > >> a subset of a "proper" puzzle. > > > > That is impossible to define, though, be

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Grant Edwards
On 2015-03-27, Chris Angelico wrote: > The same problem occurs with PHP-based web sites, but there you don't > get the option of holding over for a SIGHUP, so you're just stuck with > uploading a new version of your site file-by-file, or *maybe* > attempting an atomic rename of a directory. If yo

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Marko Rauhamaa
Grant Edwards : > On 2015-03-27, Marko Rauhamaa wrote: >> That, indeed, is the classic Unix way. However, Linux has now moved >> to systemd: > > That's a bit of an overstatement. _Some_ distros have switched to > systemd. None of my machines use it, and it's very rare in embedded > systems. Much

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 3:28 AM, Grant Edwards wrote: > I presume that automagically reading them any time they changed was > both too much hassle and possibly dangerous: if a file is being > edited, it might get saved in intermediate (broken) states during the > editing session. Even more so if

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Grant Edwards
On 2015-03-27, Marko Rauhamaa wrote: > Grant Edwards : > >> That sounds rather Windowsesque. The more-or-less standard way to do >> handle the situation on Unix is to reread the config file when you get >> a SIGHUP. > > That, indeed, is the classic Unix way. However, Linux has now moved to > syste

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Grant Edwards
On 2015-03-27, Jerry OELoo wrote: >>> Make a part of your event loop (assuming your server runs an event >>> loop) that wakes up every N seconds (e.g. every 60 seconds) and >>> checkes the file's modification timestamp again; if it's newer, record >>> that value for future comparisons, th

Re: Sudoku solver

2015-03-27 Thread Mark Lawrence
On 27/03/2015 14:09, Dave Angel wrote: On 03/27/2015 09:56 AM, Marko Rauhamaa wrote: "Frank Millman" : So what I am talking about is called a "satisfactory" puzzle, which is a subset of a "proper" puzzle. That is impossible to define, though, because some people are mental acrobats and can d

Re: Supply condition in function call

2015-03-27 Thread Mark Lawrence
On 27/03/2015 13:48, Rustom Mody wrote: On Friday, March 27, 2015 at 10:05:21 AM UTC+5:30, Steven D'Aprano wrote: On Fri, 27 Mar 2015 01:21 pm, Rustom Mody wrote: Anyway my point is that in python (after 2.2??) saying something is an object is a bit of a tautology -- ie verbiage without inform

Python counterpart of Elixir's build tool Mix - or: why is it so cumbersome to "create packages"

2015-03-27 Thread Stefan Otte
Hey, lately I was playing with elixir [1] and I found Mix [2], elixir's "build/task tool", to be amazing. Creating new projects, compiling, installing dependencies, running and testing -- really easy! For what I'm concerned mix convinced me just for the "mix new projectname" command: * creating R

Re: asyncio

2015-03-27 Thread Marko Rauhamaa
Marko Rauhamaa : > Ian Kelly : > >> Actually I think this explains it. In the OP's while loop, he updates >> his task list with the line: >> >> tasks = asyncio.Task.all_tasks(loop) >> >> This creates a strong reference to each of the returned tasks. > > Good catch! And demonstrates somewhat of a

Re: asyncio

2015-03-27 Thread Marko Rauhamaa
Ian Kelly : > Actually I think this explains it. In the OP's while loop, he updates > his task list with the line: > > tasks = asyncio.Task.all_tasks(loop) > > This creates a strong reference to each of the returned tasks. Good catch! Marko -- https://mail.python.org/mailman/listinfo/python-li

Re: Sudoku solver

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 1:09 AM, Dave Angel wrote: > On 03/27/2015 09:56 AM, Marko Rauhamaa wrote: >> >> "Frank Millman" : >> >>> So what I am talking about is called a "satisfactory" puzzle, which is >>> a subset of a "proper" puzzle. >> >> >> That is impossible to define, though, because some pe

Re: Supply condition in function call

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 12:48 AM, Rustom Mody wrote: > Knows some C, not much else. > Starts studying python. > Good until a point. > Then suddenly hit... map, filter, and the worst of all lambda. > More he reads less he understands. > Tries help... Gets the above. > > So which do you think helps

Re: asyncio

2015-03-27 Thread Ian Kelly
On Fri, Mar 27, 2015 at 6:38 AM, Marko Rauhamaa wrote: > I don't know the answer to your question. A superficial glance at the > relevant asyncio source code (and documentation) suggests you shouldn't > be seeing what you are seeing. > > Tasks are kept in a weak set. Tasks should evaporate as soon

Re: Sudoku solver

2015-03-27 Thread Dave Angel
On 03/27/2015 09:56 AM, Marko Rauhamaa wrote: "Frank Millman" : So what I am talking about is called a "satisfactory" puzzle, which is a subset of a "proper" puzzle. That is impossible to define, though, because some people are mental acrobats and can do a lot of deep analysis in their heads.

Re: Sudoku solver

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 12:56 AM, Marko Rauhamaa wrote: > "Frank Millman" : > >> So what I am talking about is called a "satisfactory" puzzle, which is >> a subset of a "proper" puzzle. > > That is impossible to define, though, because some people are mental > acrobats and can do a lot of deep ana

Re: Sudoku solver

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 12:48 AM, Dave Angel wrote: > On the other hand, I play some "games" which I can only solve with the aid > of a computer. Is that "cheating"? Not for some games. I have some > challenges for which I need/prefer to use a wrench, or a screwdriver, or a > lawnmower. That d

Re: Sudoku solver

2015-03-27 Thread Marko Rauhamaa
"Frank Millman" : > So what I am talking about is called a "satisfactory" puzzle, which is > a subset of a "proper" puzzle. That is impossible to define, though, because some people are mental acrobats and can do a lot of deep analysis in their heads. What's satisfactory to you may not be satisfa

Re: Supply condition in function call

2015-03-27 Thread Rustom Mody
On Friday, March 27, 2015 at 10:05:21 AM UTC+5:30, Steven D'Aprano wrote: > On Fri, 27 Mar 2015 01:21 pm, Rustom Mody wrote: > > > Anyway my point is that in python (after 2.2??) saying something is an > > object is a bit of a tautology -- ie verbiage without information. > > > Er, it's *always*

Re: Sudoku solver

2015-03-27 Thread Dave Angel
On 03/27/2015 09:35 AM, Frank Millman wrote: "Dave Angel" wrote in message news:551557b3.5090...@davea.name... But now I have to disagree about "true Sudoku puzzle." As we said earlier, it might make sense to say that puzzles that cannot be solved that way are not reasonable ones to put in a

Re: Sudoku solver

2015-03-27 Thread Dave Angel
On 03/27/2015 09:25 AM, Chris Angelico wrote: On Sat, Mar 28, 2015 at 12:14 AM, Dave Angel wrote: But now I have to disagree about "true Sudoku puzzle." As we said earlier, it might make sense to say that puzzles that cannot be solved that way are not reasonable ones to put in a human Sudoku b

Re: Sudoku solver

2015-03-27 Thread Frank Millman
"Dave Angel" wrote in message news:551557b3.5090...@davea.name... > > But now I have to disagree about "true Sudoku puzzle." As we said > earlier, it might make sense to say that puzzles that cannot be solved > that way are not reasonable ones to put in a human Sudoku book. But why > isn't

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 12:23 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> The number of cases where this matters is fairly low. Doing the reload >> asynchronously is generally sufficient. > > Not sure. Not sure at all. Issues like this occupy a great part of my > office hours. Only because

Re: ctypes problem: segfault with pointer usage

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 12:22 AM, Bruno Cauet wrote: > Found the problem: I just have to add libgio.g_object_unref.argtypes = > [ctypes.c_void_p] > It now works flawlessly! Sorry for the noise. Glad you solved it! I had a quick look at your email, but since you attached your code rather than incl

Re: Sudoku solver

2015-03-27 Thread Chris Angelico
On Sat, Mar 28, 2015 at 12:14 AM, Dave Angel wrote: > But now I have to disagree about "true Sudoku puzzle." As we said earlier, > it might make sense to say that puzzles that cannot be solved that way are > not reasonable ones to put in a human Sudoku book. But why isn't it a "true > Sudoku puz

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Marko Rauhamaa
Chris Angelico : > The number of cases where this matters is fairly low. Doing the reload > asynchronously is generally sufficient. Not sure. Not sure at all. Issues like this occupy a great part of my office hours. > And even if you have something that waits for the reload to finish, > you'll u

Re: ctypes problem: segfault with pointer usage

2015-03-27 Thread Bruno Cauet
Found the problem: I just have to add libgio.g_object_unref.argtypes = [ctypes.c_void_p] It now works flawlessly! Sorry for the noise. 2015-03-27 13:03 GMT+01:00 Bruno Cauet : > Hi, > I have a segfault problem with ctypes. Script attached. > I simply need to call `libgio.g_file_new_for_path` and

Re: Sudoku solver

2015-03-27 Thread Dave Angel
On 03/27/2015 05:25 AM, Chris Angelico wrote: On Fri, Mar 27, 2015 at 8:07 PM, Frank Millman wrote: There seems to be disagreement over the use of the term 'trial and error'. How about this for a revised wording - "It should be possible to reach that solution by a sequence of logical deduction

Re: test1

2015-03-27 Thread Tiglath Suriol
Well, quiet at last. I think. I expected people in a comp.lang group to have been to college but you guys are barely literate. And if you've been to college it must be true we have an education crisis. Dumb comments, schoolyard insults, and fecal references is all you had to offer. Excep

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Chris Angelico
On Fri, Mar 27, 2015 at 7:47 PM, Marko Rauhamaa wrote: > Grant Edwards : > >> That sounds rather Windowsesque. The more-or-less standard way to do >> handle the situation on Unix is to reread the config file when you get >> a SIGHUP. > > That, indeed, is the classic Unix way. However, Linux has no

Re: test1

2015-03-27 Thread Tiglath Suriol
On Friday, March 27, 2015 at 3:33:37 AM UTC-4, Christian Gollwitzer wrote: > Am 26.03.15 um 02:34 schrieb Tiglath Suriol: > > I may stay a while just to poke you in the eye a little longer. I am > > beginning to enjoy this. People entering a battle of wits unarmed. > > It's a joy to watch. > > W

Re: asyncio

2015-03-27 Thread Marko Rauhamaa
Łukasz Ligowski : > Is there a way to prune finished tasks (I tried forcing gc) or I do > something wrong? Guessing that you need to call asyncio.wait() or asyncio.wait_for() to get rid of the zombies. (Apparently the loop object keeps references to completed tasks. I'm not sure this design choi

Re: asyncio

2015-03-27 Thread Marko Rauhamaa
orangewarr...@gmail.com: > On Friday, March 27, 2015 at 1:55:36 AM UTC-7, Marko Rauhamaa wrote: >> Łukasz Ligowski : >> >> > Is there a way to prune finished tasks (I tried forcing gc) or I do >> > something wrong? >> >> Guessing that you need to call asyncio.wait() or asyncio.wait_for() to >> g

Re: asyncio

2015-03-27 Thread orangewarrior
Hi, On Friday, March 27, 2015 at 1:55:36 AM UTC-7, Marko Rauhamaa wrote: > Łukasz Ligowski : > > > Is there a way to prune finished tasks (I tried forcing gc) or I do > > something wrong? > > Guessing that you need to call asyncio.wait() or asyncio.wait_for() to > get rid of the zombies. > > (A

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Marko Rauhamaa
Grant Edwards : > That sounds rather Windowsesque. The more-or-less standard way to do > handle the situation on Unix is to reread the config file when you get > a SIGHUP. That, indeed, is the classic Unix way. However, Linux has now moved to systemd: ExecReload= Commands to execute t

Re: Supply condition in function call

2015-03-27 Thread Dave Angel
On 03/26/2015 09:41 PM, Rustom Mody wrote: On Thursday, March 26, 2015 at 11:30:57 AM UTC+5:30, Chris Angelico wrote: Python 3.5.0a0 (default:4709290253e3, Jan 20 2015, 21:48:07) [GCC 4.7.2] on linux class filter(object) | filter(function or None, iterable) --> filter object | | Retur

ctypes problem: segfault with pointer usage

2015-03-27 Thread Bruno Cauet
Hi, I have a segfault problem with ctypes. Script attached. I simply need to call `libgio.g_file_new_for_path` and then `libgio.g_file_get_uri` with its result. That result is a GFile*. Since I don't manipulate that GFile* I don't think I have to mess with argtypes & restype of the functions. I st

Re: Cannot Uninstall 3.4

2015-03-27 Thread Tim Golden
On 26/03/2015 23:52, T Younger wrote: > I have 3.4.1 (8/14) and replaced it with 3.4.2 (12/14) > Neither of these uninstalled or I do not believe even had the option. > > I now wanted to update to 3.4.3 and the uninstall fails, provided the > message that the installer is missing a program then ba

Re: Sudoku solver

2015-03-27 Thread Chris Angelico
On Fri, Mar 27, 2015 at 8:07 PM, Frank Millman wrote: > There seems to be disagreement over the use of the term 'trial and error'. > How about this for a revised wording - > > "It should be possible to reach that solution by a sequence of logical > deductions. Each step in the sequence must unique

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Chris Angelico
On Fri, Mar 27, 2015 at 7:28 PM, Jerry OELoo wrote: > Hi Grant: > Why use SIGHUP, Does it has something to do with configure file > modification? I don't get it. Thank you. Long tradition. I have no idea why that particular signal is used, but it's a well-known convention. In any case, it's certa

Re: Sudoku solver

2015-03-27 Thread Frank Millman
"Marko Rauhamaa" wrote in message news:87fv8sndw1@elektro.pacujo.net... > "Frank Millman" : > >> Here is another python-based sudoku solver - >> >> http://www.ics.uci.edu/~eppstein/PADS/Sudoku.py >> >>>From its docstring - >> >> "A proper Sudoku puzzle must have a unique solution, and it sho

asyncio

2015-03-27 Thread Łukasz Ligowski
Hi, I wrote simple asyncio program (see below) and I'm not sure if I understand behavior correctly. I have print_tasks coroutine which prints each task in a loop by using Task.all_tasks function. I have also task_launcher coroutine that launches (by loop.create_task()) simple task that waits some

Re: What is elegant way to do configuration on server app

2015-03-27 Thread Jerry OELoo
Hi Grant: Why use SIGHUP, Does it has something to do with configure file modification? I don't get it. Thank you. On Thu, Mar 26, 2015 at 11:49 PM, Grant Edwards wrote: > On 2015-03-26, Ben Finney wrote: >> Jerry OELoo writes: >> >>> Currently, I can just think out that I put status into a con

Re: module attributes and docstrings

2015-03-27 Thread Marko Rauhamaa
Steven D'Aprano : > Some people prefer to say "Python has no variables, it has name > bindings". I think that it's better to say that Python's variables are > not *like* C or Pascal variables, rather than invent a distinction > between name bindings and variables. Name bindings are a type of > var

Re: module attributes and docstrings

2015-03-27 Thread Steven D'Aprano
On Thu, 26 Mar 2015 08:48 pm, Mario Figueiredo wrote: > Sorry for the late reply. We experienced a 3 day blackout following > one of the most amazing thunderstorms I've witnessed in my life. Wow. Where abouts are you? Apart from the blackout, did you get through it alright? More below... > On T

Re: test1

2015-03-27 Thread Christian Gollwitzer
Am 26.03.15 um 02:34 schrieb Tiglath Suriol: I may stay a while just to poke you in the eye a little longer. I am beginning to enjoy this. People entering a battle of wits unarmed. It's a joy to watch. Wow you must be really bored. Christian -- https://mail.python.org/mailman/listinf

pycurl.error: (55, 'select/poll returned error')

2015-03-27 Thread Nagy László Zsolt
When calling curl.perform() on a curl instance I get this: pycurl.error: (55, 'select/poll returned error') On the server side, there is no error message at all. I suppose that the curl client tries to call select/poll on the socket. It fails and then returns with an error. This error happ