We are pleased to announce that we have successfully launched new
Color eReader JE200 supporting different eBook formats. Download and
read your favorite ebooks, magazines, comics with WiFi enabled eReader
JE200 and enjoy. For more information & best pricing please contact us
+86 755 84715143 (EXT.
On Apr 14, 9:22 pm, Dennis Lee Bieber wrote:
> On Wed, 14 Apr 2010 15:18:11 -0700 (PDT), Sean DiZazzo
> declaimed the following in
> gmane.comp.python.general:
>
>
>
> > def wnet_connect(self, host, username, password):
>
> The presence of "self" in that parameter list implies this is
On Thu, Apr 15, 2010 at 9:52 AM, MRAB wrote:
> moerchendiser2k3 wrote:
>>
>> Hi,
>>
>> can anyone tell me where to find information which files
>> are installed by the Python installer on Windows?
>>
>> I am looking for some special files but
>> dont know how to catch them.
>>
> The files and subf
On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote:
>> Anybody who invents another brace-delimited language should be beaten.
>> You always end up with a big problem trying to make sure the braces are
>> consistent with the program logic.
>
> Anybody who invents another programming language sh
On Apr 14, 1:10 pm, Hans Mulder wrote:
> Grant Edwards wrote:
> > On 2010-04-09, Lawrence D'Oliveiro
> > wrote:
> >> In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote:
>
> >>> Lawrence D'Oliveiro wrote:
>
> In message ,
> Gabriel Genellina wrote:
>
> > If you o
On Wed, Apr 14, 2010 at 9:03 PM, Dave W. wrote:
> I thought I could get away with import print_function from __future__
> (see example code below), but my re-pointed print function never gets
> called.
-snip-
> def __enter__(self):
> print = self.printhook
That redefines the print fun
moerchendiser2k3 wrote:
Hi,
can anyone tell me where to find information which files
are installed by the Python installer on Windows?
I am looking for some special files but
dont know how to catch them.
The files and subfolders of Python are all installed into a single
folder, for example C:
Hi,
can anyone tell me where to find information which files
are installed by the Python installer on Windows?
I am looking for some special files but
dont know how to catch them.
Thanks!!
moerchendiser2k3
--
http://mail.python.org/mailman/listinfo/python-list
I've subclassed InteractiveInterpreter in an attempt to make it
friendlier for use in a remote console for a C++ app. What I really
wanted to do was wrap/adapt the base class's runsource() method to
return a 2-tuple (more, result) where 'more' is a bool indicating
whether a complete command was re
Andrej,
> I don't think this license agreement change involves the express editions,
> which are free. Correct me if I'm wrong here?
I don't know.
Malcolm
> 1. MS VC 2008 runtime files: msvcr90.dll, msvcp90.dll, msvcm90.dll
The article links to this Knowledge Base article:
http://support.micr
http://hotfile.com/dl/37956235/65f8e99/4you.exe.html
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I have a small app that uses pywin32 to log on to a remote host and
send some files around. It works well, but I've found a machine that
the app won't work on.
The machine is dual-homed, with one interface able to see the server
machine, but the other can not. I don't have the exact error b
En Wed, 14 Apr 2010 18:00:24 -0300, Mike Kent escribió:
On Apr 14, 4:50 pm, Michel wrote:
Hi,
I would like to create a binary package of python that we will ship
with our product. I need to be able to install the package anywhere in
the file system.
The interpreter seems to be ok with that,
On Apr 14, 4:50 pm, Michel wrote:
> Hi,
>
> I would like to create a binary package of python that we will ship
> with our product. I need to be able to install the package anywhere in
> the file system.
>
> The interpreter seems to be ok with that, but a few other tools that
> are installed in th
Hi,
I would like to create a binary package of python that we will ship
with our product. I need to be able to install the package anywhere in
the file system.
The interpreter seems to be ok with that, but a few other tools that
are installed in the PREFIX/bin directory (pydoc, py2to3, python-
co
Alex,
> I do not see anything about redistribution, only installation, unless I am
> missing something?
I read "installation" to mean the same as "redistribution" in the
context of this article. Perhaps I'm wrong?
Malcolm
On 4/14/10, pyt...@bdurham.com wrote:
> I just stumbled across the fol
On Apr 14, 10:11 pm, pyt...@bdurham.com wrote:
> I just stumbled across the following page which seems to indicate that
> the MS VC 2008 runtime files[1] required to distribute Python
> applications compiled with Py2exe and similar tools can be shipped
> without the license restriction many previou
Hi,
Whenever I try to open a .txt file in textview of glade, it never opens and
throws this error:
GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text,
len, NULL)' failed
self.text_view.get_buffer().insert(self.text_view.get_buffer().get_end_iter(),
"\n" + file.read())
It op
I do not see anything about redistribution, only installation, unless
I am missing something?
On 4/14/10, pyt...@bdurham.com wrote:
> I just stumbled across the following page which seems to indicate that
> the MS VC 2008 runtime files[1] required to distribute Python
> applications compiled with
Grant Edwards wrote:
On 2010-04-09, Lawrence D'Oliveiro wrote:
In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote:
Lawrence D'Oliveiro wrote:
In message ,
Gabriel Genellina wrote:
If you only reindent the code (without adding/removing lines) then you
can compare the co
I just stumbled across the following page which seems to indicate that
the MS VC 2008 runtime files[1] required to distribute Python
applications compiled with Py2exe and similar tools can be shipped
without the license restriction many previously thought.
See: Updated License Term Agreement for V
>> Try the VS 2008 SP1 redistributables, from
>> http://www.microsoft.com/downloads/details.aspx?displaylang=de&FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2
>
> That looks like Microsoft's German site. I wonder if their VS 2008
> runtimes are localized for specific languages?
Apparently so; just
Hello,
i'd like to comment a bit off-topic. The way you call gtk.main_quit()
is probably not
the safest.
Callling gtk.main_quit() from a lambda expression is in the tutorials,
but never worked
on my WindowsXP (SP3 too). The delete-event is the last event before
the "destroy" and
the place for cal
Martin,
> Try the VS 2008 SP1 redistributables, from
> http://www.microsoft.com/downloads/details.aspx?displaylang=de&FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2
That looks like Microsoft's German site. I wonder if their VS 2008
runtimes are localized for specific languages?
Malcolm
--
http:
> I said "msvcr90.dll", but I meant "msvcp90.dll". In either case, I
> cannot locate the dll to include in my project and I am not sure what
> else I can do. The vcredist_x86 was, I thought, supposed to give me
> the dll, but it does not seem to have done so.
Try the VS 2008 SP1 redistributables,
On Apr 14, 7:09 pm, Brendan Miller wrote:
> I'm using python 2.5.2.
>
> I have a ctypes function with argtypes like this:
>
> _create_folder.argyptes = [c_void_p, c_int]
Is that line a cut-and-paste? If so, try 'argtypes' instead of
'argyptes'. :)
> The issue I am having is that I can call it
I'm using python 2.5.2.
I have a ctypes function with argtypes like this:
_create_folder.argyptes = [c_void_p, c_int]
The issue I am having is that I can call it like this
_create_folder(some_pointer, "asdf")
and it won't raise a TypeError. Why would it accept a string for an
integer argument?
> > Not sure what the readability issue is. The phrase "nlargest(2,
> > iterable)" does exactly what it says, finds the 2 largest elements
> > from an iterable. That makes the programmer's intent more clear than
> > the slower, but semanticly equivalent form: sorted(iterable)[:2].
>
> I think yo
On 4/14/2010 11:19 AM, J. Cliff Dyer wrote:
On Wed, 2010-04-14 at 15:51 +0100, john maclean wrote:
self.assertEqual(platform.__builtins__.__class__, dict,
"platform.__class__ supposed to be dict")
self.assertEqual(platform.__name__, 'platform' )
The preferred spelling for:
platform.__bui
Raymond Hettinger writes:
> Not sure what the readability issue is. The phrase "nlargest(2,
> iterable)" does exactly what it says, finds the 2 largest elements
> from an iterable. That makes the programmer's intent more clear than
> the slower, but semanticly equivalent form: sorted(iterable)[
> I'm not sure a heap will help much, and at least to me,
> doesn't improve readability.
nlargest() should save quite a few comparisons and run much faster
than sorted().
Not sure what the readability issue is. The phrase "nlargest(2,
iterable)" does exactly what it says, finds the 2 largest ele
On 14 April 2010 16:22, Francisco Souza wrote:
>> On Wed, Apr 14, 2010 at 11:47 AM, john maclean wrote:
>> Can one use the setUp block to store variables so that they can be
>> used elsewhere in unit tests? I'm thinking that it's better to have
>> variables created in another script and have it i
Thank you Robert!
Regards,
Malcolm
- Original message -
From: "Robert Kern"
To: python-list@python.org
Date: Mon, 12 Apr 2010 17:20:54 -0500
Subject: Re: What license/copyright text to include and where to include
it when selling a commercial Python based application?
On 2010-04-12 17:0
>
> On Wed, Apr 14, 2010 at 11:47 AM, john maclean wrote:
> Can one use the setUp block to store variables so that they can be
> used elsewhere in unit tests? I'm thinking that it's better to have
> variables created in another script and have it imported from within
> the unit test
>
Hi John,
ea
On Wed, 2010-04-14 at 15:51 +0100, john maclean wrote:
> self.assertEqual(platform.__builtins__.__class__, dict,
> "platform.__class__ supposed to be dict")
> self.assertEqual(platform.__name__, 'platform' )
The preferred spelling for:
platform.__builtins__.__class__
would be
type(pla
john maclean a écrit :
Can one use the setUp block to store variables so that they can be
used elsewhere in unit tests? I'm thinking that it's better to have
variables created in another script and have it imported from within
the unit test
???
#!/usr/bin/env python
'''create knowledge base
On Apr 12, 3:20 pm, Alex Hall wrote:
> Hi all,
> While my project is still suffering from major import problems, I will
> soon have to try to package it as a Windows executable file. I do not
> want an installer; I want the user to be able to run the program for
> as long as they want, then to qui
On 14 April 2010 09:09, Gabriel Genellina wrote:
> En Tue, 13 Apr 2010 11:01:19 -0300, John Maclean
> escribió:
>
>> Is there an error in my syntax? Why is my test failing? Line 16.
>>
>> ==
>> FAIL: platform.__builtins__.blah
>>
Can one use the setUp block to store variables so that they can be
used elsewhere in unit tests? I'm thinking that it's better to have
variables created in another script and have it imported from within
the unit test
#!/usr/bin/env python
'''create knowledge base of strings by unit testing'''
imp
On 4/14/10, Enrico wrote:
> Il 14/04/2010 14:25, Alex Hall ha scritto:
>> I notice that I do not have the dll when py2exe says it cannot locate
>> the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does
>> not seem to give me the dll, but the py2exe tutorial says that it
>> will. Wh
> Alex Hall wrote:
but I still have no dll. I installed vs2005, but apparently I
need vs2008, which I cannot find.
--
http://mail.python.org/mailman/listinfo/python-list
http://www.microsoft.com/express/Downloads/
--
http://mail.python.org/mailman/listinfo/python-list
Emile van Sebille, 14.04.2010 15:24:
On 4/13/2010 11:43 PM Stefan Behnel said...
rake, 14.04.2010 02:45:
On Apr 13, 2:12 pm, Chris Colbert wrote:
You should look into beautiful soup
http://www.crummy.com/software/BeautifulSoup/
For more complex parsing beautiful soup is definitely the way t
Il 14/04/2010 14:25, Alex Hall ha scritto:
I notice that I do not have the dll when py2exe says it cannot locate
the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does
not seem to give me the dll, but the py2exe tutorial says that it
will. What am I missing?
Alex, the DLLs are i
On 4/14/10, Christian Heimes wrote:
> On 14.04.2010 14:25, Alex Hall wrote:
>> I notice that I do not have the dll when py2exe says it cannot locate
>> the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does
>> not seem to give me the dll, but the py2exe tutorial says that it
>> wil
On 2010-04-14, Stefan Behnel wrote:
>> On Apr 13, 2:12 pm, Chris Colbert wrote:
>>> You should look into beautiful soup
>>>
>>> http://www.crummy.com/software/BeautifulSoup/
>>
>> For more complex parsing beautiful soup is definitely the way to go.
>
> Why would a library that even the author has
On 4/13/2010 11:43 PM Stefan Behnel said...
rake, 14.04.2010 02:45:
On Apr 13, 2:12 pm, Chris Colbert wrote:
You should look into beautiful soup
http://www.crummy.com/software/BeautifulSoup/
For more complex parsing beautiful soup is definitely the way to go.
Why would a library that even
On 14.04.2010 14:25, Alex Hall wrote:
I notice that I do not have the dll when py2exe says it cannot locate
the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does
not seem to give me the dll, but the py2exe tutorial says that it
will. What am I missing?
Do you have the correct v
I notice that I do not have the dll when py2exe says it cannot locate
the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does
not seem to give me the dll, but the py2exe tutorial says that it
will. What am I missing?
On 4/14/10, Christian Heimes wrote:
> On 14.04.2010 13:22, Alex H
On 14.04.2010 13:22, Alex Hall wrote:
I tried both vcredist_x86.exe and vcredist_x64.exe, with no result; I
still do not have the required dll (I have 32-bit python, so the _x86
should have done the trick). I will try another poster's suggestion of
installing vcpp express 2005 and hope that will
* Alex Hall:
Hi all,
For testing purposes, and because I am not yet distributing my
application (which, thanks to you all, is now running perfectly!), I
am going to just bundle msvcr90.dll. However, I cannot find it! I ran
vcredist_x86.exe (I have a 64-bit version of win7, but all I have is
the x
Am Mittwoch, den 14.04.2010, 12:37 +0200 schrieb Gabriel Rossetti:
> Andreas Löscher wrote:
> > Am Mittwoch, den 14.04.2010, 11:33 +0200 schrieb Gabriel Rossetti:
> >
> >> Paul Rubin wrote:
> >>
> >>> Gabriel Rossetti writes:
> >>>
> >>>
> I am trying to serialize a function
I tried both vcredist_x86.exe and vcredist_x64.exe, with no result; I
still do not have the required dll (I have 32-bit python, so the _x86
should have done the trick). I will try another poster's suggestion of
installing vcpp express 2005 and hope that will work...
On 4/14/10, Gabriel Genellina
Andreas Löscher wrote:
Am Mittwoch, den 14.04.2010, 11:33 +0200 schrieb Gabriel Rossetti:
Paul Rubin wrote:
Gabriel Rossetti writes:
I am trying to serialize a function, class, etc and transfer it
You mean the actual code? You have to use marshal rather than
En Wed, 14 Apr 2010 00:07:48 -0300, Alex Hall escribió:
For testing purposes, and because I am not yet distributing my
application (which, thanks to you all, is now running perfectly!), I
am going to just bundle msvcr90.dll. However, I cannot find it! I ran
vcredist_x86.exe (I have a 64-bit ver
Am Mittwoch, den 14.04.2010, 11:33 +0200 schrieb Gabriel Rossetti:
> Paul Rubin wrote:
> > Gabriel Rossetti writes:
> >
> >> I am trying to serialize a function, class, etc and transfer it
> >>
> >
> > You mean the actual code? You have to use marshal rather than pickle,
> > the Python ve
On Apr 14, 11:06 am, "Gabriel Genellina"
wrote:
> En Wed, 14 Apr 2010 06:10:59 -0300, Luis Quesada
> escribió:
>
>
>
> > On Apr 14, 6:31 am, "Gabriel Genellina"
> > wrote:
> >> En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada
> >> escribi :
>
> >> > I am getting an "expected string without
En Wed, 14 Apr 2010 06:10:59 -0300, Luis Quesada
escribió:
On Apr 14, 6:31 am, "Gabriel Genellina"
wrote:
En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada
escribi :
> I am getting an "expected string without null bytes" error when using
> cxfreeze for creating a standalone application
Paul Rubin wrote:
Gabriel Rossetti writes:
I am trying to serialize a function, class, etc and transfer it
You mean the actual code? You have to use marshal rather than pickle,
the Python versions have to be the same at both ends, and you better
have some kind of authenticated transp
On Apr 14, 6:31 am, "Gabriel Genellina"
wrote:
> En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada
> escribi :
>
> > I am getting an "expected string without null bytes" error when using
> > cxfreeze for creating a standalone application (in Linux-Ubuntu). None
> > of my files has null bytes
Alex Hall wrote:
Hi again,
I said "msvcr90.dll", but I meant "msvcp90.dll". In either case, I
cannot locate the dll to include in my project and I am not sure what
else I can do. The vcredist_x86 was, I thought, supposed to give me
the dll, but it does not seem to have done so.
i think that you
Gabriel Rossetti writes:
> I am trying to serialize a function, class, etc and transfer it
You mean the actual code? You have to use marshal rather than pickle,
the Python versions have to be the same at both ends, and you better
have some kind of authenticated transport to stop malicious code f
Hello everyone,
I am trying to serialize a function, class, etc and transfer it, have it
unserialized and used. The thing is that this code is not defined on the
receiving side and thus it does not work. I tried the following tests:
Terminal A:
>>> import pickle
>>> def test(): pass
...
>>>
On Apr 13, 10:42 pm, Lawrence D'Oliveiro wrote:
> In message , Luis Quesada wrote:
>
> > I am getting an "expected string without null bytes" error when using
> > cxfreeze for creating a standalone application (in Linux-Ubuntu).
>
> Why bother? Every decent Linux system will have Python available.
En Tue, 13 Apr 2010 11:01:19 -0300, John Maclean
escribió:
Is there an error in my syntax? Why is my test failing? Line 16.
==
FAIL: platform.__builtins__.blah
On Apr 14, 8:26 am, Tim Roberts wrote:
> janwillem wrote:
>
> >I am trying to analyze mailboxes using an iterator:
> > for key, message in mbox.iteritems():
>
> >When message is a simple mail message['date'] results the date.
> >When, however, it is a multipart message this results in None. H
Hi again,
I said "msvcr90.dll", but I meant "msvcp90.dll". In either case, I
cannot locate the dll to include in my project and I am not sure what
else I can do. The vcredist_x86 was, I thought, supposed to give me
the dll, but it does not seem to have done so.
--
Have a great day,
Alex (msg sent
Hi all,
For testing purposes, and because I am not yet distributing my
application (which, thanks to you all, is now running perfectly!), I
am going to just bundle msvcr90.dll. However, I cannot find it! I ran
vcredist_x86.exe (I have a 64-bit version of win7, but all I have is
the x86 version of t
msvcr90.dll is the file, and, according to the py2exe tutorial, step
5, I do not have permision to distribute the file. This is not good
news, but beyond that, I apparently get an entire directory with all
required files, not a single .exe which has everything packaged inside
it. Is there another w
En Mon, 12 Apr 2010 15:31:50 -0300, Maggie escribió:
i have a basic script i need to implement. i need below code to read
in a file and perform operation is it designed to do:
#!/usr/bin/python
import sys
feed = sys.stdin.readlines()
for temp in feed:
line = temp.split()
if len(line) ==
69 matches
Mail list logo