e will probably find out that the name your server identifies
with, will not correspond with the IP address it is connected to and
will write a receive line that will reflect that fact, using reverse
DNS to report the real hostname of your computer.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
ading!
Just start your python interpreter and type the following
>>> [[(i,j) for i in range(3)] for j in range(3)]
That should give you a clue.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 17-09-13 14:11, Ferrous Cranus schreef:
> Yes you are doing it.
> I'm not trolling but trying to solve a specific question and i have
> provided code i wrote to do that and explained the reason of why i want
> it to work like this.
No you haven't. You have given no explanation at all for why y
you, and still uses the os native sendmail program.
But that won't help in eliminating all the headers Nikos would like
to avoid. Like the receive line that will identify his host.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
t) during such an interactive Python session,
>> and Python (unlike Macbeth's spirits from the vasty deep) will answer?
>>
> You dont have to be ironic. I dont have the experience you do.
That is irrelevant. For the responsibility you have taken upon yourself,
it seems you sho
Op 26-09-13 11:31, Νίκος schreef:
> Στις 26/9/2013 12:07 μμ, ο/η Antoon Pardon έγραψε:
>> Experiment and find out for yourself. That is the only way you will
>> acquire the experience and understanding you need. Sure we could
>> spoon feed you the line you need, but that wi
for the hostname.
>>
>
> Its logic is simple and straightforward but too many lines:
>
> host = socket.gethostbyaddr( os.environ.get('HTTP_CF_CONNECTING_IP') or
> os.environ.get('REMOTE_ADDR') or "Άγνωστη Προέλευση" )
>
> this is much better in
Op 26-09-13 12:18, Νίκος schreef:
> Στις 26/9/2013 1:12 μμ, ο/η Antoon Pardon έγραψε:
>> Op 26-09-13 11:56, Νίκος schreef:
>>> Στις 26/9/2013 11:55 πμ, ο/η Nobody έγραψε:
>>>> On Thu, 26 Sep 2013 10:26:48 +0300, Νίκος wrote:
>>>>
>>>>> Ho
Op 26-09-13 12:51, Νίκος schreef:
> Στις 26/9/2013 1:41 μμ, ο/η Antoon Pardon έγραψε:
>> Op 26-09-13 12:18, Νίκος schreef:
>>> Στις 26/9/2013 1:12 μμ, ο/η Antoon Pardon έγραψε:
>>>> Op 26-09-13 11:56, Νίκος schreef:
>>>
>>> It is far better than th
at then end in case the statemnt default to the string?
> please tell me in details what might go wrong with it so i cna
> understand it.
Startup python and try to figure it out yourself. Show us you can
really learn something.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
e two different environments. The state
of the website environment lets your code succeed while the state
of the shell environment, doesn't.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
pt until it looks like it could be
a glue solution. In the mean time all these glue solutions fail and
much time is wasted.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
t a problem for a
program that analyze correlations between the start of the deck and the
end of the deck? Maybe.
Well if a program would actually find a correlation between the start of
the deck and the end, that may indeed be a cause for worry. But what
evidence is there for that possibility?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
want to get to Londen without boat
or plane but just by bicycle. And in further exchange make it
clear that using a bike is more important than arriving in London.
So please why do you make it your priority to implement it in a
specific way, over it working correctly?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
rs, you can hardly expect others to be considerate of you.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
is bullshit.
Guido doesn't like it.
2. Lambda-expression body is limited to one expression. Why ?
Why the hell those limitations ? In this aspect, Javascript has a cooler
approach.
Guido prefers it that way.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
in the values of previous runs through
the loop.
So how valuable is that stack frame information when the proposed
alternative doesn't produces it either.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
ds, but there's really
no call for "Please drop dead." We can do better than that.
I disagree. The "Please drop dead" seems well deserved to me. You may
think it better if people could put themselves above it, but that
doesn't make the remark less deserved.
--
Anto
ind of
guaranteed uptime. Since you don't have the skills to deliver that
guarantee, you are in fact ripping them off.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 01-10-13 10:39, Νίκος schreef:
> Στις 1/10/2013 10:27 πμ, ο/η Antoon Pardon έγραψε:
>> Op 01-10-13 01:14, Νίκος schreef:
>>> Στις 1/10/2013 1:56 πμ, ο/η Chris Angelico έγραψε:
>>>> But what you're doing
>>>> is charging your customers while you
s his nuisance his exposed and you will here very few
complains. But then others start venting their frustration and suddenly
the social pressure is put on.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 02-10-13 04:30, Steven D'Aprano schreef:
> On Wed, 02 Oct 2013 00:24:35 +1000, Daniel Stojanov wrote:
>
>> 2) I just signed up the this mailing list. To the regulars, is this what
>> normally happens on this list?
>
> No.
>
>> 3) I'm a bit late to the party. Is Nikos a real sysadmin or is thi
Op 02-10-13 09:02, Ravi Sahni schreef:
> On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney
> wrote:
>> Antoon Pardon writes:
>>
>>> Op 02-10-13 00:06, Ben Finney schreef:
>>>> This is an unmoderated forum, so we have occasional spates of
>>>> p
Op 02-10-13 03:36, Steven D'Aprano schreef:
> On Tue, 01 Oct 2013 09:27:22 +0200, Antoon Pardon wrote:
>
>> People pay for some kind of guaranteed uptime.
>
> You have *no idea* what sort of contract Nikos has with his customers.
> Nor do you know have any idea what f
Op 02-10-13 12:04, subhabangal...@gmail.com schreef:
> Dear Group,
>
> I am trying to work out a solution to the following problem in Python.
>
> The Problem:
> Suppose I have three lists.
> Each list is having 10 elements in ascending order.
> I have to construct one list having 10 elements whi
erstand someone has been behaving
badly enough so people won't engage with him anymore.
This reason here implies, that no matter what a nuissance Nikos is,
we should still answer his questions, which blantantly contradicts
your "encourage good behaviour" reason above. There is no encouragement
for good behaviour is you provide an answer anyway, whether the
asker is showing good behaviour or not.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
to '/home/nikos/public_html'. I need a theory and Zero Piraeus to answer
> too.
>
> Please, serious replies only, i won't answer to ironic comments or jokes.
You are not asking a python question. This is a python list. Not a
Nikos advise board. Find a list where your question is more appropiate.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
e that.
And how do you come to that conclusion? As far as I understand
feedthetroll only implied you shouldn't do your *learning* for
personal pleasure on the business server.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
ke to follow this priciple although you
find it hard in a number of circumstances.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 03-10-13 13:30, Steven D'Aprano schreef:
> On Thu, 03 Oct 2013 09:01:29 +0200, Antoon Pardon wrote:
>
>> You don't
>> follow the principle of treating others in the way you hope to be
>> treated if you were in their shoes.
> [...]
>> Suppose you dev
resenatation of the active call history?
Does it mean he investigated more sphisticated implementations but found
them to have serious short comings that couldn't be remedied easily?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
procedural optimizations (like tail call opt).
Everybody should be clear about the trade-off.
Your wrong. Full dynamics is not in contradiction with tail call
optimisation. Scheme has already done it for years. You can rebind
names to other functions in scheme and scheme still has working
tail ca
same foo?
It doesn't and it doesn't need to. tail call optimisation is not
limited to recursive functions. All tail calls can be optimised,
recurisive call and others.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 07-10-13 23:27, random...@fastmail.us schreef:
> On Sat, Oct 5, 2013, at 3:39, Antoon Pardon wrote:
>> What does this mean?
>>
>> Does it mean that a naive implementation would arbitrarily mess up
>> stack traces and he wasn't interested in investigating more
The following header are in the msg:
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
So why doesn't the email parser lookup the charset and use that
for converting to string type?
What is the canonical way to parse an email message from stdin?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 08-10-13 16:24, Andreas Perstinger schreef:
On 08.10.2013 14:20, Antoon Pardon wrote:
As I don't know what encoding these messages will be in, I thought it
would be prudent to read stdin as binary data.
Using python 3.3 on a debian box I have the following code.
#!/usr/bin/python3
i
m
> more constructive pointers than just "google it".
We don't. The history peope have on this forum is part of the position
they are in. If someone has abused the hospitality of an environment,
then there is nothing wrong if that environment starts reacting hostile.
That is the *situation* Nikos is in now. So stop pretending any regular
asking an occasional off topic question would be the same situation.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
that his question will be used
as an opportunity to have a jab at Nikos which may turn this thread
into something totally unhelpful for baujacob himself.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
ction, that often enough reveals a new bug and the
cycle restarts.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
python operator and for which operation you have to do it
differently. NumPy is just an example that you can't escape this sort
of incompatibilities in python.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 15-10-13 10:57, Chris Angelico schreef:
> On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon
> wrote:
>> Op 15-10-13 01:11, Chris Angelico schreef:
>>> On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote:
>>
>>>
>>>> Operator "+" as con
attention to the
attention seeking?
If bringing such things to light only gives attention to the attention
seeking, that means the community is still soaked in bigotry and I
hope the community is better than that.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
n "Avoid it" :-)
I would use only one code-base and make a branch for the 2.7 version.
You can then adapt the 2.7 version where really necessary but in general
just merge adaption made in the main branch to the 2.7 branch.
I am assuming you are using some kind of version control.
--
ou insist
to be helped, you will blatantly deny you do.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
reduce the problem.
So? I haven't seen any reaction to Nikos reducing the problem. So if
that is your criterium, you should stop reacting yourself and ask
everyone else to stop reacting.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
p silent if others aren't
but I wish your trigger would be less sensitive.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
see much difference between the two, so if you allow
Chris baiting Nikos, I don't see why Mark should hold back.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 28-10-13 00:26, Ben Finney schreef:
Antoon Pardon writes:
Op 26-10-13 23:43, Ben Finney schreef:
Feel free to occupy your time with baiting Nikos. But *do not* do it
in this forum.
Would you mind telling this to others too.
I'm not in any special position of power here; I&
Op 28-10-13 08:44, Steven D'Aprano schreef:
On Sun, 27 Oct 2013 14:30:52 +0100, Antoon Pardon wrote:
Op 26-10-13 23:43, Ben Finney schreef:
Mark Lawrence writes:
I could almost feel sorry for you. But the more of your time I waste
the longer it'll take you to get your websi
also fails, raise a parsing error.
>
> Correct.
>
> The problem with checking in advance is that there is a race condition
> between checking and the using the file:
There is also a race condition here. You open the SQLite file and it
fails. Then another process creates the SQLi
Op 26-10-13 23:22, Mark Lawrence schreef:
> On 26/10/2013 18:23, Antoon Pardon wrote:
>> Op 26-10-13 18:19, Mark Lawrence schreef:
>>> On 26/10/2013 17:00, Steven D'Aprano wrote:
>>>> On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
>>>>
t
> get all paladiny... it feels wrong to *not* answer.
What do you mean it feels wrong not to answer? Do you participate in
every subject? Do you engage at least everybody? Do you answer every
question that went unanswered? As far as I can see the answer is no
to each of these questions, so how come it feels wrong to not answer
Nikos?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 30-10-13 02:02, Victor Hooi schreef:
> Hi,
>
> I have a CSV file that I will repeatedly appending to.
>
> I'm using the following to open the file:
>
> with open(self.full_path, 'r') as input, open(self.output_csv, 'ab') as
> output:
> fieldnames = (...)
> csv_writer = Di
a bug which was harder to
find.
Python made it's choice and I can live with that, but telling people
who prefer it had made an other choice that their brain is poisoned,
only shows you are unable to see the disadvantages.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 30-10-13 13:17, Chris Angelico schreef:
> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon
> wrote:
>> Because it is a pain in the ass. Now suddenly my program doesn't work
>> because I somehow inserted a tab instead of spaces.
>
> I broadly agree with your post
Op 30-10-13 15:22, Alister schreef:
> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote:
>
>> Op 30-10-13 13:17, Chris Angelico schreef:
>>> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon
>>> wrote:
>>> I broadly agree with your post (I'm
Op 30-10-13 17:31, jonas.thornv...@gmail.com schreef:
Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence:
I have no need to implement a newsreader as I can quite happily send and
receive data using Thunderbird. There are several other similar email
options available.
Op 30-10-13 16:50, Grant Edwards schreef:
On 2013-10-30, Antoon Pardon wrote:
Because it is a pain in the ass. Now suddenly my program doesn't work
because I somehow inserted a tab instead of spaces.
Then don't do that.
I'm only half-kidding. Inserting incorrect tokens into
ehaviour. So
you are polluting this newsgroup and now you have been made aware of
it. Continueing with the same behaviour will not encourage others to
help you in the future.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
from the regulars, you'd better show
you can be cooperative too.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
tools have to adapt to
someone, in this case being you, who is using tools that are behaving
faulty and as an effect is polluting the news group with hard to read
contributions?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
ith bazaar, tried out git at bit and finaly ended up using mercurial
but others have followed their own trail.
So start a small project and try to use a number of them simultaneously
and then decide which feels more natural to you.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 30-10-13 21:52, Ned Batchelder schreef:
> On 10/30/13 3:59 PM, Antoon Pardon wrote:
>> Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef:
>>>
>>> No it isn't...
>>> The programmers of the tools on either of side will have to adapt.
>>> I
Op 31-10-13 08:37, rusi schreef:
> On Thursday, October 31, 2013 2:37:31 AM UTC+5:30, Antoon Pardon wrote:
>> Op 30-10-13 21:52, Ned Batchelder schreef:
>>> On 10/30/13 3:59 PM, Antoon Pardon wrote:
>>>> Op 30-10-13 20:13, Jonas schreef:
>>>>> No it i
ed) his feelings. Since you ackowleged that damaged
feelings are cause for an apology, it seems by your own words
an apology is due.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 02-11-13 02:51, ru...@yahoo.com schreef:
> On 11/01/2013 06:50 AM, Antoon Pardon wrote:
>> Op 01-11-13 05:41, ru...@yahoo.com schreef:
>>> On 10/31/2013 02:41 AM, Steven D'Aprano wrote:
>>>
>>>> I don't know whether you are deliberately lying, or
t; You're making things difficult for yourself by refusing
> to consider that solution.
>
You are talking to Nikos! The person who choose code because
he prefers how it looks over examples of working code.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
sts.
I'm not so sure it is all in good faith. I see a lot of persons digging
in their heels and not much effort in trying to understand someone else's
point of view.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
which resolves the confusion
rather quickly.
Now of course I can mis something. Maybe you can provide an example that
would be confusing even with modula2 kind of control structures and still
compile and produce a hard to trace bug.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 03-11-13 06:17, Steven D'Aprano schreef:
> On Sat, 02 Nov 2013 18:22:38 +, Joshua Landau wrote:
> [...]
>> Sure, you in all probability didn't mean it like that but rurpy isn't
>> uncalled for in raising the concern. Really I just want to remind you
>> that you're both on the same side here.
Op 03-11-13 23:11, Ben Finney schreef:
> Antoon Pardon writes:
>
>> Op 03-11-13 06:17, Steven D'Aprano schreef:
>>> I'm trying hard to give up threads like this, where people debate
>>> the subjective tone of an email and ever more pedantic arguments
>
Op 04-11-13 10:07, Ben Finney schreef:
> Antoon Pardon writes:
>
>> This is a typical: "Heads, I win, Tail, you lose" situation that is
>> being set up.
>
> If you see a discussion as a zero-sum game – like a coin toss, where one
> person's win can onl
y helpful. Be glad you don't just get "Segmentation fault"
> and a process termination (or, worse, a security hole).
No he doesn't. It seems there will always be someone who can't resist
the temptation to spoon feed him. Sooner or later someone will provide
him the ans
spoon feed him the answer he needs.
And so continues the endless Nikos cycle.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
LUES (%s,
> %s, %s, %s, %s, %s, %s, %s, %s)''',
> (cID, refs, host, city, useros, browser, visits,
> hits, downloads) )
> ========
>
>
> [Tue Nov 05 11:55:21 2013] [error] [client 176.92.96.218] File
> "/home/nikos/public_html/cgi-bin/metrites.py", line 268, in
> [Tue Nov 05 11:55:21 2013] [error] [client 176.92.96.218] (ref,
> visit, download) = data
> [Tue Nov 05 11:55:21 2013] [error] [client 176.92.96.218] TypeError:
> 'NoneType' object is not iterable
>
>
> Now i have the parenthesis around fetchone().
> How the data cant be properly unpacked?
>
Did you read the documentation of fetchone?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 05-11-13 11:33, Nick the Gr33k schreef:
> Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε:
>
>> Did you read the documentation of fetchone?
>
>
>
> fetchone is like fetchall except from the fact that the former returned
> a row of data while the latter retu
blic_html/cgi-bin/metrites.py", line 268, in
> [Tue Nov 05 14:22:32 2013] [error] [client 176.92.96.218] (ref,
> visit, download) = data
> [Tue Nov 05 14:22:32 2013] [error] [client 176.92.96.218] TypeError:
> 'NoneType' object is not iterable
>
> Unfortunately i st
ferent just because you started a new thread.
Did you already read the documentation of fetchone?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
/en/tutorial.php
>
>
> I hope that you will be much happier with this, since you are struggling
> to get Python to work the way you want it to.
Steve, what went on in your mind? If Nikos follows you advise he will
probably come here with all kinds of php questions.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
has no attribute 'split'
This is essentially the same error you had before. You have an object
of NoneType where you expect something different. Changing your code
to use split instead of iteration won't change the fact that you have
an object of NoneType.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
of course that i know better, but thats better suited for me in the
> level iam.
Faulty code is better suited for the level you are in?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
>
> The only relational database that has no relationships as effectively
> there's only one table, despite what Denis McMahon (amongst others?) has
> said.
I thought that in a relational database, the tables were the relations.
So a database with one table, defined one relati
>
> I gave the root password to Chris because i was under the false(as
> proven) impression that he was gonna actually help my code.
>
> If i knew, that this wasn't his intention i would not give it away.
So you exposed your clients' data. That it wasn't your intention doesn't
change that.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
f
the reason and removed the surprise. Reading that documentation would
also have taken a minute at most. Yet instead of reading the
documentation and be informed within five minutes, you chose to waste
your time by repeatly coming here in the hope that someone would
spoon feed you. Even when you sh
of Autism disorder.
>
> You have demonstrated significant difficulties in social interaction and
> behavior.
I don't think so. As far as I am concerned the person demonstrating
significant difficulties in social interaction and behaviour is you.
Mark may demonstrate he has difficul
ters, or write a sharp but still-polite response, but at all costs resist
> the urge to flame back."
Well you can equally plonk people who don't think civility is something to
strive for at such a priority. Maybe you should at all costs resist
the urge to tell other people how they should
really under the impression i had
> secure my script.
That is arrogance. That you with your history of misunderstandings (to put it
midly) were
under the impression that you had a secure script and that you thought that
impression was
somehow reliable is pure arrogance.
> And i had until i made some new changes last night, which i think i have
> corrected now as we speak.
Continuing the arrogance.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
!
You just can't help yourself, can you? I predict your database will
be broken in, within a week, after which you will plug one leak
and after an other day boast again about how secure your system is,
because you hadn't had a break in after your latest "fix".
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
Op 10-11-13 16:01, Νίκος Αλεξόπουλος schreef:
> Στις 10/11/2013 3:49 μμ, ο/η Antoon Pardon έγραψε:
>> Op 10-11-13 11:32, Νίκος Αλεξόπουλος schreef:
>>> Ha, ha ha!
>>> I'm safe now!!
>>>
>>> No breaks in this time!
>>
>> You just ca
Op 10-11-13 17:15, Ned Batchelder schreef:
> On Sunday, November 10, 2013 10:28:46 AM UTC-5, Antoon Pardon wrote:
>> Op 10-11-13 16:01, Νίκος Αλεξόπουλος schreef:
>>> Στις 10/11/2013 3:49 μμ, ο/η Antoon Pardon έγραψε:
>>>> Op 10-11-13 11:32, Νίκος Αλεξόπουλος schre
k you very much.
>
The problem is that it depnds on the kind of trigger event. Is it a signal?
Is it a character that arrives through a pipe or socket?
I would take a look at the signal module and see if it can get you started.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
ter understood by their
audience
doesn't make a mono culture. This is just one newsgroup/mailing list. Talking
about mono culture because of adapting to one specific variant of a particular
language here makes no more sense than talking about mono culture because the
subject here is python and not other computer languages.
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
I am using PLY for a parsing task which uses re for the lexical
analysis. Does anyone
know what regular expression to use for a sequence of letters? There is
a class for alphanumerics but I can't find one for just letters, which I
find odd.
I am using python 3.4
--
Antoon Pardon
--
Op 09-03-15 om 11:37 schreef Wolfgang Maier:
> On 03/09/2015 11:23 AM, Antoon Pardon wrote:
>> I am using PLY for a parsing task which uses re for the lexical
>> analysis. Does anyone
>> know what regular expression to use for a sequence of letters? There is
>> a cl
Op 09-03-15 om 12:17 schreef Tim Chase:
> On 2015-03-09 11:37, Wolfgang Maier wrote:
>> On 03/09/2015 11:23 AM, Antoon Pardon wrote:
>>> Does anyone know what regular expression to use for a sequence of
>>> letters? There is a class for alphanumerics but I can'
Op 09-03-15 om 13:50 schreef Tim Chase:
> On 2015-03-09 13:26, Antoon Pardon wrote:
>> Op 09-03-15 om 12:17 schreef Tim Chase:
>>> (?:(?!_|\d)\w)
>> So if I understand correctly the following should be a regular
>> expression for a python3 identifier.
>>
&
Op 09-03-15 om 14:32 schreef Wolfgang Maier:
...
>
>> It seems odd that one should need such an ugly expression for
>> something that is
>> used rather frequently for parsing computer languages and the like.
>>
>
> There is str.isidentifier, which returns True if something is a valid
> identifier
Op 09-03-15 om 14:35 schreef Chris Angelico:
> On Mon, Mar 9, 2015 at 11:26 PM, Antoon Pardon
> wrote:
>> It seems odd that one should need such an ugly expression for something that
>> is
>> used rather frequently for parsing computer languages and the like.
> Possibl
Op 09-03-15 om 15:39 schreef Chris Angelico:
> On Tue, Mar 10, 2015 at 1:34 AM, Antoon Pardon
> wrote:
>>> There is str.isidentifier, which returns True if something is a valid
>>> identifier name:
>>>
>>>>>> '℮'.isidentifier()
Op 09-03-15 om 15:44 schreef Chris Angelico:
> On Tue, Mar 10, 2015 at 1:41 AM, Antoon Pardon
> wrote:
>> Op 09-03-15 om 14:35 schreef Chris Angelico:
>>> On Mon, Mar 9, 2015 at 11:26 PM, Antoon Pardon
>>> wrote:
>>>> It seems odd that one should
1101 - 1200 of 1820 matches
Mail list logo