On Dec 7, 7:09 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> How many days in a year? 365.25 (J2000 epoch), 365.2422 [as I
> recall](B1900 epoch), 365.0 (non-leap year), 366 (leap year)? Gregorian
> or Julian calendar -- and depending upon one's country, the Gregorian
> reform may tak
On Dec 7, 9:52 pm, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a wxNoteBook with a bunch of wxPanels attached to it as pages.
> Every page has its own GUI items.
> What Im trying to do is on a certain page, a certain GUI (wxTextCtrl) to
> be resized every time the notebook or panel is resi
Hi,
With properties, attributes and methods seem very similar. I was
wondering what techniques people use to give clues to end users as to
which 'things' are methods and which are attributes. With ipython, I
use tab completion all the time, but I can rarely tell from the names
alone whether it i
On Dec 8, 12:20 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "MonkeeSage" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> | 1.) What is the benefit of doing a two phase compilation (parsing/
> | compiling), rather than a single, joint parse + compile phase (as in
> | interactive
On Dec 7, 11:08 pm, Steve Howell <[EMAIL PROTECTED]> wrote:
> Python is my favorite programming language. I've used
> it as my primary language for about six years now,
> including four years of using it full-time in my day
> job. Three months ago I decided to take a position
> with a team that d
On Dec 7, 4:08 pm, "Joe Goldthwaite" <[EMAIL PROTECTED]> wrote:
> Here's the simple benchmark;
>
> start = time.time()
> for x in xrange(3):
> for y in xrange(1000):
> pass
> print 'xRange %s' % (time.time() - start)
>
> start = time.time()
> for x in range(3):
>
"MonkeeSage" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| 1.) What is the benefit of doing a two phase compilation (parsing/
| compiling), rather than a single, joint parse + compile phase (as in
| interactive mode)?
As far as I know (without looking at the code), there is no di
xkenneth wrote:
> Message should have read:
> Hi All,
>
> I'll shortly be distributing a number of python applications that
> use proprietary source code. The software is part of a much larger
> system and it
> will need to be distributed securely. How can i achieve this?
You need to define
Python is my favorite programming language. I've used
it as my primary language for about six years now,
including four years of using it full-time in my day
job. Three months ago I decided to take a position
with a team that does a lot of things very well, but
they don't use Python. We use Ruby
On Dec 7, 4:29 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "MonkeeSage" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> |A quick question about how python parses a file into compiled
> | bytecode. Does it parse the whole file into AST first and then compile
> | the AST, or does
Hi Jay,
I'm not *that* familiar with the Terminal program on OS/X, but regardless
perhaps I can point out a possibly useful path to explore...
With terminal programs generally -- especially more in the past, as then they
were much more about emulating "real" terminals -- a lot of the terminal
pro
So for example one could:
1. Put all the compiled Python bytecode in an encrypted binary file.
2. Build a small binary executable (.exe file) that:
2a. Reads the binary file.
2b. Decrypts it to conventional Python byte code.
2c. Embeds a Python interpreter.
2d. Executes the byte
On 7 Des, 23:37, xkenneth <[EMAIL PROTECTED]> wrote:
> I'll shortly be distributing a number of python applications that
> use proprietary. The software is part of a much larger system and it
> will need to be distributed securely. How can i achieve this?
If you provide the application as a
>90+ seconds?? What hardware, OS, and Python version? What else was
>running in the background?
>With this kit:
>OS Name: Microsoft Windows XP Professional
>Version: 5.1.2600 Service Pack 2 Build 2600
>Processor: x86 Family 15 Model 36 Stepping 2 AuthenticAMD ~1995 Mhz
>Python: Pyt
On Fri, 2007-12-07 at 03:31 -0800, [EMAIL PROTECTED] wrote:
> Hello everyone,
>
> I have written this small utility function for transforming legacy
> file to Python dict:
>
>
> def lookupdmo(domain):
> lines = open('/etc/virtual/domainowners','r').readlines()
> lines = [ [y.ls
Hi,
I have a wxNoteBook with a bunch of wxPanels attached to it as pages.
Every page has its own GUI items.
What Im trying to do is on a certain page, a certain GUI (wxTextCtrl) to
be resized every time the notebook or panel is resized. But everything
else stays the same.
Now I know I can use si
Hi Greg,
Thanks for your fast reply. I apologize for my ignorance
with unicode, but would you mind sharing an example of
your experiment?
Again, thanks for your help with this!
Jay
> I don't think you can control the font, but you can print
> out the Greek text as utf8-encoded unicode. I jus
[EMAIL PROTECTED] wrote:
> Is it possible for the next answer that Python returns in the
> Terminal Window to be displayed in the 'Symbols' font so that the
> Greek text is displayed correctly?
I don't think you can control the font, but you can print
out the Greek text as utf8-encoded unicode.
This is probably a silly question, but alas, I'll ask it anyway...
Is it possible with Python, to change the font of the text returned in the
Terminal Window in OS X? For example, lets say I'm running a Python program in
Terminal, and it asks me "Please enter an English word to be changed to
G
Oops! This was meant to go to the pygtk list. Mixup on my part, sorry.
Not that I would lament comments from the general python crowd, though. ;)
/W
Wildemar Wildenburger wrote:
> John Ehresman wrote:
>> I may be wrong here, but I suspect TextView does not support
>> rectangular selections. I
John Ehresman wrote:
> I may be wrong here, but I suspect TextView does not support
> rectangular selections. I haven't seen mention of rectangular
> selections when I've worked with it and a quick google search seems to
> confirm this.
>
That is my experience too; I was hoping that there might
Message should have read:
Hi All,
I'll shortly be distributing a number of python applications that
use proprietary source code. The software is part of a much larger
system and it
will need to be distributed securely. How can i achieve this?
Regards,
Ken
--
http://mail.python.org/mailman/l
>> Here's what I get;
>>
>> xRange 92.552733
>> Range 95.266599
>
> Try tracking your memory usage during the benchmark and
> it will become very clear why xrange exists.
Or, when memory-constrained and this extra memory usage pushes
your machine to pound on your swap...not a pretty sight
Jeffrey Froman wrote:
> While recently
> considering whether to re-write a standalone mod_python application as CGI
> or WSGI, I was scared off by this paragraph from PEP333:
As a followup, I did go ahead and convert my CGI handler to WSGI, and doing
so was not difficult at all. The steps were b
Hi All,
I'll shortly be distributing a number of python applications that
use proprietary. The software is part of a much larger system and it
will need to be distributed securely. How can i achieve this?
Regards,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 07 Dec 2007 09:37:22 +0100, Lars Johansen wrote:
> I have a function that looks like this:
>
> def Chooser(color):
>
> if color == "RED":
> x = term.RED
[snip]
> Wouldn there been easier if I could just skip all the "*if's" and just
> "return term.color", however
"MonkeeSage" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|A quick question about how python parses a file into compiled
| bytecode. Does it parse the whole file into AST first and then compile
| the AST, or does it build and compile the AST on the fly as it reads
| expressions? (I
Terry Reedy wrote:
> "Maric Michaud" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> |I faced a strange behavior with generator expression, which seems like a
> bug, for both
> | python 2.4 and 2.5 :
>
> Including the latest release (2.5.2)?
>
> | >>> class A :
> | ... a = 1
On Dec 8, 8:08 am, "Joe Goldthwaite" <[EMAIL PROTECTED]> wrote:
> Here's the simple benchmark;
>
> start = time.time()
> for x in xrange(3):
> for y in xrange(1000):
> pass
> print 'xRange %s' % (time.time() - start)
>
> start = time.time()
> for x in range(3):
>
On Dec 7, 3:08 pm, "Joe Goldthwaite" <[EMAIL PROTECTED]> wrote:
> Here's the simple benchmark;
>
> start = time.time()
> for x in xrange(3):
> for y in xrange(1000):
> pass
> print 'xRange %s' % (time.time() - start)
>
> start = time.time()
> for x in range(3):
>
On Dec 7, 9:10 pm, farsheed <[EMAIL PROTECTED]> wrote:
> I,m searching for a way to obtain hostid in windows.
> Any ideas?
IIRC, MArk Hammond's extensions for windows have a method for
obtaining the fully qualified hostname of a machine.
Kev
--
http://mail.python.org/mailman/listinfo/python-li
On Dec 7, 2007 3:08 PM, Joe Goldthwaite <[EMAIL PROTECTED]> wrote:
> Here's the simple benchmark;
>
> start = time.time()
> for x in xrange(3):
> for y in xrange(1000):
> pass
> print 'xRange %s' % (time.time() - start)
>
> start = time.time()
> for x in range(3):
>
"Martin v. Löwis":
> Not a command line option. However, you can wrap sys.stdout with a
> stream that automatically performs an encoding. If all your print
> statements output Unicode strings, you can do
>
> sys.stdout = codecs.getwriter("utf-8")(sys.stdout)
It is the best solution for me.
Thanks.
On Fri, 07 Dec 2007 11:56:14 +0100, Bruno Desthuilliers wrote:
> Also, modifying a sequence in place while iterating over it is a *very*
> bad idea.
That's somewhat of an exaggeration, surely. Some sorts of modifications
are more error-prone than others, and deserves your warning e.g.
inserting
On Dec 8, 12:20 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> Hello,
>
> From a zone-file of a Microsoft Active Directory integrated DNS server
> I get the date/time of the dynamic update entries in a format, which
> is as far as I know the hours since january 1st 1901.
As Tim Golden has guessed,
#!/usr/bin/python
"""
EXAMPLE USAGE OF PYTHON'S CSV.DICTREADER FOR PEOPLE NEW TO PYTHON
Python - Batteries Included(tm)
This file will demonstrate that when you use the python CSV module, you
don't have to remove the newline characters, as between "acorp_ Ac" and
"orp Foundation" and other parts
Here's the simple benchmark;
start = time.time()
for x in xrange(3):
for y in xrange(1000):
pass
print 'xRange %s' % (time.time() - start)
start = time.time()
for x in range(3):
for y in range(1000):
pass
print 'Range %s' % (time.time() - st
On Dec 7, 9:59 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> On 7 Dez., 16:50, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On 7 Dez., 16:21, Tim Golden <[EMAIL PROTECTED]> wrote:
>
> > > [EMAIL PROTECTED] wrote:
> > > > On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> > > >
I,m searching for a way to obtain hostid in windows.
Any ideas?
--
http://mail.python.org/mailman/listinfo/python-list
"Maric Michaud" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|I faced a strange behavior with generator expression, which seems like a
bug, for both
| python 2.4 and 2.5 :
Including the latest release (2.5.2)?
| >>> class A :
| ... a = 1, 2, 3
| ... b = 1, 2, 3
| ...
Dear all,
The urllib.urlretrieve() can only download the text part of a webpage, not the
image associated. How can I download the whole, complete webpage with python?
Thanks!
Yi
Looking for last m
On Dec 7, 5:03 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
> On Dec 7, 9:50 am, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 7, 3:23 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
>
> > > A quick question about how python parses a file into compiled
> > > bytecode. Does it parse the whole file
MonkeeSage wrote:
> A quick question about how python parses a file into compiled
> bytecode. Does it parse the whole file into AST first and then compile
> the AST, or does it build and compile the AST on the fly as it reads
> expressions? (If the former case, why can't functions be called before
On Dec 6, 6:35 pm, evenrik <[EMAIL PROTECTED]> wrote:
> An a redhat box I have root, apache and other normal users run code
> that uses theloggingmodule to write to the same log file. Since
> umasks are set to 2 or 022 this gets permission errors.
>
> I have fixed my issue by patching theloggingco
Friday 07 December 2007 22:06:23 tarihinde Victor Subervi şunları yazmıştı:
> Hi;
> I'm trying to fill in a Zope form automatically. I have this script, which
> works great for creating the page...but how do I write to it?
Use Mechanize [0].
[0] http://wwwsearch.sourceforge.net/mechanize/
--
Ne
People:
Well, after my hosting allowing CGI, I now improved *a lot* the
interface of this page.
Now you have more columns:
- Id
- Summary
- Priority
- Severity
- Components
- Versions
- Keywords
- Opened by (when)
- Temporal location
- Last update by (when)
And, the biggest enhancement, you can
I'm using to using Pod::Usage in my Perl programs (a snipped example
is shown below, if you're interested) to generate a little man page
when they are called with the -h option.
Is there an equivalent in Python?
Thanks,
Adam
##
use Pod::Usage;
getopts("ha:b:c", \%option) ;
if ($optio
Hi;
I'm trying to fill in a Zope form automatically. I have this script, which
works great for creating the page...but how do I write to it?
import urllib2
theurl = 'example.com'
protocol = 'http://'
my_id = "test"
text = "Hello, world!"
realm_dir = '/a_dir/'
realm1 = 'manage_addProduct/PageTempl
Leo 4.4.5 beta 2 is available at:
http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106
This beta 2 release fixes several recently reported bugs. A final release
is due in about a week.
Leo is a text editor, data organizer, project manager and much more. See:
http://webpage
Duncan Booth wrote:
>for item in list:
>if item == 'searched.domain':
>return item...
[EMAIL PROTECTED] wrote:
>Sure, but I have two options here, none of them nice: either "write C
>in Python" or do it inefficient and still elaborate way.
I don't understand your point at all. How
On Dec 7, 2007 6:31 AM, waltbrad <[EMAIL PROTECTED]> wrote:
> Hello. Been studying Python for about a week now. I did a quick read
> of the tutorial in the manual and I'm reading Programming Python by
> Mark Lutz. I'm still getting used to the Python syntax, but I'm able
> to pretty much follow w
Who is Jesus?
Without a doubt, you have often heard the claim that Jesus is God, the
second person in the "Holy trinity." However, the very Bible which is
used as a basis for knowledge about Jesus and as the basis for
doctrine within Christianity clearly belies this claim. We urge you to
consult y
Dirk Hagemann wrote:
> (3566839/24)/365 = 407 - YES I did this calculation too and was
> surprised. But if you try this out in MS Excel:
> ="01.01.1901"+(A1/24-(REST(A1;24)/24))+ZEIT(REST(A1;24);0;0) (put
> 3566839 in field A1 and switch the format of the result-fieldby right-
> click on it to
A new alpha of Python 3000 was released a few minutes ago!
http://www.python.org/download/releases/3.0/
Have fun and don't forget to report bugs at http://bugs.python.org/
Christian
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
Dirk Hagemann <[EMAIL PROTECTED]> wrote:
>> Dirk
> Additional to my last posting: if you want to try this out in
> Excel you should replace the command "REST" by the english
> command what should be something like "remainder".
The equivalent in my (U.S. English, 2000) version of excel is called
On 7 Dic, 10:42, loial <[EMAIL PROTECTED]> wrote:
> Trying to use ftplib.FTP.nlst() method to list the files in
> a directory on a FTP server.
>
> It works fine except when there are no files in the directory. Then it
> gives the error
>
> ftplib.error_perm: 550 No files found.
>
> How can I handl
Glauco wrote:
> cache = None
>
> def lookup( domain ):
> if not cache:
>cache = dict( [map( lambda x: x.strip(), x.split(':')) for x in
> open('/etc/virtual/domainowners','r').readlines()])
> return cache.get(domain)
Neat solution! It just needs small correction for empty or ba
Just a reminder that there's only one week left for the Open Source
Symposium Call For Participation! http://www.texasoss.org/cfp (Deadline is
December 15th)
If you've been considering submitting, but aren't sure, I encourage you to
go ahead and submit! I know several of you present at your user
david ha scritto:
> On Fri, 07 Dec 2007 16:46:56 +0100, Glauco wrote:
>
>> [EMAIL PROTECTED] ha scritto:
>>> Hello everyone,
>>>
>>> I have written this small utility function for transforming legacy file
>>> to Python dict:
>>>
>>>
>>> def lookupdmo(domain):
>>> lines = open('/etc/virtual
On Dec 6, 2:51 pm, Spes <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have this simple code:
> | #!/usr/bin/python
> | import codecs
> | import re
> | from copy import deepcopy
> |
> | class MyClass(object):
> | def __del__(self):
> | deepcopy(1)
> |
> | x=MyClass()
>
> but I get an error:
> | Excep
On Dec 7, 2007 10:39 AM, paul <[EMAIL PROTECTED]> wrote:
> Chris Mellon schrieb:
> > On Dec 6, 2007 5:52 AM, paul <[EMAIL PROTECTED]> wrote:
>
> >> function or method. I hope type annotations in py3k will allow for
> >> something like constraints in C# where you can tell the caller right
> >> away
On Dec 6, 8:21 pm, Kelie <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> If I need store and use a couple thousand of people's contact info:
> first name, last name, phone, fax, email, address, etc. I'm thinking
> of using either sqlite or xml. Which one is better? My understanding
> is if there is l
On Dec 7, 9:03 am, MonkeeSage <[EMAIL PROTECTED]> wrote:
> On Dec 7, 9:50 am, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 7, 3:23 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
>
> > > A quick question about how python parses a file into compiled
> > > bytecode. Does it parse the whole file
I faced a strange behavior with generator expression, which seems like a bug,
for both
python 2.4 and 2.5 :
>>> class A :
... a = 1, 2, 3
... b = 1, 2, 3
... C = list((e,f) for e in a for f in b)
...
Traceback (most recent call last):
File "", line 1, in
File "", line 4, in A
On Nov 30, 7:55 am, Donn Ingle <[EMAIL PROTECTED]> wrote:
> Hi,
> Okay, so I am in the mood to try this: Inform the user about what modules
> the app requires in a graphical dialogue that can vary depending on what
> the system already has installed. (It will fail-to output on cli)
>
> I am runnin
Chris Mellon schrieb:
> On Dec 6, 2007 5:52 AM, paul <[EMAIL PROTECTED]> wrote:
>> function or method. I hope type annotations in py3k will allow for
>> something like constraints in C# where you can tell the caller right
>> away she's doing something wrong.
>>
[language rant snipped]
> On a more
On Dec 6, 9:51 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Aaron Watters" <[EMAIL PROTECTED]> wrote in message
> The current version of list.sort (timsort) was designed to take advantage
> of pre-existing order. It should discover the 2 sorted sublists and merge
> them together. It will not r
On Dec 7, 9:36 am, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-12-07, Carl Banks <[EMAIL PROTECTED]> wrote:
>
> > On Dec 6, 11:56 am, "Kurt Smith" <[EMAIL PROTECTED]> wrote:
> >> It would seem that there are cases where one would be
> >> preferable over the other: a) when the new behavior wou
On Fri, 07 Dec 2007 16:46:56 +0100, Glauco wrote:
> [EMAIL PROTECTED] ha scritto:
>> Hello everyone,
>>
>> I have written this small utility function for transforming legacy file
>> to Python dict:
>>
>>
>> def lookupdmo(domain):
>> lines = open('/etc/virtual/domainowners','r').readline
> "Duncan" == Duncan Booth <[EMAIL PROTECTED]> writes:
Duncan> Terry Jones <[EMAIL PROTECTED]> wrote:
>> Duncan Booth wrote:
Duncan> You'll kick yourself for not seeing it.
Duncan> If you changed fn_inner to:
Duncan> def fn_inner():
Duncan> a, v = v, a
Duncan> then you also changed 'a' and '
On 2007-12-07, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Neil Cerutti <[EMAIL PROTECTED]> wrote:
>
>> On 2007-12-07, Duncan Booth <[EMAIL PROTECTED]> wrote:
>>> from __future__ import with_statement
>>>
>>> def loaddomainowners(domain):
>>> with open('/etc/virtual/domainowners','r') as infile:
On Sun, 02 Dec 2007 17:18:45 +0200, Donn Ingle <[EMAIL PROTECTED]> wrote:
>> But why? Either
>>
>> (a) your program has a GUI and can display a dialogue box by itself
>> (b) your program has a GUI but has problems opening even a tiny part
>> of it (missing modules?), and should output diagnostics
If we use minutes from 2001, then 3566839 comes out as sometime in
October, 2007 (6.78622 years). Close but no cigar. Is anyone familar
enough with Excel to translate the formula or do we have to go a-
googling?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 7, 9:50 am, Kay Schluehr <[EMAIL PROTECTED]> wrote:
> On Dec 7, 3:23 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
>
> > A quick question about how python parses a file into compiled
> > bytecode. Does it parse the whole file into AST first and then compile
> > the AST, or does it build and comp
On 7 Dez., 16:50, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> On 7 Dez., 16:21, Tim Golden <[EMAIL PROTECTED]> wrote:
>
>
>
> > [EMAIL PROTECTED] wrote:
> > > On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> > >> Hello,
>
> > >> From a zone-file of a Microsoft Active Directory integrate
On 7 Dez., 16:50, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> On 7 Dez., 16:21, Tim Golden <[EMAIL PROTECTED]> wrote:
>
>
>
> > [EMAIL PROTECTED] wrote:
> > > On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> > >> Hello,
>
> > >> From a zone-file of a Microsoft Active Directory integrate
On Dec 7, 3:23 pm, MonkeeSage <[EMAIL PROTECTED]> wrote:
> A quick question about how python parses a file into compiled
> bytecode. Does it parse the whole file into AST first and then compile
> the AST, or does it build and compile the AST on the fly as it reads
> expressions? (If the former case
On 7 Dez., 16:21, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> >> Hello,
>
> >> From a zone-file of a Microsoft Active Directory integrated DNS server
> >> I get the date/time of the dynamic update entries in a fo
Hi all,
I have a python module (M) with the following structure
M (directory)
| __init__.py (class Base(object) ...)
| - a.py (class A(Base) ...)
| - b.py (class B(Base) ...)
| - c.py (class C(Base) ...)
The __init_.py has a class which all the sub-modu
[EMAIL PROTECTED] ha scritto:
> Hello everyone,
>
> I have written this small utility function for transforming legacy
> file to Python dict:
>
>
> def lookupdmo(domain):
> lines = open('/etc/virtual/domainowners','r').readlines()
> lines = [ [y.lstrip().rstrip() for y in x.split
Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-12-07, Duncan Booth <[EMAIL PROTECTED]> wrote:
>> from __future__ import with_statement
>>
>> def loaddomainowners(domain):
>> with open('/etc/virtual/domainowners','r') as infile:
>
> I've been thinking I have to use contextlib.closing for
>
Neal Becker <[EMAIL PROTECTED]> wrote:
>I've looked at configparse, cfgparse, iniparse.
>
>configparse looks like what I want, but it seems last commit was >2years
>ago.
>
>What is the best choice?
ConfigParser is the battery included in the standard library. If
you're planning on distributing yo
On 7 Dec, 13:20, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> Hello,
>
> From a zone-file of a Microsoft Active Directory integrated DNS server
> I get the date/time of the dynamic update entries in a format, which
> is as far as I know the hours since january 1st 1901.
> For Example: the number 3566
On Dec 7, 9:10 am, Tim Golden <[EMAIL PROTECTED]> wrote:
> Spindle wrote:
> > I checked the key,and it was found under HKEY_CLASSES_ROOT.And as i
> > mentioned before,
> > the problem happens only with eclipse and pydev,on the same machine i
> > can run the script from command line or with IDLE wit
[EMAIL PROTECTED] wrote:
> On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> From a zone-file of a Microsoft Active Directory integrated DNS server
>> I get the date/time of the dynamic update entries in a format, which
>> is as far as I know the hours since january 1st 19
> i've received for my birthday two usb key, and i had the idea to make
> the 2GB one a special python usb key.
> So far i've put on it :
> Movable Python
> My Python directory
> Iron Python
> Jython
> Instant django
>
> the file installation for :
> Python , iron python , jython , PIL , Pygame ,
On Dec 7, 8:15 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> On 7 Dez., 14:34, supercooper <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 7, 7:20 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > From a zone-file of a Microsoft Active Directory integrated DNS server
> > > I get the
Spindle wrote:
> I checked the key,and it was found under HKEY_CLASSES_ROOT.And as i
> mentioned before,
> the problem happens only with eclipse and pydev,on the same machine i
> can run the script from command line or with IDLE without any errors.
Well, that's bizarre then. Hopefully someone else
On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> Hello,
>
> From a zone-file of a Microsoft Active Directory integrated DNS server
> I get the date/time of the dynamic update entries in a format, which
> is as far as I know the hours since january 1st 1901.
Your guess appears to be of
On 7 Aralık, 15:59, Tim Golden <[EMAIL PROTECTED]> wrote:
> gurkan wrote:
> > i have treid the script :
>
> > #import active_directory
> > import win32com.client
>
> > win32com.client.Dispatch ("ADODB.Command")
> > #me = active_directory.find_user ()
>
> > #print me
>
> > again i got the error :
>
On Dec 7, 3:59 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> gurkan wrote:
> > i have treid the script :
>
> > #import active_directory
> > import win32com.client
>
> > win32com.client.Dispatch ("ADODB.Command")
> > #me = active_directory.find_user ()
>
> > #print me
>
> > again i got the error :
>
>
Hi,
i've received for my birthday two usb key, and i had the idea to make
the 2GB one a special python usb key.
So far i've put on it :
Movable Python
My Python directory
Iron Python
Jython
Instant django
the file installation for :
Python , iron python , jython , PIL , Pygame , Pywin32
The pdf i
On Dec 6, 9:21 am, Sumit <[EMAIL PROTECTED]> wrote:
> Hi ,
>I am trying to splitt a Line whihc is below of format ,
>
> AzAccept PLYSSTM01 [23/Sep/2005:16:14:28 -0500] "162.44.245.32 CN=
> cojack (890),OU=1,OU=Customers,OU=ISM-Users,OU=kkk
> Secure,DC=customer,DC=rxcorp,DC=com" "pl
On 2007-12-07, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Dec 6, 11:56 am, "Kurt Smith" <[EMAIL PROTECTED]> wrote:
>> It would seem that there are cases where one would be
>> preferable over the other: a) when the new behavior would
>> modify a large portion of the existing subclass, making a new
>
On 2007-12-07, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
>>
>>> The csv module is your friend.
>>
>> (slapping forehead) why the Holy Grail didn't I think about this?
>
> If that can make you feel better, a few years ago, I spent two
> days writing my own (Squa
On 2007-12-07, Duncan Booth <[EMAIL PROTECTED]> wrote:
> from __future__ import with_statement
>
> def loaddomainowners(domain):
> with open('/etc/virtual/domainowners','r') as infile:
I've been thinking I have to use contextlib.closing for
auto-closing files. Is that not so?
--
Neil Cerutti
A quick question about how python parses a file into compiled
bytecode. Does it parse the whole file into AST first and then compile
the AST, or does it build and compile the AST on the fly as it reads
expressions? (If the former case, why can't functions be called before
their definitions?)
Thank
On 7 Dez., 14:34, supercooper <[EMAIL PROTECTED]> wrote:
> On Dec 7, 7:20 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > From a zone-file of a Microsoft Active Directory integrated DNS server
> > I get the date/time of the dynamic update entries in a format, which
> > is as far
> >>> def shelper(line):
> ... return x.replace(' ','').strip('\n').split(':',1)
Argh, typo, should be def shelper(x) of course.
--
http://mail.python.org/mailman/listinfo/python-list
gurkan wrote:
> i have treid the script :
>
> #import active_directory
> import win32com.client
>
> win32com.client.Dispatch ("ADODB.Command")
> #me = active_directory.find_user ()
>
> #print me
>
> again i got the error :
>
> Traceback (most recent call last):
> File "H:\dev\eclipse\workspa
1 - 100 of 162 matches
Mail list logo