a = 1, 2, 3
b = *a, # assignment - OK
b += *a, # augmented assignment - syntax error
Need to enclose in parenthesis:
b += (*a,)
Why isn't it allowed with an augmented assignment, while it is OK with a
regular assignment?
--
https://mail.python.org/mailman/listinfo/python-
massi_...@msn.com wrote:
> Hi everyone,
>
> I'm not really sure if this is the right place to ask about regular
> expressions, but since I'm usin python I thought I could give a try
:-)
> Here is the problem, I'm trying to write a regex in order to
substitute
> all the occurences in the form $"
s
fully (pip install --egg is having the disclaimer that it s not working ok
sometimes) wheel is pretty much unusable for anything other then installing
into the virtualenv.
Am i missing something?
Thanks in advance,
Eugene
--
https://mail.python.org/mailman/listinfo/python-list
n an "
>
> for s in [s1, s2]:
> print re.findall(" (am|an) ", s)
>
> # Results:
> # ['am']
> # ['am', 'an']
>
> ---
>
> I want the results to be the same for each string. What am I doing
> wrong?
> --
> h
quot;urlopen"
>
>
> What's wrong with this code? Do i need to place my code in some
> specific directory? Thanks a lot. '
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Sincerely yours, Eugene Perederey
--
http://mail.python.org/mailman/listinfo/python-list
Hi all!
I'm interested in developing a cross platform module that will allow a
simple
'ping' functionality, i mean sending icmp type 8 code 0 and receiving
appropriate answers. This sound like a simple work, but i ask for your
help
with architectural decision.
I can implement icmp communications
Sure, generators rock! :-)
2009/4/1 andrew cooke :
> Nico Grubert wrote:
>>> May be not so much pythonic, but works
>>>
>>> for i in range(len(q)):
>>> for x in q[i:]:
>>> if x.startswith(q[i]) and x!=q[i]:
>>> q.r
7;t write anything to file whereas
other processes do. What's wrong in my code?
--
Sincerely yours, Eugene Perederey
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Is the sqlite distributed with Python 2.5 compiled with the
-DTHREADSAFE=1 flag? My gutt feeling is Windows (yes) MacOS/Linux (no)
but ...
If it is not on MacOS/Linux, how do I go about replacing the sqlite so
file with a threadsafe sqlite?
Thanks,
EuGeNe -- http://www.3kwa.com
--
http
Devraj wrote:
> My application uses MySQL as a backend and am using the MySQL/Python
> bindings. Are there any libraries that provide a database abstraction
> layer like Activerecords for Python?'
SQLObject
SQLAclhemy
DejaVu
Storm
Google for Python ORM you may find more!
EuGeNe
David wrote:
> I am looking for an ORM for Python that fulfills a few simple needs.
* SQLObject
* SQLAlchemy (+Elixir)
* DejaVu
There are probably others but these are the most commonly used AFAIK.
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
se tell me where to find the latest?
>
It's from Emacs 22.
Eugene
--
http://mail.python.org/mailman/listinfo/python-list
n flag.
Result is in form (response, ['line', ...], octets).
What is the seen flag? Nothing it seems
http://mail.python.org/pipermail/python-list/2005-July/329888.html
Thanks for your help,
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
lines, octets = pop.retr(msg_number)
msg = email.message_from_string('\n'.join(lines))
if not msg.is_multipart() and msg.get_content_type() == 'text/plain':
print msg.get('Subject')
print msg.get_payload()
pop.quit()
Why aren't the message flagged as
aspineux wrote:
> import os.path
>
> file=open(os.path.join(os.path.dirname(__file__), 'hauteur.yaml'))
Thanks that worked ;)
--
http://mail.python.org/mailman/listinfo/python-list
n a package to look for a file in a
specific place i.e. a within package location?
Thanks,
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
T. Crane wrote:
> Right now I'm using Notepad++. What are other people using?
>
> trevis
>
>
VIM here as well ... here we go again :P
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
hard to track problems. It is much
> better to either call the close method explicitly or to use Python 2.5's
> 'with' statement.
Yes I had shortened my example but thanks for the 'with' statement tip
... I never think about using it and I should ;)
Thanks,
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
109:בחר את השפה המועדפת עליך :
110:שינויים בשפה יופיעו בהפעלה הבאה של Internet Explorer
Could someone enlighten me on how to go from hebrew.b64 to
hebrew.expected.lang?
Thanks a lot,
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
t; - known use : European constitution :P (but I am digressing :D).
> BTW, this year I will go both to PyCon It and EuroPython, last year I
> went both to
> PyUK and EuroPython. The more, the better ;)
The more the merrier indeed in that respect! I learnt a lot from your
"Using de
then, for two years running I've also missed
> PyCon, _despite_ living in the US, sigh).
I was just using your possible travel plans as an example to express my
"concerns" :P
Re your effective travel plans, thanks God for Google Video then :D
Cheers,
EuGeNe -- http://www.3kwa.co
1/2 months in Europe so
he can do Italy in June (he is listed as an organizer), Lithuania in
July and UK in September...
I don't know how the EuroPython guys see it.
Cheers,
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
to my post, I must be wrong. I didn't mean to
offend anyone if I did. I'll go to Vilnius because I have never seen the
city and try to go to Birmingham if the program looks interesting (not
very rational or is it?).
Cheers,
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
age and give as much
information out as possible as early as possible (early bird early) for
people to make the best decision?
I know marketing matters but ...
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
ndows ... check it out
http://www.3kwa.com/Tutorial/PumpItUp
EuGeNe -- http://www.3kwa.com
--
http://mail.python.org/mailman/listinfo/python-list
uot;Yeah!"
while 1:
display()
time.sleep(interval)
--
Sincerely,
Eugene Antimirov
PortaOne, Inc., SIP Engineer
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
stef wrote:
> # method 2
> def chunk_plot(self, list):
> for i in range ( len(list) ):
> do something
And one note more. Just to be more pythonic you shouldn't use form
range(len(blabla)). Instead use:
for i in list:
blabla...
--
Marcpp wrote:
> Any idea to work with windows shared folders?
> Which library is needed to execute console comands?
>
Don't you want to look at fusesmb first and then work with windows files
and dirs as well as with any others.
--
Sincerely,
Eugene Antimirov
PortaOne, Inc
Eugene Antimirov wrote:
> You've probably missed cursor.commit() ;)
Sorry, my bad:
conn.commit() is correct one AFAIR.
--
Sincerely,
Eugene Antimirov
PortaOne, Inc., SIP Support Engineer
[EMAIL PROTECTED]
* For further Billing and Technical information:
=> Please visit our w
("insert into animals values('lion','cub')")
> cursor.execute("insert into animals values('goat','lamb')")
> cursor.execute("select * from animals")
> print cursor.fetchall()
>
>
> Rgds
> Kavitha
>
&
I have updated my script to use wx.RadioButton instead, which works
perfectly on my mac again, but now the submit button doesn't show up on
the pc and I can't click in the netid field on the pc either. any
ideas?
# BEGIN CODE
import wx;
SUBMIT_BUTTON = wx.ID_HIGHEST + 10;
class regFrame(wx.Fram
e[3]
ClickNum = (ClickNum+1) % ClickMax
ClickNum = ClickNum or 1
canvas = Canvas(Tk(), bg="white", bd=0, highlightthickness=0)
canvas.pack(fill=BOTH, expand=YES)
drawline(0)
canvas.bind("<1>", drawline)
canvas.mainloop()
Eugene
"Ben Bush" <[EMAIL PROTECTE
guy lateur wrote:
> Hi all,
>
> Suppose you have this class:
>
> class foo:
> def bar():
>
> Suppose you also have the strings "foo" and "bar". How can you obtain the
> function foo.bar()?
>
> Surely somebody knows..
>
> TIA,
> g
>
>
Would that do?
>>> class foo:
@staticmeth
ss instance, while you need font description.
Try:
t.tag.config( 'TBU', font=('times', 12, 'bold','underline') )
t.tag_config( 'AB', font=('arial',24,'bold') )
Eugene
--
http://mail.python.org/mailman/listinfo/python-list
It is available as PDF from the editor ... Manning. In my recollection
for 25 USD
projecktzero wrote:
> striker wrote:
>
>>Does anyone who has this book willing to sell it. Please e-mail me the
>>condition and any other details if you are interested.
>>Thanks,
>>Kevin
>
>
> half.com has a cou
y of doing this? And if
so, how does the environment get treated (I have some variables in my
env that the programs I'd be calling need to see).
Thanks much!
Eugene
--
http://mail.python.org/mailman/listinfo/python-list
Just noticed that it is now availabe as an ebook from Manning :
http://www.manning.com/books/grayson
I bought an edition on abebooks for a little fortune a few months ago ...
--
http://mail.python.org/mailman/listinfo/python-list
("TXT Files", "*.txt"),
],
initialdir=InputDir)
print z
works fine.
Eugene
"Justin Straube" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hopefully someone can catch what im missing here. Ive googled this and I
think
> Ive got the f
rst change keeps the scrollregion
entirely in the window.
Eugene
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Please take a look at and run the code snippet shown below.
>
> It creates a canvas with vertical & Horizontal scroll-bars.
> If you shrink the window
Try:
>
> Label(c, text="Child window").grid()
c.focus_set()
> root = Tk()
"Svennglenn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How do i make a child window "active" like the root window?
>
> from Tkinter import *
>
> def open_child():
> c = Toplevel(root)
>
class member not an instance member (not sure about
the vocabulary) if in __init__ you set self.list=[] you'll get the
result you want! By declaring list=[] in the class it is shared between
all instances!
--
EuGeNe
[
www.boardkulture.com
www.actiphot.com
www.xsbar.com
]
--
http:
HTMLparser?
Thanks for suggestions.
La.
Check BeautifulSoup (http://www.crummy.com/software/BeautifulSoup/)it
did the job for me!
--
EuGeNe
[
www.boardkulture.com
www.actiphot.com
www.xsbar.com
]
--
http://mail.python.org/mailman/listinfo/python-list
Kim Changjune wrote:
EuGeNe wrote:
Hi there,
I am no expert but wanted to give bicyclerepairman 0.9 a go just to
see
what a refactoring browser is and does. Followed every step of the
install, I think, but idle doesn't start with the RepairMan section
in
config-extensions.def ...
Kim Changjune wrote:
EuGeNe wrote:
Hi there,
I am no expert but wanted to give bicyclerepairman 0.9 a go just to
see
what a refactoring browser is and does. Followed every step of the
install, I think, but idle doesn't start with the RepairMan section
in
config-extensions.def ...
your help.
--
EuGeNe
[
www.boardkulture.com
www.actiphot.com
www.xsbar.com
]
--
http://mail.python.org/mailman/listinfo/python-list
com/c/a/Python/MySQL-Connectivity-With-Python/
that one put me on the right track (I think ;)
--
EuGeNe
[
www.boardkulture.com
www.actiphot.com
www.xsbar.com
]
--
http://mail.python.org/mailman/listinfo/python-list
Will wrote:
Hi all,
Please excuse the longish post. I'm new to Python (and programming),
but love what I see and believe it to be an important language.
I have (at least) one retail client (with single outlet at present)
that requires a total business solution for their operation,
preferably open s
nt to know other opinions before going with scons. What is the
best tool for installing python applications?
Eugene
--
http://mail.python.org/mailman/listinfo/python-list
48 matches
Mail list logo