Hi,
I am pleased to announce version 2.21.3 of the Python bindings for GObject.
The new release is available from ftp.gnome.org as and its mirrors as
soon as its synced correctly:
http://download.gnome.org/sources/pygobject/2.21/
What's new since PyGObject 2.21.2?
- Proper
On behalf of the Python development team, I'm tickled pink to announce the
second release candidate of Python 2.7.
Python 2.7 is scheduled (by Guido and Python-dev) to be the last major version
in the 2.x series. However, 2.7 will have an extended period of bugfix
maintenance.
2.7 includes many
*** Attention Cygwin Python module package maintainers: ***
*** Cygwin has migrated from Python 2.5 to 2.6. ***
*** Please build, test, and release your packages ASAP. ***
New News:
===
I have updated the version of Python to 2.6.5-2. The tarballs should be
available on a Cygwin
News123 news1...@free.fr writes:
1.) What alternatives would exist compared to apache / mod_python
I think you could use stunnel to listen on port 443 and forward it to a
local port, where you'd have a python httpd, perhaps using the
SimpleHTTPServer module. Stunnel uses OpenSSL which handles
On Jun 21, 10:41 am, shanti bhushan ershantibhus...@gmail.com wrote:
Hi,
I want to invoke local wen server named mogoose, and kill it after
some time by python script.
Then i want to change the argument and invoke it again.
I am able to do this with below code.
import subprocess
import
Paul Rubin no.em...@nospam.invalid wrote:
mod_python is pretty dead.
It's now totally dead[1]. (Not pining for the fjords, either.)
1: http://blog.dscpl.com.au/2010/06/modpython-project-is-now-officially.html
--
http://mail.python.org/mailman/listinfo/python-list
News123, 20.06.2010 13:12:
Now I have the opportunity to setup a server from scratch.
90% of the content will be non visual content over https with client AND
server certificates.
Access privileges will depend on the client certificate.
I will only have one IP address and only port 443.
1.)
Steven D'Aprano wrote:
On Sun, 20 Jun 2010 18:21:43 -0400, Dave Angel wrote:
Something's intrinsically wrong with the argument made in this thread
against generating assembly code. That's exactly what happens every
time you write code in C.
I don't know whether C compilers generate
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 06/18/2010 11:48 PM, Terry Reedy wrote:
On 6/18/2010 3:57 PM, Pierre Reinbold wrote:
def genexp_product(*args):
pools = map(tuple, args)
result = [[]]
for pool in pools:
result = (x+[y] for x in result for y in pool)
On 06/21/2010 05:38 AM, Michele Simionato wrote:
A few weeks ago I presented on this list my most recent effort, plac.
http://micheles.googlecode.com/hg/plac/doc/plac_ext.html
But this one is broken. :(
Aagh! The good one is
http://micheles.googlecode.com/hg/plac/doc/plac_adv.html.
On Jun 21, 7:36 am, Anthony Papillion papill...@gmail.com wrote:
So I'm trying to add a Listbox to my window. I want it to be the width
of my window and the height of my window. I'm using the following
code ('root' is my toplevel window):
gsItems = Listbox(root, width=root.winfo_width(),
Hi,
i am using below code ,it works fine on ordinary python 26 ,but when i
use this script in my python testing tool it gives me message process
cannot access the file because it is being used by other process for
the second time invoking of mongoose server.
Please help me in handling this
On 21/06/2010 09:23, shanti bhushan wrote:
i am using below code ,it works fine on ordinary python 26 ,but when i
use this script in my python testing tool it gives me message process
cannot access the file because it is being used by other process for
the second time invoking of mongoose
Christoph Groth wrote:
Dear all,
sometimes it is handy to have a function which can take as argument
anything which can be converted into something, e.g.
def foo(arg):
arg = float(arg)
# ...
I would like to mimic this behavior of float for a user-defined type,
e.g.
def bar(arg):
On Jun 21, 12:00 am, Dave Angel da...@ieee.org wrote:
Steven D'Aprano wrote:
On Sun, 20 Jun 2010 18:21:43 -0400, Dave Angel wrote:
Something's intrinsically wrong with the argument made in this thread
against generating assembly code. That's exactly what happens every
time you write
Thanks to everybody ... as usual on c.l.p I'm blown away by the
knowledge and skills ! I've added some replies/clarifications to other
posts but thanks again to you all.
--
http://mail.python.org/mailman/listinfo/python-list
Oh yes as several have pointed out there was a typo in my original
question ... I can only blame 'toolongatscreenitis' !
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 20, 10:53 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Sun, 20 Jun 2010 03:19:55 -0700, southof40 wrote:
I have list of of N Vehicle objects - the only possible vehicles are
cars, bikes, trucks.
I want to select an object from the list with a probability of :
News123 a écrit :
Hi,
So far I never really had to ask this question and this is also, why I
am stil a little shaky on this topic:
So far the typical LAMP server existed already and contained already a
lot of existing PHP web applications, which I couldn't remove.
Therefore I just used
On Jun 20, 10:55 pm, Rob Williscroft r...@rtw.me.uk wrote:
southof40 wrote in news:da3cc892-b6dd-4b37-a6e6-
b606ef967...@t26g2000prt.googlegroups.com in gmane.comp.python.general:
I have list of of N Vehicle objects - the only possible vehicles are
cars, bikes, trucks.
I want to select
On Jun 20, 11:27 pm, Mel mwil...@the-wire.com wrote:
southof40 wrote:
I have list of of N Vehicle objects - the only possible vehicles are
cars, bikes, trucks.
I want to select an object from the list with a probability of : cars
0.7, bikes 0.3, trucks 0.1.
I've currently implemented
On Jun 20, 10:58 pm, Cameron Simpson c...@zip.com.au wrote:
On 20Jun2010 12:44, Stefan Behnel stefan...@behnel.de wrote:
| southof40, 20.06.2010 12:19:
| I have list of of N Vehicle objects - the only possible vehicles are
| cars, bikes, trucks.
|
| I want to select an object from the list
On Mon, 21 Jun 2010 03:00:12 -0400, Dave Angel wrote:
But the OP said of his friend:
He dynamically generates mashine code and call that from python.
I took that to mean he dynamically generated machine code, not that he
hired some human to do it.
Well, I suppose if his friend is a
On Jun 21, 2:15 pm, Tim Golden m...@timgolden.me.uk wrote:
On 21/06/2010 09:23, shanti bhushan wrote:
i am using below code ,it works fine on ordinary python 26 ,but when i
use this script in my python testing tool it gives me message process
cannot access the file because it is being used
I will only have one IP address and only port 443.
1.) What alternatives would exist compared to apache / mod_python
You can use a combination of mod_proxy and mod_rewrite to set up a
forwarding proxy in your Apache server. Let Apache deal with SSL,
virtual hosting etc. Then bind your
On Jun 18, 3:55 pm, Christoph Groth c...@falma.de wrote:
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid writes:
Anyway: the simplest solution here is to replace the call to your Base
class with a call to a factory function. I'd probably go for something
like (QD untested
On 20 lip, 12:57, DivX sem.r...@gmail.com wrote:
On 20 lip, 12:46, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Sun, 20 Jun 2010 03:19:48 -0700, DivX wrote:
On 20 lip, 02:52, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
[...]
I think that
There's no need to use taskill.exe;
keep a reference of the subprocess.Popen() object around and use its
kill() method instead.
--- Giampaolo
http://code.google.com/p/pyftpdlib
http://code.google.com/p/psutil
2010/6/21 shanti bhushan ershantibhus...@gmail.com:
On Jun 21, 10:41 am, shanti
Hi
I have 2 files (done and outf), and I want to chose unique elements
from the 2nd column in outf which are not in done. This code works but
is not efficient, can you think of a quicker way? The a=1 is just a
redundant task obviously, I put it this way around because I think
'in' is quicker than
I really can't begin to thank you guys enough. Great information, goes
without saying. A lot to consider. I would like to explore rewriting the
shopping cart in Django. The reality of the matter may make it difficult.
Working literally from the time I awake to when I go to sleep and not having
Hi all,
I have written a small python xmlrpc server which checks logfiles of a
build
sending notifications to the responsible teams. On a machine I'm
forced to
a problem with one logfile with special characters inside generated by
a
gnu compiler.
Using cheetah for generating the HTML mail I get
universe={}
for line in outf:
if line.split(',')[1].strip() in universe.keys():
a=1
else:
if line.split(',')[1].strip() in done_.keys():
a=1
else:
universe[line.split(',')[1].strip()]=0
I can not say too much because I don't see
Steven D'Aprano wrote:
On Mon, 21 Jun 2010 03:00:12 -0400, Dave Angel wrote:
But the OP said of his friend:
He dynamically generates mashine code and call that from python.
I took that to mean he dynamically generated machine code, not that he
hired some human to do it.
Well, I
Use a set instead of a dictionary for done keys?
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
dirknbr wrote:
Hi
I have 2 files (done and outf), and I want to chose unique elements
from the 2nd column in outf which are not in done. This code works but
is not efficient, can you think of a quicker way? The a=1 is just a
redundant task obviously, I put it this way around because I think
dirknbr wrote:
Hi
I have 2 files (done and outf), and I want to chose unique elements
from the 2nd column in outf which are not in done. This code works but
is not efficient, can you think of a quicker way? The a=1 is just a
redundant task obviously, I put it this way around because I
On 06/21/2010 07:40 AM, Victor Subervi wrote:
I would like to explore rewriting the shopping cart in Django.
The reality of the matter may make it difficult. Working
literally from the time I awake to when I go to sleep and not
having enough hours to complete everything I set for myself
makes it
On Mon, Jun 21, 2010 at 7:18 AM, shanti bhushan
ershantibhus...@gmail.comwrote:
On Jun 21, 2:15 pm, Tim Golden m...@timgolden.me.uk wrote:
On 21/06/2010 09:23, shanti bhushan wrote:
i am using below code ,it works fine on ordinary python 26 ,but when i
use this script in my python
On 2010-06-21, Stephen Hansen me+list/pyt...@ixokai.io wrote:
[...]
I'm just learning Objective-C on my spare time, and am having these
entirely disturbing feelings of familiarity, where strange swirling
thoughts enter my head that sound oddly like, This feels sorta
Pythony, how oddly
On 6/21/10 6:47 AM, Grant Edwards wrote:
On 2010-06-21, Stephen Hansen me+list/pyt...@ixokai.io wrote:
[...]
I'm just learning Objective-C on my spare time, and am having these
entirely disturbing feelings of familiarity, where strange swirling
thoughts enter my head that sound oddly
Hello out there,
- what is the reason, that __slots__ are introduced in python?
- I want to use slots to define a class where no attributes are added at
runtime. Is that a good idea to use slots for that?
Regards
Alexander
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 22, 2010 at 12:27 AM, Alexander Eisenhuth
newsu...@stacom-software.de wrote:
Hello out there,
- what is the reason, that __slots__ are introduced in python?
- I want to use slots to define a class where no attributes are added at
runtime. Is that a good idea to use slots for
Thomas Lehmann t.lehm...@rtsgroup.net writes:
Hi all,
I have written a small python xmlrpc server which checks logfiles of a
build
sending notifications to the responsible teams. On a machine I'm
forced to
a problem with one logfile with special characters inside generated by
a
gnu
On Mon, Jun 21, 2010 at 9:03 AM, Tim Chase python.l...@tim.thechases.comwrote:
On 06/21/2010 07:40 AM, Victor Subervi wrote:
I would like to explore rewriting the shopping cart in Django.
The reality of the matter may make it difficult. Working
literally from the time I awake to when I go to
On 6/21/10 7:27 AM, Alexander Eisenhuth wrote:
Hello out there,
- what is the reason, that __slots__ are introduced in python?
- I want to use slots to define a class where no attributes are added at
runtime. Is that a good idea to use slots for that?
In short, its best to use __slots__
Alexander Eisenhuth wrote:
- what is the reason, that __slots__ are introduced in python?
When you have many instances of a class with a fixed set of attributes
__slots__ can save you some memory because it avoids the overhead for the
instance __dict__. Note that many means millions rather
On 6/21/10 8:08 AM, Stephen Hansen wrote:
If you don't want a class to have attributes added at runtime, the
Pythonic way to achieve that is to... simply add attributes at runtime.
Errr.
The Pythonic way to achieve that is to... simply NOT add attributes at
runtime.
I.e., choose to follow the
Your email(s) get send as 7 bit (ASCII). Email them as utf-8 and I guess
your problem is solved.
How do you email the notifications?
I was copying partly the logic from http://code.activestate.com/recipes/473810
Changing to buffer.decode(utf-8, 'replace') where I'm reading the
file and
On Jun 21, 12:36 am, Anthony Papillion papill...@gmail.com wrote:
So I'm trying to add a Listbox to my window. I want it to be the width
of my window and the height of my window. I'm using the following
code ('root' is my toplevel window):
gsItems = Listbox(root, width=root.winfo_width(),
On Mon, Jun 21, 2010 at 12:34 PM, Steven D'Aprano
steve-remove-t...@cybersource.com.au wrote:
On Sun, 20 Jun 2010 22:45:14 +0100, Rhodri James wrote:
Mixing Python and assembler is a bizarre thing to want to do in general,
but...
On Sun, 20 Jun 2010 01:52:15 +0100, Steven D'Aprano
David Cournapeau wrote:
On Mon, Jun 21, 2010 at 12:34 PM, Steven D'Aprano
steve-remove-t...@cybersource.com.au wrote:
On Sun, 20 Jun 2010 22:45:14 +0100, Rhodri James wrote:
Mixing Python and assembler is a bizarre thing to want to do in general,
but...
On Sun, 20 Jun 2010 01:52:15 +0100,
On behalf of the Python development team, I'm tickled pink to announce the
second release candidate of Python 2.7.
Python 2.7 is scheduled (by Guido and Python-dev) to be the last major version
in the 2.x series. However, 2.7 will have an extended period of bugfix
maintenance.
2.7 includes many
help(help) gives me the following explanation.
##
Help on _Helper in module site object:
class _Helper(__builtin__.object)
| Define the built-in 'help'.
| This is a wrapper around pydoc.help (with a twist).
|
| Methods defined here:
|
| __call__(self, *args, **kwds)
|
On 6/21/10 10:12 AM, MRAB wrote:
A human can write better assembly code than a compiler, but would take a
much longer, and usually for not much gain, so it's usually a waste of
time (premature optimisation, and all that).
When you get to the point where you're considering writing something in
On 6/21/10 10:17 AM, Peng Yu wrote:
Help on _Helper in module site object:
It says so right here.
I then looked at pydoc site. But I don't see an entry on help(). How
to figure out where help() (or a function in general) is defined?
Generally:
Python 2.6.1 (r261:67515, Feb 11 2010,
On 06/21/2010 07:17 PM, Peng Yu wrote:
help(help) gives me the following explanation.
[snip]
I then looked at pydoc site. But I don't see an entry on help(). How
to figure out where help() (or a function in general) is defined?
type(dir)
class 'builtin_function_or_method'
type(help)
Dear people of python-list:
We just released Tahoe-LAFS v1.7, the secure distributed filesystem
written entirely [*] in Python.
The major new feature is an SFTP server. This means that (with enough
installing software and tinkering with your operating system
configuration) you can have a
What module is recommended for parsing/generating ical files?
Specifically, I'd like to parse invitations generated by MS Outlook
and generate accept/decline responses. I've tinkered with iCalendar
1.2, and have had some success after manualling munging/filtering the
data for some fields:
On 6/21/2010 10:17 AM Peng Yu said...
help(help) gives me the following explanation.
snip
I then looked at pydoc site. But I don't see an entry on help(). How
to figure out where help() (or a function in general) is defined?
ActivePython 2.4.1 Build 247 (ActiveState Corp.) based on
Python
On 6/21/2010 1:17 PM, Peng Yu wrote:
help(help) gives me the following explanation.
##
Help on _Helper in module site object:
class _Helper(__builtin__.object)
| Define the built-in 'help'.
See 'built-in'?
| This is a wrapper around pydoc.help (with a twist).
|
|
On 06/21/2010 09:29 AM, Pierre Reinbold wrote:
[snip]
Another try to avoid infinite recursion:
def badgen_product2(*args, **kwds):
pools = map(tuple, args)
result = [[]]
for pool in pools:
def augments():
for x in result:
This line is executed when you
dirknbr dirk...@gmail.com writes:
done_={}
for line in done:
done_[line.strip()]=0
...
Maybe you mean:
done_ = set(line.strip() for line in done)
outf_ = set(line.split(',')[1] for line in outf)
universe = done_ outf # this finds the set intersection
--
On 6/21/2010 11:24 AM, Stephen Hansen wrote:
On 6/21/10 8:08 AM, Stephen Hansen wrote:
If you don't want a class to have attributes added at runtime, the
The Pythonic way to achieve that is to... simply NOT add attributes at
runtime.
I.e., choose to follow the rule you've decided on.
Or
On 6/21/2010 3:29 AM, Pierre Reinbold wrote:
On 06/18/2010 11:48 PM, Terry Reedy wrote:
Let's apply Reedy's Rule: when you have trouble understanding a function
expression, replace it with the (near) equivalent def statement. (Among
other advantages, one can insert print calls!)
Genexps,
Thomas Lehmann t.lehm...@rtsgroup.net writes:
Your email(s) get send as 7 bit (ASCII). Email them as utf-8 and I guess
your problem is solved.
How do you email the notifications?
I was copying partly the logic from
http://code.activestate.com/recipes/473810
Changing to
On 6/21/10 11:06 AM, Terry Reedy wrote:
On 6/21/2010 11:24 AM, Stephen Hansen wrote:
On 6/21/10 8:08 AM, Stephen Hansen wrote:
If you don't want a class to have attributes added at runtime, the
The Pythonic way to achieve that is to... simply NOT add attributes at
runtime.
I.e., choose to
On Jun 19, 12:16 pm, Sean DiZazzo half.ital...@gmail.com wrote:
On Jun 11, 5:27 am, Eric von Horst z80vsvi...@hotmail.com wrote:
I have small program that tries to open a wsdl. When I execute the
program I am getting 'suds.transport.TransportError: HTTP Error 401:
Unauthorized'
Hey Eric,
On Mon, Jun 21, 2010 at 6:44 AM, Felipe Vinturini
felipe.vintur...@gmail.com wrote:
snip
Your problem seems to be with stdout redirect to the same file:
YourOutput1.txt. Windows is not like Unix like systems!
You can try, instead of redirecting to the same file, redirect each to a
separate
On 06/21/2010 12:18 PM, shanti bhushan wrote:
[snip]
i used below code
import subprocess
import time
def invoke_server1():
proc = subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:
\372\pythonweb\mongoose-2.8.exe -root D:\New1\')
invoke_server1()
time.sleep(10)
On Mon, 21 Jun 2010 04:34:40 +0100, Steven D'Aprano
steve-remove-t...@cybersource.com.au wrote:
On Sun, 20 Jun 2010 22:45:14 +0100, Rhodri James wrote:
No. Modern C compilers often produce very good machine code, but the
best hand-written assembly code will be better. I can usually write
On Mon, Jun 21, 2010 at 1:50 PM, Grant Edwards inva...@invalid.invalid wrote:
What module is recommended for parsing/generating ical files?
However, I'm not sure it's being maintained. Despite the claim on the
above page that the current version is 2.1, The latest version I can
find is v1.2
pydoc xrange says:
Help on class xrange in module __builtin__:
class xrange(object)
python_2.6.5_library.pdf says:
Objects of type xrange are similar to buffers
Are type and class synonyms? It seems that they are at least according
to some webpages that I read. But I'm not completely sure.
Hello all,
I'm happy to announce the initial release of python-signalfd. This
simple package wraps the sigprocmask(2) and signalfd(2) calls, useful
for interacting with POSIX signals in slightly more advanced ways than
can be done with the built-in signal module.
You can find the package
On 06/22/2010 12:11 AM, Peng Yu wrote:
pydoc xrange says:
Help on class xrange in module __builtin__:
class xrange(object)
python_2.6.5_library.pdf says:
Objects of type xrange are similar to buffers
Are type and class synonyms? It seems that they are at least according
to some
On 6/21/10 3:11 PM, Peng Yu wrote:
Are type and class synonyms? It seems that they are at least according
to some webpages that I read. But I'm not completely sure. Could you
let me know in case my impress is wrong?
Once upon a time, a type was something that was only built-in, provided
by
hello,
i have a text file that contains gps coordinates that i want to load
into my mysql database
the file is basically in this format:
52.2375412
5.1802704
i basically tried this:
lat =0.0
for line in f:
lat = float(line)
but this gives an error.. does anyone know what i should to do?
On 6/21/10 3:54 PM, davidgp wrote:
i basically tried this:
lat =0.0
for line in f:
lat = float(line)
but this gives an error.. does anyone know what i should to do?
thanks,
An error?
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type
On Jun 21, 4:00 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote:
On 6/21/10 3:54 PM, davidgp wrote:
i basically tried this:
lat =0.0
for line in f:
lat = float(line)
but this gives an error.. does anyone know what i should to do?
thanks,
An error?
Python 2.6.1 (r261:67515,
On 6/21/10 4:03 PM, davidgp wrote:
sorry :)
Okay, I should be more specific: include full tracebacks and some real
copied and pasted code :) Don't throw away nice debugging information
Python gave you, feed it to us.
invalid literal for long() with base 10: '51.9449702'
this is the error
On Jun 21, 4:18 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote:
On 6/21/10 4:03 PM, davidgp wrote:
sorry :)
Okay, I should be more specific: include full tracebacks and some real
copied and pasted code :) Don't throw away nice debugging information
Python gave you, feed it to us.
Thank you, RantingRick and EB303. Much appreciated and it looks like
it works fine now. Still learning but I am amazed every single day how
simple Python is!
Thanks Again,
Anthony Papillion
--
http://mail.python.org/mailman/listinfo/python-list
On 21/06/2010, at 20:26, davidgp davidvanijzendo...@gmail.com wrote:
On Jun 21, 4:18 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote:
On 6/21/10 4:03 PM, davidgp wrote:
sorry :)
Okay, I should be more specific: include full tracebacks and some
real
copied and pasted code :) Don't
On 6/21/10 4:26 PM, davidgp wrote:
ah, i see :P
float(45.34) or whatever does work fine, but the problem is that i'm
reading it from a text file. so somehow it is not a real string or
whatever..
here's a part of the code:
f = open ('/home/david/out.txt', 'r')
for line in f:
if tel ==6:
News123 wrote:
Hi,
So far I never really had to ask this question and this is also, why I
am stil a little shaky on this topic:
So far the typical LAMP server existed already and contained already a
lot of existing PHP web applications, which I couldn't remove.
Therefore I just used
When I compress a file with bzip2 from command line and read it with
*uncomp_data = bz2.BZ2File(fname).read()* , it reads the whole file into
uncomp_data.
However when I compress the file with pbzip2 from command line and read it
in a similar way* it just reads the block size of data* used for
On Jun 21, 5:13 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote:
On 6/21/10 4:26 PM, davidgp wrote:
ah, i see :P
float(45.34) or whatever does work fine, but the problem is that i'm
reading it from a text file. so somehow it is not a real string or
whatever..
here's a part of the
Hi Kruptein,
Kruptein wrote:
I think that apache and mod_python are good enough, but I'm not an
expert.
but I think that the security aspect for a large part depends on how
secure your code is.
You can have a very secure server setting, but somewhere a bug in your
code that makes it
AutoRecalcDict is a subclass of dict that allows programmers to create user
defined dependencies and functions on target keys.
You can find it at
http://pypi.python.org/pypi/AutoRecalcDict/0.1.1
I recently was designing tests for radio frequency analysis (about which, I know
nothing). All of
On 6/21/2010 6:11 PM, Peng Yu wrote:
pydoc xrange says:
Help on class xrange in module __builtin__:
class xrange(object)
python_2.6.5_library.pdf says:
Objects of type xrange are similar to buffers
Are type and class synonyms? It seems that they are at least according
to some webpages that
DivX sem.r...@gmail.com wrote:
Another thing is that when you have assembler now you can write some
small C compiler so that you don’t have to write assembly language.
That has to be the most paradoxical argument I've ever heard: when
you use assembler you have the ability to not use assembler
On Mon, 21 Jun 2010 15:43:01 -0700, Stephen Hansen wrote:
many types are fundamentally immutable(i.e., ints, strings), and its
awful hard to make an immutable class.
It's really simple if you can inherit from an existing immutable class.
class K(tuple):
pass
Of course, that lets you add
On Mon, Jun 21, 2010 at 5:32 PM, Ameet Nanda ameet.na...@gmail.com wrote:
When I compress a file with bzip2 from command line and read it with
uncomp_data = bz2.BZ2File(fname).read() , it reads the whole file into
uncomp_data.
However when I compress the file with pbzip2 from command line and
Javier Collado javier.coll...@gmail.com added the comment:
Working on it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9026
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
You will need to delete TCL_LIBRARY and TK_LIBRARY in your environment settings.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9039
New submission from Enrico Sartori enry...@gmail.com:
To send an email with a PDF attachment the following code should work:
msg = MIMEMultipart()
msg['From'] = from
msg['To'] = to
msg['Subject'] = 'test'
fp = open('/path/to/file.pdf', 'rb')
attach = MIMEApplication(fp.read(), 'pdf')
fp.close()
Marc-Andre Lemburg m...@egenix.com added the comment:
Tarek Ziadé wrote:
Tarek Ziadé ziade.ta...@gmail.com added the comment:
The patch looks good but I am not comfortable with this change until it's
tested under other windows/VC flavors.
The patch is really trivial, but I'll test it on
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I am adding srid in the nosy list. I believe he can test those platforms as
well if he's around
--
nosy: +srid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8854
Mark Dickinson dicki...@gmail.com added the comment:
This affects 2.6 as well, doesn't it?
--
nosy: +mark.dickinson
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
Changes by Éric Araujo mer...@netwok.org:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
___
Konstantin Zemlyak z...@zartsoft.ru added the comment:
Win2003 x64, VS2008, vanilla python 2.7rc1 amd64 from python.org.
Building python packages with C extensions works fine. Tested on simplejson,
jinja2 (with enabled speedups) and PIL.
--
nosy: +zart
1 - 100 of 193 matches
Mail list logo