[issue1054967] bdist_deb - Debian packager

2009-05-02 Thread Paul Hummer

Paul Hummer p...@eventuallyanyway.com added the comment:

I've been doing a review of this patch for the last few hours.  There
are a few issues that need to be taken care of in order for it to move
forward, and I'm currently working on them, in this order:

  1. Update the patch to the most recent svn.  The most current patch is
almost 5 years old.  I've ported it forward.
  2. Fix the unittests.  The patch is failing its unittests currently,
and so I'm fixing the unittests, and will be adding tests where there
may not be any coverage.
  3. Implement the suggestions made by alberanid and kbk, adding tests
where necessary.

  I've been chatting with jafo, and am willing to commit to maintaining
this code for the next few years, and am willing to sign the contributor
agreement in order to do so.  I don't particularly want to step on
anyone's toes, so if someone else is also working on this, I'm happy to
hand off what I've already been working on.

--
nosy: +rockstar

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1054967
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Python books?

2007-03-15 Thread Paul Hummer
Alex Martelli wrote:
 BartlebyScrivener [EMAIL PROTECTED] wrote:

   
 On Mar 14, 3:50 pm, [EMAIL PROTECTED] (Aahz) wrote:

 
 Some people prefer shorter books -- Python for Dummies (for new
 programmers) and Python in a Nutshell (for experienced programmers) both
 try to give a thorough survey of Python while keeping the book easy to
 carry.
   

 Not for me to comment about my own books, but I can second your
 recommendation for your for Dummies for beginners.

   
 And other people like lots of examples and code organized around
 practical projects a person might like to accomplish using Python. The
 Python Cookbook 2nd edition is great for this, and Martelli et al are
 great writers, as well as great programmers.
 

 If you like _substantial_ examples, rather than the simple/short ones
 typically used in manageable-sized books, Hetland's Practical Python
 was also a great buy (I believe it's now been replaced by Beginning
 Python by the same author, but unfortunately I haven't seen that one).

 In general I dislike books that try to teach a language (or other
 technology) via substantial examples, because the issues with the
 examples may obscure those with the language or technology; e.g.,
 Stroustrup tries that route in The C++ Programming Language, as Lutz
 does in Programming Python, and to my taste the results are inferior.

 However, at least in Practical Python (can't speak for Beginning
 Python), Hetland managed to pull it off -- perhaps by placing the
 substantial programs he develops as successive examples in a clever
 sequence, so that at each step he's not dealing with many diverse new
 issues but just manageably few of them.


 Alex
   
I'll vouch for Beginning Python  This was my first Python book, and it
taught me everything I needed to get started.  I still refer to it from
time to time.  After I graduated from that, I started reading Python
Network Programming, the next book in that Apress series.

Paul
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: help developing an editor to view openoffice files.

2007-03-13 Thread Paul Hummer
krishnakant Mane wrote:
 hello,
 well what I exactly need to do is firstly have a way to read .odt and
 .ods files.
 I have a lot of information in open office format which I need to access.
 The most important thing is that I completely want to avoid the use of
 microsoft office.
 so I need to firstly get access to open office documents through a
 python module that can read and parse those documents and may be
 convert it to html and display in some kind of an html/ text area may
 be wxpython can help?
 secondly I want to edit those documents may be in html format and then
 when I say sayve it should save the changes back to .odt with the
 formatting information.
 can this be made possible?
 thanks and regards,
 Krishnakant.
   
I actually just read this in the O'Reilly book Python Cookbook, so I
know this answer off the top of my head.  OpenOffice files are merely
zip files with well documented XML inside.  Use the builtin zip module
to open them, and then it's just XML parsing.  As far as the editor,
you'll have to familiarize yourself with the XML data from the
documentation, and it sounds like that's quite a project.

Just out of curiosity, why not just download OpenOffice?

Paul
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question

2007-02-12 Thread Paul Hummer
Stef Mientki wrote:
 Oh I forgot that, ...
 ... in Delphi you don't have to choose ;-)

Dang it!  I hate it when they give me choices like that!

Paul
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Hacking in python

2007-02-10 Thread Paul Hummer
enes naci wrote:
 i would like to know about hacking in python too whether its illegal  
 or not is not the point and anyway it doesn't mean i'm gong to use it.

   
Does your mom know you're using her computer to take down the
government?  I'm gonna tell on you!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: wxPython libraries never detected

2007-02-10 Thread Paul Hummer
[EMAIL PROTECTED] wrote:
 Hi, I recently started coding with Python and I've been trying for the
 past hour or so to determine why, every time I import wx (or compile
 another piece of code that imports wx), Python can never find the
 libraries.

 I'm running Ubuntu Edgy 6.10, and, as per 
 http://www.wxpython.org/download.php#sources,
 updated sources.list with the sources and installed python-wxgtk2.8,
 python-wxtools and wx2.8-i18n. I compiled the latest Python (as of
 writing), 2.5, from source.

 For example, SPE tells me that I need to install at least wxPython v.
 2.5.4.1 to run SPE and any code that relies on import wx reports
 ImportError: No module named wx. However, whereis wx on the
 command line reports wx: /usr/lib/wx /usr/local/lib/wx /usr/include/
 wx. What could be wrong here? I can't figure out why wx isn't being
 detected.

 Many thanks.

   
Doing a `whereis wx` won't tell you about the python library
installation.  I'm using Ubuntu Edgy, with Python 2.4 installed (from
apt), and wx-2.6.  I can find the libraries in
/usr/lib/python2.4/wx-2.6-gtk-unicode/  Check to see if you have wx
installed in /usr/lib/python2.5
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: help with subscription to a process

2007-01-26 Thread Paul Hummer
The Python socket module, although lightweight, can be used to quickly
establish a socket between client and server for the purpose of feeding
data.  I've done this once or twice with XML.  If you are looking for
something a bit more robust, might I suggest reading up on the Twisted
libraries?

Paul

[EMAIL PROTECTED] wrote:
 Hi

 I am new to python and hence need some help

 i have a process A that posts events as XML docs.
 I need to create a listener to this process that subscribes to the
 process A and as and when a XML doc is posted parse it.
 I have creted an interface where if I specify the port number on which
 the listener is running the process A will automatically start posting
 events.

 The place I need help is to create a listener and a way of parsing the
 XML docs. If you can give me some starting points or docs/resources
 that will be great..

 Thanks

   

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Paul Hummer
How about restructuring your function like this:

def some_function( z,y ):
  z = 2
  y[2] = 'global ?'
  return z

And then you'll have to react to the returning variable, like this in
your code:

x = 5
y = [1,2,3,4]
print x,y
print some_function( x, y )
print x,y

Now, it appears like you want some_function() to change x and y.  It
doesn't really work that way.  You'd have to either pass the variables
by reference into the function, or overwrite the existing values with
whatever the function returns.  That might be beyond your scope now though.

Keep plugging, and welcome to Python!

Stef Mientki wrote:
 I want to return a simple variable from a function,
 not using the function result.
 Is that in any way possible ??

 The code below is from O'Reilly, Learning Python,
 and there seems no way
 to return a simple var like z in the example below.
 Is that true ?

 thanks,
 Stef Mientki

 Python
 def some_function (z, y):
z = 2
y[2] = 'global ?'


 x = 5
 y = [1,2,3,4]
 print x,y
 some_function(x,y)
 print x,y
 /Python
   

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Anyone persuaded by merits of Lisp vs Python?

2006-12-28 Thread Paul Hummer
I am rather annoyed at the apples vs. oranges arguments I frequently
see on Reddit and the like.  I picked up python last summer after going
through a very messy breakup (it seemed like a good thing to do with all
the alone time).  Anyway, ever since I started writing python, I've been
bugged by a apples vs. oranges coworker to learn Lisp, because they
are very similar.  So at the beginning of this thread, I was reminded
that I should go check it out.

That's all it did for me.  It reminded me to do something I was planning
on doing myself anyway.  Lisp vs. Python?  How 'bout Haskell vs. Java,
PBASIC vs. C++, and while we're at it, SmallTalk vs. Assembler!
 This month there was/is a 1000+ long thread called:
  merits of Lisp vs Python
 In comp.lang.lisp.
snip

 I use both. And Java, and C++ too. Can one really survive knowing just
 one language these days, anyway? 

 

I agree with this entirely.  I started learning PBASIC to work with a
microcontroller.  I learned Java for portability.  I learned PHP for
ease of web application development (I've been largely unimpressed with
the python frameworks...but it's also lack of experience).  I use python
for utilities I need, and Lisp is great for some of the functional needs
I have (see Mosquito-Lisp and the MOSREF project), and I can see use in
it.  But how many web applications have you seen written in Assembler? 
How many OS kernels written in Lisp?

I bought my girlfriend an art desk for Christmas.  I didn't use a
freakin' hammer to drive the screws.  Wrong tool for the job.  Each
language has its ups and downs.  Call me the Martin Luther King of
programming languages, but I have a dream.  We can no sooner say one
language is better than another than say white people are superior to
black people.  We're equal in our own respects.

Paul
-- 
http://mail.python.org/mailman/listinfo/python-list