On Saturday, March 30, 2013 9:09:06 AM UTC+4, TheDigitalroot wrote:
> I imagine to make a wordlist cutter program with python pgrogramming . but I
> don't know too much with it .
>
>
>
> I think , first , I will make a user input as a wordlist with command
>
>
>
> eg , C:\john\Desktop\word
On Mar 30, 2:04 am, Nick Gnedin wrote:
> Folks,
>
> I have a newbie question: I am trying to embed Python into my
> application. While playing around, I noticed that the behavior of the
> interpreter in the embedded mode differs from the standalone one.
>
> Namely, in the standalone mode if I type
On Mar 30, 10:28 am, TheDigitalroot wrote:
> nope , my bro i mean count number .
>
> In notepad ++ , when we insert words like the follwoing ,
> book
> cook
> meet
> beat
>
> we know 4 words because Notepad ++ show me 4 counts of words .
>
> I mean that , bro
> thanks
Still cant make out what you
I mean , I wanna detect counts of words that i insert with command line .
--
http://mail.python.org/mailman/listinfo/python-list
nope , my bro i mean count number .
In notepad ++ , when we insert words like the follwoing ,
book
cook
meet
beat
we know 4 words because Notepad ++ show me 4 counts of words .
I mean that , bro
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 30, 10:09 am, TheDigitalroot wrote:
> I imagine to make a wordlist cutter program with python pgrogramming . but I
> don't know too much with it .
>
> I think , first , I will make a user input as a wordlist with command
>
> eg , C:\john\Desktop\wordlist.txt
>
> and than I will use a strin
I imagine to make a wordlist cutter program with python pgrogramming . but I
don't know too much with it .
I think , first , I will make a user input as a wordlist with command
eg , C:\john\Desktop\wordlist.txt
and than I will use a string to count
eg , Enter your count:
at that time , my
On Sat, Mar 30, 2013 at 3:19 PM, Dennis Lee Bieber
wrote:
> I think MySQL is the only common DBMS with an extension on INSERT of
> allowing multiple records (I've not checked my Access 2010 docs, and my
> MSDE/SQL-Server books are in storage -- but SQLite3, Firebird, and
> PostgreSQL all s
On Sat, Mar 30, 2013 at 3:10 PM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> Side point: You mentioned SSDs. Are you aware of the fundamental risks
>> associated with them? Only a handful of SSD models are actually
>> trustworthy for databasing.
>
> We haven't decided if we're g
In article ,
Chris Angelico wrote:
> Side point: You mentioned SSDs. Are you aware of the fundamental risks
> associated with them? Only a handful of SSD models are actually
> trustworthy for databasing.
We haven't decided if we're going that route yet, but if we do, we will
probably use do RA
On Sat, Mar 30, 2013 at 2:36 PM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> Hmm. I heard around the forums that Amazon weren't that great at disk
>> bandwidth anyway, and that provisioning IO was often a waste of money.
>
> Au, contraire. I guess it all depends on what you're
In article
,
rusi wrote:
> I recently heard this:
> A phone company needed to send out bulk-smses to its customers. It was
> of the order of millions.
> A (noob?) python programmer was assigned the task and used django with
> whatever is the django orm.
> It took of the order of weeks to send o
In article ,
Chris Angelico wrote:
> Hmm. I heard around the forums that Amazon weren't that great at disk
> bandwidth anyway, and that provisioning IO was often a waste of money.
Au, contraire. I guess it all depends on what you're doing. If you're
CPU bound, increasing your I/O bandwidth w
On 2013-03-29 22:17, Tim Chase wrote:
> 2) Load into a temp table in testable batches, then do some sort of
> batch insert into your main table. Again, a quick google suggest
> the "INSERT ... SELECT" syntax[2]
It looks like there's a corresponding "REPLACE INTO ... SELECT"
syntax[1], as you ment
On Mar 30, 8:13 am, rusi wrote:
> It took of the order of weeks to send out the smses.
'Week' I think is more accurate.
--
http://mail.python.org/mailman/listinfo/python-list
On 2013-03-29 21:19, Roy Smith wrote:
> We're doing it all in one transaction, on purpose. We start with
> an initial dump, then get updates about once a day. We want to
> make sure that the updates either complete without errors, or back
> out cleanly. If we ever had a partial daily update, the
On Mar 30, 7:49 am, Chris Angelico wrote:
> On Sat, Mar 30, 2013 at 1:44 PM, Roy Smith wrote:
> > The slow way (i.e. "VALUES"), I'm inserting 1000 rows about every 2.4
> > seconds. When I switch to "values", I'm getting more like 1000 rows in
> > 100 ms!
>
> > A truly breathtaking bug.
>
> *face
On Sat, Mar 30, 2013 at 2:09 PM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> Especially facepalm because there's some way to do this that's faster
>> than straight INSERT statements, and it's not clearly documented as
>> "hey, guys, if you want to dump loads of data in, use COPY
Hi,
Did any one take elance python test?
It is come from here
"http://www.expertrating.com/certifications/Python-2-x-Test.asp";.
I want to know who have thoese subject, or demo, or souce code.
Sorry about my poor english.
reagrds
yi
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Chris Angelico wrote:
> Especially facepalm because there's some way to do this that's faster
> than straight INSERT statements, and it's not clearly documented as
> "hey, guys, if you want to dump loads of data in, use COPY instead"
> (it might be that, I don't know, but usually CO
On Sat, Mar 30, 2013 at 1:44 PM, Roy Smith wrote:
> The slow way (i.e. "VALUES"), I'm inserting 1000 rows about every 2.4
> seconds. When I switch to "values", I'm getting more like 1000 rows in
> 100 ms!
>
> A truly breathtaking bug.
*facepalm*
Doubly facepalm because a regex could easily have
In article ,
Roy Smith wrote:
> In article ,
> Dennis Lee Bieber wrote:
>
> > If using MySQLdb, there isn't all that much difference... MySQLdb is
> > still compatible with MySQL v4 (and maybe even v3), and since those
> > versions don't have "prepared statements", .executemany() essentially
On Sat, Mar 30, 2013 at 12:19 PM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> On Sat, Mar 30, 2013 at 11:41 AM, Roy Smith wrote:
>> > In article ,
>> > Dennis Lee Bieber wrote:
>> >
>> >> If using MySQLdb, there isn't all that much difference... MySQLdb is
>> >> still compati
In article ,
Chris Angelico wrote:
> On Sat, Mar 30, 2013 at 11:41 AM, Roy Smith wrote:
> > In article ,
> > Dennis Lee Bieber wrote:
> >
> >> If using MySQLdb, there isn't all that much difference... MySQLdb is
> >> still compatible with MySQL v4 (and maybe even v3), and since those
> >> ver
Thanks Karim!
On Friday, March 29, 2013 10:47:41 AM UTC-4, Karim wrote:
> On 29/03/2013 14:53, timothy crosley wrote:
>
> > I apologize for the audio from the original screen cast, it was really
> > sub-par. I bought a new microphone and re-recorded it:
> > http://www.youtube.com/watch?v=0L8Tsm
On Sat, Mar 30, 2013 at 11:41 AM, Roy Smith wrote:
> In article ,
> Dennis Lee Bieber wrote:
>
>> If using MySQLdb, there isn't all that much difference... MySQLdb is
>> still compatible with MySQL v4 (and maybe even v3), and since those
>> versions don't have "prepared statements", .executemany
In article ,
Dennis Lee Bieber wrote:
> If using MySQLdb, there isn't all that much difference... MySQLdb is
> still compatible with MySQL v4 (and maybe even v3), and since those
> versions don't have "prepared statements", .executemany() essentially
> turns into something that creates a newline
On 03/29/2013 02:26 PM, ru...@yahoo.com wrote:
On 03/28/2013 02:31 PM, Ethan Furman wrote:
On 03/28/2013 12:54 PM, ru...@yahoo.com wrote:
On 03/28/2013 01:48 AM, Steven D'Aprano wrote:
For someone who delights in pointing out the logical errors of
others you are often remarkably sloppy in your
On 03/29/2013 06:17 PM, Sam Berry wrote:
Thanks for the responses! My issue was sorted with Benjamins post, just
printing s worked.
Cheers for the info though Chris, if i have any further issues il post them
with some working code.
In that case, you probably should add a line like:
s = Non
On Sat, Mar 30, 2013 at 9:51 AM, Steven D'Aprano
wrote:
> On Sat, 30 Mar 2013 08:24:00 +1100, Chris Angelico wrote:
>
>> On Sat, Mar 30, 2013 at 8:12 AM, Sam Berry
>> wrote:
>>> class test()
>>> s = 1
>>>
>>> def test1()
>>> global s
>>> s = 2
>
>> That's not a global, tha
On Sat, 30 Mar 2013 08:24:00 +1100, Chris Angelico wrote:
> On Sat, Mar 30, 2013 at 8:12 AM, Sam Berry
> wrote:
>> class test()
>> s = 1
>>
>> def test1()
>> global s
>> s = 2
> That's not a global, that's a class variable.
/me thwacks Chris with a halibut.
Not only i
On Sat, Mar 30, 2013 at 9:17 AM, Sam Berry wrote:
> Thanks for the responses! My issue was sorted with Benjamins post, just
> printing s worked.
>
> Cheers for the info though Chris, if i have any further issues il post them
> with some working code.
Awesome! Always happy to help out.
ChrisA
-
Thanks for the responses! My issue was sorted with Benjamins post, just
printing s worked.
Cheers for the info though Chris, if i have any further issues il post them
with some working code.
Sam
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 29 Mar 2013 16:04:24 -0500, Nick Gnedin wrote:
> Folks,
>
> I have a newbie question: I am trying to embed Python into my
> application. While playing around, I noticed that the behavior of the
> interpreter in the embedded mode differs from the standalone one.
>
> Namely, in the standal
On 03/29/2013 05:47 PM, Eric Parry wrote:
That explains why the program keeps running after a solution is found.
A recursive function can be designed to find all solutions, in which
case it would (as you say) keep running.
The function you posted in the first place uses exit() to avoi
Am 29.03.2013 07:22, schrieb Ian Kelly:
> Since the PEP specifically mentions ParseTuple string conversion, I am
> thinking that this is probably the motivation for caching it. A
> string that is passed into a C function (that uses one of the various
> UTF-8 char* format specifiers) is perhaps lik
On Friday, March 29, 2013 9:15:36 AM UTC+10:30, Chris Angelico wrote:
> On Fri, Mar 29, 2013 at 9:11 AM, Eric Parry wrote:
>
> > Thank you for that explanation.
>
> > No, I do not understand recursion. It is missing from my Python manual. I
> > would be pleased to receive further explanation fr
On 03/28/2013 02:31 PM, Ethan Furman wrote:
> On 03/28/2013 12:54 PM, ru...@yahoo.com wrote:
>> On 03/28/2013 01:48 AM, Steven D'Aprano wrote:
>> For someone who delights in pointing out the logical errors of
>> others you are often remarkably sloppy in your own logic.
>>
>> Of course language can
On Fri, Mar 29, 2013 at 2:12 PM, Sam Berry wrote:
> Hey,
>
> Im new to object orientated programming and have an issue with using classes.
> Im using the kivy module, a GUI creator , so posting the actual code may
> confuse. But an example of what im trying to achieve is below
>
> class test()
>
On 29/03/2013 21:04, Nick Gnedin wrote:
Folks,
I have a newbie question: I am trying to embed Python into my
application. While playing around, I noticed that the behavior of the
interpreter in the embedded mode differs from the standalone one.
Namely, in the standalone mode if I type dir(), I
On Sat, Mar 30, 2013 at 8:12 AM, Sam Berry wrote:
> class test()
> s = 1
>
> def test1()
> global s
> s = 2
>
> def test2()
> global s
> s = 3
>
> def test3()
> global s
> s = 4
That's not a global, that's a class variable. But to gi
On Fri, 29 Mar 2013 20:14:16 +, Neil Cerutti wrote:
> On 2013-03-29, Chris Angelico wrote:
>> On Sat, Mar 30, 2013 at 6:27 AM, wrote:
>>> But now iam also receivein this error message as shown here when i
>>> switches to 'pymysql'
>>
>> Why the change of email address? Are you trying to dod
Hey,
Im new to object orientated programming and have an issue with using classes.
Im using the kivy module, a GUI creator , so posting the actual code may
confuse. But an example of what im trying to achieve is below
class test()
s = 1
def test1()
global s
s = 2
Folks,
I have a newbie question: I am trying to embed Python into my
application. While playing around, I noticed that the behavior of the
interpreter in the embedded mode differs from the standalone one.
Namely, in the standalone mode if I type dir(), I get a list of build-in
symbols. In t
Τη Παρασκευή, 29 Μαρτίου 2013 9:34:07 μ.μ. UTC+2, ο χρήστης Chris Angelico
έγραψε:
> On Sat, Mar 30, 2013 at 6:27 AM, wrote:
>
> > But now iam also receivein this error message as shown here when i switches
> > to 'pymysql'
>
>
>
> Why the change of email address? Are you trying to dodge ki
On 2013-03-29, Chris Angelico wrote:
> On Sat, Mar 30, 2013 at 6:27 AM, wrote:
>> But now iam also receivein this error message as shown here when i switches
>> to 'pymysql'
>
> Why the change of email address? Are you trying to dodge killfiles?
I had that one killfiled already. Must be he/she
On Sat, Mar 30, 2013 at 6:27 AM, wrote:
> But now iam also receivein this error message as shown here when i switches
> to 'pymysql'
Why the change of email address? Are you trying to dodge killfiles?
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
But now iam also receiving this error message as shown here when i switches to
'pymysql'
--
http://mail.python.org/mailman/listinfo/python-list
But now iam also receivein this error message as shown here when i switches to
'pymysql'
--
http://mail.python.org/mailman/listinfo/python-list
Τη Πέμπτη, 28 Μαρτίου 2013 4:19:47 μ.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε:
> Fianlly my cgi .py script doesnt produce any more errors, i think i ahve
> correct them but it present a blank screen
>
>
>
> http://superhost.gr
>
>
>
> Any idea why?
>
> What should i check?
Thants not the is
Τη Παρασκευή, 29 Μαρτίου 2013 7:39:20 μ.μ. UTC+2, ο χρήστης Alan Meyer έγραψε:
> On 03/29/2013 01:32 PM, Alan Meyer wrote:
>
>
>
> > However, MySQLdb is a well established module and what you're asking it
>
> > to do is very simple and very standard.
>
>
>
> Oh, sorry, I see that you already
On 03/29/2013 10:48 AM, Roy Smith wrote:
I'm inserting a gazillion rows into a MySQL database using MySQLdb and
cursor.executemany() for efficiency. Every once in a while, I get a row which
violates some kind of database constraint and raises Error.
I can catch the exception, but don't see an
Just a followup -
Alex Martelli and I attended PyCon SG 2012 and it was a wonderful
experience. I highly encourage folks to consider submitting a proposal
to this conference. It's a worthwhile conference and a chance to visit
a fascinating place.
cordially,
Anna
On Fri, Mar 29, 2013 at 5:55 AM, G
I understand that 'with ignore(...)' will be coming out in Python 3.4 next
year, but in the mean time I have added a yield at the end of a particular
coroutine.
Here is the 'fixed' version:
http://pastebin.com/c8kbqc4w
Here is the original version, which I believe is more pythonic:
http://paste
Ana Dionísio wrote:
> I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to
> a txt file and I can't use csv.
What do you mean by "can't use csv"?
- You cannot get it to work with the csv module
- You are not allowed to use csv by your instructor
- Something else.
> And I w
Le 29/03/13 18:33, Ana Dionísio a écrit :
> Hello!!!
>
> I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a
> txt file and I can't use csv.
>
> And I want the next format:
>
> a 1 3 5 6 10
> b a t q r s
>
> I already have this code:
>
> "f = open("test.txt", 'w')
> f.wri
On 3/28/2013 10:37 PM, Steven D'Aprano wrote:
Under what circumstances will a string be created from a wchar_t string?
How, and why, would such a string be created? Why would Python still
support strings containing surrogates when it now has a nice, shiny,
surrogate-free flexible representation?
On Mar 29, 10:33 pm, Ana Dionísio wrote:
> Hello!!!
>
> I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a
> txt file and I can't use csv.
>
> And I want the next format:
>
> a 1 3 5 6 10
> b a t q r s
>
> I already have this code:
>
> "f = open("test.txt", 'w')
> f.wri
On 29/03/2013 17:33, Ana Dionísio wrote:
Hello!!!
I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a
txt file and I can't use csv.
And I want the next format:
a 1 3 5 6 10
b a t q r s
I already have this code:
"f = open("test.txt", 'w')
f.write("a")
You'll have
On Fri, Mar 29, 2013 at 1:33 PM, Ana Dionísio wrote:
> Hello!!!
>
> I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to
> a txt file and I can't use csv.
>
It would help if you showed exactly what you had in your program or in the
Python interpreter. For instance
a = [1,
On 03/29/2013 01:32 PM, Alan Meyer wrote:
However, MySQLdb is a well established module and what you're asking it
to do is very simple and very standard.
Oh, sorry, I see that you already said that mysqldb won't work with
python 3. My comments in the last message are irrelevant.
Sorry agai
Hello!!!
I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a
txt file and I can't use csv.
And I want the next format:
a 1 3 5 6 10
b a t q r s
I already have this code:
"f = open("test.txt", 'w')
f.write("a")
f.write("\n")
f.write("b")
f.write("\n")
for i in xr
On 03/29/2013 03:40 AM, Νίκος Γκρ33κ wrote:
...
So, just to make sure that MySQLdb isnt causeing the probkem can
someone, perhaps you that is familiar with linxu conenct to my jailed
shell account and install manually the 'pymysql' module because i
dont know how to do it and i cannot afford to pa
On 2013-03-29, Ethan Furman wrote:
> On 03/29/2013 07:52 AM, Grant Edwards wrote:
>> On 2013-03-28, Ethan Furman wrote:
>>
>>> I cannot speak for the borg mind, but for myself a troll is anyone
>>> who continually posts rants (such as RR & XL) or who continuously
>>> hijacks threads to talk about
Thanx for confirmations...
I have reported http://bugs.python.org/issue17575
--
http://mail.python.org/mailman/listinfo/python-list
On 03/29/2013 07:52 AM, Grant Edwards wrote:
On 2013-03-28, Ethan Furman wrote:
I cannot speak for the borg mind, but for myself a troll is anyone
who continually posts rants (such as RR & XL) or who continuously
hijacks threads to talk about their pet peeve (such as jmf).
Assuming jmf actua
On 29/03/2013 14:52, hesoya...@gmail.com wrote:
Hi,
I am new to python , and working on some basic stuff. I have separated the even
and odd rows of a image into two separate images, now i want to combine them
back, is there a simple way to do that using numpy or opencv commands or do I
have to
On Fri, Mar 29, 2013 at 11:27 PM, wrote:
> I have a problem with HTTPConnection object send() method (pyver3.3.1). I
> want to send data from file-like object with HTTPConnection.send( f ), and I
> get a "data should be a bytes-like object or an iterable, ..." exception. I
> have investigated
Hi,
I am new to python , and working on some basic stuff. I have separated the even
and odd rows of a image into two separate images, now i want to combine them
back, is there a simple way to do that using numpy or opencv commands or do I
have to use a for loop.
Thanks,
Eric
--
http://mail.py
dspub...@freemail.hu wrote:
> I have a problem with HTTPConnection object send() method (pyver3.3.1). I
> want to send data from file-like object with HTTPConnection.send( f ), and
> I get a "data should be a bytes-like object or an iterable, ..."
> exception. I have investigated a send method, an
On 2013-03-28, Ethan Furman wrote:
> I cannot speak for the borg mind, but for myself a troll is anyone
> who continually posts rants (such as RR & XL) or who continuously
> hijacks threads to talk about their pet peeve (such as jmf).
Assuming jmf actually does care deeply and genuinely about Un
I'm inserting a gazillion rows into a MySQL database using MySQLdb and
cursor.executemany() for efficiency. Every once in a while, I get a row which
violates some kind of database constraint and raises Error.
I can catch the exception, but don't see any way to tell which row caused the
problem
On 29/03/2013 14:53, timothy crosley wrote:
I apologize for the audio from the original screen cast, it was really sub-par. I
bought a new microphone and re-recorded it:
http://www.youtube.com/watch?v=0L8TsmrZPLg&feature=youtu.be
Thanks!
Timothy
On Tuesday, March 26, 2013 4:54:15 AM UTC-4, t
On 03/29/2013 04:27 AM, Peter Otten wrote:
(2)
> import re
>
> class Matcher:
> def __call__(self, expr, line):
> result = self.match = expr.match(line)
> return result
> def __getattr__(self, name):
> return getattr(self.match, name)
Perhaps it's a little simpl
I apologize for the audio from the original screen cast, it was really sub-par.
I bought a new microphone and re-recorded it:
http://www.youtube.com/watch?v=0L8TsmrZPLg&feature=youtu.be
Thanks!
Timothy
On Tuesday, March 26, 2013 4:54:15 AM UTC-4, timothy crosley wrote:
> Hi,
>
>
>
> I've cr
On 2013-03-28, PMT wrote:
> Em s?bado, 16 de fevereiro de 2013 03h22min41s UTC, eli m escreveu:
>> Any small program ideas? I would prefer to stick to command
>> line ones. Thanks.
>
> What about this one?
>
> Do you know how to do the elevator simulation?
Cribbed from an early chapter of the e
Problematical python versions: 3.2+ (2.x, 3.0, 3.1 ok)
--
http://mail.python.org/mailman/listinfo/python-list
On 2013-03-29, Alain Ketterlin wrote:
> Victor Hooi writes:
>
>> expression1 = re.compile(r'')
>> expression2 = re.compile(r'')
> [...]
>
> Just a quick remark: regular expressions are pretty powerful at
> representing alternatives. You could just stick everything
> inside a singl
Hi!
I have a problem with HTTPConnection object send() method (pyver3.3.1). I want
to send data from file-like object with HTTPConnection.send( f ), and I get a
"data should be a bytes-like object or an iterable, ..." exception. I have
investigated a send method, and discovered a problem: if da
On Mar 27, 5:58 pm, Chris Angelico wrote:
> On Wed, Mar 27, 2013 at 10:29 PM, neurino wrote:
> > We are a small group of people (approx. 10), working separetely on their own
> > projects (each employee manages approx. 2-3 projects). We deal with high
> > loads of data everyday.
>
> > This workflo
hi,
please help me...
I have installed indico software and apache2,when i try to run it using
http://indico/index.py,then it's downloading index.py, when i put http://indico,
then it's showing all thing properly,but it's not showing index.py but
downloading it it's not showing any erro
On Thu, Mar 28, 2013 at 3:05 PM, Νίκος Γκρ33κ wrote:
> Well i dont like people taking to me this way espceially when iam tryign 2
> days for something and thats changing from 2.6 => 3.2.3
>
> I follow advice as long as i can understand whats being said to me.
>
> So if someone wants to help by as
On Fri, Mar 29, 2013 at 9:11 AM, Eric Parry wrote:
> Thank you for that explanation.
> No, I do not understand recursion. It is missing from my Python manual. I
> would be pleased to receive further explanation from anyone.
If you already know what recursion is, just remember the answer.
Otherwi
> I am trying my best with the little knowledge i have and i expect no
> help from you. You are more inclinded to criticize that to actually
> help. And if i pay someone that certainly not gonna be you.
>
> And i told you about gethostbyaddr, tht its not an issue its because
> the script bein ru
On Friday, 29 March 2013, Alain Ketterlin wrote:
> Victor Hooi > writes:
>
> > expression1 = re.compile(r'')
> > expression2 = re.compile(r'')
> [...]
>
> Just a quick remark: regular expressions are pretty powerful at
> representing alternatives. You could just stick everything in
On 03/29/2013 05:40 AM, Steven D'Aprano wrote:
On Thu, 28 Mar 2013 22:37:47 +0300, Habibutsu wrote:
For example, we have following code:
01|def foo():
02|return 1
03|
04|value = foo()
05|
06|if value == 1:
07|print value,"- equal 1"
08|
09|if isinstance(value,
Victor Hooi writes:
> expression1 = re.compile(r'')
> expression2 = re.compile(r'')
[...]
Just a quick remark: regular expressions are pretty powerful at
representing alternatives. You could just stick everything inside a
single re, as in '...|...'
Then use the returned match to
Victor Hooi wrote:
> Hi,
>
> I have logline that I need to test against multiple regexes. E.g.:
>
> import re
>
> expression1 = re.compile(r'')
> expression2 = re.compile(r'')
>
> with open('log.txt') as f:
> for line in f:
> if expression1.match(lin
Τη Πέμπτη, 28 Μαρτίου 2013 10:54:55 μ.μ. UTC+2, ο χρήστης Alan Meyer έγραψε:
> On 3/27/2013 11:50 PM, Νίκος Γκρ33κ wrote:
>
> > I'am about to go nuts with python 3.2.3
>
> >
>
> > Do you see somehtign wrong with the following statement?
>
> >
>
> > cur.execute( '''SELECT hits FROM counters WHE
89 matches
Mail list logo