Steve M wrote:
[...]
> 1. Based on your description, don't trust the client. Therefore,
> "security", whatever that amounts to, basically has to happen on the
> server.
That's the right answer. Trying to enforce security within your
software running the client machine does not work. Forget the
Frank Millman wrote:
> Steven D'Aprano wrote:
>
>>On Mon, 12 Sep 2005 08:33:10 -0700, Frank Millman wrote:
>>
>>>My problem is that, if someone has access to the network and to a
>>>Python interpreter, they can get hold of a copy of my program and use
>>>it to knock up their own client program tha
Erich Schreiber <[EMAIL PROTECTED]> wrote:
> In the Python Library Reference the explanation of the time.sleep()
> function reads amongst others:
>
> > The actual suspension time may be less than that requested because
> > any caught signal will terminate the sleep() following execution
> > of
Steven D'Aprano wrote:
> On Mon, 12 Sep 2005 08:33:10 -0700, Frank Millman wrote:
>
> > My problem is that, if someone has access to the network and to a
> > Python interpreter, they can get hold of a copy of my program and use
> > it to knock up their own client program that makes a connection to
On Monday 12 September 2005 10:09 pm, [EMAIL PROTECTED] wrote:
> I like to keep my classes each in a separate file with the same name of
> the class. The problem with that is that I end up with multiple imports
> in the beginning of each file, like this:
>
> from foo.Bar import Bar
> from foo.Blah
[EMAIL PROTECTED] wrote:
> I like to keep my classes each in a separate file with the same name of
> the class. The problem with that is that I end up with multiple imports
> in the beginning of each file, like this:
>
> from foo.Bar import Bar
> from foo.Blah import Blah
> from foo.Zzz import Zzz
I'm just starting out on Python but my primary goal is to provide
applications with some user interface (GUI).
Can someone point me to a good comparison of whether I should use
wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)?
I'd prefer open source (not necessarily GPL though) t
Gregory Piñero wrote:
> Hey guys,
>
> I want to make my python program be installable on a mac, however I have
> no access to a mac myself. Is there any way I can still use py2app to
> create the app?
I don't think it's possible out-of-box. You would have to have the
Python.framework unpacked o
Hey guys,
I want to make my python program be installable on a mac, however I
have no access to a mac myself. Is there any way I can still use
py2app to create the app? Otherwise what other options do I
have? (google turned up nothing for me)
I don't want to require the users to have python in
Steve -
Wow, this is a pretty dense pyparsing program. You are really pushing
the envelope in your use of ParseResults, dicts, etc., but pretty much
everything seems to be working.
I still don't know the BNF you are working from, but here are some
other "shots in the dark":
1. I'm surprised fun
Thus spake Echo ([EMAIL PROTECTED]):
> I have been working on handling unhanded exceptions and making a
> detailed print out of the traceback after the exception. I found that
> traceback.extract_tb worked nice and was quite simple.
>
> During my searching around I found out that it might be poss
I like to keep my classes each in a separate file with the same name of
the class. The problem with that is that I end up with multiple imports
in the beginning of each file, like this:
from foo.Bar import Bar
from foo.Blah import Blah
from foo.Zzz import Zzz
What I'd like to do would be to repla
Alessandro Bottoni wrote:
...
> > - In college, I came to admire the Schaum's Outline book
> >approach--again heavy on problems and solutions! What's
> >the closest Python equivalent?
>
> Maybe this:
>
> Python Cookbook
> Alex Martelli, David Ascher
> O'Reilly
I'd rather s
"Will McGugan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You may be right. I always use plural nouns for collections.
ditto
> To me 'line' would suggest there was just one of them,
> so I assumed it was string.
I did too.
for line in file('skljflask.txt',r): # or similar
i
Mike Meyer wrote:
> Robert Kern <[EMAIL PROTECTED]> writes:
>
>>>Come to think of it, what's installed by Apple may count as a
>>>different distribution as well. It certainly includes more than just
>>>the official distribution.
>>
>>It's also old and probably won't be the same version in 10.5. If
Has anyone had any luck getting plwm (the X window manager framework
written in Python) working on OS X? How about python-xlib, which plwm
depends on?
Thanks,
http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more informati
Robert Kern <[EMAIL PROTECTED]> writes:
>> Come to think of it, what's installed by Apple may count as a
>> different distribution as well. It certainly includes more than just
>> the official distribution.
> It's also old and probably won't be the same version in 10.5. If you
> want any control ov
Hi Miki
Thx for you reply. I have tried the procedure but I am stuck with
python setup.py py2exe --includes mymodule.
I get the following error: "ImportError: No module named mymodule"
I don't know what mymodule should contain. Basically I want all of
python and numarray
to be part of the distr
Steve Horsley wrote:
> I think the sleep times are quantised to the granularity of the system
> clock, shich varies from os to os. From memory, windows 95 has a 55mS
> timer, NT is less (19mS?), Linux and solaris 1mS. All this is from
For the record, the correct value for NT/XP family is about
[EMAIL PROTECTED] wrote:
> Since the logging package currently uses mixedCase it would appear it
> shouldn't revert to lower_case. I'm thinking it should have probably used
> lower_case from the start though. I see no real reason to have maintained
> compatibility with log4j. Similarly, I think
On Mon, 12 Sep 2005 08:33:10 -0700, Frank Millman wrote:
> My problem is that, if someone has access to the network and to a
> Python interpreter, they can get hold of a copy of my program and use
> it to knock up their own client program that makes a connection to the
> database. They can then ex
Trent Mick wrote:
> Yah. It was added before Guido more clearly stated that he thought
> modules should have a successful life outside the core before being
> accepted in the stdlib.
Perhaps so, but Guido was also quite keen to get PEP-282 implemented
for inclusion in 2.3, and pronounced on the c
Hi,
Why not just releasing the *.pyc ?
Regards,
Philippe
Frank Millman wrote:
> Hi all
>
> I am writing a multi-user accounting/business system. Data is stored in
> a database (PostgreSQL on Linux, SQL Server on Windows). I have written
> a Python program to run on the client, which uses w
Larry Bates wrote:
>You need to specify a "platform" you will be running on. I've had
>good experience with ExperVision's RTK toolkit on Windows. It is not
>free, but it is very, very good. Sometimes software is actually
>worth paying for ;-).
>
>Larry Bates
>
>
>Timothy Smith wrote:
>
>
>>i'
On Mon, 12 Sep 2005 06:34:45 -0700, Frank Millman wrote:
> The client program contains all the authentication and business logic.
> It has dawned on me that anyone can bypass this by modifying the
> program. As it is written in Python, with source available, this would
> be quite easy. My target m
[EMAIL PROTECTED] wrote:
> >> - It's a package, but contrary to any other package I've ever seen,
> >> most of its functionality is implemented in __init__.py.
>
> Trent> I'm not defending the implementation, but does this cause any
> Trent> particular problems?
>
> No, it just seems
[EMAIL PROTECTED] wrote:
> Perhaps so, but the logging module seems like such an unpythonic beast to
> me. How about cleaning it up (*) before we add more to it? Stuff like
> colorizing seems like it belongs in its own module (presuming a reasonably
> general markup scheme can be agreed upon) so
Oops, I forgot to look at my old topic. Some of you mentioned CIFS. I
was away from home for a while and now I'm on my job, again. Soth the
Network Neighborhood thing isn't a problem. Now I know, that probably
it would be better to use CIFS rather than a virtual filesystem. I just
need to read thro
Jerzy Karczmarczuk a écrit :
> Gurus,
No guru answered, so you'll have to bear with me...
> before I am tempted to signal this as a bug, perhaps
> you might convince me that it should be so. If I type
>
> l=range(4)
> l.extend([1,2])
>
> l gives [0,1,2,3,1,2], what else...
>
> On the other h
Erich Schreiber wrote:
> In the Python Library Reference the explanation of the time.sleep()
> function reads amongst others:
>
>
>>The actual suspension time may be less than that requested because
>>any caught signal will terminate the sleep() following execution
>>of that signal's catching r
On 1997/06/05 Peter Henning wrote:
>SMB, ldap, imap4rev1
>
>Is there an SMB library? I want to be able to access SMB shares
>from python, or publish shares onto a network neighbourhood from
>a python server. If anyone has implemented SMB in python, could
>you point me to the code? Otherwise, would
Frank Millman a écrit :
> bruno modulix wrote:
>
>>Frank Millman wrote:
>>
>>>Hi all
>>>
>>>I am writing a multi-user accounting/business system. Data is stored in
>>>a database (PostgreSQL on Linux, SQL Server on Windows). I have written
>>>a Python program to run on the client, which uses wxPyth
>I am reluctant to attempt an arduous installation on Windows, but if
>Mr. Dufour or someone else could create a web site that would let you
>paste in Python code and see a C++ translation, I think this would
>expand the user base. Alternatively, a Windows executable would be
>nice.
The web site i
I have been working on handling unhanded exceptions and making a
detailed print out of the traceback after the exception. I found that
traceback.extract_tb worked nice and was quite simple.
During my searching around I found out that it might be possible to
get the variables and their respective v
Gregory Piñero wrote:
> How do you do this with the disutils module? I'm looking
> to make an installer that will install a python library.
start here:
http://docs.python.org/dist/dist.html
if you need more help, grab some libraries from PyPI and look
at their setup files.
--
http:/
How do you do this with the disutils module? I'm looking to make an installer that will install a python library.
Isn't that already available in the distutils module ?--
http://mail.python.org/mailman/listinfo/python-list-- Gregory PiñeroChief Innovation OfficerBlended Technologies(
www.blendedte
On Sep 12, 2005, at 11:26 AM, Frank Millman wrote:
> If I move all the authentication and business logic to a program which
> runs on the server, it is up to the system administrator to ensure that
> only authorised people have read/write/execute privileges on that
> program. Clients will have no p
A.B., Khalid wrote:
> Mark Dufour wrote:
> > After nine months of hard work, I am proud to introduce my baby to the
> > world: an experimental Python-to-C++ compiler.
>
> Good work.
>
> I have good news and bad news.
>
> First the good news: ShedSkin (SS) more or less works on Windows. After
> patc
On 2005-09-08, Adriaan Renting <[EMAIL PROTECTED]> wrote:
> The elegant way to do installs on Windows would be by creating an MSI.
> Microsoft provides (IIRC) a simple tool to create those (Orca), that's
> free. Without the Installshield or Wise tools I think it would take
> quite some effort thoug
sven wrote:
> hi list,
> i'd like to define __repr__ in a class to return the standardrepr
> a la "<__main__.A instance at 0x015B3DA0>"
> plus additional information.
> how would i have to do that?
> how to get the standardrepr after i've defined __repr__?
>
> sven.
>
It's relatively easy for new
> - What book or doc would you recommend for a thorough
>thrashing of object oriented programming (from a Python
>perspective) for someone who is weak in OO? In other
>words, how can someone learn to think in an OO sense,
>rather than the old linear code sense?
CPIM Ronin wrote:
> Hi Folks,
>
> I'm brand spanking new to Python, busy reading docs and going through
> two of the ubiquitous O'Reilly books--"Learning Python" by Lutz/Ascher
> and "Python Programming on Win32" by Hammond/Robinson.
>
> Still I have a just few newbie questions:
>
>-In
Well, for a single connection object you could use several cursor
objects and juggle with all of them in your program. This can come in
handy if it's not about a simple script like I put in here. You can
reuse the results from the cursors, etc. without issuing more,
potentially resource-hungry,
Hi Timothy,
first at all, sorry if you receive this message twice, but I sent a
message five hours ago and I don't see it on
mail.python.org/python-list.
Now at least the OP will receive it since I included it in a CC.
This thread may give you an start:
http://groups.google.ch/group/comp.lang.py
Well, it worked :)
Thanks a lot!
- Kreedz
--
http://mail.python.org/mailman/listinfo/python-list
Hmm...sorry to go a little off topic here, but I, also, have been
striving to learn Python/MySQL for a while using MySQL's official
thing. Can you please explain to me why one must use a cursor and can't
just do an execute on the connction? :confused about the subject:
--
http://mail.python.org/m
Errm, maybe you could use the sys.excepthook function to catch the
error and then print the details yourself from the traceback object.
import sys
def _exceptionhook(type, value, traceback):
''' your code here '''
sys.excepthook = _exceptionhook
((untested))
--
http://mail.python.org/mailma
>In general it's considered quite pythonic to catch exceptions :-)
>It's a particularly useful way of implementing duck typing for example.
>I'm not sure if I've got *any* code that doesn't use exceptions
>somewhere
Hehe. Okay. It will probably always be the case that you have to lose
some Pyt
This is a heck of a can of worms. I've been thinking about these sorts
of things for awhile now. I can't write out a broad, well-structured
advice at the moment, but here are some things that come to mind.
1. Based on your description, don't trust the client. Therefore,
"security", whatever that a
hi list,
i'd like to define __repr__ in a class to return the standardrepr
a la "<__main__.A instance at 0x015B3DA0>"
plus additional information.
how would i have to do that?
how to get the standardrepr after i've defined __repr__?
sven.
--
http://mail.python.org/mailman/listinfo/python-list
Rob Cowie wrote:
> I'm looking for a module that is able to create valid BibTex documents.
> I'm currently using string substitution to create the content, but it
> is not validated in any way.
>
> The only BibTex creation module available in Python (that I can find)
> is XdkBibTeX
> (http://arti
Hi,
I'm making some intelligent logging module that redirects stdout and
stderr of a wxPython GUI. I am logging the exceptions in a wx TreeCtrl.
My problem is that when an exception is thrown, there are many calls to
stderr that are made which gives this kind of result:
Traceback (most recent cal
Hi Folks,
I'm brand spanking new to Python, busy reading docs and going through two of
the ubiquitous O'Reilly books--"Learning Python" by Lutz/Ascher and "Python
Programming on Win32" by Hammond/Robinson.
Still I have a just few newbie questions:
-In the Windows Python version, how c
On 2005-09-12, Oren Tirosh <[EMAIL PROTECTED]> wrote:
> Whenever a file is modified the last modification time of the directory
> containing it is also set.
Nope.
$ ls -ld --time-style=full-iso .
drwxr-xr-x 2 grante grante 4096 2005-09-12 12:38:04.749815352 -0500 ./
$ touch asdf
> After connecting a drive to the system (via USB
> or IDE) I would like to be able to see within seconds
> if there were changes in the file system of that drive
> since last check (250 GB drive with about four million
> files on it).
Whenever a file is modified the last modification time of the
PyPK wrote:
> If I have a list say
>
> lst = [1,1,1,1,3,5,1,1,1,1,7,7,7]
> I want to group the list so that it returns groups such as
> [(0,3),4,5,(6,9),(10,12)]. which defines the regions which are similar.
>
> Thanks,
Hi,
I got a solution without iterators and without comparing adjecent
elemen
You need to specify a "platform" you will be running on. I've had
good experience with ExperVision's RTK toolkit on Windows. It is not
free, but it is very, very good. Sometimes software is actually
worth paying for ;-).
Larry Bates
Timothy Smith wrote:
> i'm looking for ocr librarys with rea
A work colleague circulated this interesting article about reducing
software bugs by orders of magnitude:
http://www.spectrum.ieee.org/WEBONLY/publicfeature/sep05/0905ext.html
Some methods they talk about include removing error prone and ambiguous
expressions from their ADA based language Sparc
Lenny G. wrote:
> It sounds like you are saying that there either isn't a way to make the
> interpreter utilize this type of namespace difference, or that doing so
> is so convoluted that it is certainly worse than just living with
> Hippo.HippoCrypto. I can live with these facts (with a little b
Leo 4.3.2 beta 1 is now available at:
http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106
To learn about Leo, see: http://webpages.charter.net/edreamleo/intro.html
The highlights of 4.3.2:
---
- Improved Leo's documentation:
- A tutorial introduc
I have found that the SmtpWriter class "hides" all the
complexity in creating emails like you want to send.
It accepts a list of filenames that will be attachments
to the email you generate.
Check it out here:
http://motion.sourceforge.net/related/send_jpg.py
As an aside. Email was not really d
Thanks Michael. That's actually what I already have, e.g.,
Hippo/
__init__.py
HippoCrypto.py
Potamus.py
Of course, this has the disadvantage of not really taking advantage of
the Hippo namespace -- I might as well have:
HippoCrypto.py
Hippo/
__init__.py
Potamus.py
or even get rid of
On 9/12/05, Brian Quinlan <[EMAIL PROTECTED]> wrote:
> Mark Dufour wrote:
> > The latter is certainly my goal. I just haven't looked into supporting
> > exceptions yet, because I personally never use them. I feel they
> > should only occur in very bad situations, or they become goto-like
> > constr
Lenny G. wrote:
> Hippo/
> __init__.py
> Crypto.py
> Potamus.py
>
> And inside Crypto.py, I need to access python-crypto's Crypto.Hash
> package. Inside Potamus.py, I need to access Hippo.Crypto, e.g.,
>
> Hippo/
> __init__.py
> Crypto.py# wants to import python-crypto's Crypt
As a side question Frank, how was your experiences using wxPython for
your GUI?
Any regrets choosing wxPyton over another toolkit?
Was it very buggy?
How was it to work with in general?
Any other real-world wxPython feedback you have is appreciated.
Frank Millman wrote:
> I am writing a multi-use
"Alessandro Bottoni" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Claudio Grondi wrote:
> > After connecting a drive to the system (via USB
> > or IDE) I would like to be able to see within seconds
> > if there were changes in the file system of that drive
> > since last che
Uh, I suppose you need a bit of reading up on Linux. ;)
http://www.northernjourney.com/opensource/newbies/
http://www.linuxhelp.net/
etc.
> How do I make myself a "root-user"?
To become root, use the "su" command. Obviously you'll need the root
password which you do know, don't you?
>how do I a
bruno modulix wrote:
> Frank Millman wrote:
> > Hi all
> >
> > I am writing a multi-user accounting/business system. Data is stored in
> > a database (PostgreSQL on Linux, SQL Server on Windows). I have written
> > a Python program to run on the client, which uses wxPython as a gui,
> > and connec
Thanks George. But I have to apologize -- I think I used the wrong
term in my question. Hippo is actually a package, not a module. So I
have:
Hippo/
__init__.py
Crypto.py
Potamus.py
And inside Crypto.py, I need to access python-crypto's Crypto.Hash
package. Inside Potamus.py, I need to
Here some of my thougts on this subject:
I think that this question adresses only a tiny
aspect of a much more general problem the
entire human race has in any area.
Reinventing the wheel begins when the grandpa
starts to teach his grandchild remembering well
that he has done it already many times
Frank Millman wrote:
> Peter Hansen wrote:
>
>>Frank Millman wrote:
>>
(snip)
>>>The only truly secure solution I can think of would involve a radical
>>>reorganisation of my program
>>
>>Please define what "truly secure" means to you.
>>
>
>
> Fair question. I am not expecting 'truly' to mean 1
Claudio Grondi wrote:
> After connecting a drive to the system (via USB
> or IDE) I would like to be able to see within seconds
> if there were changes in the file system of that drive
> since last check (250 GB drive with about four million
> files on it).
>
> How to accomplish this? (best if pro
Peter Hansen wrote:
> Frank Millman wrote:
> > I am writing a multi-user accounting/business system. Data is stored in
> > a database (PostgreSQL on Linux, SQL Server on Windows). I have written
> > a Python program to run on the client, which uses wxPython as a gui,
> > and connects to the databa
Thanks for the help. I'm kind of new to Linux, but I am the only user
of this machine (just installed Red Hat). How do I make myself a
"root-user"?
For the second method you mentioned, how do I add access the PYTHONPATH
environment variable?
Thanks again!
--
http://mail.python.org/mailman/li
If you are intrested in speed my personal advice is to use UDP insted of
TCP.
The great majority of network games use it.
Here's a simple UDP implementation:
http://www.evolt.org/article/Socket_Programming_in_Python/17/60276/
> For an online game I'm developing I need some advice concerning
> tc
Frank Millman wrote:
> Hi all
>
> I am writing a multi-user accounting/business system. Data is stored in
> a database (PostgreSQL on Linux, SQL Server on Windows). I have written
> a Python program to run on the client, which uses wxPython as a gui,
> and connects to the database via TCP/IP.
>
>
Most likely you're trying to do this as a non-root user and
/usr/local/lib/python2.4/site-packages must be writable only with root
privileges.
If you cannot go root on that machine then you could just install the
package in some directory you can write to and add the directory name
to your PYTHON
Jaroslaw Zabiello wrote:
> I got strange errors in Zope 2.7.
2.7.?
>
> METALError
> macro 'context/base' has incompatible version None, at line 1, column 1
>
(snip)
>
> When I try to open it, I get the error mentioned above. Any idea?
>
yes : try posting on a Zope/Plone related mailin
I'm trying to install ctypes for Python in Linux. Linux won't let me
create /usr/local/lib/python2.4/site-packages/ctypes ... "Permission
denied" ... Anyone know how I could get it to work? It's probably
something I need to chmod or change permissions on... Thanks!
--
http://mail.python.org/mai
Steven Bethard wrote:
> Paul McGuire wrote:
>
I have to differentiate between:
(NP -x-y)
and:
(NP-x -y)
I'm doing this now using Combine. Does that seem right?
>>
>>
>> If your word char set is just alphanums+"-", then this will work
>> without doing anything unnatural
import MySQLdb
# Create a connection object and create a cursor
conn = MySQLdb.Connect(host="localhost", port=3306, user="mysql",
passwd="pwd123", db="mytest")
c = conn.cursor()
# execute some SQL
c.execute("SELECT * FROM mystuff")
# Fetch all results from the cursor into a sequence
results = c
On Mon, 12 Sep 2005, Claudio Grondi wrote:
> It is maybe not a pure Python question, but I think it is the right
> newsgroup to ask for help, anyway.
You might try comp.arch.storage or comp.sys.ibm.pc.hardware.storage, or a
newsgroup specific to the operating system you're working on.
> After
On 12 Sep 2005 08:28:39 -0700, Chuck
> Can anyone provide any kind of python database (mysql) code or point me
> to a link that has this? Just simple things as maybe using a driver,
> opening up a db, an insert and select. Any help would be greatly
> appreciated!
It might be more than you're l
Steve Holden wrote:
> I'd say it's much more likely that line is a list of lines, since it
> seems improbable that absence of a character should cause a value of
> "nothing" to be required.
You may be right. I always use plural nouns for collections. To me
'line' would suggest there was just o
"Lenny G." <[EMAIL PROTECTED]> wrote:
> Suppose I have a python module named Hippo. In the Hippo module is a
> class named Crypto. The Crypto class wants to 'from Crypto.Hash import
> SHA' which refers to the module/classes in python-crypto. Other
> classes in the Hippo module want to 'import C
Ernesto wrote:
> Thanks! How do you add Python in Linux to the path? Similar to
> setting environment variables in Windows. I want to be able to type
> "python" when I'm in any directory to launch the interpreter. Thanks!
>
You will (or should) have a shell intialisation file variously called
Steven Bethard wrote:
> Exceptions are for
> "exceptional" conditions, that is, things that you expect to happen
> infrequently[1]. So if I think the code is going to fail frequently, I
> test the condition, but if I think it won't, I use exceptions.
I think there exceptions (no pun intended)
Gerhard Häring wrote:
> Frank Millman wrote:
> > Hi all
> >
> > I am writing a multi-user accounting/business system. Data is stored in
> > a database (PostgreSQL on Linux, SQL Server on Windows). I have written
> > a Python program to run on the client, which uses wxPython as a gui,
> > and conne
Will McGugan wrote:
> Pierre Barbier de Reuille wrote:
>
>
>>>I would actualy use the following for this particular case..
>>>
>>>text = line[n:n+1] or 'nothing'
>>
>>
>>... and you would get either a list of one element or a string ...
>>I think you wanted to write :
>>
>>text = (line[n:n+1] or
Suppose I have a python module named Hippo. In the Hippo module is a
class named Crypto. The Crypto class wants to 'from Crypto.Hash import
SHA' which refers to the module/classes in python-crypto. Other
classes in the Hippo module want to 'import Crypto' referring to
Hippo.Crypto.
How do I do
Hello,
Can anyone provide any kind of python database (mysql) code or point me
to a link that has this? Just simple things as maybe using a driver,
opening up a db, an insert and select. Any help would be greatly
appreciated!
Thanks,
--Chuck
--
http://mail.python.org/mailman/listinfo/python-l
Oops, "suit" indeed.
Though it might be considered as a pun if you really want to. :-)
Anyway, thanks, I will correct it.
Cheers,
Miklos
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> try...except... blocks are quick to set up, but slow to catch the
> exception. If you expect that most of your attempts will succeed, then the
> try block will usually be faster than testing the length of the list
> each time.
>
> But if you expect that the attempts to wri
hmm thanks for that..but kind of not sure how this groupby works.. also
if I want to group elements with one value apart how would this
change.Should this change in groupby part or in the loop?
something like...
lst = [1,1,2,1,3,5,1,1,1,1,2,7,7]
returns (0,3),4,5,(6,10),(11,12)
so its something lik
Hi
For an online game I'm developing I need some advice concerning tcp-sockets,
and especially which socket options to set and not.
What I want is a connection where nothing is buffered (but are sent
immediatly), and I also want to keep the connections persistent until
explicitly closed.
The se
It is maybe not a pure Python question, but I think
it is the right newsgroup to ask for help, anyway.
After connecting a drive to the system (via USB
or IDE) I would like to be able to see within seconds
if there were changes in the file system of that drive
since last check (250 GB drive with ab
Paul McGuire wrote:
>>>I have to differentiate between:
>>> (NP -x-y)
>>>and:
>>> (NP-x -y)
>>>I'm doing this now using Combine. Does that seem right?
>
> If your word char set is just alphanums+"-", then this will work
> without doing anything unnatural with leaveWhitespace:
>
> from pyparsin
Mark Dufour wrote:
> The latter is certainly my goal. I just haven't looked into supporting
> exceptions yet, because I personally never use them. I feel they
> should only occur in very bad situations, or they become goto-like
> constructs that intuitively feel very ugly. In the 5500 lines of the
Hi all. I noticed that with the original pcap sniffing library it is
possible to listen on multiple devices by using "select()" or "poll()"
function.
These function aren't present in pcapy module. Do you got any suggestion to
avoid this problem?
--
http://mail.python.org/mailman/listinfo/pyth
[Miklos]
> The ring of the friendly serpent in business suite: Python, Zope, Plone
> http://www.jegenye.com/
Did you mean "business suit"?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 148 matches
Mail list logo