Neat, thanks!
On Jun 14, 2012, at 5:38 PM, Michael Hrivnak wrote:
import logging
logging.Logger.manager.loggerDict
> {}
logging.getLogger('foo')
>
logging.getLogger('bar')
>
logging.Logger.manager.loggerDict
> {'foo': , 'bar':
> }
>
> Enjoy,
> Michael
>
> On Thu, Jun
Am 13.06.2012 14:49, schrieb Wolfgang Keller:
No matter how cool it may seem to create simple GUIs manually or to
write business letters using LaTeX: just try to persuade people to
move from Word to LaTeX for business letters...
Good example.
I have done nearly exactly this* - but it was only
Am 14.06.2012 23:29, schrieb Grant Edwards:
On 2012-06-14, Dietmar Schwertberger wrote:
Yes, sorry. I posted that too late in the night. The point was that
there's no easy-to-use GUI builder which would allow the casual user
to create a GUI.
I'm not sure I'm in favor of casual users creating
>>> import logging
>>> logging.Logger.manager.loggerDict
{}
>>> logging.getLogger('foo')
>>> logging.getLogger('bar')
>>> logging.Logger.manager.loggerDict
{'foo': , 'bar':
}
Enjoy,
Michael
On Thu, Jun 14, 2012 at 5:03 PM, Roy Smith wrote:
> Is there any way to get a list of all the loggers th
On 2012-06-14, Dietmar Schwertberger wrote:
> Yes, sorry. I posted that too late in the night. The point was that
> there's no easy-to-use GUI builder which would allow the casual user
> to create a GUI.
I'm not sure I'm in favor of casual users creating GUIs.
Have you ever tried to _use_ a pro
Is there any way to get a list of all the loggers that have been
defined? So if somebody has done:
from logging import getLogger
getLogger("foo")
getLogger("foo.bar")
getLogger("baz")
I want something which will give me back ["foo", "foo.bar", "baz"].
--
http://mail.python.org/mailman/listinfo/
Am 14.06.2012 22:06, schrieb Colin Higwell:
On Tue, 12 Jun 2012 00:55:38 +0200, Dietmar Schwertberger wrote:
As long as there's no GUI
builder for Python, most people will stick to Excel / VBA / VB.
No GUI builder for Python? There are plenty.
Yes, sorry. I posted that too late in the night.
On 6/14/2012 12:57 PM Ryan Clough said...
Hello everyone,
Is anyone familiar with a simple way to parse mbox emails in Python?
>>> import mailbox
>>> help(mailbox)
Help on module mailbox:
NAME
mailbox - Read/write support for Maildir, mbox, MH, Babyl, and MMDF
mailboxes.
Emile
I
use
On 6/14/2012 12:27 PM Ben Temperton said...
Hi there,
I am working with mass spectroscopy data in the mzXML format that looks like
this:
...
...
...
...
.
160409990
160442725
160474927
160497386
On Tue, 12 Jun 2012 00:55:38 +0200, Dietmar Schwertberger wrote:
> As long as there's no GUI
> builder for Python, most people will stick to Excel / VBA / VB.
No GUI builder for Python? There are plenty.
I use wxGlade with wxPython and it works beautifully. It writes the code
for the GUI elemen
On Jun 14, 2:25Â pm, Wolfgang Keller wrote:
>
> What is needed for domain specialists are frameworks and related tools
> such as GUI builders that allow them to write exclusively the
> domain-specific code (this is where a domain specialist will always be
> better than any software developer), lay
Hi,
I've just uploaded pypiserver 0.6.0 to the python package index.
pypiserver is a minimal PyPI compatible server. It can be used to serve
a set of packages and eggs to easy_install or pip.
pypiserver is easy to install (i.e. just easy_install pypiserver). It
doesn't have any external dependen
Hello everyone,
Is anyone familiar with a simple way to parse mbox emails in Python? I use
Mail::MBoxParser in perl and it provides a simple way to grab the bodies from
the emails. In my research online, people have suggested searching for lines
starting with "From ", but this doesn't seem r
Hi there,
I am working with mass spectroscopy data in the mzXML format that looks like
this:
...
...
...
...
.
160409990
160442725
160474927
160497386
Where the offset element contains the byte of
andrea crotti writes:
> ...
> The reason is that it has to work on many platforms and without any c module
> installed, the reason of that
Searching for a pure Python solution, you might have a look at "PyXB".
It has not been designed to validate XML instances against XML-Schema
(but to map betw
Danger: Flame ahead!
> I think efforts to make a better, and more definitive, "GUI builder"
> for Python should focus on makigng an easy to use "IDE" for creating
> these kinds of Python-HTMl-Javascript front ends for applications.
The idea of so-called "web applications" is a cerebral flatulance
> object mainwindow=GTK2.Window(GTK2.WindowToplevel);
> mainwindow->set_title("Timing")->set_default_size
> (400,300)->signal_connect("destroy",window_destroy); GTK2.HbuttonBox
> btns=GTK2.HbuttonBox()->set_layout(GTK2.BUTTONBOX_SPREAD); foreach
> (labels,string lbl) btns->add(butto
> > None of these were such that I could propagate it as GUI development
> > tool for non-programmers / casual users.
> > Sure, some are good for designing the GUI, but at the point where
> > the user code is to be added, most people would be lost.
>
> There was a time when that was a highly adver
On Wednesday, November 21, 2007 1:16:55 PM UTC-5, sophie_newbie wrote:
> On Nov 20, 5:36 pm, sophie_newbie
> wrote:
> > Is there any way to do this directly within python?
> >
> > If not is there any other good way to achieve it?
> >
> > Thanks in advance for any help!
>
> I think I've solved th
>>http://blog.tmorris.net/understanding-practical-api-design-static-typing-and-functional-programming/
>
> When I'm satisfied with a program, it has this ethereal property that
> if the problem is slightly altered, the program is only slightly
> altered.
One thing I find with Haskell: the type sys
On Wed, 13 Jun 2012 19:03:29 -0500, Tim Chase
wrote:
>That's just my off-the-top-of-my-head list of things that you'd have
>to come up with that Django happens to give you out-of-the-box.
Thanks much. So the next step will have to find a framework that's
right for a given application.
--
http://
In article <7xwr3fjff8@ruckus.brouhaha.com>,
Paul Rubin wrote:
>Matej Cepl writes:
>> The point is that you are never interested in learning *a language*,
>> everybody who has at least some touch with programming can learn most
>> languages in one session in the afternoon.
>
>Really, that's
2012/6/13 Stefan Behnel
> andrea crotti, 13.06.2012 12:06:
> > Hello Python friends, I have to validate some xml files against some xsd
> > schema files, but I can't use any cool library as libxml unfortunately.
>
> Any reason for that? Because the canonical answer to your question would be
> lxm
On Thu, Jun 14, 2012 at 12:40 AM, Hemanth H.M wrote:
list(literal_eval('"aa","bb 'b'","cc"'))
> ['aa', 'bb ', 'cc']
>
> Strange?
Not really. You didn't properly escape the embedded quotation marks in
the string itself!
So before anything ever even gets passed to literal_eval(), that part
is
@group: Sorry for the mistake.
@Hemanth: Thank You for pointing out.
I just realized that, we should not copy paste from the console. :)
atm
___
Life is short, Live it hard.
On 14 June 2012 13:09, Hemanth H.M wrote:
> @Annop Nice one, but you seem to have missed a parenthesis.
>
> >>> list(l
>>> list(literal_eval('"aa","bb 'b'","cc"'))
['aa', 'bb ', 'cc']
Strange?
On Thu, Jun 14, 2012 at 1:09 PM, Hemanth H.M wrote:
> @Annop Nice one, but you seem to have missed a parenthesis.
>
> >>> list(literal_eval("'aa','bb','cc'") should have been >>>
> list(literal_eval("'aa','bb','cc'"))
>
@Annop Nice one, but you seem to have missed a parenthesis.
>>> list(literal_eval("'aa','bb','cc'") should have been >>>
list(literal_eval("'aa','bb','cc'"))
On Thu, Jun 14, 2012 at 12:58 PM, Anoop Thomas Mathew wrote:
> >>> list(literal_eval("'aa','bb','cc'")
--
*'I am what I am because
Hi,
You can use literal_eval from ast package.
>>> from ast import literal_eval
>>> list(literal_eval("'aa','bb','cc'")
this will return ['aa', 'bb', 'cc']
Thanks,
Anoop Thomas Mathew
atm
___
Life is short, Live it hard.
On 14 June 2012 12:28, Shambhu Rajak wrote:
> This will do you job:
bruce g wrote:
> What is the best way to parse a CSV string to a list?
>
> For example, how do I parse:
> 'AAA,",,",EEE,FFF,GGG'
> to get:
> ['AAA','BBB,CCC,','EEE','FFF','GGG’]
>>> import csv
>>> next(csv.reader(['AAA,",,",EEE,FFF,GGG']))
['AAA', ',,D
This will do you job:
>>> a = 'AAA,",,",EEE,FFF,GGG'
>>> b = []
>>> for x in a.split(','):
... if (x.find("\"") > -1):
... x = x.strip("\"")
... b.append(x)
If you want reduce the lines of code u can go for this option:
b = [x.strip("\"") for x in a.split(',')]
So J
30 matches
Mail list logo