Anupam Kapoor wrote:
> is there a way to continue naming python sources as above, and still
> use it as python modules ? i can ofcourse change the name to
> 'a_simple_python_example.py', which then works.
Something like
a_simple_python_example = __import__('a-simple-python-example')
--
Hello Dan,
>I am trying to head in a binary file that has a header and different
>character types. The array module apparently expects the typecode to
>be the same throughout. Here's what the file looks like:
>
>Byte number:type: value: purpose:
>1-4 char
Peter Hansen wrote:
> Michael Hoffman wrote:
>
>> Reinhold Birkenfeld wrote:
>>
>>> Tony Meyer wrote:
>>>
Do people really like using __div__ to mean join?
>>>
>>>
>>> I'm not too happy with it, too, but do we have alternatives? ...
>>> Of course, one can use joinwith() if he doesn't like '
hi all,
a python n00b, so please bear with me. i have a simple question:
i generally name python sources as a-simple-python-example.py. when i
try to import a module named as above, i (obviously) get tracebacks
from python interpreter.
is there a way to continue naming python sources as above, a
Donn Cave wrote:
> In article <[EMAIL PROTECTED]>,
> "Dr. Who" <[EMAIL PROTECTED]> wrote:
> > So here it is: handle unbuffered output from a child process.
>
> Your Perl program works the same for me, on MacOS X,
> as your Python program. That's what we would expect,
> of course, because the prob
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm looking for a library that can search through an XML document tree,
> locate an element by attribute (ideally this can be done through
> XPath), and insert an element (as its child).
Try lxml:
http://codespeak.net/lxml/
In [25]: from lxml import etree
Hi,
I'm looking for a library that can search through an XML document tree,
locate an element by attribute (ideally this can be done through
XPath), and insert an element (as its child).
Simple? Yes? ...but the code I've seen so far which does this uses
'nested for loops' for trees which are rela
Hi,
What is the safest manner to extend search path for modules, minimizing
the likelihood of shooting oneself in the foot?
The system (which includes scripts and their shared modules) may be
checked out in several different locations, but a script in a
particular checked-out version of the syste
Tue, Jul 26, 2005 at 01:41:36PM +1000, Steven D'Aprano пишет:
> Long ago, when dinosaurs roamed the Earth, (a.k.a.
> "before OS X on the Macintosh") Apple suggested a bit
> of Pascal code for safely updating a file:
>
> http://developer.apple.com/documentation/mac/Files/Files-25.html#MARKER-9-16
Thanks a lot for all the answers!!
Soeren
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 2005-07-24 at 11:50 -0700, Robert Kern wrote:
> Soeren Sonnenburg wrote:
> > On Sun, 2005-07-24 at 13:36 +1000, Steven D'Aprano wrote:
> >
> >>On Sat, 23 Jul 2005 18:30:02 +0200, Soeren Sonnenburg wrote:
[...]
> >>Lists in Python can contain anything, not just numeric values.
> >
> > That
Wade wrote:
> Steven D'Aprano wrote:
>
>>I'm usually opposed to creeping featuritis in programming languages ("it
>>would be really cool if Python had a built-in command to do my entire
>>application") but safe over-writing of files does cry out for a "batteries
>>included" approach:
>
>
>
> H
>
> info = dbc.fetchall()
>
>
> self.dbTable=DBTable(¿?¿?¿?¿?) ß here is where I have problems, I
> used cursor, argument but no data shown
>
Hmm,
Not sure, but isnt the data in the variable 'info' try
self.dbTable = info
--
Dark Cowherd
--
http://mail.python.org/mailma
Thanos Tsouanas wrote:
> On Sun, Jul 24, 2005 at 02:14:15PM -0600, Steven Bethard wrote:
>
>>How about something like:
>> dict((name, getattr(obj, name)) for name in dir(obj))
>
> Pretty!!!
>
>>Looks like this will get instance attributes, class attributes and
>>properties just fine.
>
> B
Well, now you could go for n. I try to be as quick as my feedback from
users.
--
http://mail.python.org/mailman/listinfo/python-list
linuxfreak wrote:
> Hi Stani,
>
> Downloaded your latest SPE editor 0.7.4.m . I'm running wxPython 2.6.1
> on a Fedora Core 4 machine. The IDE is great but guess what it crashes
> without warning. Was typing some code and boom the whole thing
> disappeared without a trace. Thought should let you kn
See, I was thinking I'd have to write a short function to do it myself,
but I hadn't realized it could be quite *that* short. Thanks! That'll
do quite nicely, and is definitely something I'm going to throw in my
"general utility functions" folder :)
Regards,
Jeff
--
http://mail.python.org/mailma
Jeffrey E. Forcier wrote:
> This seems like a dead simple question, as it's so rudimentary I can't
> believe it hasn't been addressed before. I'm using the time.strftime()
> function (actually the mxDateTime implementation, but they're
> compatible so it shouldn't matter) to spit out fairly b
Thomas Guettler, your solution was very impractical besides being ignorant of
my problem. Thanks for trying nonetheless.
Andrew Clover, that is exactly what I was looking for. A few examples would
have been nice, but I think I can manage from here.
Thanks you.
--
http://mail.python.org/mail
Steven D'Aprano wrote:
>I'm usually opposed to creeping featuritis in programming languages ("it
>would be really cool if Python had a built-in command to do my entire
>application") but safe over-writing of files does cry out for a "batteries
>included" approach:
How about the fileinput module?
In the darkest hour on 24 Jul 2005 12:10:47 -0700,
RunLevelZero <[EMAIL PROTECTED]> screamed:
> list = os.walk("C:\python24\Tools")
r"C:\python24\Tools"
Artur
--
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:230B ]
[ 01:45:21 user up 10684 days, 13:40, 1 user, load a
On Mon, 25 Jul 2005 20:51:42 +0100, Steve Holden wrote:
> In Python you can use a text file's readlines() method to build a list
> of all the lines in a file. That makes it quite easy to change numbered
> lines. Having modified the file's content in memory you can then create
> a new file using
> My question is : does anybody know when pyqt 4 will be distributed ?
>
http://www.riverbankcomputing.co.uk/pyqt/roadmap.php
--
http://mail.python.org/mailman/listinfo/python-list
This seems like a dead simple question, as it's so rudimentary I
can't believe it hasn't been addressed before. I'm using the
time.strftime() function (actually the mxDateTime implementation, but
they're compatible so it shouldn't matter) to spit out fairly basic
date formats, to wit:
Janu
Anytime Jason... Thanks for fixing this problem. Let me
know when you have it solved. In the meantime, I have a
workaround.
Best regards,
Dean
On Mon, 25 Jul 2005 16:11:32 -0400
Jason Tishler <[EMAIL PROTECTED]> wrote:
>Dean,
>
>On Mon, Jul 25, 2005 at 10:49:58AM -0700, Dean N.
>Willia
hello,
i'm using actually pyqt 3.x to create several tools under linux.
I plan to propose those tools also for windows and mac os x under GPL
agreement.
My question is : does anybody know when pyqt 4 will be distributed ?
thanks
Nicolas
--
http://mail.python.org/mailman/listinf
Garn! Twa' the de'ils wairk! I wad be laith to misquo' the Sco'ish
Bard!
I was trying to make sure I spelled "a-gley" - I lapsed into the
common, but incorrect, quotation.
(http://www.robertburns.org/works/75.shtml)
Thanks!
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
I can delete a folder OK using os.remove
as long as its empty. I am having difficulty deleting
the same folder when there are files in it. I have tried os.removedirs
and shutil.rmtree as well but no luck. What am I
missing?
Patrick Thorstenson
GIS Specialist
Montezuma County
(
Paul McGuire wrote:
> "The best laid plans o' mice an' men / Gang aft a-gley"
>
> So said Robert Burns (who really should do something about that speech
> impediment!).
If "schemes" sounds like "plans", perhaps the impediment is in the
region of your ears :-)
--
http://mail.python.org/mailman/l
Ernesto wrote:
> Looks like I'm not getting my parameters to my batch file correctly.
> I'm using os.system like this:
> os.system('bootmanager.bat %s' %"BOOTMANAGER ALL")
>
> where 'BOOTMANAGER ALL' is what I type at the command prompt arguments.
> That must not be right?
The batch file will se
bex wrote:
> Im baffled about this one...
> I was confused about the packaging, so I tried moving all the folders
> in py2app into /Library/Python/2.3/ and deleted the py2app.pth file,
> but it still wouldn't load the module.
that does not sound as a good idea...
> Any insight into the voodoo ma
On 25 Jul 2005 12:57:55 -0700,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> A recipe is
> * open your file for reading: f = open('filename.txt', 'r')
> * read all lines in a list: content = f.readlines()
> * close the file: f.close()
> * set the third element in the list to something else: con
On Sun, Jul 24, 2005 at 02:14:15PM -0600, Steven Bethard wrote:
>
> How about something like:
> dict((name, getattr(obj, name)) for name in dir(obj))
Pretty!!!
> Looks like this will get instance attributes, class attributes and
> properties just fine.
But not SQLObject's objects...
Any i
Bengt Richter wrote:
> BTW, more OT, wouldn't '|' be more platform-neutral as the joining operator?
I, on the other hand, would certainly prefer U+01C1.
Reinhold
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 25 Jul 2005 17:33:51 +0200, Reinhold Birkenfeld <[EMAIL PROTECTED]>
wrote:
>Peter Hansen wrote:
>> Reinhold Birkenfeld wrote:
>>> Current change:
>>>
>>> * Add base() method for converting to str/unicode.
>>
>> Would basestring() be a better name? Partly because that seems to be
>> ex
On Mon, 25 Jul 2005 11:19:25 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>Michael Hoffman wrote:
>> Reinhold Birkenfeld wrote:
>>> Tony Meyer wrote:
Do people really like using __div__ to mean join?
>>>
>>> I'm not too happy with it, too, but do we have alternatives? ...
>>> Of course, o
Gee whiz, so easy.
thanks. Never thought about just changing it while it was read then
re-writing it. that will be just fine. these files are only 9 lines
long.
thanks again !
--
http://mail.python.org/mailman/listinfo/python-list
Dean,
On Mon, Jul 25, 2005 at 10:49:58AM -0700, Dean N. Williams wrote:
> For version control and other reasons, it would be nice to be able to
> build Python from source and it should build from source. How did the
> Cygwin version build?
I built using an older version of Cygwin (i.e, 1.5.12-1).
A recipe is
* open your file for reading: f = open('filename.txt', 'r')
* read all lines in a list: content = f.readlines()
* close the file: f.close()
* set the third element in the list to something else: content[2] =
'Blahdiblah'
* re-open the file for writing: f = open('filename.txt', 'w')
* wr
Looks like I'm not getting my parameters to my batch file correctly.
I'm using os.system like this:
os.system('bootmanager.bat %s' %"BOOTMANAGER ALL")
where 'BOOTMANAGER ALL' is what I type at the command prompt arguments.
That must not be right?
--
http://mail.python.org/mailman/listinfo/pytho
Try cx_Oracle http://www.computronix.com/utilities.shtml#Oracle, it is
an excellent library based on the DB API of Python
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Hey there,
> kinda newbie question here.
> i know how to read the lines of a txt file.
> i know how to write a txt file.
>
> but how do i overwrite a line value with another value ?
>
> i mean, how do go to, say, line 3 of a text file and replace
> what is written on li
Thanks.
Yeah I started to write in Python. Looks like this:
**
import os
from os.path import join
# Get input from user and make sure it is valid
fileDirec = raw_input("\nEnter the path of where your
STMP3XXX_SDK_FIRMWARE\nis located (i.e. C:
Im baffled about this one...
Im running OS 10.3, and Python 2.3. I installed py2app 0.17 and never
used it, then installed py2app 0.2. It refuses to work. None of the
samples will build. Observe:
$ pwd
/Developer/Python/py2app/Examples/pygame
$ python setup.py py2app
Traceback (most recent call l
Hi Jason,
To get "import socket" to work in Python2.4, I had to do something
that I never recomend and that is hack the Python code. Since I need
this to work for someone that is going on travel, I just modified the
socketmodule.c file.
REPLACE:
/* Irix 6.5 fails to define this variable a
Jason Tishler wrote:
> Dean,
>
> On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
>
>>I was able to run C:/cygwin/bin/ash.exe. This is good. In the
>>"ash.exe" window, I ran PATH=/bin rebaseall and received the same
>>error: "rebaseall: only ash processes are allowed .. Execu
I haven't used PyGTK very much, so I can't comment on it. My last
impression of GTK-on-Windows was that it wasn't very stable and didn't
blend well with the Windows native look and feel, but that was a while
ago and it has probably improved a great deal since then.
I use wxPython, doing my develo
Right! Forgot to exit out of ALL Cygwin processes. This does work.
-Dean
Jason Tishler wrote:
>Dean,
>
>On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
>
>
>>I was able to run C:/cygwin/bin/ash.exe. This is good. In the
>>"ash.exe" window, I ran PATH=/bin rebaseall and receiv
Ernesto wrote:
> The issue is I haven't done very much batch programming. I need to
> prompt the user for input and each batch file is in a different
> directory. How do I change directories and prompt for user input?
Ah, now you're talking things where Python, while not strictly required,
can
Dean,
On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
> I was able to run C:/cygwin/bin/ash.exe. This is good. In the
> "ash.exe" window, I ran PATH=/bin rebaseall and received the same
> error: "rebaseall: only ash processes are allowed .. Execute
> '/bin/rebaseall' from ash
Hey there,
kinda newbie question here.
i know how to read the lines of a txt file.
i know how to write a txt file.
but how do i overwrite a line value with another value ?
i mean, how do go to, say, line 3 of a text file and replace
what is written on line 3 with something else?
thanks
<><
--
Thanks Peter.
The issue is I haven't done very much batch programming. I need to
prompt the user for input and each batch file is in a different
directory. How do I change directories and prompt for user input?
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 25 Jul 2005 21:15:36 +0300, Elmo Mäntynen wrote:
> On Mon, 25 Jul 2005 16:51:05 +0200, Johannes Findeisen wrote:
>
>> On Mon, 2005-07-25 at 17:23 +0300, Elmo Mäntynen wrote:
>>> I want to encode a plaindigest or a hexdigest in base 32. Any hints?
>>
>> Search Google for "python base32" i
On Mon, Jul 25, 2005 at 07:53:19PM +0100, Jon Hewer wrote:
> Hello,
>
> I am upgrading a PHP based site and want to use Python (using mod_python and
> psp file) to achieve what is required. However, I do not want to recode the
> navigation part of the site which is currently coded using PHP. Som
[EMAIL PROTECTED] wrote:
> I'm a newbie and I was wondering if anyone knew a (Python) script to
> run 4 batch files, one after the other (assuming the directories are
> known). It would be better if all 4 batch files could run
> simultaneously, but that might break Windows... ;) The problem I ha
Hello,
I am upgrading a PHP based site and want to use Python
(using mod_python and psp file) to achieve what is required. However, I
do not want to recode the navigation part of the site which is currently coded
using PHP. Somehow I need to merge the outputs of the PHP file and my PS
[snip]
I was able to run C:/cygwin/bin/ash.exe. This is good. In the "ash.exe"
window, I ran PATH=/bin rebaseall and received the same error:
"rebaseall: only ash processes are allowed .. Execute
'/bin/rebaseall' from ash."
-Dean
>If Cygwin's bin is not in your Windows PATH, then give the
Hi,
I'm a newbie and I was wondering if anyone knew a (Python) script to
run 4 batch files, one after the other (assuming the directories are
known). It would be better if all 4 batch files could run
simultaneously, but that might break Windows... ;) The problem I had
was I couldn't get the fil
On Mon, 25 Jul 2005 16:51:05 +0200, Johannes Findeisen wrote:
> On Mon, 2005-07-25 at 17:23 +0300, Elmo Mäntynen wrote:
>> I want to encode a plaindigest or a hexdigest in base 32. Any hints?
>
> Search Google for "python base32" isn't as hard...
>
> First result are the original python lib docu
[EMAIL PROTECTED] wrote:
> Yeah i have already asked it, but, i think i can set before the
> .connect method, a connection as default, and, when connected, resore
> default connection!
Well, more power to you. I'll simply note again that this is a
non-standard thing, and not directly supported b
Title: Reading binary with header
Hello,
I am trying to head in a binary file that has a header and different character types. The array module apparently expects the typecode to be the same throughout. Here's what the file looks like:
Byte number: type: value: purpose:
1-4
> Reinhold Birkenfeld wrote:
>> Current change:
>>
>> * Add base() method for converting to str/unicode.
Now that [:] slicing works, and returns a string,
another way to convert from path.Path to str/unicode
is path[:]
Andrew
[EMAIL
Patrick> Is there a way I can have Python tell Oracle what the username
Patrick> and password is?
Dunno what db adapter module is used for Oracle, but the ones I've used for
Sybase, PostgreSQL and MySQL all accept username/password parameters either
individually or stuffed into a DSN stri
I am scripting GIS (mapping) applications at a very very basic level... One of our processes involves
connecting to an Oracle database. When the connection occurs, we are prompted
to enter a user name and password. That is OK when we are sitting right there
but we want to be able to enter t
Yeah i have already asked it, but, i think i can set before the
.connect method, a connection as default, and, when connected, resore
default connection!
Peter Hansen ha scritto:
> [EMAIL PROTECTED] wrote:
> > Hi, I have a question for the experts of Python for series60!
> >
> > When I use the ".c
Will McGugan wrote:
[---]
> You should use the keycode constants.
>
> http://www.wxwidgets.org/manuals/2.6.1/wx_keycodes.html#keycodes
[---]
Excellent! Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Dean,
On Mon, Jul 25, 2005 at 05:55:39AM -0700, Dean N. Williams wrote:
> >>Is there anyway for me to get back to an older version of Cygwin?
> >
> >What do you mean by the above? An older Cygwin? An older Cygwin
> >Python? An older rebase?
See below...
> [snip]
>
> When installing from the
In case you want some advises for your code:
-backslashes are not necesseary when you declare list or dict on many lines.
I didn't pay attention at the semantic of your code, but after giving a quick look, you can simplify things like:
BRUSHSTYLENAMES = ['Transparent', 'Solid', 'BDiagonalHatch'
[EMAIL PROTECTED] wrote:
> Reinhold> Right, that was a concern of mine, too.
> Reinhold> "tobase"?
> Reinhold> "tostring"?
> Reinhold> "tobasestring"?
>
> If we're on a filesystem that understands unicode, would somepath.tostring()
> return a unicode object or a string object encod
Reinhold> Right, that was a concern of mine, too.
Reinhold> "tobase"?
Reinhold> "tostring"?
Reinhold> "tobasestring"?
If we're on a filesystem that understands unicode, would somepath.tostring()
return a unicode object or a string object encoded with some
to-be-determined encoding
[Pauldoo]
> Is a way in python to obtain the total number of processors present in
> the system?
On windows,
List Processor Information.
Description: Returns information about the processors installed on a
computer.
http://www.microsoft.com/technet/scriptcenter/scripts/Python/hardware/basic/hwb
I have a simple cgi-script on a server that prints all key-value pairs
from a request. And it really works when i use a browser and type smth
like http://server/cgi-bin/test?name=mike&johny=dummy. But when I use
the following script, nothing is printed (like i type
http://server/cgi-bin/test reques
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I would like to thank all of you.
For what I've read, I'll be using python instead of Php.
Luis
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC5RQ5Hn4UHCY8r
Jan Danielsson wrote:
.
>
>Oh, I do have one more question though. I'm using wxPython, and when
> I check for keys I use the evt.GetKeyCode() call, and compare it with
> integers which I have found by printing what event.GetKeyCode() returns.
> I would prefer a more portable way, since I assum
Dark Cowherd wrote:
[---]
> In case you are interested in bug report.
Always!
> class LineTool
> method OnLeftUp
> needs
> self.done = True
>
> or else if you are in Line mode and you just click with out moving the
> mouse you get an error.
Many thanks; I can't believe I hadn't stumbled a
Peter Hansen wrote:
> Michael Hoffman wrote:
>> Currently it returns Path('None'). This means I have to do a check on
>> input before pathifying it to make sure it is not None.
>>
>> Perhaps it should throw ValueError?
>
> Without checking, I suspect it is merely doing str(x) or unicode(x) on
>
Peter Hansen wrote:
> Reinhold Birkenfeld wrote:
> > Peter Hansen wrote:
> >> Would basestring() be a better name?
>
> > "tobase"?
> > "tostring"?
> > "tobasestring"?
>
> Of these choices, the latter would be preferable.
>
> > Alternative is to set a class attribute "Base" of the
> > Path
Reinhold Birkenfeld wrote:
> Peter Hansen wrote:
>> Would basestring() be a better name?
> "tobase"?
> "tostring"?
> "tobasestring"?
Of these choices, the latter would be preferable.
> Alternative is to set a class attribute "Base" of the
> Path class. Or export PathBase as a name from th
Hi!
On Sun, 24 Jul 2005 22:16:01 +0200 Torsten Bronger wrote:
> I'm very suprised. wxPython is still that buggy? I read reports
> from 2000 about such observations, but they tried wxPython in a
> non-standard way, and the project has had 5 years to become more
> stable after all.
Well, I don'
Hmm,
I was looking at the code as I am also learning Python.
In case you are interested in bug report.
class LineTool
method OnLeftUp
needs
self.done = True
or else if you are in Line mode and you just click with out moving the
mouse you get an error.
DarkCowherd
--
http://mail.python.org
Mentre io pensavo ad una intro simpatica "Franz Steinhaeusler"
scriveva:
>>XPN (X Python Newsreader) is a multi-platform newsreader with Unicode
>>support. It is written with Python+GTK. It has features like
>>scoring/actions, X-Face and Face decoding, muting of quoted text,
>>newsrc import/export
>
> Does anyone of you have experiance with KYLIX 3 and do you think I should
> consider buying it? Thank You, I'll go oil my keyboard now.
http://www.lazarus.freepascal.org/
Sorry if the above came out somewhere else in the thread, did not read all.
Vlad
--
http://mail.python.org/mailman/lis
Peter Hansen wrote:
> Reinhold Birkenfeld wrote:
>> Current change:
>>
>> * Add base() method for converting to str/unicode.
>
> Would basestring() be a better name? Partly because that seems to be
> exactly what it's doing, but more because there are (or used to be?)
> other things in Path th
Michael Hoffman wrote:
> Currently it returns Path('None'). This means I have to do a check on
> input before pathifying it to make sure it is not None.
>
> Perhaps it should throw ValueError?
Without checking, I suspect it is merely doing str(x) or unicode(x) on
whatever is passed to it:
>>>
Torsten Bronger wrote:
> Marek Kubica <[EMAIL PROTECTED]> writes:
>>I have started GUIs in Python with wx, but after a short time I
>>was annoyed how many things were buggy. I don't know why, but I
>>fell from one bug to the other while programming one application.
>
> I'm very suprised. wxPython
Reinhold Birkenfeld wrote:
> Current change:
>
> * Add base() method for converting to str/unicode.
Would basestring() be a better name? Partly because that seems to be
exactly what it's doing, but more because there are (or used to be?)
other things in Path that used the word "base", such as
Michael Hoffman wrote:
> Reinhold Birkenfeld wrote:
>> Tony Meyer wrote:
>>> Do people really like using __div__ to mean join?
>>
>> I'm not too happy with it, too, but do we have alternatives? ...
>> Of course, one can use joinwith() if he doesn't like '/'.
>
> I've used the path module pretty
teoryn wrote:
> I changed to using line = line.strip() instead of line = line [:-1] in
> the original and it it worked.
Just to be clear, these don't do nearly the same thing in general,
though in your specific case they might appear similar.
The line[:-1] idiom says 'return a string which is a
Yeh well I know of /proc/cpuinfo (due to linux's hacked up non-unix
/proc, *grumble*) and the NUMBER_OF_PROCESSORS environment variable on
windows. I was just hoping for a slightly more platform independant
way of doing it.
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hoffman wrote:
> Currently it returns Path('None'). This means I have to do a check on
> input before pathifying it to make sure it is not None.
>
> Perhaps it should throw ValueError?
The problem is that Path() currently acts like str() and will therefore
accept almost anything that has
Jeff Epler schrieb:
> I honestly don't know why anyone would spend money for a development
> environment, no matter how fancy. I don't know why anyone would develop
> software in a language that doesn't have at least one open
> implementation.
FreePascal is OSS. I recently developed a mixed Delph
[EMAIL PROTECTED] wrote:
> Hi, I have a question for the experts of Python for series60!
>
> When I use the ".connect" method of the socket, a list with all
> connection available pop-up, and, after selecting one, the soft go on.
>
> My question is that: Can i use the ".connect" method passing co
Currently it returns Path('None'). This means I have to do a check on
input before pathifying it to make sure it is not None.
Perhaps it should throw ValueError?
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 2005-07-25 at 17:23 +0300, Elmo Mäntynen wrote:
> I want to encode a plaindigest or a hexdigest in base 32. Any hints?
Search Google for "python base32" isn't as hard...
First result are the original python lib documentation:
http://docs.python.org/lib/module-base64.html
I think you nee
I changed to using line = line.strip() instead of line = line [:-1] in
the original and it it worked.
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I was just happy that it worked, but was still curious as to why it
didn't before. Thanks for the idea, I'll look into it and see if this
is the case.
Thanks,
Kevin
--
http://mail.python.org/mailman/listinfo/python-list
I want to encode a plaindigest or a hexdigest in base 32. Any hints?
Elmo
--
http://mail.python.org/mailman/listinfo/python-list
Walter Brunswick <[EMAIL PROTECTED]> wrote:
> I need to import modules with user-defined file extensions
> that differ from '.py', and also (if possible) redirect the
> bytecode output of the file to a file of a user-defined
> extension.
You shouldn't really need a PEP for that; you can take cont
TPJ napisał(a):
>>PyQt works equally well on both systems.
>
> I believe you. The problem is I don't like GPL.
So, buy commercial license for Qt and PyQt.
--
Jarek Zgoda
http://jpa.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
> Dark Cowherd wrote:
>
>>> voiceless-ly'rs
>>
>>
>> What does this mean?? Just curious (googled that and ly'rs and didnt
>> find anything relevant)
s/ly'rs/ly y'rs/
> The voiceless part I understand to mean that Bruno is "shocked and
> stunned and not a little bit amazed" [1]
1 - 100 of 143 matches
Mail list logo