Re: how to get PID from subprocess library

2011-05-19 Thread Miki Tebeka
The best module for doing such things is subprocess. And the Popen object has a pid attribute (http://docs.python.org/library/subprocess.html#subprocess.Popen.pid) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 and timezones

2011-05-23 Thread Miki Tebeka
> [1] http://pypi.python.org/pypi/PosixTimeZone/0.9.4 > [2] http://pypi.python.org/pypi/pytz/2011g > [3] http://docs.python.org/library/datetime.html#tzinfo-objects Also http://labix.org/python-dateutil#head-587bd3efc48f897f55c179abc520a34330ee0a62 HTH -- Miki Teb

Re: Cherrypy

2011-05-25 Thread Miki Tebeka
I wrote http://drdobbs.com/showArticle.jhtml?articleID=199102936&queryText=query way back then. It might be of some help. If you have any specific questions, feel free to post them to the group. -- http://mail.python.org/mailman/listinfo/python-list

Re: The worth of comments

2011-05-27 Thread Miki Tebeka
https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw ;) -- http://mail.python.org/mailman/listinfo/python-list

Packaing configuration files

2011-06-01 Thread Miki Tebeka
to generate data_files, however I'm wondering if there is a better option). Thanks, -- Miki -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Nuclio: A scalable, open source, real-time processing platform

2017-10-24 Thread Miki Tebeka
Hi, Just wanted to share a project I'm working on. It a super fast serverless that support Python handlers as well. Check out more at https://www.iguazio.com/nuclio-new-serverless-superhero/ Code at https://github.com/nuclio/nuclio/ Happy hacking, -- Miki -- https://mail.python.org/ma

Re: I have anaconda, but Pycharm can't find it

2017-11-26 Thread Miki Tebeka
You need to set the Python interpreter for the project to be the Anaconda one. See https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html On Monday, November 27, 2017 at 1:56:58 AM UTC+2, C W wrote: > Hello all, > > I am a first time PyCharm user. I have Python 3 and Anaconda

Re: pymssql

2016-09-09 Thread Miki Tebeka
> for row in cus: >print(row.budget_code) > > > NameError: name 'budget_code' is not defined You'll need to use a DictCursor to be able to access rows by name and not position (which IMO is the preferred way). cus = conn.cursor(pymysql.cursors.DictCursor) cus.execute("SELECT * FROM

Re: Python3, column names from array - numpy or pandas

2016-12-14 Thread Miki Tebeka
You can do this with pandas: import pandas as pd from io import StringIO io = StringIO('''\ idABCDE 10010000 10101100 10210

PyCon Israel 2018 CFP is Open

2018-03-11 Thread Miki Tebeka
Hi, PyCon Israel 2018 call for papers is open, submit a talk today, another three tomorrow :) See more at http://il.pycon.org/2018/ All the best, -- Miki -- https://mail.python.org/mailman/listinfo/python-list

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-19 Thread Miki Tebeka
If you're trying to access the machine from another machine, you need to change the host to '0.0.0.0'. 'localhost' is the internal interface. On Sunday, August 19, 2018 at 10:36:25 PM UTC+3, Νίκος wrote: > Hello, > > i just installed bottle and flask web frameworks in my CentOS environment but

Re: hourly weather forecast data

2016-04-12 Thread Miki Tebeka
> Is there a way to get hourly weather forecast data (temperature, > chance of precipitation) from the command line in Debian Linux? If you Google for "weather API" you'll find several sites who give programmatic access to weather data. -- https://mail.python.org/mailman/listinfo/python-list

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Miki Tebeka
On Tuesday, June 21, 2016 at 2:03:28 PM UTC+3, Pushpanth Gundepalli wrote: > Guys, can you please share me some sites where we can practice python > programs for beginners and Intermediate. IMO you can do that at https://www.codecademy.com/learn/python -- https://mail.python.org/mailman/listinfo

Re: What is the correct interpreter

2020-03-04 Thread Miki Tebeka
om/help/pycharm/configuring-local-python-interpreters.html on how to configure the interpreter. > But when I run a simple code it objects to the interpreter??? I order to help we'll need more information. What is the code you're trying to run and what is the error? Happy hacking, Miki -- htt

[ANN] Python Brain Teasers Book is Out

2020-05-04 Thread Miki Tebeka
e of the book, including the forward by Raymond Hettinger is at https://www.353solutions.com/python-brain-teasers Stay curious, keep hacking, Miki -- https://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Python Brain Teasers Book is Out

2020-05-05 Thread Miki Tebeka
Hi, > Would be grateful if you could post it to python-authors also: > https://mail.python.org/mailman/listinfo/python-authors Done. Though list seems very dormant. Thanks, Miki -- https://mail.python.org/mailman/listinfo/python-list

Re: Division issue with 3.8.2 on AIX 7.1

2020-06-03 Thread Miki Tebeka
> Anyone know where can I look in the Python source code to investigate > this? Probably around https://github.com/python/cpython/blob/master/Objects/floatobject.c -- https://mail.python.org/mailman/listinfo/python-list

Shared library missing from wheel (custom build)

2020-06-06 Thread Miki Tebeka
hon setup.py bdist_wheel", I see that that _checksig.cpython-38-x86_64-linux-gnu.so is being built. But when I look at the content of dist/checksig-0.1.0-cp38-cp38-linux_x86_64.whl it's not there. What am I missing? You can view the whole (WIP) project at https://github.com/ardanlabs/python-go/tree/master/pyext Thanks, Miki -- https://mail.python.org/mailman/listinfo/python-list

Re: Shared library missing from wheel (custom build)

2020-06-06 Thread Miki Tebeka
Changed to self.get_ext_full_path(ext.name) and it works now. -- https://mail.python.org/mailman/listinfo/python-list

ctypes & allocated memory

2020-06-07 Thread Miki Tebeka
up.argtypes = [ctypes.c_char_p] strdup.restype = ctypes.c_char_p out = strdup(b'hello').decode('utf-8') print(out) # hello del out --- Thanks, Miki -- https://mail.python.org/mailman/listinfo/python-list

Re: ctypes & allocated memory

2020-06-07 Thread Miki Tebeka
> Does ctypes, when using restype, frees allocated memory? > > For example, will the memory allocated by "strdup" be freed after the "del" > statement? If not, how can I free it? I've tried the following program and I'm more confused now :) Can anyone explain the output? --- import ctypes im

Re: ctypes & allocated memory

2020-06-07 Thread Miki Tebeka
Hi, > But the problem is that by specifying the type as ctypes.c_char_p, > ctypes will hide that pointer from you and return a Python object > instead. I'm not sure how ctypes is doing it under the hood, but I > suspect ctypes is doing it's own strdup of the string on conversion, and > managing t

Re: good exercises for Beginner

2005-09-26 Thread Miki Tebeka
ge.com/ HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpNVqvXWAclO.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Telephony project

2005-09-28 Thread Miki Tebeka
. flit again. > Repeat till eof() Trivial. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpJxqUiNHZQT.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Documenting members

2005-09-29 Thread Miki Tebeka
lace the documentation directly next to the member but in the class document string. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the

Re: Swig and pointers

2005-10-06 Thread Miki Tebeka
Doc1.3/SWIGDocumentation.html#Python_nn59 > > However, python comes back and says "TypeError: argument number 2: a > 'MY_DIGIT **' is expected, 'list([])' is received" > > ..any ideas? Didn't check it but from http://www.swig.org/Doc1.3/Library

Re: Extending Python

2005-10-06 Thread Miki Tebeka
for the help! You're welcome. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpnPt1Q2pzVs.pgp Description: PGP sign

SOAPpy, WSDL, non-standard types and my graying hair

2005-10-11 Thread Miki Tebeka
k-interface', u'CRecordListSoap')) I know how to prepare the first three arguments (using SOAPpy.stringType and SOAPpy.longType). I can't find the documentation on how to prepare the last argument. Any ideas? pointers? ... Thanks. -- ---

Re: Capturing audio from a microphone on Mac OS X

2005-10-16 Thread Miki Tebeka
WIG (http://www.swig.org) it. > Thanks in advance to anyone who replies, You're welcome. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults i

Re: wxPython advice

2005-10-24 Thread Miki Tebeka
ads.pdf). You might want to use async socket reading as well. HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpHBwZbzOv3s.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with py2exe

2005-10-30 Thread Miki Tebeka
efore calling to py2exe. One final note: You subject line could have been better, see http://www.catb.org/~esr/faqs/smart-questions.html. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The onl

Re: Forced to Embed?

2005-10-31 Thread Miki Tebeka
thon interpreter but I see > no way around this without a large restructure? You can have one Python module that is the interface to the C++ module and it will be structured the way you want (using classes, modules ...). Bye. --

Re: I am looking for some python script to compare two files

2005-11-08 Thread Miki Tebeka
t files. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpMWT2HqUPfz.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: string help

2005-11-15 Thread Miki Tebeka
if (letter == "O") or (letter == "Q"): > > print letter + "u" + suffix HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between child

Re: embedded scripts debugging

2005-01-11 Thread Miki Tebeka
set_trace (breakpoint) whenever I with. When the code reaches the call to set_trace, you'll have pdb prompt and you can debug as you like. Note that you can't add breakpoint dynamically this way. HTH. -- ---- Miki Tebek

Exception not captured

2005-01-11 Thread Miki Tebeka
the printout is: /home/mikit/work/nightly/scm/common.py:3 /home/mikit/work/nightly/scm/common.py:3 False How is this possible? Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between

Re: video analysis with python

2005-01-16 Thread Miki Tebeka
Thanks in advance > for any help. 1. There is PyMedia (http://pymedia.org/) 2. Maybe you can use the code from VLC (http://www.videolan.org/vlc/) (using SWIG/PyBoost/Pyrex ...) HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED

Re: Help on project, anyone?

2005-01-24 Thread Miki Tebeka
much time backing out of changes you didn't want in. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-26 Thread Miki Tebeka
p/full-text/book/book.html) will be better for you mind :-) HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.pytho

Forcing interactive interpreter without (-i)

2005-01-31 Thread Miki Tebeka
Hello All, If there a way a script can tell Python to enter interactive mode even if the -i command line switch was not given? I want py2exe to create an interactive session, without writing my own REPL. Thanks. -- Miki

Re: CONTEST - What is the (best) solution?

2005-02-02 Thread Miki Tebeka
pairs can be different. > I need to read only the the first and the last dictionaries.What is a > best solution? d.py --- #!/usr/bin/env python from sys import argv dicts = eval("[" + open(argv[1]).read().replace("}", "},") + "]") print dicts[0

Re: Finding user's home dir

2005-02-03 Thread Miki Tebeka
our code does. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble converting hex to decimal?

2005-02-05 Thread Miki Tebeka
ing. How do I handle this? Try using "array" or "struct" modules. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Embedding Python - How to create a class instance

2005-06-19 Thread Miki Tebeka
49); PyObject_CallObject(foo, args); Py_Finalize(); return 0; } --- a.c --- Thanks. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of

Re: Embedding Python - How to create a class instance

2005-06-20 Thread Miki Tebeka
After grepping the Python sources I've found about obj = PyInstance_New(A, NULL, NULL) which worked for me. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between

Re: Photo layout

2005-06-27 Thread Miki Tebeka
them. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpZPWVPtayJI.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

POP3 and "seen" flag

2005-06-30 Thread Miki Tebeka
Hello All, Is there a way to know in a POP session of a message was seen (old) or not (new)? Thanks. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the

Re: POP3 and "seen" flag

2005-07-02 Thread Miki Tebeka
", so that won't work either. You're right. I'm trying to delete only read messages from Exchange server, *another* client is used for reading. (It's a long story involving me and IT here ...) Bye. --

OT: ^ in redirection (windows)

2005-07-04 Thread Miki Tebeka
to search for ^ in google). Thanks. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgp0xW0fd4Rts.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging embedded python

2005-07-04 Thread Miki Tebeka
directories (try "help dir") HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpL7uJf3bNsr.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPy + Py2Exe + sys.argv[0]

2005-07-04 Thread Miki Tebeka
port path APPDIR = path[0] # Application directory if isfile(APPDIR): # py2exe APPDIR = dirname(APPDIR) HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpNuJI2tMFDr.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: VC++ linking problem

2005-07-07 Thread Miki Tebeka
Just do: #undef _DEBUG /* Link with python24.lib and not python24_d.lib */ #include and you'll be fine. IMO python should try and link with python24.lib when compiling in debug mode since we want to debug our program and not Python. Bye. -- ---

Re: VC++ linking problem

2005-07-08 Thread Miki Tebeka
y build_ext -c mingw32' HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgp2AzDhXSn5B.pgp Description: PGP signature --

Re: Learning Python - IM Wiki

2005-07-08 Thread Miki Tebeka
for free Wiki hosting. Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgp87cLo0bTVM.pgp Description: PGP signature -- http://

Re: Legacy data parsing

2005-07-08 Thread Miki Tebeka
ne could give me suggestions as to methods in sorting this type > of data, it would be appreciated. Maybe regular expression are too difficult for this. I'd try one of the parsing toolkits (such as PLY, PyParsing ...), it might be more suitable for the job. HTH. -- ---

C/API importing a module as __main__

2005-07-10 Thread Miki Tebeka
as __main__? Thanks. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpTrBHMvpC1T.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: email format in python

2005-07-18 Thread Miki Tebeka
> return false; > } > } Check out the "email" library module (see the examples at http://docs.python.org/lib/node589.html) Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The

Re: Reading binary with header

2005-07-25 Thread Miki Tebeka
si", header) fo.read(15) # Skip non-data header a = array(TYPES[fields[-1]) # Create array size = (filesize - 28) / a.itemsize # Size to read a.read(fo, size) # Read to array Also check that you don't have little/big endien problems. HTH. -- ---

Reading my own stdout

2005-08-21 Thread Miki Tebeka
ction" which I don't like.) Thanks. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgptbvCZxGky9.pgp Description: PGP

Epydoc - Documenting class members?

2005-08-31 Thread Miki Tebeka
x = x # How do I document here? self.y = y # How do I document here? Thanks. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys

Re: Epydoc - Documenting class members?

2005-09-01 Thread Miki Tebeka
Hello Terry, [Miki] >> Is there a way to document class members in Epydoc? [Terry] > Yes. See additions below: > > > Something like: > > > > class Point: > """ > @ivar x: This is where you document x. > @ivar y:

Re: Improving my text processing script

2005-09-01 Thread Miki Tebeka
[] > for table in tlst: > for prog,content in plst: > if content.find(table)>0: if table in content: > flst.append('"%s","%s"'%(prog,table)) > flst.sort() > for elem in flst: > print elem print "\n".join(sorted(fl

py2exe and output executable name

2005-09-01 Thread Miki Tebeka
Hello All, Is there a way to tell py2exe to create an executable with arbirary name? Currently the executable name is the script name with .exe suffix. Thanks. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.c

Display subprocess progress

2005-02-06 Thread Miki Tebeka
). Thanks. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: def __init__ question in a class definition

2005-02-06 Thread Miki Tebeka
e) represent, if > anything, in this bliock of assignmeents? I wish to add some more names > but do not know if i need the __ or not? > > IE: is there any special significance to the __ in this case. http://docs.python.org/tut/tut.html Bye. -- --

Re: Choosing the right parser for parsing C headers

2005-02-08 Thread Miki Tebeka
Hello Jean, > - ply: > Lex / Yacc for python! Tackle the Beast! Syntax processing looks mini_c is a C compiler written using ply. You can just use it as is. http://people.cs.uchicago.edu/~varmaa/mini_c/ HTH. -- ---- Miki

Re: email extraction program

2005-02-08 Thread Miki Tebeka
estions.html HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-13 Thread Miki Tebeka
y more work. Things can't get much simpler. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: How to implement a file lock ??

2005-02-15 Thread Miki Tebeka
atexit.register(unlock) which is better. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: "perl -p -i -e" trick in Python?

2005-02-16 Thread Miki Tebeka
similar trick? Or, is there a shorter Python recipe for > the given problem? See the "fileinput" module. HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference betw

Re: Help with C extensions under VC6 / WinXP and Python 2.4

2005-02-17 Thread Miki Tebeka
Hello Simon, > What's the difference between ctypes, SWIG and SIP? SIG and SIP take C/C++ *sources* and create Python modules. ctypes works directly with the binary dll. Bye. -- ---- Miki Tebeka <[EMAIL PROTE

Re: which parser to use

2005-02-22 Thread Miki Tebeka
e speed and IMO the code is very readable. Also I find the documentation very good. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

py2exe Python2.4 and "warning: string/unicode conversion"

2005-03-08 Thread Miki Tebeka
ngs')? Thanks. Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgp3yEdjLYB1o.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe Python2.4 and "warning: string/unicode conversion"

2005-03-09 Thread Miki Tebeka
ror. > > Are you sure you are using Python 2.4? Found out that one of the extension modules was compiled with 2.3 Thanks Martin. Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference be

Re: Regexp question

2004-12-01 Thread Miki Tebeka
for "negative lookahead" HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.spymac.net The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: spawn or fork

2004-12-08 Thread Miki Tebeka
fork are very different functions. Read the documentation on each. Note the "fork" is available only in Unix like systems. > 2. How do I call that function if it is defined in the same file. Just call it. def foo(): print 1 foo() Bye. -- ---

Re: lies about OOP

2004-12-14 Thread Miki Tebeka
cts Have Failed") for an interesting discussion. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question

2004-12-19 Thread Miki Tebeka
xactly does the it "know" that for this iteration, x is an > integer, and the evaluation (if x == 'spam') is False, and doesn't throw an > exception for a type mismatch? Python is strongly type in the sense that each object has a type. I don't remember exactly h

Re: convert \uXXXX to native character set?

2004-12-20 Thread Miki Tebeka
Hello Joe, > Is there any library to convert HTML page with \u encoded text to >native character set, e.g. BIG5. Try: help("".decode) Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebe

Re: embedding: forcing an interpreter to end

2004-12-20 Thread Miki Tebeka
program and then you can kill the interpreter. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: embedding: forcing an interpreter to end

2004-12-22 Thread Miki Tebeka
ery small impelementation) Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP Non-Blocking reads from sys.stdin in Windows.

2004-12-28 Thread Miki Tebeka
e.get(0) if val is EOFError: raise EOFError return val except Empty: raise EmptyError def is_empty(): '''Tell if no input is ready''' return _queue.empty() --- HTH. -- --

Re: portable text user interface

2004-12-29 Thread Miki Tebeka
php?id=1112 for example. If you need something that runs through telnet/ssh ... than curses is what your looking for. There's a win32 port to it somewhere. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bi

Re: portable text user interface

2004-12-30 Thread Miki Tebeka
library, with a less restrictive license ? It looks very good - but I > can't use it in my projects if it is GPL. It's just standard Tkinter Listbox with key bindings and it's under 160 lines of code. Nothing special here. Bye. -- --

Re: Text-to-speech

2005-03-21 Thread Miki Tebeka
estival/download.html) with SWIG. HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpPzYcyektit.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-06 Thread Miki Tebeka
's very individual, I'm hooked on VIm while others won't touch it. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpztuUvZUl8y.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: cross platform printing

2005-04-06 Thread Miki Tebeka
printing application kicking around? wxPython is a cross platfom UI framework which has printing support. Maybe you can cook something. HTH. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only differe

Re: NSInstaller Vs. Inno Setup

2005-04-11 Thread Miki Tebeka
Hello dcrespo, > Any comments? I'm happy with Inno. Bye. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpdEFt0Cm0o9.p

Tkinter "withdraw" and "askstring" problem

2005-04-12 Thread Miki Tebeka
quot;withdraw" line the script works but there is another Tk window at the back. Any way to solve the problem? Thanks. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between chil

Re: python LEX

2005-04-21 Thread Miki Tebeka
x and Parrot for their parser implementation. HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpQmhuX2LvAQ.pgp Description: PGP

Re: Changing a line in a text file

2005-04-25 Thread Miki Tebeka
ite everything. See http://docs.python.org/lib/module-fileinput.html (inplace=1 is what you want). Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price

Re: A smallish Tkinter question

2005-04-25 Thread Miki Tebeka
def run(self): #<<< self.loop() def loop(self): #<<< self.time = self.time + 1 self.display["text"] = str(self.time) self.after(1000, self.loop) win = Tk() app = Clock(win) app.run() #also tried run(win) with self,parent above win.ma

Re: Is there a package with convolution and related methods?

2005-04-25 Thread Miki Tebeka
ing (http://gmpy.sourceforge.net/) has FFT. HTH. -- ---- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpDuAgLkeESh.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Howto debug c++ (SWIG) extension under Windows

2005-04-26 Thread Miki Tebeka
f you still can't stop try "forcing" breakpoints using __asm int 3 in your code. This way you can even run it out of MSDEV and you'll get a message box when the "breakpoint" it hit. Just open the debugger on it. HTH. -- -

Re: Howto debug c++ (SWIG) extension under Windows

2005-04-27 Thread Miki Tebeka
ActiveState DEBUG extension to ActivePython). It requires also the DLL. > > Does anybody know, where to get that DLL ? Try "download MSVCR71D.dll" in google. Another option if to compile you extension in debug mode but to link it to the "regular" Python. Just undef _

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-16 Thread Miki Tebeka
> Can you recommend an open source project (or two) written in Python; > which covers multi project + sub project issue tracking linked across > github repositories? Don't know if it covers all what you need, but http://trac.edgewall.org/ is written in Python, and has many, many plugins. -- https

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-20 Thread Miki Tebeka
On Wednesday, November 20, 2013 6:36:56 AM UTC-8, Alec Taylor wrote: > Anyway, here is the link: https://github.com/rauhryan/huboard I thought you wanted a Python bases solution. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help me to print to screen as well as log

2013-11-23 Thread Miki Tebeka
> I want that print "hello" should appear on screen as well as get saved in a > log file. > How can I accomplish this? There are many ways to do this, here's one: class MultiWriter(object): def __init__(self, *writers): self.writers = writers self.isatty = False def write

Re: generator slides review

2014-02-01 Thread Miki Tebeka
On Saturday, February 1, 2014 6:12:28 AM UTC-8, andrea crotti wrote: > I'm giving a talk tomorrow @Fosdem about generators/iterators/iterables.. > > > > The slides are here (forgive the strange Chinese characters): > > https://dl.dropboxusercontent.com/u/3183120/talks/generators/index.html#3 >

Re: generator slides review

2014-02-02 Thread Miki Tebeka
> Thank you that's nicer, but ifiilterfalse is not in Python 3 (could > > use filter of course). It was renamed to filterfalse - http://docs.python.org/3.3/library/itertools.html#itertools.filterfalse -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   >