On Sun, Oct 27, 2013 at 12:45 PM, rusi wrote:
> Yes... that page is longer and more confusing than necessary.
> 1. The double-posting bit is unnecessary -- not been happening after the
> 'new' GG.
> 2. The missing attributions problem is new and needs to be added
> 3. The main message of that pag
Rusi said :
"Please do! If I were in charge I would say "Patches welcome!"
Well, I don't really know what the GG best practice ought to be here.
What I am doing now (manually copying whatever I need to quote to give some
context) seems to be tolerable to law enforcement (I guess). But I'm mini
On Sat, 26 Oct 2013 21:11:55 -0400, Roy Smith wrote:
> In article ,
> Dennis Lee Bieber wrote:
>
>> Compared to Baudot, both ASCII and EBCDIC were probably considered
>> wondrous.
>
> Wonderous, indeed. Why would anybody ever need more than one case of
> the alphabet? It's almost as absurd a
Hi
In the process of trying to learn python, django, mysql and
virtualenvwrapper, I have created two projects and a mess. How can I
strip everything from a Debian, Wheezy, linux system. The files are all
over the place. Much of the information in this area is for Mac or
Windoz systems that do
On 2013-10-26 21:54, Roy Smith wrote:
> In article ,
> Tim Chase wrote:
>> I'd be just as happy if Python provided a "sloppy string compare"
>> that ignored case, diacritical marks, and the like.
>
> The problem with putting fuzzy matching in the core language is
> that there is no general agree
On Sun, Oct 27, 2013 at 1:05 PM, Steven D'Aprano
wrote:
> On Sat, 26 Oct 2013 21:11:55 -0400, Roy Smith wrote:
>
>> In article ,
>> Dennis Lee Bieber wrote:
>>
>>> Compared to Baudot, both ASCII and EBCDIC were probably considered
>>> wondrous.
>>
>> Wonderous, indeed. Why would anybody ever ne
Am I the only one who finds this function super useful?
def _code_file() :
return os.path.abspath(inspect.getsourcefile(_code_file))
I've got one in every script. It's the only one I have to copy around. For my
workflow ... so handy.
I've got os.path.dirname aliased to dn, so its dn(_code_
Piet van Oostrum writes:
> Νίκος Αλεξόπουλος writes:
>
>> There is no set of cookie returned back when visitor comes from a referer.
>>
>> Isn't this strange?
>> No matter if you visit a webpage as a direct hit or via a referer the
>> cookie on the visitor's browser should have been present.
>>
Strange. I almost never want to know the location of the file that's
executing, and when I do, I just reference the __file__ module level
attribute.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
On 10/26/2013 07:23 PM, Peter Cacioppi wrote:
Am I the only one who finds this function super useful?
def _code_file() :
return os.path.abspath(inspect.getsourcefile(_code_file))
I've got one in every script. It's the only one I have to copy around. For my
workflow ... so handy.
I've go
On Sun, Oct 27, 2013 at 1:52 PM, Gary Herron
wrote:
> Huh? In what kind of a workflow are you running a python file without
> knowing *what* file you are runnung?
It's very common to want to know what directory you're in - it's a
good way to find data files.
ChrisA
--
https://mail.python.org/m
On Sat, 26 Oct 2013 20:41:58 -0500, Tim Chase wrote:
> I'd be just as happy if Python provided a "sloppy string compare"
> that ignored case, diacritical marks, and the like.
Simply ignoring diactrics won't get you very far.
Most languages which use diactrics have standard conversions, e.g.
ö ->
There's been a bit of a discussion about how prevalent Google Groups
users are in this forum. This is a good opportunity to use one of
Python's standard library modules to scan through the comp.lang.python
newsgroup and find out. So here's some code to do so:
import nntplib
import sys
s = nntp
On Sat, 26 Oct 2013 19:23:43 -0700, Peter Cacioppi wrote:
> Am I the only one who finds this function super useful?
>
> def _code_file() :
> return os.path.abspath(inspect.getsourcefile(_code_file))
>
>
> I've got one in every script. It's the only one I have to copy around.
> For my workfl
On 10/26/2013 06:11 PM, Nick the Gr33k wrote:
> Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε:
>> Ah foun it had to change in you code this line:
>> key = host, city, useros, browser, ref
>>
>> to this line:
>>
>> key = host, city, useros, browser
>>
>> so 'ref' would
Peter Cacioppi writes:
> Am I the only one who finds this function super useful?
>
> def _code_file() :
> return os.path.abspath(inspect.getsourcefile(_code_file))
I've used ‘os.path.dirname(os.path.abspath(__file__))’ to find the
directory containing the current file, in the past. But that
Chris Angelico writes:
> It's very common to want to know what directory you're in - it's a
> good way to find data files.
That's a naive way to do it (though it's often good enough, for a
program only used on one system).
For programs intending to be used across many systems, the data files
of
On 10/26/2013 05:17 PM, theelder...@gmail.com wrote:
> I apologize but I do not understand what you mean by "lack of
> context." I have taken Chris' words into consideration, for my
> previous post was supposed to be my last (I just had to say thank
> you). This is my first google groups post, so I
On 10/26/2013 11:24 AM, Steven D'Aprano wrote:
> On Sat, 26 Oct 2013 08:05:27 -0700, rurpy wrote:
>> On 10/25/2013 08:40 PM, Steven D'Aprano wrote:
> [...]
>> However, looking now, I see you pointed out that Peter originally
>> cross-posted his two messages to four groups:
>
> I think you are conf
On Sun, Oct 27, 2013 at 2:32 PM, Steven D'Aprano
wrote:
> If anyone wants to modify the script to determine the ratio of posters,
> rather than posts, using GG, be my guest. I'd be interested in the
> answer, but not interested enough to actually do the work myself.
And if anyone does, do please
On 10/26/2013 09:38 AM, Mark Lawrence wrote:
> On 26/10/2013 15:58, ru...@yahoo.com wrote:
>> That's odd, because in
>>https://groups.google.com/d/msg/comp.lang.python/FFAe5sJ7kQ4/GmDtHitY50QJ
>> I responded to a direct question from you about problems
>> with Thunderbird. If you mean instead
On 10/26/2013 07:25 AM, Chris Angelico wrote:
> On Sat, Oct 26, 2013 at 11:15 PM, rusi wrote:
>> tl;dr I think Mark's scoldings in this regard will work if they come not
>> just from him but from any and every one. They are likely to have a larger
>> subscription if you would agree to change: "
On 10/26/2013 04:15 PM, Chris Angelico wrote:
> On Sun, Oct 27, 2013 at 2:05 AM, wrote:
>> The large number of posts here from GG would suggest
>> that the readership there is substantial, and the decline in
>> "web-1.0" tools (usenet, mailing lists, etc) is additional
>> evidence that the number
On 10/26/2013 07:45 PM, rusi wrote:
> On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote:
>> Rusi said:
>>
>> "Users of GG are requested to read and follow these instructions
>> https://wiki.python.org/moin/GoogleGroupsPython "
>>
>> Seriously, it's not exactly clear what prot
On 10/26/2013 10:28 PM, Ben Finney wrote:
> Chris Angelico writes:
>
>> It's very common to want to know what directory you're in - it's a
>> good way to find data files.
>
> That's a naive way to do it (though it's often good enough, for a
> program only used on one system).
>
> For programs i
On Sun, Oct 27, 2013 at 3:28 PM, Ben Finney wrote:
> Chris Angelico writes:
>
>> It's very common to want to know what directory you're in - it's a
>> good way to find data files.
>
> That's a naive way to do it (though it's often good enough, for a
> program only used on one system).
I never sa
:
On Sun, Oct 27, 2013 at 03:35:40PM +1100, Chris Angelico wrote:
> On Sun, Oct 27, 2013 at 2:32 PM, Steven D'Aprano
> wrote:
> > If anyone wants to modify the script to determine the ratio of posters,
> > rather than posts, using GG, be my guest.
>
> And if anyone does, do please post the resul
Στις 27/10/2013 4:24 πμ, ο/η Piet van Oostrum έγραψε:
Piet van Oostrum writes:
Νίκος Αλεξόπουλος writes:
There is no set of cookie returned back when visitor comes from a referer.
Isn't this strange?
No matter if you visit a webpage as a direct hit or via a referer the
cookie on the visito
101 - 128 of 128 matches
Mail list logo