John Salerno a écrit :
...
> I do, however, think the docs are pretty good, although I sometimes find
> myself just wishing that a function definition was simply laid out in an
> easy to read format that included all of its parameters, so I would know
> exactly what to pass to it (I guess help() is
Hi,
janama a écrit :
> jean-michel bain-cornu wrote:
>> Why won't you write it yourself using the demo ?
>> It's clear and well documented.
>> Regards,
>> jm
>
> Hi, have been just trying for 5 hours with the timer demo in wx, i just
> havnt clicked with how to tie it in together,
>
> I know (thi
Fredrik Lundh wrote:
> BartlebyScrivener wrote:
>
> > Emacs must be dying if this thread could get all the way to 20 with
> > nobody arguing with the vi folks.
>
> hints: 1) editor wars are so last century. 2) emacs has already won.
>
>
Yep, there is no much point about arguing for Emacs since ev
John Salerno wrote:
> Larry Bates wrote:
>
> > Nope, no Java knowledge necessary. Jython just compiles Python code
> > to java bytecode instead of python bytecode. Once it is in java bytecode
> > the JVM doesn't know where it came from.
>
> Well that's good to know. I guess there's not much of a
Martin,
thanks for the tip, I wasn't fully aware of that. OTOH, though GCC
might be a theoretical alternative, it isn't a practical one for many
situations:
* In a professional environment, it opens up another can of potential
problems, where one would rather like to stay with one single
compiler
Fredrik Lundh wrote:
> check your proxy configuration. most likely, your new machine is set up
> to route all requests via a remote proxy.
Here's me looking like a fool :-) The parts of the machine (eg Firefox,
GAIM etc) that I'd set up use a direct connection - it looks like the
guy who'd had
> > Vim is great if you have a good memory... Otherwise you end up trawling
> > through the help to find out how to do stuff that would in another IDE
> > be just a few menu clicks away.
>
> Mental memory (the painful kind of memory) rapidly turns into muscle
> memory (the fun kind of memory) and
On Fri, 16 Jun 2006 15:20:48 +1000
Ben Finney <[EMAIL PROTECTED]> wrote:
#> > >>> soup = BeautifulSoup()
#> > >>> soup.feed(port)
#> > Traceback (most recent call last):
#> > File "", line 1, in ?
#> > File "/usr/lib/python2.3/sgmllib.py", line 94, in feed
#> > self.rawdata = self.rawdata
In <[EMAIL PROTECTED]>, Tim Chase
wrote:
> My understanding is that the lambda-defined functions are not
> called until the actual application thereof, with the
>
> mypolys = make_polys(8)
> mypolys[5](2) #the lambda call happens here, no?
Yes, that's right.
> 's original statement
Hello
I have to make an easy operation but reading the pycrypto doc. a never
see AES example
I have to cript this key 'ea523a664dabaa4476d31226a1e3bab0' with the
AES.
Can you help me for make it with pycrypto
Regards Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hi
A short newbie question. I would like to extract some values from a
given text file directly into python variables. Can this be done simply
by either standard library or other libraries? Some pointers where to
get started would be much appreciated.
An example text file:
---
Some text t
Hello,
I have a Windows Pyhon-Tk app which need to capture mouse end keyboard
events even when the app is not in focus.
On Windows so far I've used the excellent PyHook which does the job
perfectly:
" The pyHook library wraps the low-level mouse and keyboard hooks in
the Windows Hooking API for
John Salerno <[EMAIL PROTECTED]> writes:
> I know there's a request for a good IDE at least once a week on the ng,
> but hopefully this question is a little different. I'm looking for
> suggestions for a good cross-platform text editor (which the features
> for coding, such as syntax highlightin
Raffael Cavallaro <[EMAIL PROTECTED]'espam-s'il-vous-plait-mac.com> writes:
> On 2006-06-14 16:36:52 -0400, Pascal Bourguignon <[EMAIL PROTECTED]> said:
>
> > In lisp, all lists are homogenous: lists of T.
>
> CL-USER 123 > (loop for elt in (list #\c 1 2.0d0 (/ 2 3)) collect
> (type-of elt))
> (
Is there a python way of getting the current umask without changing it?
os.umask changes it, and i dont want to use os.system("umask")
- Faik
--
http://mail.python.org/mailman/listinfo/python-list
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Torben Ægidius Mogensen wrote:
>
> > On a similar note, is a statically typed langauge more or less
> > expressive than a dynamically typed language? Some would say less, as
> > you can write programs in a dynamically typed language that you can't
>
list.txt is a file that contains the following lines:
Apples 34
Bananas 10
Oranges 56
>>> file = open("list.txt","r")
>>> mystring = file.read()
>>> mystring
'Apples 34 \nBananas 10\nOranges 56 '
>>> mylist = mystring.split('\n')
>>> mylist
['Apples 34 ', 'Bananas 10', 'Oranges 56 ']
>>> mydict =
First try, probably there are better ways to do it, and it's far from
resilient, it breaks in lot of different ways (example: more than one
number in one line, number with text on both sides of the line, etc.)
I have divided the data munging in many lines so I can see what's
happening, and you can
Raffael Cavallaro schrieb:
> On 2006-06-14 15:04:34 -0400, Joachim Durchholz <[EMAIL PROTECTED]> said:
>
>> Um... heterogenous lists are not necessarily a sign of expressiveness.
>> The vast majority of cases can be transformed to homogenous lists
>> (though these might then contain closures or
I needed a tool for extracting patches from CVS based on the log
messages. I.e. we mark our fixes and features with a "Bugdb XYZ"
And sometimes you need to move a fix/feature to another branch or maybe
you just want to inspect exactly what changes were related to a
specific bugdb issue.
Now I've s
P.S.
>>> file.close()
MTD wrote:
> list.txt is a file that contains the following lines:
> Apples 34
> Bananas 10
> Oranges 56
>
> >>> file = open("list.txt","r")
> >>> mystring = file.read()
> >>> mystring
> 'Apples 34 \nBananas 10\nOranges 56 '
> >>> mylist = mystring.split('\n')
> >>> mylist
>
Faik Uygur wrote:
> Is there a python way of getting the current umask without changing it?
> os.umask changes it, and i dont want to use os.system("umask")
just call os.umask twice:
current_mask = os.umask(0)
os.umask(current_mask)
--
http://mail.python.org/mailman/listinfo/pytho
> No, I learned it because Perl was too dirty and Java to complicated.
> Now it is part of my daily job.
Ditto. I was fed up of writing, compiling and running a java
application just in order to do a quick script. I'd used perl, but
quite frankly perl's a ridiculous language. Ruby looked promising
Torben Ægidius Mogensen wrote:
> Raffael Cavallaro <[EMAIL PROTECTED]'espam-s'il-vous-plait-mac.com> writes:
>
>> On 2006-06-14 16:36:52 -0400, Pascal Bourguignon <[EMAIL PROTECTED]> said:
>>
>>> In lisp, all lists are homogenous: lists of T.
>> CL-USER 123 > (loop for elt in (list #\c 1 2.0d0 (/
"Méta-MCI" wrote:
> I installed the Console of EFFBOT (http://effbot.org/downloads/#console).
> It functions well. It's a very fun/friendly tool.
>
> Except a detail: when I send (by console.write()) more than 53200 characters,
> it does not occur
> anything.
> I circumvented the problem, with a
Torben Ægidius Mogensen wrote:
> Pascal Costanza <[EMAIL PROTECTED]> writes:
>
>> Torben Ægidius Mogensen wrote:
>>
>>> On a similar note, is a statically typed langauge more or less
>>> expressive than a dynamically typed language? Some would say less, as
>>> you can write programs in a dynamica
On linux, I recommend Scribes. It's simple, slim and sleek, yet
powerful.
Features:
Automatic completion
Automatic bracket completion and smart insertion
Snippets (ala TextMate)
Bookmarks
Syntax highlight for more than 30 languages
Launches faster than any IDE out their
Has no learning curve.
Fea
"Joachim Durchholz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Raffael Cavallaro schrieb:
>> On 2006-06-14 15:04:34 -0400, Joachim Durchholz <[EMAIL PROTECTED]> said:
>>
>>> Um... heterogenous lists are not necessarily a sign of expressiveness.
>>> The vast majority of cases c
Op 2006-06-15, Fredrik Lundh schreef <[EMAIL PROTECTED]>:
> [EMAIL PROTECTED] wrote:
>
>> I'm not sure how that backs the point you made. Infact, you're saying
>> that people accepted that Python 2.4 was compiled with VS2003 because
>> VC6 could not longer be bought. How is that different from the
Cuma 16 Haziran 2006 12:48 tarihinde, Fredrik Lundh şunları yazmıştı:
> Faik Uygur wrote:
> > Is there a python way of getting the current umask without changing it?
> > os.umask changes it, and i dont want to use os.system("umask")
>
> just call os.umask twice:
> current_mask = os.umask(0)
T
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sacha schreef:
> "Joachim Durchholz" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Raffael Cavallaro schrieb:
>>> On 2006-06-14 15:04:34 -0400, Joachim Durchholz <[EMAIL PROTECTED]> said:
>>>
Um... heterogenous lists are not ne
Faik Uygur wrote:
> This is not atomic. At this point i changed all the running python threads'
> umask and i don't want to change current umask. I just want to get it.
afaik, there's no atomic API for this. just a unified get/set function:
http://www.opengroup.org/pubs/online/7908799/xsh/um
Torben Ægidius Mogensen wrote:
> Pascal Costanza <[EMAIL PROTECTED]> writes:
>
> > Torben Ægidius Mogensen wrote:
> >
> > > On a similar note, is a statically typed langauge more or less
> > > expressive than a dynamically typed language? Some would say less, as
> > > you can write programs in a d
Thanks Jean this now makes sense, really appreciate your time and
effort mate.
def __init__(self, parent):
self._init_ctrls(parent)
self.t1 = wx.Timer(self)
self.t1.Start(2000) # 2 seconds
self.Bind(wx.EVT_TIMER, self.OnTest1Timer)
self.OnTest1Timer(sel
Cuma 16 Haziran 2006 13:41 tarihinde, Fredrik Lundh şunları yazmıştı:
> afaik, there's no atomic API for this. just a unified get/set function:
>
> http://www.opengroup.org/pubs/online/7908799/xsh/umask.html
Oops. :( Thanks for the help.
Regards,
- Faik
--
http://mail.python.org/mailman/li
Ben Finney <[EMAIL PROTECTED]> writes:
> William Xu <[EMAIL PROTECTED]> writes:
>
>> >>> import urllib
>> >>> from BeautifulSoup import BeautifulSoup
>> >>> url = 'http://www.google.com'
>> >>> port = urllib.urlopen(url).read()
>
> Gets the data from the HTTP response. (I'm not sure why you call t
Slawomir Nowaczyk <[EMAIL PROTECTED]> writes:
> >>> soup.feed( unicode(port,"iso-8859-1") )
Sure, once you have the encoding name. Visit a different URL, you may
get a different encoding which should be used.
--
\ "I believe in making the world safe for our children, but not |
`\ou
Hello everybody,
Probably, this is being too demanding for Python, but it may be
useful to unimport modules to work with dynamic code (though not the
best, one example is [2]). In fact, it is supposed to be possible[1],
but I have detected it usually leaks memory.
When unimported in Linux, the s
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Torben Ægidius Mogensen wrote:
> > So while it may take longer to get a program that gets
> > past the compiler, it takes less time to get a program that works.
>
> That's incorrect. See http://haskell.org/papers/NSWC/jfp.ps -
> especially Figure 3.
> What I first though was if there was possible to make a filter such as:
>
> Apples (apples)
> (ducks) Ducks
> (butter) g butter
Try something like:
import re
text = """> Some text that can span some lines.
Apples 34
56 Ducks
Some more text.
"""
filters = {"apples": re.compile(
luca72 wrote:
> Hello
> I have to make an easy operation but reading the pycrypto doc. a never
> see AES example
> I have to cript this key 'ea523a664dabaa4476d31226a1e3bab0' with the
> AES.
> Can you help me for make it with pycrypto
>
> Regards Luca
You can do this as follows:
py> from Crypto.C
"Rob Thorpe" <[EMAIL PROTECTED]> writes:
> Torben Ægidius Mogensen wrote:
> > That's the point: Bugs that in dynamically typed languages would
> > require testing to find are found by the compiler in a statically
> > typed language. So whil eit may take onger to get a program thatgets
> > past t
> You can do this as follows:
>
> py> from Crypto.Cipher import AES
> py> # key has to be 16, 24 or 32 bytes for AES
> py> crypt = AES.new('abcdefghijklmnop', AES.MODE_ECB)
> # we're lucky, the string to encrypt is a multiple of 16 in length
> py> txt = 'ea523a664dabaa4476d31226a1e3bab0'
> py> c =
Joseph Chase schrieb:
> Is there a cross-platform solution for video capture from a webcam?
>
> I am aware of the Win32 videocapture library, but am unaware of how to
> accomplish the same functionality on the Mac side.
You could try and make OpenCV work - it has a part called anygui that
allo
gstreamer has python bindings.
http://gstreamer.net/
Joseph Chase wrote:
> Is there a cross-platform solution for video capture from a webcam?
>
> I am aware of the Win32 videocapture library, but am unaware of how to
> accomplish the same functionality on the Mac side.
>
> Thanks in advance.
--
Torben Ægidius Mogensen schreef:
> Bugs that in dynamically typed languages would
> require testing to find are found by the compiler in a statically
> typed language. So whil[e ]it may take [l]onger to get a program
that[ ]
> gets past the compiler, it takes less time to get a program that
works
Laszlo Nagy wrote:
> > You can do this as follows:
> >
> > py> from Crypto.Cipher import AES
> > py> # key has to be 16, 24 or 32 bytes for AES
> > py> crypt = AES.new('abcdefghijklmnop', AES.MODE_ECB)
> > # we're lucky, the string to encrypt is a multiple of 16 in length
> > py> txt = 'ea523a664d
John Salerno wrote:
> So out of curiosity, I'm just wondering how everyone else came to learn
> it. If you feel like responding, I'll ask my questions for easy quoting:
>
> Did you have to learn it for a job?
No. My job is purely administrative; I have absolutely no need to do
any programming. I
John Salerno wrote:
(snip)
> Based on another thread, I tried out Scite, but no matter what I do it
> doesn't seem to remember the window size and position, or any options I
> choose (like showing line numbers).
This is in the configuration files. Don't remember which and where, but
I clearly rem
BartlebyScrivener wrote:
> I see Eclipse mentioned here a lot.
If you go for a Mammoth-weight GUI-only Java IDE and have a really
powerful computer, why not ?
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
-
Did you paste any code ?
Also the link for the next message is not working .
John Salerno wrote:
> [EMAIL PROTECTED] wrote:
> > I am a newbie. I was looking for some code where I could a list of
> > different items from a file and display it in a list box. Then give a
> > user the capability
John Salerno wrote:
> Ant wrote:
>
>> jEdit is for me still the best text editor available. Very extensible
>> with macros (which can be written in Jython with the appropriate plugin
>> installed).
>
>
> I like the idea of being extensible, but of course I can only write in
> Python.
Jython is
BartlebyScrivener wrote:
> Emacs must be dying if this thread could get all the way to 20 with
> nobody arguing with the vi folks.
No need to argue. I started with vim, and finally switched to emacs less
than one year later.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] f
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
> Not in this implementation:
> py> from Crypto.Cipher import AES
> py> crypt = AES.new('abcdefghijklmnop', AES.MODE_CBC)
> py> c = crypt.encrypt('1')
> Traceback (most recent call last):
> File "", line 1, in ?
> ValueError: Input strings must be a multiple of 16 in length
>
This is strange.
Hi !
I want to create a Process Pool Object.
I can hold started processes, and can communicate with them.
I tryed with many ipc methods, but every of them have bug or other problem.
Sockets are unavailabe (because Windows Firewall hold them).
I think I will use pipe.
The object's pseudocode:
wh
I tried to follow wxPython Demo examples to understand it better. I
used wxGlade to generate my code from the GUI builder.
When I try to see the code for Menu and Menubar I see a little mismatch
in the way functions are being used.
For example, wxGlade produces code like this
self.Action = wx.Me
Excuse me again,
If the string is not a sting but hex number how i have to proced :
look this page:
http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-AES.html
Regards Luca
--
http://mail.python.org/mailman/listinfo/python-list
Alan Kennedy wrote:
> [Frank Millman]
> > I am writing a multi-user accounting/business application, which uses
> > sockets to communicate between server and client. The server contains
> > all the business logic. It has no direct knowledge of the client. I
> > have devised a simple message format
Thus spoke John Salerno (on 2006-06-15 15:50):
> Did you have to learn it for a job?
No, I was just interested in things
that are found interesting ;-)
> Or did you just like what you saw and decided to learn it for fun?
I read some remarks, from "both sides", on
the feasibility of a programmin
BartlebyScrivener wrote:
>>>Most IDEs are rather weak as text editors compared to emacsen.
>
>
> That's true, but even emacs and xemacs don't offer simple automatic
> word wrap (i.e. wrap a line without splitting words or putting an eol
> or hard carriage return at the end of every line). I don't
BartlebyScrivener wrote:
(snip)
> Also, it seems to be a minimalist
> language.
*seems* minimalist, but is really not - have a look at the object model
(metaclasses, descriptors etc), at closures and HOFs and decorators, at
list-comp and generators and (coming in 2.5) coroutines... Definitively
BartlebyScrivener wrote:
>>>I'd like something a bit like a module,
>>>but I'd like to make several of them,
>>>and not have them interfere with each other."
>
>
> Thank you. I sense what you are saying, but at this point I'd be
> thinking, "Why not just make several modules?" :)
Because you wa
"Preben Randhol" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What I first though was if there was possible to make a filter such as:
>
> Apples (apples)
> (ducks) Ducks
> (butter) g butter
>
> The data can be put in a hash table.
>
> Or maybe there are better ways? I general
Scott David Daniels wrote:
> BartlebyScrivener wrote:
>
>> I am not touching OO, classes, or GUIs until I understand
>> EVERYTHING else. Could take a few years. ;)
>
>
> You know how modules separate globals, right? That is, what you
> write in one module doesn't affect the names in anothe
BartlebyScrivener wrote:
(snip)
> I am not touching OO, classes,
You may not be aware of this, but as soon as you're programming in
Python, you *are* using OO. Strings are objects, dicts are objects,
tuples are objects, lists are objects, numbers are objects, and even
functions and modules are ob
> No need to argue. I started with vim, and finally switched to
> emacs less than one year later.
Both are very-much-so good editors. I made the opposite switch
from emacs to vim in less than a year. Both are good^Wgreat
editors, so one's decision to use one over the other is more a
matter of wo
[EMAIL PROTECTED] wrote:
> John Salerno wrote:
> [snip]
>> Thanks for any suggestions, and again I'm sorry if this feels like the
>> same question as usual (it's just that in my case, I'm not looking for
>> something like SPE, Komodo, Eric3, etc. right now).
>
> I was taking a peek at c.l.py to c
Dara Durum wrote:
> Hi !
>
> I want to create a Process Pool Object.
> I can hold started processes, and can communicate with them.
>
> I tryed with many ipc methods, but every of them have bug or other problem.
> Sockets are unavailabe (because Windows Firewall hold them).
>
> I think I will us
> My client-server is Python-to-Python. At present, I am using cPickle to
> transfer objects between the two. Among other things, I sometimes
> transfer a tuple. Using JSON it appears on the other side as a list. As
> I sometimes use the tuple as a dictionary key, this fails, as you
> obviously can
Torben Ægidius Mogensen wrote:
> Pascal Costanza <[EMAIL PROTECTED]> writes:
>
>> Torben Ægidius Mogensen wrote:
>
>>> So while it may take longer to get a program that gets
>>> past the compiler, it takes less time to get a program that works.
>> That's incorrect. See http://haskell.org/papers/N
Hi,
Look at the bin2ascii module.
Philippe
luca72 wrote:
>
> Excuse me again,
> If the string is not a sting but hex number how i have to proced :
>
> look this page:
> http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-AES.html
>
> Regards Luca
--
http://mail.python.org/mailman/listinfo
Torben Ægidius Mogensen wrote:
> There are several aspects relevant to this issue, some of which are:
> - Compactness: How much do I have to type to do what I want?
..
> - Naturality: How much effort does it take to convert the concepts of
>my problem into the concepts of the language?
Hello again i have solve doing this:
from Crypto.Cipher import AES
stri=(chr(int('9b',16))+chr(int('d3',16))+chr(int('2d',16))+chr(int('24',16))+chr(int('af',16))+chr(int('c9',16))+chr(int('e9',16))+chr(int('d7',16))+chr(int('46',16))+chr(int('69',16))+chr(int('71',16))+chr(int('32',16))+chr(int(
On 2006-06-16 05:22:08 -0400, Joachim Durchholz <[EMAIL PROTECTED]> said:
> And this is a typical dynamic type advocate's response when told that
> static typing has different needs:
>
> "*I* don't see the usefulness of static typing so *you* shouldn't want
> it, either."
But I haven't made th
Emanuele Aina wrote:
> [EMAIL PROTECTED] dettagliò:
>
>>> Someone can explain me why?
>> The list's __contains__ method is very simple
>
> [...]
>
>> So if you define "__lt__" in your object then the type gets a richcmp
>> function and your == test implicit in the 'in' search always incurs the
>
On 2006-06-16 11:29:12 -0400, Raffael Cavallaro
<[EMAIL PROTECTED]'espam-s'il-vous-plait-mac.com> said:
> In software like this it isn't worth satisfying a static type checker
> because you don't get much of the benefit
> anyway text Dx¤ description £ text Dx¢ fromname
> as bei
On 2006-06-16 05:22:08 -0400, Joachim Durchholz <[EMAIL PROTECTED]> said:
> And this is a typical dynamic type advocate's response when told that
> static typing has different needs:
>
> "*I* don't see the usefulness of static typing so *you* shouldn't want
> it, either."
But I haven't made th
Scott David Daniels wrote:
> Surprise, surprise. One hour is not two weeks.
I wrote:
> pressing Ctrl-1 while editing the source will execute the python on the
> current source *and* it displays the output in a lower pane as it runs
> *and* it allows me to simultanously edit the file *while* th
[EMAIL PROTECTED] wrote:
> Hi everyone,
>
> which compiler will Python 2.5 on Windows (Intel) be built with? I
> notice that Python 2.4 apparently has been built with the VS2003
> toolkit compiler, and I read a post from Scott David Daniels [1] where
> he said that probably the VS2003 toolkit will
Walter Dörwald wrote:
> I tried it out and the first problem I noticed is that on Windows
> opening a file from a Samba drive doesn't seem to work, as PyPE converts
> the filename to lowercase.
...Samba is tricky, and I hadn't thought of it before. Normal Windows
is case-insensitive but case-pres
On 2006-06-16 05:22:08 -0400, Joachim Durchholz <[EMAIL PROTECTED]> said:
> And this is a typical dynamic type advocate's response when told that
static typing has different needs:
> "*I* don't see the usefulness of static typing so *you* shouldn't
want it, either."
But I haven't made this sort
I have been using the latest VC.net to compile my SCSIPython extension
dll for Python 2.3, 2.4, and 2.5 without any problems. I just have to
make shure that I link with the correct Python.lib
Sam Schulenburg
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, luca72 wrote:
> Hello again i have solve doing this:
>
> from Crypto.Cipher import AES
> stri=(chr(int('9b',16))+chr(int('d3',16))+chr(int('2d',16))+chr(int('24',16))+chr(int('af',16))+chr(int('c9',16))+chr(int('e9',16))+chr(int('d7',16))+chr(int('46',16))+chr(int('69',16)
> readlines () will try to read until the stream/socket is closed. Try to
> read only one line. This of course means that you cannot sent \n as part
> of the data, you have to escape them somehow.
>
If I remember correctly, if you want to pass '\n' so readline won't
stop, you should be able to
Joachim Durchholz wrote:
> Give a heterogenous list that would to too awkward to live in a
> statically-typed language.
Write a function that takes an arbitrary set of arguments and stores
them into a structure allocated on the heap.
> Give a case of calling nonexistent functions that's useful.
Have you looked at PyPerl?
http://wiki.python.org/moin/PyPerl
I think it was further along. It might be good to build on.
Jim
On Jun 16, 2006, at 11:37 AM, Bruno Obsomer wrote:
> You love Python, but think Perl can be useful anyway. You can now
> mix the
> two in a single program with th
Joachim Durchholz wrote:
> Give a heterogenous list that would to too awkward to live in a
> statically-typed language.
Printf()?
--
Darren New / San Diego, CA, USA (PST)
My Bath Fu is strong, as I have
studied under the Showerin' Monks.
--
http://mail.python.org/mailman/listinfo/
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I'm building an intranet web server in Linux for around 40 windows
clients with Django.
The problem is that I want to build an excel file based on criteria
entered by the client, that the client must be able do download to his
personal work space
Hi,
I have a very simple problem, but do not know an elegant way to
accomplish this.
###
# I have a list of names:
names = ['clark', 'super', 'peter', 'spider', 'bruce', 'bat']
# and another set of names that I want to insert into
# the names list at some indexed locations:
surnames = { 1: 'kent'
[EMAIL PROTECTED] napisał(a):
> I need to build some Win32 Python extensions. If somebody happens to
> have the Microsoft Visual C++ Toolkit 2003 installer
> (VCToolkitSetup.exe), please kindly contact me off-list at:
I think only Microsoft has enough rights to distribute this.
--
Jarek Zgoda
h
[EMAIL PROTECTED] schrieb:
> Hi,
>
> I have a very simple problem, but do not know an elegant way to
> accomplish this.
> ###
> # I have a list of names:
> names = ['clark', 'super', 'peter', 'spider', 'bruce', 'bat']
>
> # and another set of names that I want to insert into
> # the names list at
En/na [EMAIL PROTECTED] ha escrit:
> Hi,
>
> I have a very simple problem, but do not know an elegant way to
> accomplish this.
> ###
> # I have a list of names:
> names = ['clark', 'super', 'peter', 'spider', 'bruce', 'bat']
>
> # and another set of names that I want to insert into
> # the names
[EMAIL PROTECTED] wrote:
> # I have a list of names:
> names = ['clark', 'super', 'peter', 'spider', 'bruce', 'bat']
>
> # and another set of names that I want to insert into
> # the names list at some indexed locations:
> surnames = { 1: 'kent', 3:'parker', 5:'wayne' }
>
> # The thing I couldn't
Hi all,
(I am sure there is a recipe somewhere, but I can't find it.) How does
one open an editor while in the middle of an interactive program, let
the user do some editing and closing, and then capture the text that
was edited? I am reminded of subversion or CVS when they open an
$EDITOR sessi
William Xu wrote:
> Hi, all,
>
> This piece of code used to work well. i guess the error occurs after
> some upgrade.
>
> >>> import urllib
> >>> from BeautifulSoup import BeautifulSoup
> >>> url = 'http://www.google.com'
> >>> port = urllib.urlopen(url).read()
> >>> soup = BeautifulSoup()
> >>> so
Is there a module (or, better yet, sample code) that scrubs
user-entered text to remove cross-site scripting attacks, while also
allowing a small subset of HTML through?
Contemplated application: a message board that allows people to use
, , and so on, but does not allow any javascript,
vbscript,
[EMAIL PROTECTED] writes:
>> This is the .NET 11 SDK, I belive it includes the 2003 compiler (*):
>
> Last time I checked the .NET SDK they had the C# compiler in there, but
> not the C++ optimizing 2003 compiler. Might be wrong though
I just downloaded and installed this, and see a directory
Darren New <[EMAIL PROTECTED]> writes:
> Joachim Durchholz wrote:
>> Give a heterogenous list that would to too awkward to live in a
>> statically-typed language.
>
> Printf()?
Very good statically typed versions of printf exist. See, e.g.,
Danvy's unparsing combinators.
--
http://mail.python.o
Hi list,
just found in this moment that my applications stop to work with win xp
and receive this error:
"""
This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.
"""
(Note that the same application [pytho
1 - 100 of 142 matches
Mail list logo