Dear Cecil,
I subscribed to late to answer to your top-post in that thread.
I had the same topic for myself in the last months and tried a lot of
things.
In your situation I would prefere the INI-file format, too.
But doen't user 'configparser' for that. As other fellows described
it's a bad sol
- Original Message -
> From: "Cecil Westerhof"
> To: python-list@python.org
> Sent: Sunday, 2 August, 2015 12:11:28 PM
> Subject: Most Pythonic way to store (small) configuration
>
> There are a lot of ways to store configuration information:
> - conf file
> - xml file
> - database
> - js
How do I uninstall Python from a Mac?
--
https://mail.python.org/mailman/listinfo/python-list
ANNOUNCING
eGenix Talks & Videos:
Python Idioms Talk
EuroPython 2015
This announcement is also available on our web-site for online reading:
htt
On Aug 3, 2015 17:46, "Rick Johnson" wrote:
>
> On Sunday, August 2, 2015 at 9:45:51 PM UTC-5, Chris Angelico wrote:
> > How do you know it was written today, if you didn't click it?
>
> Because i possess skills you can hardly fathom. There are always
> loopholes; back doors; knot holes; key holes
you can't fully uninstall python from OSX, linux, BSD as there are many
python dependent system tools
--
https://mail.python.org/mailman/listinfo/python-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 02.08.2015 05:53, Cameron Simpson wrote:
> When invoked this way, the module cs.app.maildb that is being
> executed is actually the module named "__main__". If some other
> piece of code imports "cs.app.maildb" they get a _different_
> instance
> Thank you, Steven.
> I am a newbie with Python? so I really want to learn how to do it the easy
> way.
> Yes, could you tell me how to put the py.file that contains the function
> in the Python search path???
> BIG SMILE...
> Always, Dwight
> www.3forliving.key.to (video playlist on YouTube)
> w
On 2015年08月04日 03:11, Terry Reedy wrote:
Posting three times under two different names is not polite. Please to
not repeat.
sorry...
You should not care. If you think there is an undocumented difference
in behavior, ask here if it is a bug.
I don't think a bug in this question.
I expe
On 2015年08月04日 00:05, Oscar Benjamin wrote:
On Mon, 3 Aug 2015 at 15:58 umedoblock mailto:umedobl...@gmail.com>> wrote:
I use "bisect.bisect.__module__" sentence to determine for using c
extension or not.
Why do you want to know if it uses the C extension? It shouldn't really
matter.
On 2015-08-04, milos zorica wrote:
> you can't fully uninstall python from OSX, linux, BSD as there are many
> python dependent system tools
Well, technically you _can_ uninstall Python if you really want, but
all sorts of things will stop working. In some cases, it's very hard
to recover from
On Sunday, August 2, 2015 at 12:14:51 PM UTC+2, Cecil Westerhof wrote:
> There are a lot of ways to store configuration information:
> - conf file
> - xml file
> - database
> - json file
> - and possible a lot of other ways
>
> I want to write a Python program to display cleaned log files. I do
>
that's my point
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, August 4, 2015 at 3:11:41 PM UTC+2, Dwight GoldWinde wrote:
> Thank you, Steven.
> I am a newbie with Python? so I really want to learn how to do it the easy
> way.
> Yes, could you tell me how to put the py.file that contains the function
> in the Python search path???
>
>
>
> BIG S
On 4-8-2015 16:53, marco.naw...@colosso.nl wrote:
> Why not use Python files itself as configuration files?
It could create a security risk if the config files are user-editable.
(it will make it easy to inject code into your application)
Irmen
--
https://mail.python.org/mailman/listinfo/python
On Tuesday, August 4, 2015 at 7:06:33 PM UTC+2, Irmen de Jong wrote:
> On 4-8-2015 16:53, marco.naw...@colosso.nl wrote:
> > Why not use Python files itself as configuration files?
>
> It could create a security risk if the config files are user-editable.
> (it will make it easy to inject code int
On Tuesday, August 4, 2015 at 7:29:29 AM UTC-7, Grant Edwards wrote:
> On 2015-08-04, milos zorica wrote:
>
> > you can't fully uninstall python from OSX, linux, BSD as there are many
> > python dependent system tools
>
> Well, technically you _can_ uninstall Python if you really want, but
> all
marco.naw...@colosso.nl writes:
> Why not use Python files itself as configuration files?
Because configuration data will be user-editable. (If it's not
user-editable, that is itself a poor design choice.)
If you allow executable code to be user-edited, that opens your program
to arbitrary injec
On 04/08/2015 19:31, sohcahto...@gmail.com wrote:
On Tuesday, August 4, 2015 at 7:29:29 AM UTC-7, Grant Edwards wrote:
On 2015-08-04, milos zorica wrote:
you can't fully uninstall python from OSX, linux, BSD as there are many
python dependent system tools
Well, technically you _can_ uninsta
Under Linux I like to get the most expensive processes. The two most
useful commands are:
ps -eo pid,user,pcpu,args --sort=-pcpu
and:
ps -eo pid,user,pcpu,args --sort=-vsize
In my case I am only interested in the seven most expensive processes.
For this I wrote the following script.
=
On 8/4/2015 1:19 PM, Cecil Westerhof wrote:
Under Linux I like to get the most expensive processes. The two most
useful commands are:
ps -eo pid,user,pcpu,args --sort=-pcpu
and:
ps -eo pid,user,pcpu,args --sort=-vsize
In my case I am only interested in the seven most expensive processe
On Tuesday 4 Aug 2015 22:52 CEST, Emile van Sebille wrote:
> On 8/4/2015 1:19 PM, Cecil Westerhof wrote:
>> Under Linux I like to get the most expensive processes. The two
>> most useful commands are: ps -eo pid,user,pcpu,args --sort=-pcpu
>> and: ps -eo pid,user,pcpu,args --sort=-vsize
>>
>> In
On 2015-08-04 22:30, Cecil Westerhof wrote:
On Tuesday 4 Aug 2015 22:52 CEST, Emile van Sebille wrote:
On 8/4/2015 1:19 PM, Cecil Westerhof wrote:
Under Linux I like to get the most expensive processes. The two
most useful commands are: ps -eo pid,user,pcpu,args --sort=-pcpu
and: ps -eo pid,u
On Tuesday, August 4, 2015 at 2:32:16 PM UTC-4, sohca...@gmail.com wrote:
> milos: "You can't uninstall Python because it will break things"
> Grant: "Actually, you CAN uninstall Python, but it will break things"
>
> I really fucking hate how pedantic some of the people on this mailing list
> are
On 8/4/2015 2:30 PM, Cecil Westerhof wrote:
On Tuesday 4 Aug 2015 22:52 CEST, Emile van Sebille wrote:
My platform shows as linux2 and it worked fine for me when checking
for that.
I heard that that was possible also, but none of my systems gives
this. I should change it.
You could also u
On Wednesday 5 Aug 2015 00:12 CEST, Emile van Sebille wrote:
> On 8/4/2015 2:30 PM, Cecil Westerhof wrote:
>> On Tuesday 4 Aug 2015 22:52 CEST, Emile van Sebille wrote:
>
>>> My platform shows as linux2 and it worked fine for me when
>>> checking for that.
>>
>> I heard that that was possible al
On Wednesday 5 Aug 2015 00:00 CEST, MRAB wrote:
>> I amended the code to work with linux and linux2:
>>
>> accepted_params = { 'pcpu', 'rss', 'size', 'time', 'vsize', }
>> accepted_platforms = { 'linux', 'linux2', } current_
On 08/04/2015 01:59 PM, Ben Finney wrote:
> marco.naw...@colosso.nl writes:
>
>> Why not use Python files itself as configuration files?
>
> Because configuration data will be user-editable. (If it's not
> user-editable, that is itself a poor design choice.)
>
> If you allow executable code to b
On Tue, Aug 4, 2015 at 9:01 PM, Mark Lawrence
wrote:
> On 04/08/2015 19:31, sohcahto...@gmail.com wrote:
>
>> On Tuesday, August 4, 2015 at 7:29:29 AM UTC-7, Grant Edwards wrote:
>>
>>> On 2015-08-04, milos zorica wrote:
>>>
>>> you can't fully uninstall python from OSX, linux, BSD as there are
On Tuesday, August 4, 2015 at 9:51:27 PM UTC-4, Mario Figueiredo wrote:
> On Tue, Aug 4, 2015 at 9:01 PM, Mark Lawrence wrote:
>>
>> The simple solution is not to subscribe.
>
>
> Or even better, tell you to fuck off.
Can we please try to stay civil?
--Ned.
--
https://mail.python.org/mailman
On Tue, Aug 4, 2015 at 11:06 PM, Ned Batchelder
wrote:
>
> On Tuesday, August 4, 2015 at 2:32:16 PM UTC-4, sohca...@gmail.com wrote:
> > milos: "You can't uninstall Python because it will break things"
> > Grant: "Actually, you CAN uninstall Python, but it will break things"
> >
> > I really fucki
On Wed, Aug 5, 2015 at 3:08 AM, Mario Figueiredo wrote:
>
> But being an asshole does not. That is something one chooses to become.
Your answer squarely puts you in the group of people that chose to be in
life to be a pain to others [...]
An ugly mistyping there completely changed the meaning of
On 04Aug2015 19:32, Michael Torrie wrote:
On 08/04/2015 01:59 PM, Ben Finney wrote:
marco.naw...@colosso.nl writes:
Why not use Python files itself as configuration files?
Because configuration data will be user-editable. (If it's not
user-editable, that is itself a poor design choice.)
If
On Tue, Aug 4, 2015, at 21:32, Michael Torrie wrote:
> In many of my projects I put basic config variables in a file like
> config.py and import that in each module that needs it. The config
> module doubles as a global namespace for sharing between modules as well.
What about JSONP? That is, a f
On Wednesday, August 5, 2015 at 7:49:10 AM UTC+5:30, Mario Figueiredo wrote:
> On Wed, Aug 5, 2015 at 3:08 AM, Mario Figueiredo wrote:
> >
> > But being an asshole does not. That is something one chooses to become.
> > Your answer squarely puts you in the group of people that chose to be in
> >
On 08/04/2015 08:44 PM, random...@fastmail.us wrote:
> On Tue, Aug 4, 2015, at 21:32, Michael Torrie wrote:
>> In many of my projects I put basic config variables in a file like
>> config.py and import that in each module that needs it. The config
>> module doubles as a global namespace for sharin
On 08/04/2015 08:19 PM, Cameron Simpson wrote:
> So on the whole I am against python code as the config file format. Really,
> who
> needs a Turing complete configuration file?
In Django's case, since you're intimately referring to certain classes
and methods, particularly in the url mapping sec
On Wednesday, August 5, 2015 at 10:19:11 AM UTC+5:30, Michael Torrie wrote:
> On 08/04/2015 08:44 PM, wrote:
> > On Tue, Aug 4, 2015, at 21:32, Michael Torrie wrote:
> >> In many of my projects I put basic config variables in a file like
> >> config.py and import that in each module that needs it.
Right. Try
"which python" in the terminal and report back!
Cheers
Paul
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I recently found interesting GOTCHA while doing list comprehension in python
2.6:
>>> values = ( True, False, 1, 2, 3, None )
>>> [ value for value in values if value if not None ]
[True, 1, 2, 3]
I was wondering why this list comprehension returns incorrect results and
finally found a typ
Rustom Mody writes:
> Does yaml have comments?
Yes, the same syntax as Python's.
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it | -- Fortunato Depero, 1929.
41 matches
Mail list logo