Bernard wrote:
> Gabriel Genellina wrote:
> > At Monday 2/10/2006 13:05, Bernard wrote:
> >
> > > > > Has anyone tried what I'm doing? and if you tried how have you
> > > > > succeeded getting the data back after the post action?
> >
> &g
Hi Fabian,
I'm still a youngster in Python but I think I can help with the
"extracting data from the log file" part. As I'm seeing it right now,
the only character separating the numbers below is the space character.
You could try splitting all the lines by that character starting from
the NO Colum
useful module :
http://wwwsearch.sourceforge.net/mechanize/
The documentation is pretty clear for an initiated python programmer.
If it's not your case, I'd recommend to read some ebooks on the python
language first to get use to it.
Bernard
zdp wrote:
> Hello!
>
> I n
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'English_United States.1252')
'English_United States.1252'
>>> conv = locale.localeconv()
>>> x = 1234567.8
>>> locale.format("%d", x, grouping=True)
'1,234,567'
>>> locale.format("%s%.*f", (conv['currency_symbol'], conv['int_frac_digits'],
>>>
Hi Fulvio,
I often use this try except to find out about what type of errors might
happen in my code:
I use it when I really don't know what might happen.
try:
# do something
except:
print "Unexpected error:", sys.exc_info()[0]
continue
once it catches an error, just take a good look
I just found this webpage showing the most common exceptions:
http://pydoc.org/1.5.2/exceptions.html
I hope this can help in some way.
Fulvio wrote:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> Hello there,
>
> Simple question : how do
lol you are so right! I didn't even notice this was the 1.5.2 version!
Gabriel Genellina wrote:
> At Wednesday 11/10/2006 16:16, Bernard wrote:
>
> >I just found this webpage showing the most common exceptions:
> >http://pydoc.org/1.5.2/exceptions.html
>
>
pt to create such
effects.
Bernard
Wijaya Edward wrote:
> Hi,
>
> Some recent webapps like Kiko <http://www.kiko.com/> , Google's gadget
> <http://www.google.com/ig/directory?hl=en> , and spreadsheets
> <http://spreadsheets.google.com> to name a few,
>
IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/
Why?: because this IDE is not complicated. it ships with a debugger, a
gui designer, a source code checker and a regex console.
Like: obviously everything
Hate: sometimes it doesn't start on windows 2000
Platform: Windows, Linux,
hey thanks limodou,
I'm trying it out right now and it works pretty well!
SPE has been crashing often lately so count on me to use it frequently.
Bernard
limodou wrote:
> On 10/13/06, Theerasak Photha <[EMAIL PROTECTED]> wrote:
> > On 13 Oct 2006 07:37:07 -0700, Berna
thanks Stani!
SPE - Stani's Python Editor wrote:
> This is a maintenance release (mostly bug fixing) to prove that SPE is
> alive and well! In case you are using wxPython2.7 you'll need to
> upgrade to this release. Submitted patches will be reviewed and
> included if approved for next release. Th
yup yup BeautifulSoup is the way to go.
what would you like to scrape by the way?
Graham Feeley wrote:
> Can someone steer me to scripts / modules etc on webscraping please???
> Ultimately I would like someone to write a script for me.
> However i am still searching for documentation on this subj
do your homework and use regexes! but the find() and in() function
works great for normal strings...why don't you want to use them?
zeal elite a écrit :
> Hi,
>
> I am looking for substring search python program without using the built in
> funtions like find, or 'in'.
>
> Appreciate it. Thanks i
a combination of urllib, urlib2 and BeautifulSoup should do it.
Read BeautifulSoup's documentation to know how to browse through the
DOM.
[EMAIL PROTECTED] a écrit :
> Hi All,
>
> I am involved in one project which tends to collect news
> information published on selected, known web sites int
hiya everyone,
I've made this little webcrawler using BeautifulSoup, urllib and
urllib2. I've been encountering ASP.NET Forms recently and I can't seem
to make a proper post to some of them. My post function has been doing
great until this particular website.
Here's some explanations first so that
Max M wrote:
> Bernard skrev:
>
> > Has anyone tried what I'm doing? and if you tried how have you
> > succeeded getting the data back after the post action?
>
> Most likely you get assigned a cookie that you then need to return.
>
> Try the cookielib which a
Gabriel Genellina wrote:
> At Monday 2/10/2006 13:05, Bernard wrote:
>
> > > > Has anyone tried what I'm doing? and if you tried how have you
> > > > succeeded getting the data back after the post action?
>
> Use a packet sniffer or something to look at
I can send you the latest tar.gz ( SPE-0.8.3.c-wx2.6.1.0.tar ) file if
you want it :)
Bernard
John DeRosa wrote:
> SPE's site (http://pythonide.stani.be/) has been inaccessible to me
> for at least a day. Can anyone else get to it?
>
> I looked on Google and didn't see
http://pythonology.org/success
this should be enough...but why don't you write a solid app in python
and show it to them?
Seeing is believing.
Bernard
krishnakant Mane a écrit :
> hello all.
> actually I have been recently appointed as a technology consulltent at
> a huge company
yes sir should I send them to you?
John DeRosa a écrit :
> On 28 Nov 2006 13:16:41 -0800, "Bernard" <[EMAIL PROTECTED]>
> wrote:
>
> >
> >I can send you the latest tar.gz ( SPE-0.8.3.c-wx2.6.1.0.tar ) file if
> >you want it :)
>
> I'm l
here's the function I've been using for while :P
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.Utils import COMMASPACE, formatdate
from email import Encoders
def sendMail(arrRecipients, sender, subje
4 easy steps to get the links:
1. Download BeautifulSoup and import it in your script file.
2. Use urllib2 to download the html of the url.
3. mash the html using BeautifulSoup
4.
[code]
for tag in BeautifulSoupisedHTML.findAll('a'):
print tag
[/code]
David Waizer a écrit :
> Hello..
>
>
On 12 nov, 20:19, "Gordon C" <[EMAIL PROTECTED]> wrote:
> Absolute newbie here. In spite of the Python Software Foundation tutorial's
> (http://www.python.org/doc/current/tut/tut.html) use of the array
> declaration
> array(type[,initializer]), the Python interpreter does NOT accept the word
> ar
On 20 nov, 07:19, joe jacob <[EMAIL PROTECTED]> wrote:
> There are a lot of web frameworks for python like django, mod_python,
> spyce, turbo gears, Zope, Cherrypy etc. Which one is the best in terms
> of performance and ease of study.
I'm making web apps with CherryPy at work and it's quite good.
Hey y'all,
Is there a way to POST a handmade SOAP request *without* using any
libraries like SOAPpy? I've been having some communication trouble
with a server using the new wse3 (http://www.microsoft.com/Downloads/
details.aspx?
familyid=018A09FD-3A74-43C5-8EC1-8D789091255D&displaylang=en).
they
On 31 jan, 15:23, Van Gale <[EMAIL PROTECTED]> wrote:
> Yes, it's quite easy to SOAP by hand.
>
> I use Oren Tirosh's ElementBuilder class (on top of lxml instead of
> ElementTree) to build the SOAP request and the xpath capabilities in lxml
> to pull out the data I need from the response.
>
> http
On 3 fév, 21:52, Gilles Ganault <[EMAIL PROTECTED]> wrote:
> Hello
>
> I need to launch a Python script, and fork it so that the calling
> script can resume with the next step will the Python script keeps
> running.
>
> I tried those two, but they don't work, as the calling script is stuck
On 4 fév, 17:17, Stef Mientki <[EMAIL PROTECTED]> wrote:
> hello,
>
> Being very satisfied with Python as a general program language,
> and having troubles with a number of PHP scripts, moving to another
> provider,
> I wanted to replace the PHP scripts with Python Scripts.
>
> The most important o
On 5 fév, 10:09, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> This isn't a strictly Python question but I wonder if someone could
> give me some clues here. I've been writing a number of stand-alone
> apps that use CherryPy as an embedded web server for displaying
> processed data and
On 5 fév, 18:10, Mark <[EMAIL PROTECTED]> wrote:
> Is it possible to traverse say python lists via http://
>
> say there is a list in the memory
>
> can we traverse the list using list/next list/prev list/first list/last
>
> is there a pythonic library to do that?
>
> thanks
I'm not sure I totally
I've been using Cheetah Template for a year now and loved every bit of
it.
There's plenty of well written documentation[1] files as well so that
you may learn it quick.
[1]: http://www.cheetahtemplate.org/learn.html
On 24 fév, 14:01, Tamer Higazi <[EMAIL PROTECTED]> wrote:
> Hi people!
> After de
Cheetah! Cheetah! Cheetah!
On 6 mar, 20:56, "Malcolm Greene" <[EMAIL PROTECTED]> wrote:
> New to Python and looking for a template library that allows Python
> expressions embedded in strings to be evaluated in place. In other words
> something more powerful than the basic "%(variable)s" or "$vari
As Jonathan says. :)
I had a lot of fun learning how to plug doctests[1] into my python web
apps and now I'm just adding them automatically as I create classes
and functions. Those tests tidbits says so much more than a paragraph
of comments.
[1] : http://docs.python.org/lib/module-doctest.html
Hey Brian,
It seems the text you are trying to parse is similar to XML/HTML.
So I'd use BeautifulSoup[1] if I were you :)
here's a sample code for your scraping case:
from BeautifulSoup import BeautifulSoup
# assume the s variable has your text
s = "whatever xml or html here"
# turn it into a
Hey Larry,
that one is fairly easy:
>>> from array import array
>>> array('i', [1, 2, 3, 4, 5, 1, 2])
>>> def count(x, arr):
cpt = 0 # declare a counter variable
for el in arr: # for each element in the array
if el == x: # when it is equal to the 'x' value
d'oh!
On 12 mar, 07:58, John Machin <[EMAIL PROTECTED]> wrote:
> On Mar 12, 10:29 pm, Bernard <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey Larry,
>
> > that one is fairly easy:
>
> > >>> from array import array
> > >>> array
Did you take a look at web.py? That one looks terribly small and
efficient :)
We use CherryPy coupled with compiled Cheetah Templates for
every web server based projects at my workplace and we've been really
satisfied with it so far.
On 28 mar, 07:53, "Pavol Murin" <[EMAIL PROTECTED]> wrote:
> he
"NORTHBOUNDINGCOORDINATE" and printed the
> decimal number before it hit the next string
> "NORTHBOUNDINGCOORDINATE". But I am not sure how to do this. any
> suggestions would be appreciated.
>
> Many thanks
>
> Martin
Hey Martin,
here's a regex I've just tested : (\w+COORDINATE).*\s+VALUE\s+=\s([\d\.
\w-]+)
the first match corresponds to the whateverBOUNDINGCOORDINATE and the
second match is the value.
please provide some more entries if you'd like me to test my regex
some more :)
cheers
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
On 12 août, 12:43, Martin wrote:
> On Aug 12, 1:42 pm, Martin wrote:
>
>
>
>
>
> > On Aug 12, 1:23 pm, Steven D'Aprano
> > cybersource.com.au> wrote:
> > > On Wed, 12 Aug 2009 05:12:22 -0700, Martin wrote:
> > > > I tried
>
> > > > re.findall((\w+COORDINATE).*\s+VALUE\s+=\s([\d\.\w-]+),s)
>
> >
string contains the escape character.
Consider :
a="H:\2023"; print(a.replace("\\","/"))
H:3
a="H:\a2023"; print(a.replace("\\","/"))
H:2023
a="H:\_2023"; print(a.replace("\\","/"))
H:/_2023
Best regards,
Bernard LEDRU
--
https://mail.python.org/mailman/listinfo/python-list
download the smallish "sdk" if you want to compile client code
(e.g. cx_oracle - highly recommended!)
Hope this helps,
Bernard.
--
http://mail.python.org/mailman/listinfo/python-list
er
setup.py. cx_oracle has a support list, see
http://sourceforge.net/projects/cx-oracle/
Cheers,
Bernard.
--
http://mail.python.org/mailman/listinfo/python-list
Is there a simple way to modify the default sprintf mask
used for floats ? (eg something like sys.float_mask = '%.2f')
I've tried assigning to float.__dict__[ '__str__' ], but
that's apparently not allowed.
--
http://mail.python.org/mailman/listinfo/python-list
Are you trying to do currency? There are better ways, using the locale
methods.
No, just dumping some data structures and I'd rather not
check every item's type and format floats explicitly.
I was hoping the sprintf mask float's __str__ probably
uses was somehow exposed and could be altered.
--
ht
We're so satisfied with cx_Oracle (HP-UX & Win32) that we
have not even bothered checking the other ones.
Highly recommended.
--
http://mail.python.org/mailman/listinfo/python-list
hello,
i'm looking for a way to have all possible length fixed n-uples from a
list, i think generators can help, but was not able to do it myself,
maybe some one could point me out to an idea to do it ?
for example, from :
l = [0, 1, 2, 3, 4]
and searching for n-uples of 3, i should produce :
(
hello,
while trying to play with generator, i was looking for an idea to get
the position of a inner list inside another one, here is my first idea
:
- first find position of first inner element,
- and then see if the slice starting from here is equal to the inner
->
>>> def subPositions(alist,
Win 8.1pro 64b
Both/either of the 64b versions fail on "idle", "python" with
'no encodings' module error.
It is there. install had set the path to include install dir &
the \scripts subdir.
Just uninstalled, will have to try later. Been working this -googling the
many
I'd just installed py3.5 most recent (downloaded, installed 11/23/15) and
when starting via the windows start (win 8.1pro) shortcut, I always get this
error.
I'd navigated to the program directory (it installed in
C:\Users\my-ID\AppData\Local\Programs\Python\Python35) and started the
python.exe an
y 'somefile.zip' ? I have looked into email.Utils and
codecs, but cannot find what should work.
TIA,
Bernard.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you Neil,
that is what I needed.
B.
Neil Hodgson wrote:
>
> >>> import email.Header
> >>> x = '=?iso-8859-1?q?somefile=2ezip?='
> >>> email.Header.decode_header(x)
> [('somefile.zip', 'iso-8859-1')]
>
>Neil
--
http://mail.python.org/mailman/listinfo/python-list
27;m not sure how to
interpret.
Any suggestion is welcomed.
Thanks
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
transaction management module
- fcJob has a function called readyGetJob(), wich is at the origin of
the MySQL query. The actual query being used is located on line 202.
The sql file is used to create the database
Thanks for any help, let me know if you need more details
Bernard
--
http://mail.pyth
Oops, sorry: link to sources
http://www.bernardlebel.com/scripts/nonxsi/help/
Thanks again
Bernard
On 1/18/06, Bernard Lebel <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm stumbled at a serious problem, and quite frankly getting
> desparate. This is a rather long-winded
Btw I have tried running much simpler versions of the query, like
"SELECT * FROM TB_CURRENT_JOBS WHERE Status = 'Pending'", but yet
again I get the same results. *sigh*
Bernard
On 1/18/06, Bernard Lebel <[EMAIL PROTECTED]> wrote:
> Oops, sorry: link to sources
een knocking my head on that for almost 3 full
days :-(
Bernard
On 1/18/06, Bernard Lebel <[EMAIL PROTECTED]> wrote:
> Btw I have tried running much simpler versions of the query, like
> "SELECT * FROM TB_CURRENT_JOBS WHERE Status = 'Pending'", but yet
>
Hi Alan,
On 1/18/06, Alan Franzoni <[EMAIL PROTECTED]> wrote:
> Il Wed, 18 Jan 2006 14:39:09 -0500, Bernard Lebel ha scritto:
> 1) It would be great if you didn't post four messages in less than an hour
> ^_^
Yeah I know :-)
But like I said, I've been stuck for 3 days o
always got proper fetch results.
Thanks
Bernard
On 1/18/06, Stephen Prinster <[EMAIL PROTECTED]> wrote:
> Have you tried doing a "connection.commit()" after each query attempt?
> I believe mysqldb also has a connection.autocommit feature.
> --
> http://mail.python.org/m
Thanks a lot for the explanations Alan. That really helped.
Bernard
On 1/19/06, Alan Franzoni <[EMAIL PROTECTED]> wrote:
> Bernard Lebel on comp.lang.python said:
>
> > I'm absolutely flabbergasted.
>
> As I told you, i think this is related to the isolation le
Hello,
I have this problem when subclassing classes where I get this error:
Traceback (most recent call last):
File "
?
Thanks
Bernard
On 7/17/06, Peter Otten <[EMAIL PROTECTED]> wrote:
> Bernard Lebel wrote:
>
> > Hello,
> >
> > I have this problem when subclassing classes where I get this error:
> >
> > Traceback (most recent call last):
> >
> > File "
use pyd and dll for Python stuff. Is there
any chance to disable Python from looking at these? Perhaps a flag we
can change in Python? Or would it be doable by recompiling the
sources?
Any advice is welcomed
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
waste
less time waiting after the startup.
Thanks
Bernard
On 10/19/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> You can't; part of the standard library are .pyd/.dll files.
> Those existence checks should be fairly fast - why are you worried about them?
--
http://mail.python.org/mailman/listinfo/python-list
s? In locations were you expect not to have
such files for example?
Thanks
Bernard
On 10/19/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Thursday 19/10/2006 22:38, Bernard Lebel wrote:
>
> >That's because I'm using Python through another application
Sorry I have no direct answer for you, but suspect you should
post to the cx_Oracle group. Check the sourceforge project page.
It is also conveniently mirrored at news.gmane.org.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Laszlo, I'll check it out.
Bernard
On 5/29/06, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
>
> >>
> >> From what you wrote, I think that you need to change architecture. You
> >> should write your own service rather than write tricky program
Hello,
Is there an option or a way to allow the selection of multiple entries
in the Listbox widget? I could not find any, and would like to allow
the end user to select multiple entries.
Thanks
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
Oh, thanks a lot Rob.
Bernard
On 6/1/06, Rob Williscroft <[EMAIL PROTECTED]> wrote:
> Bernard Lebel wrote in news:mailman.6413.1149178158.27775.python-
> [EMAIL PROTECTED] in comp.lang.python:
>
> > Hello,
> >
> > Is there an option or a way to allow the sel
ave any effect.
I'm using Python 2.4 on Windows XP Pro SP1.
Thanks
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
On 6/5/06, John Salerno <[EMAIL PROTECTED]> wrote:
> What is dir(), btw? Is it a class for creating the application?
[Bernard] In your Python documentation, dir() is described in the
built-in functions (section 2.1) as well as the tutorial, in the
"Modules" section (chapter
ories is done with a transition
effect that drives me nuts
Bernard
On 7 Jun 2006 10:38:00 -0700, sam <[EMAIL PROTECTED]> wrote:
> Very interesting, I have downloaded it,and I like what I see.
>
> ago wrote:
> > I have just discovered Python Scripter by Kiriakos Vla
r answers
a few questions, click OK, and then everything is there.
Thanks
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
"that don't make sense").
[Bernard] I customized the PYTHONPATH using a pth file. The pth file
contains this:
\\Linuxserver\ANIMATION\XSI\WORKGROUP_ANIMATION\Data\Scripts
\\Linuxserver\ANIMATION\DB\MT\MT_WORKGROUP\Data\Scripts
\\Linuxserver\ANIMATION\DB\TS\TS_WORKGROUP\Data\Scripts
\\L
Oops, sorry for the inconsistency. The pth file rather looks like this:
d:\bernard\work\workgroups\workgroup_animation\data\scripts
d:\bernard\work\workgroups\mt_workgroup\data\scripts
d:\bernard\work\workgroups\ts_workgroup\data\scripts
\\Linuxserver\ANIMATION\FARM\PYTHON\RELEASE
c:\users\blebel
27;No more line from pipe, exit.'
break
Cheers
Bernard
On 2/8/06, calmar <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> unfotunately, 'commands.getstatusoutput(command)' does not work under
> windows.
>
> Would there be any alternative?
>
>
compiler, or is gcc known to work for this purpose ?
Thanks for any hint,
Bernard.
--
http://mail.python.org/mailman/listinfo/python-list
) but python
refuses to load the cx_oracle.sl shared lib...
Bernard.
--
http://mail.python.org/mailman/listinfo/python-list
standard
Oracle command-line client), and cx should then pose no problem.
Cheers,
Bernard.
--
http://mail.python.org/mailman/listinfo/python-list
I read in the Python 3.0 documentation that reload() was removed,
without further explanations.
http://docs.python.org/dev/3.0/whatsnew/3.0.html?highlight=reload
So what are we supposed to do to reload modules?
Thanks
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
> I need Python to be compiled with Zlib so that I can compile and use
> Zope.
I am guessing you need zlib_dev.rpm (or somesuch) installed
for the python build process to find the relevant headers.
Sorry I cannot be more specific not being a SuSE user myself
(anymore)...
Bernard.
--
on 64)
Cheers
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
written.
However I would like to know how much memory, before writing to the
file, is this list using. Is it possible at all?
Thanks
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
or a write() to the file object, which in
turns write to the text file. The file is on the network.
This is taking a long time, and I'm looking for ways to speed up this
process. I though that keeping the list in memory and dropping to the
file at the very end could be a possible approach.
B
compatibility so senders could submit files with PGP integrated
to their mail system. Can anyone suggest a module that can help achieve
this goal? Any pointer or evidence of a working solution with or
without usage of the aforementioned libraries would be appreciated.
Thanks,
Bernard.
--
http://ma
Hi Jim, I guess you're missing tk and its tkinter
python wrapper. Sorry I don't know what the corresponding
packages would be called under fedora...
--
http://mail.python.org/mailman/listinfo/python-list
FWIW I am using 2.4.4 under debian etch and 2.5.1 under windows XP,
and pydoc seems to support the -[pgkw] flags under both versions.
When trying -g under debian, I am getting a stack-trace and a message
inviting me to install the python-tk package.
Does "pydoc -g" provide any feedback on your ins
I see what you mean, having started my fedora8-live image under
virtualbox. -g support is apparently not there with this
distribution, oddly enough. Perhaps you should post your
question on a fedora support forum.
Under the live cd (hence probably with a smaller selection of
available packages tha
(I know replying to self is a sure sign of aging :-)
A quick update: after installing the 'tkinter' fedora
package (still in live-cd mode), the following 3 lines
script does what "pydoc -g " should:
import Tkinter
import pydoc
pydoc.gui()
HTH,
Bernard.
--
ht
dule), but failed to find anything for #2.
Thanks in advance
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
On 5/26/06, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> And as you refrain form telling us which OS you are running under
[Bernard] The network file server is Red Hat Enterprise 4.
The user workstation run through MS Windows XP Pro 32bit SP2,
accessing the file server through Samba.
ressource you could point me to as to write services?
I'm totally unexperienced with that.
Thanks a bunch.
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
" doesn't work.
"f = open(sys.stdin)" doesn't work.
I don't find anything in the documentation. How to do that ?
Thanks in advance.
Bernard Desnoues
Librarian
Bibliothèque de géographie - Sorbonne
--
http://mail.python.org/mailman/listinfo/python-list
> one search for the terms 'python read stdin'
>
> Rolf
>
> Bernard Desnoues wrote:
>> Hi,
>>
>> I've got a problem with the use of Redmon (redirection port monitor).
>> I intend to develop a virtual printer so that I can modify data sent
&g
ontains:
>
> import sys
>
> print sys.stdin.readlines()
>
>
> test.txt contains:
>
> Testline1
> Testline2
>
>
> Output of 'python test3.py < test.txt' is:
>
> ['Testline1\n', 'Testline2']
>
>
> Just plain
above statement:
>>> a = 1
>>> b = 1
>>> a is b
True
>>> id(a)
10901000
>>> id(b)
10901000
Is this correct?
Regards
Bernard
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm looking to build a simple mostly email-based trouble ticket system. (I've
yet to find a ready-made python solution that is both simple and well
designed)
Is there a Python email parsing library that can assist in extracting new
content from messages that have been sent in reply
[extracted from pylons-discuss]
> >> I hate to pass the buck, but this is Python's fault for not having
> >> reliable package management built in. There's nothing Pylons can do
> >> about it except switch to another programming language.
> > [SNIP]
>
> Without Setuptools,
> Pylons and TurboGear
Hello,
I've got several versions of code to here to generate a histogram-esque
structure from rows in a CSV file.
The basic approach is to use a Dict as a bucket collection to count instances
of data items.
Other than the try/except(KeyError) idiom for dealing with new bucket names,
which I d
>
> The simplest. That would be #3, cleaned up a bit:
>
> from collections import defaultdict
> from csv import DictReader
> from pprint import pprint
> from operator import itemgetter
>
> def rows(filename):
> infile = open(filename, "rb")
> for row in DictReader(infile):
> yi
Hello,
I'm looking to set up a small private wiki, and am looking for recommendations.
Some sort of CGI based package that I could just untar somewhere web accessable
via Apache would be great.
Any ideas?
Thanks,
:)
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 121 matches
Mail list logo