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
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
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
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 "
> >>
Good test for pypy to see where it's speed sits between C and Python.
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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 "
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 =
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
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
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
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
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 .=
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
"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
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*
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
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
"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
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
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
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
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
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
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
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
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
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
Ł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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
75 matches
Mail list logo