On 23 Jul 2007, at 23:09, Diez B. Roggisch wrote:
> Gabriel Dragffy schrieb:
>> Dear list members
>>
>> I must admit I am a new user of Python, but it is a language that I
>> enjoy using.
>>
>> For one of my university projects I need to write a program that can
>> read several bytes from an ISA
Whenever I post to this list my email invariably takes ages to show
up - perhaps two days or so. Often times not at all. Why is this?
I am subscribed to Ubuntu mail list which is also high traffic, and
my posts show up there within minutes.
Thanks.
Gabriel Dragffy
[EMAIL PROTECTED]
--
On Sat, 28 Jul 2007 09:05:51 +1000, Ben Finney wrote:
> [EMAIL PROTECTED] writes:
>
>> from . import *
>> from .sibiling import *
>> from .. import *
>> from ..parent_sibling import *
>>
>> ...and so on. The same error occurs:
>> SyntaxError: 'import *' not allowed with 'from
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>On Jul 27, 1:27 pm, Peter Otten <[EMAIL PROTECTED]> wrote:
>> Robert Dailey wrote:
>> > Is there build-in or third party support for large integer types, such
>> > as 96 or 128 bits in size? I require such large sizes for precision
>> > issues (nano
> > [EMAIL PROTECTED] wrote:
> > > NEW TEXT : "Hello world;\nHello:\n\t\t\n\n\n\n\n\nHello2"
If you are doing all of this to format the output into columns,
Python's print() or write() will do this, and is easier as well. Some
more info on what you want to do will clear things up.
--
http://ma
On Sat, 28 Jul 2007 03:10:32 +, GreenH wrote:
> I get some string as below from a library method (qt3
> QDropEvent.data()) I use.
> file:///C:/Documents%20and%20Settings/Username/My%20Documents/45-61-Abc%20fold-%20den.vru
>
> I need file path on my system, for the above example:
> C:/Document
[EMAIL PROTECTED] wrote:
> I'm doing a little script with the help of the BeautifulSoup HTML
> parser and uTidyLib (HTML Tidy warper for python).
>
> Essentially what it does is fetch all the html files in a given
> directory (and it's subdirectories) clean the code with Tidy (removes
> deprecated
On Jul 27, 2:56 pm, beginner <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am really new to Tk and Tkinter. I googled the web but it was not
> mentioned how to build a data grid with Tkinter.
>
> Basically, I want to show an excel like data grid with fixed column
> and row headers and sortable columns
Thank you all, guys. I think, now I understand import behavior more :)
Cheers,
Valia
--
http://mail.python.org/mailman/listinfo/python-list
> It seems that in the first case change_value() called in module_b.py
> ignores the global statement. Is it so? Why? What happens in the second
> case? I really don't get it.
The key is that it doesn't ignore the global statement, but that
global specifically points to the variable 'value' in mod
I get some string as below from a library method (qt3
QDropEvent.data()) I use.
file:///C:/Documents%20and%20Settings/Username/My%20Documents/45-61-Abc%20fold-%20den.vru
I need file path on my system, for the above example:
C:/Documents and Settings/Username/My Documents/45-61-Abc fold-
den.vru
I
On Jul 27, 11:26 am, Wildemar Wildenburger <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> >> If I understand you correctly you want to replace ";" by ";\n" and ":"
> >> by ":\n\t\t\t\t\t\t\t".
> >> Well guess what? The replace() method does just this. Have a read:
> >> http://docs.python.o
On Jul 27, 7:21 pm, Alex Popescu <[EMAIL PROTECTED]>
wrote:
> "Kevin T. Ryan" <[EMAIL PROTECTED]> wrote innews:[EMAIL PROTECTED]:
>
>
>
> > Hi All -
>
> > I'm having a problem and I hope you can help. I can't seem to import
> > packages from within the package substructure as I think I should be
>
Neal Becker <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Alex Popescu wrote:
>
>> Neal Becker <[EMAIL PROTECTED]> wrote in
>> news:[EMAIL PROTECTED]:
>>
>
> [snip...]
>
>>>
>>
>> You can pass to the exception:
>> a) a string (it will become the message)
>> b) a tuple of values (can
On Thu, 26 Jul 2007 21:38:31 +0200, martyw wrote:
> Remoing elements from a dict is done with del, try this;
> >>> d = {'a' : 1,'b' : 2}
> >>> del d['a']
> >>> print d
> {'b': 2}
> >>>
>
> maybe you can post a working snippet to demonstrate your problem
Wow. This wins my award for the least
[EMAIL PROTECTED] wrote:
> first you need find the bottleneck of your script db or function
> if the bottleneck is db
> 1. which db do you use do you optimize the db from read
> 2. the sql you write do not use any index "maybe select code, type
> from products where type = 'I' or type = 'S' will he
> SGVsbG8uIENvdWxkIHlvdSBoZWxwIG1lLi4uSSBuZWVkIHRvIGNyZWF0ZSBhcHBsaWNhdGlvbiB3
> aXRoIHVyd2lkIG9yIGN1cnNlcwpzdXBwb3J0LiBIYXZlIHlvdSBnb3QgYSBwcmV0dHkgc2ltcGxl
> IGV4YW1wbGUgd2l0aCBpdD8KCgotLSAKUG96ZHJhd2lhbSBMZXN6ZWsgTWm2Ck5vdGhpbmcgaXMg
> c2VjdXJlLCBwYXJhbm9pYSBpcyB5b3VyIGZyaWVuZC4K
>>> s =
>>>
On Fri, 27 Jul 2007 06:24:48 -0300, Gabriel Genellina wrote:
> En Thu, 26 Jul 2007 14:48:12 -0300, jelle <[EMAIL PROTECTED]>
> escribió:
>
>> Hi Gabriella,
>> thanks for pointing me in the right direction:
>
> Twice in a week... I'll have to revise my own masculinity...
You need to spit and f
On Fri, 27 Jul 2007 14:11:02 -0500, Kenneth Love wrote:
> The published recipe (based on ConfigParser) did not handle my INI
> files. I have periods in both the section names and the key names.
> The INI files contents were developed according to an internally
> defined process that other non-Pyt
Neal Becker <[EMAIL PROTECTED]> writes:
> should set self.args to None. Nothing wrong there, and what has this got to
> do with NoneType being iterable?
Probably the traceback constructor tried to iterate through the args.
You should initialize the args to an empty tuple, not None. Also
note th
Okay I've actually got it compiling now, however it is saying it can't
find "stdio.h" (No such file or directory). This means it doesn't know
where the include directories are. How do I specify include
directories?
--
http://mail.python.org/mailman/listinfo/python-list
Alex Popescu wrote:
> Neal Becker <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
>
>> import exceptions
>>
>> class nothing (exceptions.Exception):
>> def __init__ (self, args=None):
>> self.args = args
>>
>> if __name__ == "__main__":
>> raise nothing
>>
>> Traceback (
Ben Finney <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> [EMAIL PROTECTED] writes:
>
>> from . import *
>> from .sibiling import *
>> from .. import *
>> from ..parent_sibling import *
>>
>> ...and so on. The same error occurs:
>> SyntaxError: 'import *' not allowed
At 08:41 AM 7/27/2007, Bill wrote:
>Does anyone out there have any information about this book. It's
>listed on Amazon to be published in November of this year. A simple
>Google search (1st page only) doesn't show anything useful, and I
>can't find a reference on the web sites of the authors. Neith
Neal Becker <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> import exceptions
>
> class nothing (exceptions.Exception):
> def __init__ (self, args=None):
> self.args = args
>
> if __name__ == "__main__":
> raise nothing
>
> Traceback (most recent call last):
> File "",
beginner wrote:
> The problem is that the Tkinter program ends with a .mainloop() call
> and it is not going to give back control to the command prompt. I feel
> it is almost like I need to implement the python shell myself. Is
> there any better way of doing this?
Take a look at this:
http://lfw.
"Kevin T. Ryan" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Hi All -
>
> I'm having a problem and I hope you can help. I can't seem to import
> packages from within the package substructure as I think I should be
> able to. For example, I create a directory structure as follows:
>
On Jul 6, 7:39 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 7, 9:26 am,RobertDailey<[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jul 6, 3:06 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
> > >RobertDaileyschrieb:
>
> > > > Hi,
>
> > > > I'm interested in making a C++ library of mine usable t
[EMAIL PROTECTED] writes:
> from . import *
> from .sibiling import *
> from .. import *
> from ..parent_sibling import *
>
> ...and so on. The same error occurs:
> SyntaxError: 'import *' not allowed with 'from .'
Interesting. I know that 'from foo import *' is frowned on an
Neal Becker <[EMAIL PROTECTED]> writes:
> TypeError: 'NoneType' object is not iterable
> I'll have to say, I don't understand this error.
It's "lame duck typing". The .args attribute on an Exception instance
is expected to be a tuple of the arguments passed through the raise
statement. It is Non
beginner wrote:
> I did and it did not seem to work. I ended up doing the following.
> Verbose, isn't it?
> If I do d=PyFloat_AsDouble(oDiscount); in the third "if", I get an
> error. Maybe I missed something obvious.
That's strange. I just tried the following code:
fprintf(stdout,"True = %lf\n",
Hi All -
I'm having a problem and I hope you can help. I can't seem to import
packages from within the package substructure as I think I should be
able to. For example, I create a directory structure as follows:
testpkg
__init__.py [empty]
testsub1/
__init__.py [empty]
bad.py [impor
import exceptions
class nothing (exceptions.Exception):
def __init__ (self, args=None):
self.args = args
if __name__ == "__main__":
raise nothing
Traceback (most recent call last):
File "", line 1, in
File "/usr/tmp/python-3143hDH", line 5, in __init__
self.args = args
T
On Jul 27, 4:50 pm, Farshid Lashkari <[EMAIL PROTECTED]> wrote:
> beginner wrote:
> > I did and it did not seem to work. I ended up doing the following.
> > Verbose, isn't it?
> > If I do d=PyFloat_AsDouble(oDiscount); in the third "if", I get an
> > error. Maybe I missed something obvious.
>
> Tha
On Jul 27, 4:50 pm, Farshid Lashkari <[EMAIL PROTECTED]> wrote:
> beginner wrote:
> > I did and it did not seem to work. I ended up doing the following.
> > Verbose, isn't it?
> > If I do d=PyFloat_AsDouble(oDiscount); in the third "if", I get an
> > error. Maybe I missed something obvious.
>
> Tha
Hello,
I am trying to create exectuables on inux using "pyinstaller". I am
using pyinstaller-1.3, RHEL 4.4, Python 2.5.
The executables fail to run. The problem returned is pertaining to
"struct.py" not being able to find the module "_struct".
struct.py is located under /usr/local/lib/python-2.5
Gabriel Genellina yahoo.com.ar> writes:
>
> By far, the most common problem extending/embedding Python is to do wrong
> reference counts.
> Read http://docs.python.org/ext/refcounts.html again (I hope you already
> did!) and make sure you don't hold a pointer to an object without
> increme
Hi All,
I am really new to Tk and Tkinter. I googled the web but it was not
mentioned how to build a data grid with Tkinter.
Basically, I want to show an excel like data grid with fixed column
and row headers and sortable columns. But the grids can be read-only.
Can anyone give some hint on impl
Hi everyone,
I have a question about Tkinter programs. What I want is a GUI window
along with an interpreter window, so that I can do things by clicking
on the GUI or typing commands in the interpreter console. For example,
I wish I can type in the console:
>>> modify_my_key_data()
>>> update_gui
On Jul 27, 1:23 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Fri, 27 Jul 2007 00:34:22 +, beginner wrote:
> > 2) How can I make the arguments less picky without writing a lot of
> > type conversion code? My function really needs a tuple as its
> > argument. For example, f( (1,2,
On Jul 27, 11:37 am, Farshid Lashkari <[EMAIL PROTECTED]> wrote:
> beginner wrote:
> > This works with PyFloat only. It does not work with integers.
>
> Did you try it out? I have used it on ints, bools, and objects that
> implement the __float__ method. It does not work on strings though.
I did a
On Jul 27, 6:01 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-07-27 at 20:46 +, André wrote:
> > I want to give a user the possibility of "restarting" an interactive
> > session, by removing all the objects defined by her since the
> > beginning. The way I make this possible is b
I'm attempting to start some process control using Python. I've have
quite a bit of literature on networking, and have made some tinkering
servers and clients for different protocols HTTP, FTP, etc... But now
it's time for the murky web of industrial protocol. I'm looking to
start with IO and s
On Fri, 2007-07-27 at 20:46 +, André wrote:
> I want to give a user the possibility of "restarting" an interactive
> session, by removing all the objects defined by her since the
> beginning. The way I make this possible is by having a "function"
> that can be called during the interactive ses
"Istvan Albert" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| On Jul 27, 2:18 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
|
| >> What was really surprising is that it works
| >> with no issues up until 1 million items"
|
| later editing made the sentence more difficult to rea
I want to give a user the possibility of "restarting" an interactive
session, by removing all the objects defined by her since the
beginning. The way I make this possible is by having a "function"
that can be called during the interactive session using locals() as an
argument, as follows:
restart
En Fri, 27 Jul 2007 16:06:32 -0300, Brad Johnson
<[EMAIL PROTECTED]> escribió:
> PyObject* o = PyDict_GetItemString(_d, "_outcatcher");
> PyObject* a = PyObject_GetAttrString(o, "data");
> ::MessageBox(NULL, PyString_AsString(a), _T(""), NULL);
>
> However, it only works twice.
On Jul 27, 2:18 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
>> What was really surprising is that it works
>> with no issues up until 1 million items"
later editing made the sentence more difficult to read
I should have said: "What was really surprising is that zip works
with no issues up un
I don't suggest Python is unconcerned with the casual user and the end
user, only that this is where PHP's community excels.
Learnig both as a newbie, I actually found PHP more confusing and
difficult than Python. Programming in PHP reminds me of a game of
trivial pursuit. Once you know a little
Instantly Turn your Computer into a Super TV
• Watch all your favorite shows on your Computer & TV!
• Channels you can’t get any other place in the U.S.A!
• Watch from anywhere in the world!
• Save 1000's of $$$ over many years on cable and satellite bills
• INSTANT DOWNLOAD
• And much, much more!
At 09:55 PM 7/26/2007, Ben Finney wrote:
>Kenneth Love <[EMAIL PROTECTED]> writes:
>
> > In other words, I consider these two dictionaries to be equivalent:
> >
> > { 'dog' : 'bone', 'cat' : 'fever', 'mouse' : 'mickey' }
> > { 'mouse' : 'mickey', 'dog' : 'bone', 'cat' : 'fever' }
> >
> > wh
At 04:42 AM 7/27/2007, Ali wrote:
>On Jul 26, 10:18 pm, Kenneth Love <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I am new to Python, but not programming. I would like to start my
> > Python career by developing programs according to the "best practices"
> > of the industry. Right now, that appe
I received no responses yesterday, this is a repost. I'm still stuck on
this one ladies and gentlemen, and I'm sure it's one of those simple
things (isn't it always?)
I am creating a small test application in Windows to test the embedding
of the interpreter in order to execute arbitrary Python sta
On Jul 27, 1:27 pm, Peter Otten <[EMAIL PROTECTED]> wrote:
> Robert Dailey wrote:
> > Is there build-in or third party support for large integer types, such
> > as 96 or 128 bits in size? I require such large sizes for precision
> > issues (nanoseconds). Thanks.
> >>> SECOND = 10**9
> >>> YEAR = 36
On Jul 27, 1:30 pm, Valentina Vaneeva <[EMAIL PROTECTED]> wrote:
> Thank you, Gary, but I still have one question. What happens in the
> second case? If I add a call to change_value() to module_a, the value
> in module_b is imported changed. Why? What exactly does the import
> statement import in
Raymond Hettinger <[EMAIL PROTECTED]> writes:
> > What was really surprising is that it works with no issues up
> > until 1 million items, but for say 10 million it pretty much goes
> > nuts. Does anyone know why?
>
> There's nothing in izip() that holds memory, tracks indices, or ...
The issue w
>
> Than take a hold on the content and add it to the parent. Somthing like
> this should work:
>
> from BeautifulSoup import BeautifulSoup
>
> def remove(soup, tagname):
> for tag in soup.findAll(tagname):
> contents = tag.contents
> parent = tag.parent
> tag.extract()
On Fri, 27 Jul 2007 17:40:23 +, sebzzz wrote:
> My question, since I'm quite new to python, is about what tool I
> should use to remove the table, tr and td tags, but not what's
> enclosed in it. I think BeautifulSoup isn't good for that because it
> removes what's enclosed as well.
Than take
Robert Dailey wrote:
> Is there build-in or third party support for large integer types, such
> as 96 or 128 bits in size? I require such large sizes for precision
> issues (nanoseconds). Thanks.
>>> SECOND = 10**9
>>> YEAR = 365*24*60*60
>>> 2**128/SECOND/YEAR
10790283070806014188970L
What are
[EMAIL PROTECTED] wrote:
>> If I understand you correctly you want to replace ";" by ";\n" and ":"
>> by ":\n\t\t\t\t\t\t\t".
>> Well guess what? The replace() method does just this. Have a read:
>> http://docs.python.org/lib/string-methods.html>
>>
> No,that's not what I need...
> When this f
On Jul 26, 4:25 pm, Istvan Albert <[EMAIL PROTECTED]> wrote:
> Now I know that zip () wastes lots of memory because it copies the
> content of the lists, I had used zip to try to trade memory for speed
> (heh!) , and now that everything was replaced with izip it works just
> fine. What was really
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA,
DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL
functionality to implement clients and servers; HTTPS extensions to
Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing
AuthCookies for web sessi
On Jul 27, 2:16 pm, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Alexandre Ferrieux <[EMAIL PROTECTED]> wrote:
> > Now, *why* is such buffering gaining speed over stdio's fgets(), which
> > already does input buffering (though in a more subtle way, which makes
> > it still usable with pipes etc.) ?
>
Hi, I'm a newbie at Python. :) Right now it's not letting me import *
from any relative package name--i.e., a name that starts with a dot.
For instance, none of the following work:
from . import *
from .sibiling import *
from .. import *
from ..parent_sibling import *
...and so on
first you need find the bottleneck of your script db or function
if the bottleneck is db
1. which db do you use do you optimize the db from read
2. the sql you write do not use any index "maybe select code, type
from products where type = 'I' or type = 'S' will help" and you need
create index on ty
On 27 srp, 19:29, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I have one question about string.I am trying to make an function to
> > analyze line of some text, this is my example: "HELLO;HELLO2:WORLD:",
> > if that function in this text find ";" and ":" ( in t
Hi,
I'm doing a little script with the help of the BeautifulSoup HTML
parser and uTidyLib (HTML Tidy warper for python).
Essentially what it does is fetch all the html files in a given
directory (and it's subdirectories) clean the code with Tidy (removes
deprecated tags, change the output to be x
[EMAIL PROTECTED] wrote:
> I have one question about string.I am trying to make an function to
> analyze line of some text, this is my example: "HELLO;HELLO2:WORLD:",
> if that function in this text find ";" and ":" ( in this example will
> find both)
>
> e.g that function must return this:
>
>
On Fri, 27 Jul 2007 16:45:05 +, Robert Dailey wrote:
> Is there build-in or third party support for large integer types, such
> as 96 or 128 bits in size?
Yes there is, just use integer values. If it don't fit into an `int` it
gets promoted to a `long`. Python `long`\s are only bounded by a
On Jul 27, 2007, at 10:56 PM, Gary Herron wrote:
> The variable "value" is global in module_a, and "change_value" will
> always refer to that variable.
>
> However, in module_b, when you from module_a import value,
> change_value
> you have created two new variables global to module_b that
On 7/27/07, simonbun <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm compiling 2.5.1 and end up with a 3.5MB libpython2.5.so file. I
> seem to remember it should be somewhere around the 1MB mark. What
> could be causing this?
>
> I'm using ./configure --enable-shared
>
> This is a problem for me seein
Thanks all for the input. This is going to be a great basis for
starting. And, yeah - I wish it was a homework.
Best,
Ira
--
http://mail.python.org/mailman/listinfo/python-list
On 23 Jul 2007, at 23:09, Diez B. Roggisch wrote:
> Gabriel Dragffy schrieb:
>> Dear list members
>>
>> I must admit I am a new user of Python, but it is a language that I
>> enjoy using.
>>
>> For one of my university projects I need to write a program that can
>> read several bytes from an ISA
Hi all,
I'm compiling 2.5.1 and end up with a 3.5MB libpython2.5.so file. I
seem to remember it should be somewhere around the 1MB mark. What
could be causing this?
I'm using ./configure --enable-shared
This is a problem for me seeing as i'm using apache+mod_python to
serve web content. Each apa
Mike Howarth wrote:
> Having overcome my first hurdle with the factory pattern, I've now hit
> another stumbling block
>
> At the moment I'm trying to return around 2000 records from a db and load up
> the relevant product object, what I've found is this is running extremely
> slowly (> 20mins), t
Hey,
Thanks for the further explanations. I'm going to play around more
with the 'recursive grammar' and 'parse-time dynamic grammar element'
stuff so that I understand it a bit better.
I liked the changes you suggested. The alternative grammar definitely
makes the code easier to understand, plu
Hi,
Is there build-in or third party support for large integer types, such
as 96 or 128 bits in size? I require such large sizes for precision
issues (nanoseconds). Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
beginner wrote:
> This works with PyFloat only. It does not work with integers.
Did you try it out? I have used it on ints, bools, and objects that
implement the __float__ method. It does not work on strings though.
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 27, 8:23 am, [EMAIL PROTECTED] wrote:
> Hello,
>
> I have one question about string.I am trying to make an function to
> analyze line of some text, this is my example: "HELLO;HELLO2:WORLD:",
> if that function in this text find ";" and ":" ( in this example will
> find both)
>
> e.g that
- Original Message -
From: "Oleg Broytmann" <[EMAIL PROTECTED]>
To: "Python Announce Mailing List" <[EMAIL PROTECTED]>;
"Python Mailing List"
Sent: Thursday, July 26, 2007 7:23 AM
Subject: SQLObject 0.7.8
> Hello!
>
> I'm pleased to announce the 0.7.8 release of SQLObject.
>
> What is
Paul Rubin wrote:
> M brad <[EMAIL PROTECTED]> writes:
>
>> Out of the pan and into the fire. :) Welcome to the world of Ph.D's
>> in Computer Science. You think the Perl guys have attitude, just
>> wait and see what you're in for over here. I think you'll find
>> attitudes in any programming lang
> If I read in the latin1 file using
> codecs.open(filename,encoding='latin1') and write out the utf8 file by
> opening with
> codecs.open(othername,encoding='utf8'), would I no longer have a
> problem -- I could just read in latin1 and write out utf8 with no more
> worries about encoding?
>
>
On 26 Jul 2007 23:35:44 -0700, Paul Rubin
<"http://phr.cx"@nospam.invalid> wrote:
> Peter Otten <[EMAIL PROTECTED]> writes:
> > When you are allocating a lot of objects without releasing them the garbage
> > collector kicks in to look for cycles. Try switching it off:
>
> I think that is the answer
Hi, I'm beginning to understand the encode/decode string methods, but
I'd like confirmation that I'm still thinking in the right direction:
I have a file of latin1 encoded text. Let's say I put one line of that
file
into a string variable 'tocline', as follows:
tocline = 'Ficha Datos de p\xe9rdid
Brad Wrote:
In my experience, things have not changed at most PolySci Universities
(Georgia Tech, NC State, Virginia Tech, etc). The Comp
Engineering/CS/Math classes are still full of boys. Although there are
some girls, but not a lot. If a girl is in the class (and that's a big
if) no boy in the
On 7/27/07, Istvan Albert <[EMAIL PROTECTED]> wrote:
> On Jul 27, 2:16 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
>
> > References are not objects.
>
> yes this a valid objection,
>
> but in all fairness the example in the original post operates on
> comparably sized objects and also exhibited un
Valentina Vaneeva wrote:
> Hi,
>
> I'm new to Python and I've found something in its interpreter that I
> don't quite understand, and I don't really know how to correctly
> formulate a search query. Here's the question.
>
> If we have a file module_a.py with the following content:
>
> | #!/us
Does anyone out there have any information about this book. It's
listed on Amazon to be published in November of this year. A simple
Google search (1st page only) doesn't show anything useful, and I
can't find a reference on the web sites of the authors. Neither of the
authors appears to be heavily
Hello!
On Fri, Jul 27, 2007 at 08:21:00AM -0700, george williams wrote:
> - Original Message -
And what is the question?
Oleg.
--
Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
--
http:
Having overcome my first hurdle with the factory pattern, I've now hit
another stumbling block
At the moment I'm trying to return around 2000 records from a db and load up
the relevant product object, what I've found is this is running extremely
slowly (> 20mins), the db is normalized and indexes
Hi,
I'm new to Python and I've found something in its interpreter that I
don't quite understand, and I don't really know how to correctly
formulate a search query. Here's the question.
If we have a file module_a.py with the following content:
| #!/usr/bin/env python
|
| value = 'in
Hello,
I have one question about string.I am trying to make an function to
analyze line of some text, this is my example: "HELLO;HELLO2:WORLD:",
if that function in this text find ";" and ":" ( in this example will
find both)
e.g that function must return this:
"HELLO;\nHELLO2:\n\t\t\t\t\t\t
"Simon Brunning" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| On 7/26/07, James Matthews <[EMAIL PROTECTED]> wrote:
| > What is the difference between <> and !=
|
| <> is deprecated, != isn't. Other than that, nothing AFAIK.
And <> will disappear in 3.0.
--
http://mail.pytho
On Fri Jul 27 15:35:02 CEST 2007, Hyunchul Kim wrote:
> How can I read a pdf file and add invisible comment?
> I want to make a script which read a pdf file and add tags inside the
> file invisibly. Then, I will make a script for managing tags of given
> pdf files.
>
> I know "referencer" can man
On Jul 26, 10:40 pm, [EMAIL PROTECTED] wrote:
> Hey,
>
> Thanks Neil and Paul!
>
> After reading Neil's advice I started playing around with the
> setParseAction method, and then I found Paul's script
> 'macroExpander.py' (http://pyparsing.wikispaces.com/space/showimage/
> macroExpander.py).
>
Gr
Hi Farshid,
On Jul 26, 8:18 pm, Farshid Lashkari <[EMAIL PROTECTED]> wrote:
> beginner wrote:
> > I know obj is a number, but I do not know the exact type. How can I
> > convert it to double without writing a giant switch() that exhausts
> > every single type of number?
>
> Try using the PyFloat_A
Hi Robert,
On Jul 26, 8:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote:
> beginner wrote:
> > Hi,
>
> > I run into another C API question. What is the simplest way to convert
> > an PyObject into a double?
>
> > For example, I have
>
> > PyObject *obj;
>
> > I know obj is a number, but I do not kno
In article <[EMAIL PROTECTED]>,
Tina I <[EMAIL PROTECTED]> wrote:
>theju wrote:
>>> Is there a way to submit a form and then open the resulting page in the
>>> default browser? (Writing the form submission code is not a problem by
>>> the way)
>>
>> There is a library called "Client Form" that do
Dear all,
How can I read a pdf file and add invisible comment?
I want to make a script which read a pdf file and add tags inside the
file invisibly. Then, I will make a script for managing tags of given
pdf files.
I know "referencer" can manage tags for pdf file but it seems store tag
information
Steve Holden wrote:
> You are wrong about the compatibility. You can't compile a library with
> VC 2005 and run it with a Python compiled with VC 2003.
OK, my bad - sorry about that red herring.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 146 matches
Mail list logo