sysv_ipc 0.6 is now available. This is the first version to include
Python 3 support.
sysv_ipc is a BSD-licensed module which gives Python access to System
V inter-process semaphores, shared memory and message queues on most
(all?) *nix flavors, and possibly Windows + Cygwin.
Optimized String-like Object is kind of a misnomer in that, the object
provided is a subclass of the base str type, adding optimized (Cython
bindings to the standard (POSIX) libc regex and string functions)
match() and sub() methods.
Homepage: https://wiki.fu-manchu.org/doku.php?id=projects:ostri
Hi All,
Early bird registration (€40) for PyCon Ireland 2010 ends 31st May. It'll
revert to standard price of €60.
(As well as Sat and Sun's days events, a conference pass incls. a dinner and
live entertainment on Saturday night).
Bringing a friend, partner, etc. for dinner on Sat evening? You
I am creating an application and I'm busy designing the main layout on the
main window. What I would like to do is the following:
Create a QTabWidget with a QVBoxLayout already inside it and also a
scrollbar inside it. When a user triggers a menu item,
a QDockWidget must be created and inserted
Hi guys,
On netfilter-based NAT systems there is theoretically a possibility to
retrieve the original address *after* NAT'ing a connection. In C, this
can be done as in squid, a transparent HTTP proxy:
http://paste.pocoo.org/show/216495/
I'd like to do the same in Python. So I started with a
I'm doing the MIT OpenCourseWare class that this assignment hails from
and I don't doubt that its a relatively common assignment. Upon
searching for it for some ideas of why my program wouldn't work one of
the top results is this a thread from this group full of derision and
sarcasm. Believe me I
On Thu, 20 May 2010 23:35:01 -0400, Alex Hall wrote:
You overrode the __init__method from the superclass.
I know, I thought I had to in order to make all of Craft's attribs
available to the Battleship. Is that not the case?
No, the opposite in fact.
One of the basic features of objects (at
Alex Hall wrote:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional arguments. Here is
some of my code:
class Craft():
def __init__(self,
name,
isAircraft=False,
id=helpers.id(),
hits=0,
weapons=[]):
Hi guys,
I found a solution myself in O'Reilly's Security Power Tools. It works
seamlessly as follows:
from socket import *
SO_ORIGINAL_DST = 80
s = socket(AF_INET, SOCK_STREAM)
s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
s.bind(('192.168.255.254', 80))
s.listen(1)
conn, addr = s.accept()
dst =
Neal wrote:
I'm doing the MIT OpenCourseWare class that this assignment hails from
and I don't doubt that its a relatively common assignment. Upon
searching for it for some ideas of why my program wouldn't work one of
the top results is this a thread from this group full of derision and
I had similar problem with SimpleXMLRPCServer
Create the request handler class
class ExtendedXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
# originally this one was slowing down my server A LOT due to DNS
settings!!!
def log_request(self, *args):
pass
and put it in your
On May 7, 7:33 am, Dodo dodo_do_not_wake...@yahoo.fr wrote:
Le 01/05/2010 12:52, Dodo a écrit :
Le 30/04/2010 17:52, Antoine Pitrou a écrit :
Le Thu, 29 Apr 2010 23:37:32 +0200, Dodo a écrit :
I don't get a thing.
Now with the fix :
All browsers shows a different thing, but not
On May 20, 1:54 am, kak...@gmail.com kak...@gmail.com wrote:
Hi to all,
i need some hints about a console application i' m trying.
I want to make it act as a client and as a server at a same time.
And since it is a console application i' m using cmd library.
I want something that works like
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
however by having a look at this page http://wiki.python.org/moin/Applications
i could not see many programs written in python (i will be interested
more in COMMERCIAL programs written in
On 21 May 2010 11:21:11 UTC+1, Deep_Feelings doctore...@gmail.com wrote:
1- where are the programs that is written in python ?
2- python is high productivity language : why there are no commercial
programs written in python ?
See http://www.python.org/about/success/
--
Cheers,
Simon B.
--
On 05/21/10 11:21, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
Yeah about the same as Java
however by having a look at this page http://wiki.python.org/moin/Applications
i could not see many programs written in
did this not go to the list? Arg, reply does in other mailing list.
On Fri, May 21, 2010 at 5:48 AM, Jake b ninmonk...@gmail.com wrote:
I took it as game-domain only question:
I don't know of any big game written in python. ( meaning python code,
using c++ libs. ) Verses games that at their
Networking can be hard. I'd suggest checking out these libs.
pygame mastermind:
http://www.pygame.org/project-Mastermind+Networking+Lib-859-1773.html
podSixNet : http://mccormick.cx/projects/PodSixNet/
twisted: http://wiki.python.org/moin/Twisted-Examples
lots of references in the answers to
Mike 'Fuzzy' Partin, 21.05.2010 08:37:
Optimized String-like Object is kind of a misnomer in that, the object
provided is a subclass of the base str type, adding optimized (Cython
bindings to the standard (POSIX) libc regex and string functions)
match() and sub() methods.
Hi,
could you give
On May 21, 1:35 pm, Simon Brunning si...@brunningonline.net wrote:
On 21 May 2010 11:21:11 UTC+1, Deep_Feelings doctore...@gmail.com wrote:
Seehttp://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is acting only as quick
and dirty work nothing more
Deep_Feelings wrote:
On May 21, 1:35 pm, Simon Brunning si...@brunningonline.net wrote:
On 21 May 2010 11:21:11 UTC+1, Deep_Feelings doctore...@gmail.com wrote:
Seehttp://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is acting only as quick
Python users,
I am parsing an AIX trace file and creating a dictionary containing
keys (PIDS) and values (a list of TIDS). With PIDS being unique process ids
and TIDS, being a list of thread ids. My function populates the keys so
that they are unique, but my list contains duplicates.
On Fri, May 21, 2010 at 9:12 PM, Deep_Feelings doctore...@gmail.com wrote:
thankx for reply.
from that list i have a feeling that python is acting only as quick
and dirty work nothing more !
You might have just offended a lot of people on the list here
Cheers,
Xav
--
On 21 May 2010 12:12:18 UTC+1, Deep_Feelings doctore...@gmail.com wrote:
from that list i have a feeling that python is acting only as quick
and dirty work nothing more !
Really?
Well, in any case, I can tell you that I know of a number of large
commercial web sites built with Django. I just
On Freitag 21 Mai 2010, Jake b wrote:
I don't know of any big game written in python. ( meaning
python code, using c++ libs
would you call 8702 python statements big? If so,
Kajongg would be a candidate.
--
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
Chad Kellerman wrote:
Python users,
I am parsing an AIX trace file and creating a dictionary containing
keys (PIDS) and values (a list of TIDS). With PIDS being unique process
ids
and TIDS, being a list of thread ids. My function populates the keys so
that they are unique, but my
On Fri, May 21, 2010 at 7:50 AM, Peter Otten __pete...@web.de wrote:
Chad Kellerman wrote:
Python users,
I am parsing an AIX trace file and creating a dictionary containing
keys (PIDS) and values (a list of TIDS). With PIDS being unique process
ids
and TIDS, being a list of
On 5/21/10, Peter Otten __pete...@web.de wrote:
Alex Hall wrote:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional arguments. Here is
some of my code:
class Craft():
def __init__(self,
name,
isAircraft=False,
On Fri, 2010-05-21 at 02:10 -0700, rav wrote:
I had similar problem with SimpleXMLRPCServer
Create the request handler class
class ExtendedXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
# originally this one was slowing down my server A LOT due to DNS
settings!!!
def
On Fri, 2010-05-21 at 11:37 +0100, Martin P. Hellwig wrote:
On 05/21/10 11:21, Deep_Feelings wrote:
however by having a look at this page
http://wiki.python.org/moin/Applications
i could not see many programs written in python (i will be interested
more in COMMERCIAL programs written in
On Thu, 2010-05-20 at 22:58 -0700, Dennis Lee Bieber wrote:
On Thu, 20 May 2010 02:45:10 -0700 (PDT), Jimoid
jimmy.cul...@gmail.com declaimed the following in
gmane.comp.python.general:
I've now had a closer look at both pyODBC and mxODBC and it seems to
me that they both require the
On Fri, May 21, 2010 at 8:07 AM, Chad Kellerman sunck...@gmail.com wrote:
On Fri, May 21, 2010 at 7:50 AM, Peter Otten __pete...@web.de wrote:
Chad Kellerman wrote:
Python users,
I am parsing an AIX trace file and creating a dictionary
containing
keys (PIDS) and values (a list
Chad Kellerman wrote:
On Fri, May 21, 2010 at 8:07 AM, Chad Kellerman sunck...@gmail.com
wrote:
On Fri, May 21, 2010 at 7:50 AM, Peter Otten __pete...@web.de wrote:
Chad Kellerman wrote:
Python users,
I am parsing an AIX trace file and creating a dictionary
containing
keys
In a recent Reg article, there's yet more yammering on about how Go is
somehow akin to Python -- referring to Go as a Python-C++ crossbreed.
http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/
I still don't get it.
What about Go, exactly, do people see as Phython-like?
Go
On Fri, May 21, 2010 at 11:20 PM, Grant Edwards inva...@invalid.invalid wrote:
In a recent Reg article, there's yet more yammering on about how Go is
somehow akin to Python -- referring to Go as a Python-C++ crossbreed.
http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/
I
In article ht4406$92...@reader1.panix.com,
Grant Edwards inva...@invalid.invalid wrote:
Lest my allusions to Fortran IV be lost upon the less grizzled, only
the first 6 characters were significant in Fortran IV identifiers, and
removing all of the vowels from a longer word was an idiomatic way
What is the easiest way in python to create a addon system?
I found to easy ways:
* using a import system like this:
for striper in stripers:
if striper[enabled]:
exec(from strip import %s as _x%striper[striper])
string = _x.start(string)
* using exec
On 20 Mag, 12:58, Thomas Lehmann t.lehm...@rtsgroup.net wrote:
The question is:
Is there a limit on the number of entries a dictionary can have i
jython?
I wrote a little app where my data is stored in a huge dictionary
(11746 entries) generated with a python script.
When I try to
Python 2.6: Is there a programming technique or 3rd party
formatting module that supports string.Template.safe_substitute()
type string substituion with % type formatting rules for width,
decimals, justification, etc?
Or do I need to use a 3rd party template engine to get the best
of both worlds?
In article mailman.411.1274281806.32709.python-l...@python.org,
Terry Reedy tjre...@udel.edu wrote:
On 5/19/2010 3:17 AM, CM wrote:
I love how he just copied and pasted the assignment without any other
remarks.
Yeah, that way he did not mess it up ;-).
OTOH it may be a copyright infringement.
On May 21, 3:21 am, Deep_Feelings doctore...@gmail.com wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
however by having a look at this pagehttp://wiki.python.org/moin/Applications
i could not see many programs written in python
Christian Heimes wrote:
MRAB wrote:
I think you need to 'commit' any changes to do to the database.
Yeah, you are right.
Also some RDBMS don't support DDL and DML statements inside one
transaction. You may need to commit and begin after the create table DDL.
Christian
Er, yes.
Hi;
When I try to execute this code from my Python script, I get this error:
Traceback (most recent call last):
File
/var/www/html/creative.vi/clients/sea-flight/reservations/create_edit_bags3.py,
line 38, in ?
create_edit_bags3()
File
On 5/20/2010 10:56 PM, Alex Hall wrote:
A couple of style comments for you to consider.
class Craft():
def __init__(self,
name,
isAircraft=False,
id=helpers.id(),
hits=0,
weapons=[]):
Not indenting lines after def makes the code harder to read for me, and,
I expect, many others
On 5/21/10, Terry Reedy tjre...@udel.edu wrote:
On 5/20/2010 10:56 PM, Alex Hall wrote:
A couple of style comments for you to consider.
class Craft():
def __init__(self,
name,
isAircraft=False,
id=helpers.id(),
hits=0,
weapons=[]):
Not indenting lines after def makes the
Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional arguments. Here is
some of my code:
class Craft():
def __init__(self,
name,
isAircraft=False,
id=helpers.id(),
hits=0,
You did provide a very constructive answer and I do apologize for
generalizing the group or all the posts. And while the original poster
did not seem to have made much of an effort, the tone of the initial
response of that thread turns off anyone else who may be willing to
make that effort.
I
On 5/21/2010 7:12 AM, Deep_Feelings wrote:
On May 21, 1:35 pm, Simon Brunningsi...@brunningonline.net wrote:
On 21 May 2010 11:21:11 UTC+1, Deep_Feelingsdoctore...@gmail.com wrote:
Seehttp://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is
On May 21, 5:21 am, Deep_Feelings doctore...@gmail.com wrote:
i could not see many programs written in python
Well you could try PyPi, or even a search on googlecode.
(i will be interested
more in COMMERCIAL programs written in python ).
What do you mean by commercial, and why?
and to be
On Fri, May 21, 2010 at 5:50 PM, timo verbeek timoverbee...@gmail.com wrote:
What is the easiest way in python to create a addon system?
I found to easy ways:
* using a import system like this:
for striper in stripers:
if striper[enabled]:
exec(from strip import %s as
On 5/21/10, Christian Heimes li...@cheimes.de wrote:
Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional arguments. Here is
some of my code:
class Craft():
def __init__(self,
On Fri, May 21, 2010 at 4:12 AM, Deep_Feelings doctore...@gmail.com wrote:
On May 21, 1:35 pm, Simon Brunning si...@brunningonline.net wrote:
On 21 May 2010 11:21:11 UTC+1, Deep_Feelings doctore...@gmail.com wrote:
Seehttp://www.python.org/about/success/
thankx for reply.
from that list i
On 05/21/2010 12:31 PM, Victor Subervi wrote:
cursor.execute('insert into Baggage values (Null, %s, %s, %s,
%s)', (flight_id, customer_id, weight, ticket_no))
You're trying to insert stuff...
OperationalError: (1452, 'Cannot add or update a child row: a foreign
key constraint fails
On 5/21/2010 6:21 AM, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
however by having a look at this page http://wiki.python.org/moin/Applications
i could not see many programs written in python (i will be interested
On Fri, May 21, 2010 at 11:38 AM, Alex Hall mehg...@gmail.com wrote:
On 5/21/10, Christian Heimes li...@cheimes.de wrote:
Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional
Alex Hall wrote:
On 5/21/10, Christian Heimes li...@cheimes.de wrote:
Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional arguments. Here is
some of my code:
class Craft():
On 05/21/2010 01:40 PM, geremy condra wrote:
See http://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is acting only as quick
and dirty work nothing more !
Yeah, there's not really a lot of industry support. If only we could
get a huge search
On Fri, May 21, 2010 at 11:49 AM, Chris Rebert c...@rebertia.com wrote:
On Fri, May 21, 2010 at 11:38 AM, Alex Hall mehg...@gmail.com wrote:
On 5/21/10, Christian Heimes li...@cheimes.de wrote:
Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which
Alex Hall wrote:
On 5/20/10, alex23 wuwe...@gmail.com wrote:
I have since updated each ship's
__init__ to accept all the arguments that Craft accepts so that I can
support all optional arguments,
Ick. Now you'll have to change several things if you make one change to
the Craft class.
On Fri, 2010-05-21 at 08:50 -0700, timo verbeek wrote:
What is the easiest way in python to create a addon system?
I found to easy ways:
* using a import system like this:
for striper in stripers:
if striper[enabled]:
exec(from strip import %s as
On 5/21/10, Ethan Furman et...@stoneleaf.us wrote:
Alex Hall wrote:
On 5/20/10, alex23 wuwe...@gmail.com wrote:
I have since updated each ship's
__init__ to accept all the arguments that Craft accepts so that I can
support all optional arguments,
Ick. Now you'll have to change several
On Fri, May 21, 2010 at 1:09 PM, Alex Hall mehg...@gmail.com wrote:
On 5/21/10, Ethan Furman et...@stoneleaf.us wrote:
Alex Hall wrote:
On 5/20/10, alex23 wuwe...@gmail.com wrote:
I have since updated each ship's
__init__ to accept all the arguments that Craft accepts so that I can
support
I wrote a first script using Tkinter. As I am new to its
use, I am only just feeling my way around. I would very
much like comments on the design of the script (and in fact
any other comments on my code would also be very welcome).
I have it posted (with syntax coloring) at:
It seems to me that there must be some public domain collection
of translated strings that could be searched for 1:1 or fuzzy
translations for strings commonly used in software applications?
Is there a technical and copyright friendly (LGPL licensed?) way
to query services like Google's
On 5/21/10, Chris Rebert c...@rebertia.com wrote:
On Fri, May 21, 2010 at 1:09 PM, Alex Hall mehg...@gmail.com wrote:
On 5/21/10, Ethan Furman et...@stoneleaf.us wrote:
Alex Hall wrote:
On 5/20/10, alex23 wuwe...@gmail.com wrote:
I have since updated each ship's
__init__ to accept all the
Why can't I inherit from traceback to 'spoof' tracebacks? I would like to
create a traceback that is save-able to re-raise exceptions later without
leaking all the locals. (I'm sure this idea has been discussed before but I
can't find it anymore.)
class Traceback(types.TracebackType): pass
Peter Pearson wrote:
If it's important for the function to execute quickly for large n,
you might get a useful speedup by testing only every ninth integer,
Our standards for quickly and large seem kind of thin.
I suspect that further applications of number theory would
provide additional,
On Fri, 21 May 2010 18:01:58 -0400, python wrote:
It seems to me that there must be some public domain collection of
translated strings that could be searched for 1:1 or fuzzy translations
for strings commonly used in software applications?
There must be? Is that a law of nature or something?
In article 290f2f31-0893-469a-a12c-49eff9ffb...@y21g2000vba.googlegroups.com,
eric_dex...@msn.com eric_dex...@msn.com wrote:
I noticed that that the link to that section is gone. The page
seems to be there when I use the url that is stored on my computer.
What are you talking about?
--
Aahz
On 5/21/2010 7:22 PM, Zac Burns wrote:
Why can't I inherit from traceback to 'spoof' tracebacks?
Because a) they are, at least in part, an internal implementation detail
of CPython, and b) even if you could, Python would use the builtin
original with exceptions, and c) you can probably do
In article eb0c9aec-428f-45a2-a985-5b33906e0...@z17g2000vbd.googlegroups.com,
Patrick Maupin pmau...@gmail.com wrote:
There are a lot of commercial programs written in Python. But any
company which thinks it has a lock on some kind of super secret sauce
isn't going to use Python, because it's
On 01:42 am, tjre...@udel.edu wrote:
On 5/21/2010 7:22 PM, Zac Burns wrote:
Why can't I inherit from traceback to 'spoof' tracebacks?
Because a) they are, at least in part, an internal implementation
detail of CPython,
But you can just say this about anything, since there is no Python
a...@pythoncraft.com (Aahz) writes:
In article
eb0c9aec-428f-45a2-a985-5b33906e0...@z17g2000vbd.googlegroups.com,
Patrick Maupin pmau...@gmail.com wrote:
There are a lot of commercial programs written in Python. But any
company which thinks it has a lock on some kind of super secret
Except you can't re-raise them.
Yes, I should have noted that in the original post:
raise RuntimeError, 'X', wrapped_traceback
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: raise: arg 3 must be a traceback or None
Does someone know where the thread went about
On 05/22/10 04:47, Terry Reedy wrote:
On 5/21/2010 6:21 AM, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
however by having a look at this page
http://wiki.python.org/moin/Applications
i could not see many
On May 21, 8:20 am, Grant Edwards inva...@invalid.invalid wrote:
In a recent Reg article, there's yet more yammering on about how Go is
somehow akin to Python -- referring to Go as a Python-C++ crossbreed.
http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/
I still don't get
On Fri, May 21, 2010 at 8:03 PM, Lie Ryan lie.1...@gmail.com wrote:
On 05/22/10 04:47, Terry Reedy wrote:
On 5/21/2010 6:21 AM, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
however by having a look at this page
After starting pdb.set_trace(), python doens't show line number. Could
you let me know how to print the number by default so that I know
where the current line is?
--
Regards,
Peng
--
http://mail.python.org/mailman/listinfo/python-list
On May 21, 3:21 am, Deep_Feelings doctore...@gmail.com wrote:
please don't mention programs where python was used as a glue ,those
programs are not actually written in python.
I hate to answer a troll, but I'll just mention that when people talk
about a glue language, they're not talking about
Tomas Hoger tho...@redhat.com added the comment:
+ - If the name of an existing script is passed in ``argv[0]``, its absolute
+ path is prepended to :data:`sys.path`
Absolute path to the directory where script is located. And I believe there's
no absolute path guarantee for platforms
Pascal Chambon chambon.pas...@gmail.com added the comment:
This would require patching separately py2k and py3k visibly...
I'll have a look at it when I have time.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8765
Mark Dickinson dicki...@gmail.com added the comment:
Alexander, I still don't understand your objection. What's the downside of
allowing the multiplication or division of a timedelta by a float?
Perhaps it's true that there are applications where timedeltas are best viewed
as integers (with
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Do you have set the PYTHONHOME environment variable? this does not work from a
build directory.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8760
holger krekel holger.kre...@gmail.com added the comment:
David, your getsourcefile.patch looks fine (and better than mine) to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8720
___
Ray.Allen ysj@gmail.com added the comment:
pakal wrote:
In test_fileio, one of the tests wants to ensure writing to closed raw streams
fails, but it actually tries to write an unicode string
I don't understand. Isn't b'xxx' and 'xxx' the same in py2.x? They are not
unicode string, but
Mark Dickinson dicki...@gmail.com added the comment:
Python reference implementation showing how to do correct rounding.
--
Added file: http://bugs.python.org/file17426/timedelta_arith.py
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Absolute path to the directory where script is located. And I believe
there's no absolute path guarantee for platforms without realpath /
GetFullPathName.
Yes, this is more precise indeed. As for realpath(), I would expect it
to be present on
Antoine Pitrou pit...@free.fr added the comment:
This was committed in r81392.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4870
Mark Dickinson dicki...@gmail.com added the comment:
N.B. There's already logic for doing div_nearest (i.e., divide one integer by
another, returning the closest integer to the result) in the long_round
function in Objects/longobject.c. It might be worth pulling that logic out and
making it
holger krekel holger.kre...@gmail.com added the comment:
Well, maybe we could introduce a linecache.setlines function to give
the linecache module control over its internal caching and data
handling. What do you think?
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Commited: r81393 (py3k), r81394 (3.1).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8774
Pascal Chambon chambon.pas...@gmail.com added the comment:
yes, but the same tests are used for py3k as well, where xxx is interpreted
as unicode (2to3 tools dont try to guess if a py2k string intended to be a byte
string or an unicode one).
--
___
Antoine Pitrou pit...@free.fr added the comment:
test_fileio and test_io both use from __future__ import unicode_literals,
which means classical string literals construct unicode strings rather than
byte strings.
So, yes, Pascal is right, this should be corrected (both the tests, and the
STINNER Victor victor.stin...@haypocalc.com added the comment:
Yes, make clean should remove *.a and *.so.* files. The patch looks ok.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4007
STINNER Victor victor.stin...@haypocalc.com added the comment:
As you explain in your own documentation, the proposed method
is equivalent to ``(time.mktime(self.timetuple()), self.microsecond)``,
so all it does is replacing a less than a one-liner.
a one-liner, but an horrible one liner
Antoine Pitrou pit...@free.fr added the comment:
I agree with Victor that the APIs need improving, even if it involves providing
obvious replacements of obscure one-liners. As an occasional user of datetime
and time modules, I have too often wanted to curse those limited, awkwardly
Changes by Matthias Troffaes matthias.troff...@gmail.com:
Added file:
http://bugs.python.org/file17427/py3k-rev81387-clearfreelist-dict_set_list.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6695
Changes by Matthias Troffaes matthias.troff...@gmail.com:
Added file:
http://bugs.python.org/file17428/py3k-rev81387-clearfreelist-gc_collect.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6695
Changes by Matthias Troffaes matthias.troff...@gmail.com:
Added file:
http://bugs.python.org/file17429/py3k-rev81387-clearfreelist-time_gc_collect.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6695
Matthias Troffaes matthias.troff...@gmail.com added the comment:
I uploaded updates of the three relevant patches against the current revision
of the py3k branch, as the old patches no longer applied cleanly due to
whitespace changes.
To summarize:
* The first patch,
1 - 100 of 162 matches
Mail list logo