The data key in your js http function is set to the attributes variable
> which, as far as I can tell, does not exist.
>
> There's a lot going on here, but I think you can probably narrow it down to
> something in your backbone code or the way
> backbone handles http requests as the error you are getting is caused by
> the client prematurely closing the socket.
> It's possible backbone will stop reading the response since it isn't the
> same content-type as the request.
Thanks a lot Justin,
The problem was solved when I employed standard Framework methods for creation
of new database object:
in JS:
var trendModel = new App.TrendModel();
trendModel.set("phrase", search_phrase);
trendModel.set("from_time", time_from);
trendModel.set(...
trendModel.save(...
in PY:
def create(self, request):
...
I've also created extra template and additional View. PageView for some unclear
reason didn't support creation of new object - this event just disappeared.
Regards,
Roman
--
https://mail.python.org/mailman/listinfo/python-list
dall(view[write_offset:write_offset+buffer_size])
> error: [Errno 32] Broken pipe
>
> Exception happened during processing of request from ('127.0.0.1', 38224)
>
> It is also described in:
> https://www.reddit.com/r/joinmarket/commen
ibed in:
https://www.reddit.com/r/joinmarket/comments/4atqrm/is_this_exception_normal_exception_happened/
On https://bugs.python.org/issue14574 is stated that this error should already
be fixed but apparently not.
Best regards,
Roman
--
https://mail.python.org/mailman/listinfo/python-list
10.08.2012, в 14:12, Mok-Kong Shen написал(а):
> Am 10.08.2012 11:48, schrieb Roman Vashkevich:
>> [snip]
> >The function It takes list by reference and creates a new local
> > str. When it's called with listb and strb arguments, listb is passed
> > by refe
10.08.2012, в 14:12, Mok-Kong Shen написал(а):
> Am 10.08.2012 11:48, schrieb Roman Vashkevich:
>> [snip]
> >The function It takes list by reference and creates a new local
> > str. When it's called with listb and strb arguments, listb is passed
> > by refe
10.08.2012, в 13:28, Roman Vashkevich написал(а):
> 10.08.2012, в 13:19, Mok-Kong Shen написал(а):
>
>>
>> In an earlier question about lists, I was told about the issue of
>> creation of local names in a function. However, I still can't
>> understand why the
):
> list+=[999]
> str+="sss"
>
> lista=[]
> stra=""
> lista+=[999]
> stra+="sss"
> print(lista,stra)
>
> listb=[]
> strb=""
> xx(listb,strb)
> print(listb,strb)
> --
> http://mail.python.org/mailman/listinfo/pyt
10.08.2012, в 1:47, Dave Angel написал(а):
> On 08/09/2012 05:34 PM, Roman Vashkevich wrote:
>> Actually, they are different.
>> Put a dict.{iter}items() in an O(k^N) algorithm and make it a hundred
>> thousand entries, and you will feel the difference.
>> Dict uses
Actually, they are different.
Put a dict.{iter}items() in an O(k^N) algorithm and make it a hundred thousand
entries, and you will feel the difference.
Dict uses hashing to get a value from the dict and this is why it's O(1).
10.08.2012, в 1:21, Tim Chase написал(а):
> On 08/09/12 15:4
dict.items() is a list - linear access time whereas with 'for key in dict:'
access time is constant:
http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#use-in-where-possible-1
10.08.2012, в 0:35, Tim Chase написал(а):
> On 08/09/12 15:22, Roman Vashkevich wrot
for key in dict:
print key[0], key[1], dict[key]
10.08.2012, в 0:11, giuseppe.amatu...@gmail.com написал(а):
> Hi,
> I have a dict() unique
> like this
> {(4, 5): 1, (5, 4): 1, (4, 4): 2, (2, 3): 1, (4, 3): 2}
> and i want to print to a file without the brackets comas and semicolon in
> ord
09.07.12 13:21, cheetah ?:
I don't need it.
thanks
In python's setup.py replace:
self.detect_tkinter(inc_dirs, lib_dirs)
of
def detect_modules(self):
This will ignore the compilation of _tkinter.c and tkappinit.c of
the python distribution.
--
http://mail.python.org/mailman/list
2012/7/5 tom z
> Hi~ all,
> I encounter a odd problem, when i compile Python with PYMALLOC_DEBUG, the
> PIL module can't work fine, it always make core-dump like this
>
> [Switching to Thread 182897301792 (LWP 16102)]
> 0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804
>
You could implement REST protocol for Grok using
http://pypi.python.org/pypi/restkit/
2012/6/25 TG
> Just hoping to get some opinions: Grok vs Django for REST? I've started
> evaluating TastyPie with Django. Is there something similar for Grok?
>
> I'm working on a project that will mostly be mo
Try to use http://pycurl.sourceforge.net/
I don't test it, but there is no problem interact with google services.
22.06.12 17:27, davecotef...@gmail.com пишет:
On Monday, 9 April 2012 20:24:54 UTC-7, CM wrote:
Shot in the dark here: has any who reads this group been successful
with getting Py
> Perhaps if you show us what you actually do, and what happens, we might
> be able to tell you what is happening. Please COPY AND PASTE the full
> traceback.
Here is my code:
# Trying to make callable staticmethod
class sm(staticmethod):
def __call__(self, *args, **kwargs):
""" I know
Hi.
How exactly jython decides is object callable or not? I defined
__call__ method but interpreter says it's still not callable.
BTW, my code works in cpython
--
http://mail.python.org/mailman/listinfo/python-list
: Mon, 27 Feb 2012 16:51:00 +0100
From: Roman Rakus
To: xml-...@python.org
Hi,
I have concerns about PyXML and stdlib xml included directly in python.
Currently (in Fedora) python is trying to import PyXML, which means
other results when you have and haven't PyXML installed.
Furth
Thanks to Andreas Waldenburger, THC4k (http://stackoverflow.com/
questions/4247036/python-recursively-getattribute) and others for
their tips. I was able to find solution:
class Null(object):
def __repr__(self):
return ""
def __str__(self):
return ''
def __nonzero__(s
On Nov 22, 7:57 pm, Terry Reedy wrote:
> On 11/22/2010 10:46 AM, Roman Dolgiy wrote:
>
> > Hello,
>
> > I need to implement such behavior:
>
> > obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
>
> obj.attr1.attr2.attr3 is parsed as ((obj.attr1).attr2).
On Nov 22, 6:04 pm, Andreas Waldenburger
wrote:
> On Mon, 22 Nov 2010 07:46:47 -0800 (PST) Roman Dolgiy
> wrote:
>
> > Hello,
>
> > I need to implement such behavior:
>
> > obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
> > It looks like I have to
Hello,
I need to implement such behavior:
obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
It looks like I have to override obj's class __getattribute__ and also
use python descriptors somehow.
Any help will be much appreciated.
http://stackoverflow.com/questions/4247036/python-recursively-geta
Hi,
I am new to Python and I wanted to understand something...
The EVE Online Client is build using Stackless Python
So when I install the client on my machine, how doe sit get run if I do not
have Python installed?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I am trying to install pysqlite (Python interface to the SQLite). I
downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I
did the following:
gunzip pysqlite-2.5.5.tar.gz
tar xvf pysqlite-2.5.5.tar
cd pysqlite-2.5.5
python setup.py install
At the last step I have a problem.
Why does not this snipplet work?
-
from job import JobQueue
import Queue
import threading
import gobject
q=JobQueue()
def worker():
print "Worker waiting"
q.get()
print "Got job!"
if __name__ == "__main__":
t = threadi
On 06/08/09 08:35, Robert Dailey wrote:
> Hey guys,
>
> I'm creating a python script that is going to try to search a text
> file for any text that matches my regular expression. The thing it is
> looking for is:
>
> FILEVERSION #,#,#,#
>
> The # symbol represents any number that can be any leng
On 04/08/09 12:20, aurelien wrote:
> Hello,
>
> I am under gNewSense, i am a newbbie on Python, i look for how change
> the color terminal when python run.
> at the step >>> all is in black and white.
> Is it possible to have the python color in the terminal ?
>
> Thanks for your help
>
> aureli
Following code works, although I'm not sure that it's exactly what you
want:
import abc
class MetaExample(abc.ABCMeta):
def __new__(mcs, name, bases, ns):
ns['cls_meth'] = mcs.cls_meth
if not 'cls_abc' in ns:
ns['cls_abc'] = mcs.cls_abc
Karthik Gurusamy escribió:
> On Mar 13, 6:39 pm, Roman Medina-Heigl Hernandez
> wrote:
>> Hi,
>>
>> I'm experimenting with Python and I need a little help with this. What I'd
>> like is to launch an interactive shell, having the chance to send first
>&
The problem is that when I launch it, python proggy is automatically
suspended. The output I got is:
ro...@rslabs:~/pruebas$ ./shell.py
ro...@rslabs:~/pruebas$ uid=1000(roman) gid=1000(roman) groups=1000(roman)
ro...@rslabs:~/pruebas$
[2]+ Stopped ./shell.py
ro...@rslabs:~/pruebas
On Jan 24, 3:25 pm, whatazor wrote:
> Hi all,
> I start to use this module in order to produce xml( and the make other
> things), but differently from gccxml I don't find the variable that
> set the name of the xml output file after the parsing (in gccxml is -
> fxml), so it creates temporary file
ml installer, it is just a Python script, I wrote, that
contains bug - it deletes directories. So you need to be very very
careful with it.
The bottom line - don't use it. It takes only 20 minutes to install
it, once you have its source code and cmake.
--
Roman Yakovenko
C++ Python language
e and didn't work reliably.
I suggest you to follow GCCXML install instructions (
http://gccxml.org/HTML/Install.html ) and you will have it in less
than 20 minutes.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
language-binding.net/pyplusplus/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ed.
For a more complete list, please see the news:
http://language-binding.net/pygccxml/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
WaterWalk пишет:
> Hello. I wonder what's the effective way of figuring out how a piece
> of python code works. With C I often find it very useful to be able to
> run the code in step mode and set breakpoints in a debugger so I can
> watch how the it executes, how the data change and how the code
On 14 mar, 14:25, [EMAIL PROTECTED] wrote:
>> Hi friends !!
>>
>> I'm neophite about python, my target is to create a programa that
>> find a specific string in text file.
>> How can do it?
>>
>> Thanks
>> fel
>>
>
>
>
One more way to do this
f = codecs.open("log.txt", 'r', "utf_16_le")
/Recipe/465508,
very small but powerful templating engines. I use YAPTU myself for
invoice templating.
Regards, Roman
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
the code
of locale.py, revision 55038, lines 157-161, the inserted spaces are later
deleted again:
while seps:
sp = formatted.find(' ')
if sp == -1: break
formatted = formatted[:sp] + formatted[sp+1:]
seps -= 1
This code is only c
s well for writing a simulation
> game.
> The Python Bindings I have found to date are:
>
> For OpenSG:
> https://realityforge.vrsource.org/trac/pyopensg
>
> For OSG (there seems to be several variations of these):
> http://code.astraw.com/projects/pyosg
>
> I suppose you could also
I create the BOOST_PYTHON_MODULE in an
> embedded python c++ program how to I then import that module into my
> embedded python?
http://boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html
Embedding example:
http://svn.boost.org/trac/boost/browser/trunk/libs/python/test/import_.cpp
HTH
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ificant
> lines in the
> source code for reference. My DocBook processing software xmlint,
> xsltproc, and fop,
> don't support numbering lines, when including source files via
> http://boost-consulting.com/boost/tools/quickbook/doc/html/index.html
)
It is not exactly what you w
Is there a package that converts a string that contains special
characters in xml to to literal value. For instance, converts string
http://myhome/¶m to http://myhome/¶m.
Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
e(w,h)]);
> }
> }
> }
>
>
> Some help is very welcome here ... thanks.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
unctionality to Boost.Python Indexing Suite V2 ``std::map``
and ``std::multimap`` containers.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
e base one.
Bug fixes
-
* C++ does not define implicit conversion between an integral type and
``void*``.
"declarations.is_convertible" type traits was fixed.
* Small bug was fixed in functionality that corrects GCC-XML reported function
default arguments. Reference to &quo
r class.
Then you can register it as usual function.
For example:
http://language-binding.net/pyplusplus/documentation/functions/transformation/built_in/input_c_buffer.html
take a look on generated source code( at the bottom of the page )
Thanks again,
Stou
On 4/19/07, Roman Yakovenko <[EMAIL PR
orial/doc/html/python/techniques.html#python.extending_wrapped_objects_in_python
Regards,
Stou
--
http://mail.python.org/mailman/listinfo/python-list
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
dings to
Ogre engine was
created using Boost.Python( http://www.ogre3d.org/wiki/index.php/PyOgre )
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ut try
some other way: Boost.Python. Take a look on tutorials:
http://www.boost.org/libs/python/doc/tutorial/doc/html/python/exposing.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
one uses Py++.
The link I gave earlier contains links to the projects CVS's. It worse to
take a
look on them and compare.
P.S. Take all what I say with caution, because I am the author of Py++.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.py
> best toolkits.Now I got a doubt can I interface GWT
> with python.
http://pyjamas.pyworks.org/ is the way to go.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ning
> access to C/C++ functionality from Jython? Please keep in mind that I
> have very little Jython experience.
>
May be you should consider JPype( http://jpype.sourceforge.net/ )
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
it's not visible to
> the wrapper author.
Boost.Python hides it pretty well :-)
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
quiet some
> time in functions like _swig_setattr_nondinamic, _swig_setattr,
> _swig_getattr.
Before you decide to go "low level" consider to use Boost.Python.
According to this( http://tinyurl.com/322d3p ) post it gives pretty
good performance.
P.S. The post does not contain numbe
ect is an open source, consider to contribute your
experience, knowledge
and time to make it better.
You can download pre-built binaries for Windows platform from here:
http://www.boost-consulting.com/download.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
http://tinyurl.com/ycwvwo ) will help you
to start\learn Boost.Python.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
?
>
It has very much to do with computer programming. There is program flow,
conditions, loops, variables.
Roman
--
http://mail.python.org/mailman/listinfo/python-list
ython as new strings (I don't want to hold a pointer to them).
I am not sure, you'd better ask this question o Boost.Python mailing list:
http://mail.python.org/mailman/listinfo/c++-sig/
Py++, Boost.Python code generator, does it for you: http://tinyurl.com/ygwdkz
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
bug
was introduced.
For a more complete list, please see the news:
http://language-binding.net/pyplusplus/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
e complete list, please see the news:
http://language-binding.net/pygccxml/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
nguage-binding.net/pyplusplus/pyplusplus.html )
Boost.Pythoncode generator
It has nice GUI ( no need to learn any API ):
http://language-binding.net/pyplusplus/documentation/tutorials/pyplusplus_gui.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ra_shortest_paths(graph, a)
You'd better ask the question on boost.python or boost-users mailing lists:
http://boost.org/more/mailing_lists.htm
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ing.net/pyplusplus/links.html
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
Thank you guys for your replies.
I've just realized that there was no memory leak and it was just my
mistake to think so. I've almost disappointed with my favorite
programming language before addressing the problem. Actually the app
consume as much memory as it should and I've just miscalculated
Dennis Lee Bieber wrote:
> On Mon, 23 Oct 2006 03:31:28 +0400, Roman Petrichev <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> Hi folks.
>> I've just faced with very nasty memory consumption problem.
>> I have a multythreaded app with
Hi folks.
I've just faced with very nasty memory consumption problem.
I have a multythreaded app with 150 threads which use the only and the
same function - through urllib2 it just gets the web page's html code
and assigns it to local variable. On the next turn the variable is
overritten with an
the library
* documentation, new chapters were written, all source code in documentation is
highlighted using pykleur package.
Dependencies: Py++-0.8.2 depends on pygccxml-0.8.2.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ies rather than programming
> theory/constructs
Be sure to check Boost.Python to create Python bindings for your project(s):
http://boost.org/libs/python/doc/tutorial/doc/html/index.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
On 10/10/06, Frank Martinez <[EMAIL PROTECTED]> wrote:
> Hi, Roman.
> Thanks. I seem a bit confused. Does Py++ actually convert the C++ code to
> Python or does it just provide a wrapper to C++ code?
A second one. Now when I read your mail one more time, I think I was
wrong, b
a look on Py++( http://language-binding.net/pyplusplus/pyplusplus.html )
You are not going to regret.
You don't have to believe: take a look on Python-Ogre project(
http://python-ogre.python-hosting.com/ ) and amount of code that is
needed
to export Ogre engine to Python: http://tinyurl.com/mjuea
--
# [EMAIL PROTECTED] / 2006-10-08 11:44:18 +0100:
> That's because assignment isn't an operator - that's why (for example)
>
> print x = 33
>
> would be a syntax error. This is a deliberate design decision about
> which, history shows, there is little use complaining.
Just to clarify: n
'd', 'f']
3 ['g']
This code does not need the operator module, and its also faster (tested
using timeit). Why was the, imho, more complicated version used as
example in the documentation?
Regards, Roman
--
http://mail.python.org/mailman/listinfo/python-list
It turns out false alarm. It work. I had other logic in the
expression involving punctuation marks and got all confused with the
escape characters. It becomes a mess trying to keep track of all the
reserved character as you are going from module to module.
tobiah wrote:
> Roman wrote:
&g
I looked at a book called beginning python and it claims that <.*?> is
a non-greedy match.
tobiah wrote:
> > In python's RE module, they're like Perl:
> >
> > Greedy: "<.*>"
> > Nongreedy: "<.*?>"
> >
>
> Oh, I have never seen that. In that case, why
> did Roman's first example not work well fo
This is excellent. Thanks a lot.
Also, what made the expression greedy?
tobiah wrote:
> Roman wrote:
> > I am trying to filter a column in a list of all html tags.
> >
> > To do that, I have setup the following statement.
> >
> > row[0] = re.sub(r'<
ement. Hence, the line separators are going to be gone. You
mentioned the size of the string could be a factor. If so what is the
max size before I see problems?
Thanks again
Anthra Norell wrote:
> Roman,
>
> Your re works for me. I suspect you have tags spanning lines, a thing you ge
I am trying to filter a column in a list of all html tags.
To do that, I have setup the following statement.
row[0] = re.sub(r'<.*?>', '', row[0])
The results I get are sporatic. Sometimes two tags are removed.
Sometimes 1 tag is removed. Sometimes no tags are removed. Could
somebody tell me
. A lot of bugs were fixed.
8. Documentation was written.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
s implementation and performance were improved.
You can find the full list of changes here:
http://language-binding.net/pygccxml/history/history.html#version-0-8-1
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
-s VC80_ROOT=vc-8_0
> not totally sure if that is right so I have tried a few others like,
> bjam -sTOOLS=vc-8_0
>
> Any help would be appreciated.
Try to run vcvars32.bat ( if exists or something similar ) before you invoke
bjam from the same cmd. I am not sure, but this could he
y you need.
> Btw, if you can point me to any source code of non-trivial projects
> utilizing SWIG/Boost.Python, that would be very helpful. I found the
> examples on the tutorials are far too simple.
Those are tutorials, they should be simple, right :-) ?
--
Roman Yakovenko
Nick Vatamaniuc wrote:
>True, that is why it behaves the way it does, but which way is the
>correct way? i.e. does the code need updating or the documentation?
>
>
>
Perhaps, someone can make a bug report... IMHO, docs are wrong.
-Roman
>-Nick V.
>
>[EMAIL PROTEC
he behaviour makes sense, of course... I tend to leave commas when I
expect a list to be added to (i.e. almost always ;-)))
Regards,
Roman
--
http://mail.python.org/mailman/listinfo/python-list
n
will be associated with certain thing (like Ruby with Rails, Java with
Beans, C with two pluses, Fortran with 77 ;-)
Its healthy for a Pythons to live in many different ecosystems.
Regards,
Roman
--
http://mail.python.org/mailman/listinfo/python-list
ig.org/
Boost.Python also has code generators: Pyste and pyplusplus(
http://language-binding.net/pyplusplus/pyplusplus.html )
The last one even has GUI, so for small project you don't have to learn
any API, just few mouse clicks and you have almost working code.
--
Roman Yakove
that if you ask you questions on
boost.python mailing list
you will get the answers.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
t site.
After this use bcp(http://boost.org/tools/bcp/bcp.html) utility to extract
boost.python and its dependencies.
After this you can read tutorials and to start working.
Anyway, it is better to ask Boost.Python related questions on it's mailing list:
http://boost.org/more/mailing_lists.htm
"026508050354" "5201"
01/04/1996
"000260""MO5201P" "MO 5201P TRAD BIDET FCT
LVR/H*DBM*B""204938""Moen" 0 $0.00 7.00"026508050378"
"5201P" 01/04/1996
"000264&
matrix
I don't get mistakes anymore. However, still nothing gets printed
Bruno Desthuilliers wrote:
> Roman wrote:
> (please dont top-post - corrected)
> >
> > Iain King wrote:
> >
> >>Roman wrote:
> >>
> >>>I would appreciate it if some
I am getting
TypeError: unsubscriptable object
when specifying
for line in reader[:7]:
Steven D'Aprano wrote:
> On Tue, 04 Jul 2006 07:01:55 -0700, Roman wrote:
>
> > I would appreciate it if somebody could tell me where I went wrong in
> > the following snipet:
>
Nothing got printed.
Could you tell me what would be pythonic version of what I am trying to
do?
Diez B. Roggisch wrote:
> > p[j] does not give you a reference to an element inside p. It gives
> > you a new sublist containing one element from p. You then append a
> > column to that sublist. T
le("f:\webserver\inp.txt"), dialect="excel",
quotechar="'", delimiter='\t')
for line in reader:
if cnt > 6:
break
j = 0
for col in line:
p[j].append(col)
j=j+1
cnt = cnt + 1
print p
Iain Ki
I would appreciate it if somebody could tell me where I went wrong in
the following snipet:
When I run I get no result
cnt = 0
p=[]
reader = csv.reader(file("f:\webserver\inp.txt"), dialect="excel",
quotechar="'", delimiter='\t')
for line in reader:
if cnt > 6:
I am new to python.
I am looking to read in a 12mb csv file, parse it, generate web pages,
summarize on a column and make drop down bottons.
Where would I be able to find sample code that does something similar
to this?
Also, I know that microsoft has put out .net beta version of it. If I
am us
.net/ using it and Docutils.
Never regret about this.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
directory, program loader can find.
How can I do this?
Any help is appreciated.
Thanks
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
Hi
This is what I'm looking for.
Thank you.
Roman
gene tani schrieb:
> Roman wrote:
> > Does anybody know an easy way (or tool) to guess the language of a
> > given text string?
> >
>
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355807
ing in "Esto es un ejemplo." --> should return "spanish" or ISO
code
I would prefer something more lightweight than using nltk/corpus/...
And it's ok if the success ratio is just about 90% or so.
Roman
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 182 matches
Mail list logo